@scalant/career-hub 3.4.0-alpha.0 → 3.6.0-alpha.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/career-hub.es.js +48260 -4543
- package/dist/career-hub.umd.js +340 -16
- package/package.json +2 -2
package/dist/career-hub.umd.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(pt,b){typeof exports=="object"&&typeof module!="undefined"?b(exports,require("react"),require("@reduxjs/toolkit"),require("react-redux"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@reduxjs/toolkit","react-redux","react-dom"],b):(pt=typeof globalThis!="undefined"?globalThis:pt||self,b(pt.CareerHub={},pt.React,pt.ReduxToolkit,pt.ReactRedux,pt.ReactDOM))})(this,function(pt,b,We,wt,tr){"use strict";var tU=Object.defineProperty,nU=Object.defineProperties;var rU=Object.getOwnPropertyDescriptors;var rN=Object.getOwnPropertySymbols;var oU=Object.prototype.hasOwnProperty,iU=Object.prototype.propertyIsEnumerable;var oN=(pt,b,We)=>b in pt?tU(pt,b,{enumerable:!0,configurable:!0,writable:!0,value:We}):pt[b]=We,ur=(pt,b)=>{for(var We in b||(b={}))oU.call(b,We)&&oN(pt,We,b[We]);if(rN)for(var We of rN(b))iU.call(b,We)&&oN(pt,We,b[We]);return pt},ba=(pt,b)=>nU(pt,rU(b));var ar=(pt,b,We)=>new Promise((wt,tr)=>{var Bl=Kr=>{try{xi(We.next(Kr))}catch(Xo){tr(Xo)}},s=Kr=>{try{xi(We.throw(Kr))}catch(Xo){tr(Xo)}},xi=Kr=>Kr.done?wt(Kr.value):Promise.resolve(Kr.value).then(Bl,s);xi((We=We.apply(pt,b)).next())});function Bl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Bl(b),xi=Bl(tr),Kr=()=>b.createElement("div",{style:{padding:"20px",textAlign:"center"}},b.createElement("h1",null,"Hello World - Career Hub"),b.createElement("p",null,"This is a dummy component."));function Xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iu={exports:{}},kl={exports:{}},Xt={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var Uv;function iN(){if(Uv)return Xt;Uv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var $=S.$$typeof;switch($){case t:switch(S=S.type,S){case c:case u:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case g:case p:case a:return S;default:return $}}case n:return $}}}function E(S){return x(S)===u}return Xt.AsyncMode=c,Xt.ConcurrentMode=u,Xt.ContextConsumer=l,Xt.ContextProvider=a,Xt.Element=t,Xt.ForwardRef=d,Xt.Fragment=r,Xt.Lazy=g,Xt.Memo=p,Xt.Portal=n,Xt.Profiler=i,Xt.StrictMode=o,Xt.Suspense=f,Xt.isAsyncMode=function(S){return E(S)||x(S)===c},Xt.isConcurrentMode=E,Xt.isContextConsumer=function(S){return x(S)===l},Xt.isContextProvider=function(S){return x(S)===a},Xt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Xt.isForwardRef=function(S){return x(S)===d},Xt.isFragment=function(S){return x(S)===r},Xt.isLazy=function(S){return x(S)===g},Xt.isMemo=function(S){return x(S)===p},Xt.isPortal=function(S){return x(S)===n},Xt.isProfiler=function(S){return x(S)===i},Xt.isStrictMode=function(S){return x(S)===o},Xt.isSuspense=function(S){return x(S)===f},Xt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===o||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===p||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===v||S.$$typeof===y||S.$$typeof===C||S.$$typeof===h)},Xt.typeOf=x,Xt}var Qt={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var Xv;function aN(){return Xv||(Xv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(F){return typeof F=="string"||typeof F=="function"||F===r||F===u||F===i||F===o||F===f||F===m||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===p||F.$$typeof===a||F.$$typeof===l||F.$$typeof===d||F.$$typeof===v||F.$$typeof===y||F.$$typeof===C||F.$$typeof===h)}function E(F){if(typeof F=="object"&&F!==null){var ee=F.$$typeof;switch(ee){case t:var Z=F.type;switch(Z){case c:case u:case r:case i:case o:case f:return Z;default:var ne=Z&&Z.$$typeof;switch(ne){case l:case d:case g:case p:case a:return ne;default:return ee}}case n:return ee}}}var S=c,$=u,O=l,I=a,w=t,N=d,_=r,T=g,M=p,D=n,P=i,A=o,R=f,L=!1;function j(F){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(F)||E(F)===c}function z(F){return E(F)===u}function B(F){return E(F)===l}function K(F){return E(F)===a}function W(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function k(F){return E(F)===d}function V(F){return E(F)===r}function Q(F){return E(F)===g}function J(F){return E(F)===p}function Y(F){return E(F)===n}function te(F){return E(F)===i}function oe(F){return E(F)===o}function X(F){return E(F)===f}Qt.AsyncMode=S,Qt.ConcurrentMode=$,Qt.ContextConsumer=O,Qt.ContextProvider=I,Qt.Element=w,Qt.ForwardRef=N,Qt.Fragment=_,Qt.Lazy=T,Qt.Memo=M,Qt.Portal=D,Qt.Profiler=P,Qt.StrictMode=A,Qt.Suspense=R,Qt.isAsyncMode=j,Qt.isConcurrentMode=z,Qt.isContextConsumer=B,Qt.isContextProvider=K,Qt.isElement=W,Qt.isForwardRef=k,Qt.isFragment=V,Qt.isLazy=Q,Qt.isMemo=J,Qt.isPortal=Y,Qt.isProfiler=te,Qt.isStrictMode=oe,Qt.isSuspense=X,Qt.isValidElementType=x,Qt.typeOf=E}()),Qt}var Qv;function Yv(){return Qv||(Qv=1,process.env.NODE_ENV==="production"?kl.exports=iN():kl.exports=aN()),kl.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var L=ie(U,X,$,J,z+"."+X,n);if(L)return L}return null}return E(D)}function F(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(F);if(P===null||s(P))return!0;var D=d(P);if(D){var H=D.call(P),B;if(D!==P.entries){for(;!(B=H.next()).done;)if(!F(B.value))return!1}else for(;!(B=H.next()).done;){var $=B.value;if($&&!F($[1]))return!1}}else return!1;return!0;default:return!1}}function O(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function V(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":O(D,P)?"symbol":D}function K(P){if(typeof P=="undefined"||P===null)return""+P;var D=V(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Y(P){var D=K(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function R(P){return!P.constructor||!P.constructor.name?g:P.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},yn}var bn,zr;function jo(){if(zr)return bn;zr=1;var e=vn();function t(){}function n(){}return n.resetWarningCache=t,bn=function(){function r(l,s,c,u,p,d){if(d!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},bn}if(process.env.NODE_ENV!=="production"){var Lo=Dr(),Fo=!0;Ue.exports=Do()(Lo.isElement,Fo)}else Ue.exports=jo()();var qo=Ue.exports;const I=Ae(qo);function pe(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var a=Wo[e],o=a?typeof a=="function"?a.apply(null,n):a:"unknown error nr: "+e;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function We(e){return!!e&&!!e[Se]}function Fe(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var a=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ko}(e)||Array.isArray(e)||!!e[ut]||!!(!((t=e.constructor)===null||t===void 0)&&t[ut])||wt(e)||It(e))}function rt(e,t,n){n===void 0&&(n=!1),Be(e)===0?(n?Object.keys:Pn)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,a){return t(a,r,e)})}function Be(e){var t=e[Se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wt(e)?2:It(e)?3:0}function ct(e,t){return Be(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function At(e,t){return Be(e)===2?e.get(t):e[t]}function Hr(e,t,n){var r=Be(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $o(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wt(e){return Jo&&e instanceof Map}function It(e){return Uo&&e instanceof Set}function Ke(e){return e.o||e.t}function _n(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Yo(e);delete t[Se];for(var n=Pn(t),r=0;r<n.length;r++){var a=n[r],o=t[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function En(e,t){return t===void 0&&(t=!1),Sn(e)||We(e)||!Fe(e)||(Be(e)>1&&(e.set=e.add=e.clear=e.delete=Bo),Object.freeze(e),t&&rt(e,function(n,r){return En(r,!0)},!0)),e}function Bo(){pe(2)}function Sn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function we(e){var t=Mn[e];return t||pe(18,e),t}function zo(e,t){Mn[e]||(Mn[e]=t)}function Qr(){return process.env.NODE_ENV==="production"||it||pe(0),it}function Cn(e,t){t&&(we("Patches"),e.u=[],e.s=[],e.v=t)}function xt(e){Tn(e),e.p.forEach(Ho),e.p=null}function Tn(e){e===it&&(it=e.l)}function Vr(e){return it={p:[],l:it,h:e,m:!0,_:0}}function Ho(e){var t=e[Se];t.i===0||t.i===1?t.j():t.g=!0}function On(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||we("ES5").S(t,e,r),r?(n[Se].P&&(xt(t),pe(4)),Fe(e)&&(e=kt(t,e),t.l||Nt(t,e)),t.u&&we("Patches").M(n[Se].t,e,t.u,t.s)):e=kt(t,n,[]),xt(t),t.u&&t.v(t.u,t.s),e!==Nn?e:void 0}function kt(e,t,n){if(Sn(t))return t;var r=t[Se];if(!r)return rt(t,function(s,c){return Jr(e,r,t,s,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Nt(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=r.i===4||r.i===5?r.o=_n(r.k):r.o,o=a,l=!1;r.i===3&&(o=new Set(a),a.clear(),l=!0),rt(o,function(s,c){return Jr(e,r,a,s,c,n,l)}),Nt(e,a,!1),n&&e.u&&we("Patches").N(r,n,e.u,e.s)}return r.o}function Jr(e,t,n,r,a,o,l){if(process.env.NODE_ENV!=="production"&&a===n&&pe(5),We(a)){var s=kt(e,a,o&&t&&t.i!==3&&!ct(t.R,r)?o.concat(r):void 0);if(Hr(n,r,s),!We(s))return;e.m=!1}else l&&n.add(a);if(Fe(a)&&!Sn(a)){if(!e.h.D&&e._<1)return;kt(e,a),t&&t.A.l||Nt(e,a)}}function Nt(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&En(t,n)}function An(e,t){var n=e[Se];return(n?Ke(n):e)[t]}function Ur(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function wn(e){e.P||(e.P=!0,e.l&&wn(e.l))}function In(e){e.o||(e.o=_n(e.t))}function xn(e,t,n){var r=wt(t)?we("MapSet").F(t,n):It(t)?we("MapSet").T(t,n):e.O?function(a,o){var l=Array.isArray(a),s={i:l?1:0,A:o?o.A:Qr(),P:!1,I:!1,R:{},l:o,t:a,k:null,o:null,j:null,C:!1},c=s,u=Dn;l&&(c=[s],u=dt);var p=Proxy.revocable(c,u),d=p.revoke,g=p.proxy;return s.k=g,s.j=d,g}(t,n):we("ES5").J(t,n);return(n?n.A:Qr()).p.push(r),r}function Qo(e){return We(e)||pe(22,e),function t(n){if(!Fe(n))return n;var r,a=n[Se],o=Be(n);if(a){if(!a.P&&(a.i<4||!we("ES5").K(a)))return a.t;a.I=!0,r=Wr(n,o),a.I=!1}else r=Wr(n,o);return rt(r,function(l,s){a&&At(a.t,l)===s||Hr(r,l,t(s))}),o===3?new Set(r):r}(e)}function Wr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _n(e)}function Vo(){function e(r){if(!Fe(r))return r;if(Array.isArray(r))return r.map(e);if(wt(r))return new Map(Array.from(r.entries()).map(function(l){return[l[0],e(l[1])]}));if(It(r))return new Set(Array.from(r).map(e));var a=Object.create(Object.getPrototypeOf(r));for(var o in r)a[o]=e(r[o]);return ct(r,ut)&&(a[ut]=r[ut]),a}function t(r){return We(r)?e(r):r}var n="add";zo("Patches",{$:function(r,a){return a.forEach(function(o){for(var l=o.path,s=o.op,c=r,u=0;u<l.length-1;u++){var p=Be(c),d=l[u];typeof d!="string"&&typeof d!="number"&&(d=""+d),p!==0&&p!==1||d!=="__proto__"&&d!=="constructor"||pe(24),typeof c=="function"&&d==="prototype"&&pe(24),typeof(c=At(c,d))!="object"&&pe(15,l.join("/"))}var g=Be(c),v=e(o.value),_=l[l.length-1];switch(s){case"replace":switch(g){case 2:return c.set(_,v);case 3:pe(16);default:return c[_]=v}case n:switch(g){case 1:return _==="-"?c.push(v):c.splice(_,0,v);case 2:return c.set(_,v);case 3:return c.add(v);default:return c[_]=v}case"remove":switch(g){case 1:return c.splice(_,1);case 2:return c.delete(_);case 3:return c.delete(o.value);default:return delete c[_]}default:pe(17,s)}}),r},N:function(r,a,o,l){switch(r.i){case 0:case 4:case 2:return function(s,c,u,p){var d=s.t,g=s.o;rt(s.R,function(v,_){var h=At(d,v),E=At(g,v),A=_?ct(d,v)?"replace":n:"remove";if(h!==E||A!=="replace"){var T=c.concat(v);u.push(A==="remove"?{op:A,path:T}:{op:A,path:T,value:E}),p.push(A===n?{op:"remove",path:T}:A==="remove"?{op:n,path:T,value:t(h)}:{op:"replace",path:T,value:t(h)})}})}(r,a,o,l);case 5:case 1:return function(s,c,u,p){var d=s.t,g=s.R,v=s.o;if(v.length<d.length){var _=[v,d];d=_[0],v=_[1];var h=[p,u];u=h[0],p=h[1]}for(var E=0;E<d.length;E++)if(g[E]&&v[E]!==d[E]){var A=c.concat([E]);u.push({op:"replace",path:A,value:t(v[E])}),p.push({op:"replace",path:A,value:t(d[E])})}for(var T=d.length;T<v.length;T++){var y=c.concat([T]);u.push({op:n,path:y,value:t(v[T])})}d.length<v.length&&p.push({op:"replace",path:c.concat(["length"]),value:d.length})}(r,a,o,l);case 3:return function(s,c,u,p){var d=s.t,g=s.o,v=0;d.forEach(function(_){if(!g.has(_)){var h=c.concat([v]);u.push({op:"remove",path:h,value:_}),p.unshift({op:n,path:h,value:_})}v++}),v=0,g.forEach(function(_){if(!d.has(_)){var h=c.concat([v]);u.push({op:n,path:h,value:_}),p.unshift({op:"remove",path:h,value:_})}v++})}(r,a,o,l)}},M:function(r,a,o,l){o.push({op:"replace",path:[],value:a===Nn?void 0:a}),l.push({op:"replace",path:[],value:r})}})}var Kr,it,kn=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Jo=typeof Map!="undefined",Uo=typeof Set!="undefined",Yr=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Nn=kn?Symbol.for("immer-nothing"):((Kr={})["immer-nothing"]=!0,Kr),ut=kn?Symbol.for("immer-draftable"):"__$immer_draftable",Se=kn?Symbol.for("immer-state"):"__$immer_state",Wo={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Ko=""+Object.prototype.constructor,Pn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(e){var t={};return Pn(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Mn={},Dn={get:function(e,t){if(t===Se)return e;var n=Ke(e);if(!ct(n,t))return function(a,o,l){var s,c=Ur(o,l);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(a.k):void 0}(e,n,t);var r=n[t];return e.I||!Fe(r)?r:r===An(e.t,t)?(In(e),e.o[t]=xn(e.A.h,r,e)):r},has:function(e,t){return t in Ke(e)},ownKeys:function(e){return Reflect.ownKeys(Ke(e))},set:function(e,t,n){var r=Ur(Ke(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=An(Ke(e),t),o=a==null?void 0:a[Se];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if($o(n,a)&&(n!==void 0||ct(e.t,t)))return!0;In(e),wn(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return An(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,In(e),wn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ke(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){pe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pe(12)}},dt={};rt(Dn,function(e,t){dt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),dt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&pe(13),dt.set.call(this,e,t,void 0)},dt.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&pe(14),Dn.set.call(this,e[0],t,n,e[0])};var Go=function(){function e(n){var r=this;this.O=Yr,this.D=!0,this.produce=function(a,o,l){if(typeof a=="function"&&typeof o!="function"){var s=o;o=a;var c=r;return function(h){var E=this;h===void 0&&(h=s);for(var A=arguments.length,T=Array(A>1?A-1:0),y=1;y<A;y++)T[y-1]=arguments[y];return c.produce(h,function(b){var f;return(f=o).call.apply(f,[E,b].concat(T))})}}var u;if(typeof o!="function"&&pe(6),l!==void 0&&typeof l!="function"&&pe(7),Fe(a)){var p=Vr(r),d=xn(r,a,void 0),g=!0;try{u=o(d),g=!1}finally{g?xt(p):Tn(p)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(h){return Cn(p,l),On(h,p)},function(h){throw xt(p),h}):(Cn(p,l),On(u,p))}if(!a||typeof a!="object"){if((u=o(a))===void 0&&(u=a),u===Nn&&(u=void 0),r.D&&En(u,!0),l){var v=[],_=[];we("Patches").M(a,u,v,_),l(v,_)}return u}pe(21,a)},this.produceWithPatches=function(a,o){if(typeof a=="function")return function(u){for(var p=arguments.length,d=Array(p>1?p-1:0),g=1;g<p;g++)d[g-1]=arguments[g];return r.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(d))})};var l,s,c=r.produce(a,o,function(u,p){l=u,s=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(u){return[u,l,s]}):[c,l,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Fe(n)||pe(8),We(n)&&(n=Qo(n));var r=Vr(this),a=xn(this,n,void 0);return a[Se].C=!0,Tn(r),a},t.finishDraft=function(n,r){var a=n&&n[Se];process.env.NODE_ENV!=="production"&&(a&&a.C||pe(9),a.I&&pe(10));var o=a.A;return Cn(o,r),On(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Yr&&pe(20),this.O=n},t.applyPatches=function(n,r){var a;for(a=r.length-1;a>=0;a--){var o=r[a];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}a>-1&&(r=r.slice(a+1));var l=we("Patches").$;return We(n)?l(n,r):this.produce(n,function(s){return l(s,r)})},e}(),Ce=new Go;Ce.produce;var Gr=Ce.produceWithPatches.bind(Ce);Ce.setAutoFreeze.bind(Ce),Ce.setUseProxies.bind(Ce);var Rr=Ce.applyPatches.bind(Ce);Ce.createDraft.bind(Ce),Ce.finishDraft.bind(Ce);var Pt="NOT_FOUND";function Ro(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Pt},put:function(r,a){t={key:r,value:a}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Zo(e,t){var n=[];function r(s){var c=n.findIndex(function(p){return t(s,p.key)});if(c>-1){var u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Pt}function a(s,c){r(s)===Pt&&(n.unshift({key:s,value:c}),n.length>e&&n.pop())}function o(){return n}function l(){n=[]}return{get:r,put:a,getEntries:o,clear:l}}var Xo=function(t,n){return t===n};function el(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var a=n.length,o=0;o<a;o++)if(!e(n[o],r[o]))return!1;return!0}}function Zr(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,a=r===void 0?Xo:r,o=n.maxSize,l=o===void 0?1:o,s=n.resultEqualityCheck,c=el(a),u=l===1?Ro(c):Zo(l,c);function p(){var d=u.get(arguments);if(d===Pt){if(d=e.apply(null,arguments),s){var g=u.getEntries(),v=g.find(function(_){return s(_.value,d)});v&&(d=v.value)}u.put(arguments,d)}return d}return p.clearCache=function(){return u.clear()},p}var Mt=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(u){return function(p){return c([u,p])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(p){u=[6,p],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Dt=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},tl=Object.defineProperty,nl=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ti=function(e,t,n){return t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},fe=function(e,t){for(var n in t||(t={}))Xr.call(t,n)&&ti(e,n,t[n]);if(jt)for(var r=0,a=jt(t);r<a.length;r++){var n=a[r];ei.call(t,n)&&ti(e,n,t[n])}return e},Ie=function(e,t){return nl(e,rl(t))},ni=function(e,t){var n={};for(var r in e)Xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jt)for(var a=0,o=jt(e);a<o.length;a++){var r=o[a];t.indexOf(r)<0&&ei.call(e,r)&&(n[r]=e[r])}return n},Lt=function(e,t,n){return new Promise(function(r,a){var o=function(c){try{s(n.next(c))}catch(u){a(u)}},l=function(c){try{s(n.throw(c))}catch(u){a(u)}},s=function(c){return c.done?r(c.value):Promise.resolve(c.value).then(o,l)};s((n=n.apply(e,t)).next())})},le;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(le||(le={}));function il(e){return{status:e,isUninitialized:e===le.uninitialized,isLoading:e===le.pending,isSuccess:e===le.fulfilled,isError:e===le.rejected}}function al(e){return new RegExp("(^|:)//").test(e)}var ol=function(e){return e.replace(/\/$/,"")},ll=function(e){return e.replace(/^\//,"")};function sl(e,t){if(!e)return t;if(!t)return e;if(al(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=ol(e),t=ll(t),""+e+n+t}var ri=function(e){return[].concat.apply([],e)};function cl(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function ul(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var ii=q.isPlainObject;function ai(e,t){if(e===t||!(ii(e)&&ii(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),a=n.length===r.length,o=Array.isArray(t)?[]:{},l=0,s=n;l<s.length;l++){var c=s[l];o[c]=ai(e[c],t[c]),a&&(a=e[c]===o[c])}return a?e:o}var oi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},dl=function(e){return e.status>=200&&e.status<=299},pl=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function li(e){if(!q.isPlainObject(e))return e;for(var t=fe({},e),n=0,r=Object.entries(t);n<r.length;n++){var a=r[n],o=a[0],l=a[1];l===void 0&&delete t[o]}return t}function fl(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,a=n.prepareHeaders,o=a===void 0?function(T){return T}:a,l=n.fetchFn,s=l===void 0?oi:l,c=n.paramsSerializer,u=n.isJsonContentType,p=u===void 0?pl:u,d=n.jsonContentType,g=d===void 0?"application/json":d,v=n.jsonReplacer,_=n.timeout,h=n.validateStatus,E=ni(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&s===oi&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(T,y){return Lt(t,null,function(){var b,f,S,C,x,k,w,N,M,j,F,O,V,K,Y,R,P,D,H,B,$,J,z,U,Z,ee,X,ie,L,ue,De,lt,dn,xr,kr,wo;return Mt(this,function(je){switch(je.label){case 0:return b=y.signal,f=y.getState,S=y.extra,C=y.endpoint,x=y.forced,k=y.type,N=typeof T=="string"?{url:T}:T,M=N.url,j=N.headers,F=j===void 0?new Headers(E.headers):j,O=N.params,V=O===void 0?void 0:O,K=N.responseHandler,Y=K===void 0?"json":K,R=N.validateStatus,P=R===void 0?h!=null?h:dl:R,D=N.timeout,H=D===void 0?_:D,B=ni(N,["url","headers","params","responseHandler","validateStatus","timeout"]),$=fe(Ie(fe({},E),{signal:b}),B),F=new Headers(li(F)),J=$,[4,o(F,{getState:f,extra:S,endpoint:C,forced:x,type:k})];case 1:J.headers=je.sent()||F,z=function(Le){return typeof Le=="object"&&(q.isPlainObject(Le)||Array.isArray(Le)||typeof Le.toJSON=="function")},!$.headers.has("content-type")&&z($.body)&&$.headers.set("content-type",g),z($.body)&&p($.headers)&&($.body=JSON.stringify($.body,v)),V&&(U=~M.indexOf("?")?"&":"?",Z=c?c(V):new URLSearchParams(li(V)),M+=U+Z),M=sl(r,M),ee=new Request(M,$),X=ee.clone(),w={request:X},L=!1,ue=H&&setTimeout(function(){L=!0,y.abort()},H),je.label=2;case 2:return je.trys.push([2,4,5,6]),[4,s(ee)];case 3:return ie=je.sent(),[3,6];case 4:return De=je.sent(),[2,{error:{status:L?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(De)},meta:w}];case 5:return ue&&clearTimeout(ue),[7];case 6:lt=ie.clone(),w.response=lt,xr="",je.label=7;case 7:return je.trys.push([7,9,,10]),[4,Promise.all([A(ie,Y).then(function(Le){return dn=Le},function(Le){return kr=Le}),lt.text().then(function(Le){return xr=Le},function(){})])];case 8:if(je.sent(),kr)throw kr;return[3,10];case 9:return wo=je.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:ie.status,data:xr,error:String(wo)},meta:w}];case 10:return[2,P(ie,dn)?{data:dn,meta:w}:{error:{status:ie.status,data:dn},meta:w}]}})})};function A(T,y){return Lt(this,null,function(){var b;return Mt(this,function(f){switch(f.label){case 0:return typeof y=="function"?[2,y(T)]:(y==="content-type"&&(y=p(T.headers)?"json":"text"),y!=="json"?[3,2]:[4,T.text()]);case 1:return b=f.sent(),[2,b.length?JSON.parse(b):null];case 2:return[2,T.text()]}})})}}var si=function(){function e(t,n){n===void 0&&(n=void 0),this.value=t,this.meta=n}return e}(),jn=q.createAction("__rtkq/focused"),ci=q.createAction("__rtkq/unfocused"),Ln=q.createAction("__rtkq/online"),ui=q.createAction("__rtkq/offline"),xe;(function(e){e.query="query",e.mutation="mutation"})(xe||(xe={}));function di(e){return e.type===xe.query}function ml(e){return e.type===xe.mutation}function pi(e,t,n,r,a,o){return vl(e)?e(t,n,r,a).map(Fn).map(o):Array.isArray(e)?e.map(Fn).map(o):[]}function vl(e){return typeof e=="function"}function Fn(e){return typeof e=="string"?{type:e}:e}function qn(e){return e!=null}var pt=Symbol("forceQueryFn"),$n=function(e){return typeof e[pt]=="function"};function hl(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,a=e.api,o=e.context,l=new Map,s=new Map,c=a.internalActions,u=c.unsubscribeQueryResult,p=c.removeMutationResult,d=c.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:b,getRunningQueryThunk:_,getRunningMutationThunk:h,getRunningQueriesThunk:E,getRunningMutationsThunk:A,getRunningOperationPromises:v,removalWarning:g};function g(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
19
|
+
*/var _u,Jv;function lN(){if(Jv)return _u;Jv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return _u=o()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var m=0;m<u.length;m++)n.call(l,u[m])&&(c[u[m]]=l[u[m]])}}return c},_u}var Pu,Zv;function Tu(){if(Zv)return Pu;Zv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pu=e,Pu}var Mu,eg;function tg(){return eg||(eg=1,Mu=Function.call.bind(Object.prototype.hasOwnProperty)),Mu}var Du,ng;function sN(){if(ng)return Du;ng=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tu(),n={},r=tg();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(l){}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var m=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=i[d](a,d,c,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+l+" type: "+f.message+(p!=null?p:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Du=o,Du}var Au,rg;function cN(){if(rg)return Au;rg=1;var e=Yv(),t=lN(),n=Tu(),r=tg(),o=sN(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function a(){return null}return Au=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(z){var B=z&&(u&&z[u]||z[d]);if(typeof B=="function")return B}var m="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:C(),arrayOf:x,element:E(),elementType:S(),instanceOf:$,node:N(),objectOf:I,oneOf:O,oneOfType:w,shape:T,exact:M};function g(z,B){return z===B?z!==0||1/z===1/B:z!==z&&B!==B}function h(z,B){this.message=z,this.data=B&&typeof B=="object"?B:{},this.stack=""}h.prototype=Error.prototype;function v(z){if(process.env.NODE_ENV!=="production")var B={},K=0;function W(V,Q,J,Y,te,oe,X){if(Y=Y||m,oe=oe||J,X!==n){if(c){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ee=Y+":"+J;!B[ee]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[ee]=!0,K++)}}return Q[J]==null?V?Q[J]===null?new h("The "+te+" `"+oe+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new h("The "+te+" `"+oe+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:z(Q,J,Y,te,oe)}var k=W.bind(null,!1);return k.isRequired=W.bind(null,!0),k}function y(z){function B(K,W,k,V,Q,J){var Y=K[W],te=A(Y);if(te!==z){var oe=R(Y);return new h("Invalid "+V+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+k+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return v(B)}function C(){return v(a)}function x(z){function B(K,W,k,V,Q){if(typeof z!="function")return new h("Property `"+Q+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var J=K[W];if(!Array.isArray(J)){var Y=A(J);return new h("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected an array."))}for(var te=0;te<J.length;te++){var oe=z(J,te,k,V,Q+"["+te+"]",n);if(oe instanceof Error)return oe}return null}return v(B)}function E(){function z(B,K,W,k,V){var Q=B[K];if(!l(Q)){var J=A(Q);return new h("Invalid "+k+" `"+V+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return v(z)}function S(){function z(B,K,W,k,V){var Q=B[K];if(!e.isValidElementType(Q)){var J=A(Q);return new h("Invalid "+k+" `"+V+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return v(z)}function $(z){function B(K,W,k,V,Q){if(!(K[W]instanceof z)){var J=z.name||m,Y=j(K[W]);return new h("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected ")+("instance of `"+J+"`."))}return null}return v(B)}function O(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function B(K,W,k,V,Q){for(var J=K[W],Y=0;Y<z.length;Y++)if(g(J,z[Y]))return null;var te=JSON.stringify(z,function(X,F){var ee=R(F);return ee==="symbol"?String(F):F});return new h("Invalid "+V+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+k+"`, expected one of "+te+"."))}return v(B)}function I(z){function B(K,W,k,V,Q){if(typeof z!="function")return new h("Property `"+Q+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var J=K[W],Y=A(J);if(Y!=="object")return new h("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected an object."));for(var te in J)if(r(J,te)){var oe=z(J,te,k,V,Q+"."+te,n);if(oe instanceof Error)return oe}return null}return v(B)}function w(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var B=0;B<z.length;B++){var K=z[B];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(K)+" at index "+B+"."),a}function W(k,V,Q,J,Y){for(var te=[],oe=0;oe<z.length;oe++){var X=z[oe],F=X(k,V,Q,J,Y,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&te.push(F.data.expectedType)}var ee=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new h("Invalid "+J+" `"+Y+"` supplied to "+("`"+Q+"`"+ee+"."))}return v(W)}function N(){function z(B,K,W,k,V){return D(B[K])?null:new h("Invalid "+k+" `"+V+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return v(z)}function _(z,B,K,W,k){return new h((z||"React class")+": "+B+" type `"+K+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function T(z){function B(K,W,k,V,Q){var J=K[W],Y=A(J);if(Y!=="object")return new h("Invalid "+V+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+k+"`, expected `object`."));for(var te in z){var oe=z[te];if(typeof oe!="function")return _(k,V,Q,te,R(oe));var X=oe(J,te,k,V,Q+"."+te,n);if(X)return X}return null}return v(B)}function M(z){function B(K,W,k,V,Q){var J=K[W],Y=A(J);if(Y!=="object")return new h("Invalid "+V+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+k+"`, expected `object`."));var te=t({},K[W],z);for(var oe in te){var X=z[oe];if(r(z,oe)&&typeof X!="function")return _(k,V,Q,oe,R(X));if(!X)return new h("Invalid "+V+" `"+Q+"` key `"+oe+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(K[W],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var F=X(J,oe,k,V,Q+"."+oe,n);if(F)return F}return null}return v(B)}function D(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(D);if(z===null||l(z))return!0;var B=f(z);if(B){var K=B.call(z),W;if(B!==z.entries){for(;!(W=K.next()).done;)if(!D(W.value))return!1}else for(;!(W=K.next()).done;){var k=W.value;if(k&&!D(k[1]))return!1}}else return!1;return!0;default:return!1}}function P(z,B){return z==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function A(z){var B=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":P(B,z)?"symbol":B}function R(z){if(typeof z=="undefined"||z===null)return""+z;var B=A(z);if(B==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return B}function L(z){var B=R(z);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function j(z){return!z.constructor||!z.constructor.name?m:z.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Au}var Ru,og;function uN(){if(og)return Ru;og=1;var e=Tu();function t(){}function n(){}return n.resetWarningCache=t,Ru=function(){function r(a,l,c,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ru}if(process.env.NODE_ENV!=="production"){var dN=Yv(),fN=!0;Iu.exports=cN()(dN.isElement,fN)}else Iu.exports=uN()();var mN=Iu.exports;const pe=Xo(mN);function gn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=xN[e],i=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qo(e){return!!e&&!!e[dr]}function po(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===EN}(e)||Array.isArray(e)||!!e[Ca]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ca])||Hl(e)||Vl(e))}function Ei(e,t,n){n===void 0&&(n=!1),_o(e)===0?(n?Object.keys:Uu)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function _o(e){var t=e[dr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Hl(e)?2:Vl(e)?3:0}function ya(e,t){return _o(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fl(e,t){return _o(e)===2?e.get(t):e[t]}function ig(e,t,n){var r=_o(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pN(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Hl(e){return CN&&e instanceof Map}function Vl(e){return SN&&e instanceof Set}function Yo(e){return e.o||e.t}function ju(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$N(e);delete t[dr];for(var n=Uu(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Lu(e,t){return t===void 0&&(t=!1),zu(e)||Qo(e)||!po(e)||(_o(e)>1&&(e.set=e.add=e.clear=e.delete=vN),Object.freeze(e),t&&Ei(e,function(n,r){return Lu(r,!0)},!0)),e}function vN(){gn(2)}function zu(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function qr(e){var t=Xu[e];return t||gn(18,e),t}function gN(e,t){Xu[e]||(Xu[e]=t)}function ag(){return process.env.NODE_ENV==="production"||$i||gn(0),$i}function Bu(e,t){t&&(qr("Patches"),e.u=[],e.s=[],e.v=t)}function Wl(e){ku(e),e.p.forEach(hN),e.p=null}function ku(e){e===$i&&($i=e.l)}function lg(e){return $i={p:[],l:$i,h:e,m:!0,_:0}}function hN(e){var t=e[dr];t.i===0||t.i===1?t.j():t.g=!0}function Fu(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||qr("ES5").S(t,e,r),r?(n[dr].P&&(Wl(t),gn(4)),po(e)&&(e=Kl(t,e),t.l||ql(t,e)),t.u&&qr("Patches").M(n[dr].t,e,t.u,t.s)):e=Kl(t,n,[]),Wl(t),t.u&&t.v(t.u,t.s),e!==Gu?e:void 0}function Kl(e,t,n){if(zu(t))return t;var r=t[dr];if(!r)return Ei(t,function(l,c){return sg(e,r,t,l,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ql(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=ju(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),Ei(i,function(l,c){return sg(e,r,o,l,c,n,a)}),ql(e,o,!1),n&&e.u&&qr("Patches").N(r,n,e.u,e.s)}return r.o}function sg(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&gn(5),Qo(o)){var l=Kl(e,o,i&&t&&t.i!==3&&!ya(t.R,r)?i.concat(r):void 0);if(ig(n,r,l),!Qo(l))return;e.m=!1}else a&&n.add(o);if(po(o)&&!zu(o)){if(!e.h.D&&e._<1)return;Kl(e,o),t&&t.A.l||ql(e,o)}}function ql(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Lu(t,n)}function Hu(e,t){var n=e[dr];return(n?Yo(n):e)[t]}function cg(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Vu(e){e.P||(e.P=!0,e.l&&Vu(e.l))}function Wu(e){e.o||(e.o=ju(e.t))}function Ku(e,t,n){var r=Hl(t)?qr("MapSet").F(t,n):Vl(t)?qr("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),l={i:a?1:0,A:i?i.A:ag(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=l,u=Qu;a&&(c=[l],u=Sa);var d=Proxy.revocable(c,u),f=d.revoke,m=d.proxy;return l.k=m,l.j=f,m}(t,n):qr("ES5").J(t,n);return(n?n.A:ag()).p.push(r),r}function bN(e){return Qo(e)||gn(22,e),function t(n){if(!po(n))return n;var r,o=n[dr],i=_o(n);if(o){if(!o.P&&(o.i<4||!qr("ES5").K(o)))return o.t;o.I=!0,r=ug(n,i),o.I=!1}else r=ug(n,i);return Ei(r,function(a,l){o&&Fl(o.t,a)===l||ig(r,a,t(l))}),i===3?new Set(r):r}(e)}function ug(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ju(e)}function yN(){function e(r){if(!po(r))return r;if(Array.isArray(r))return r.map(e);if(Hl(r))return new Map(Array.from(r.entries()).map(function(a){return[a[0],e(a[1])]}));if(Vl(r))return new Set(Array.from(r).map(e));var o=Object.create(Object.getPrototypeOf(r));for(var i in r)o[i]=e(r[i]);return ya(r,Ca)&&(o[Ca]=r[Ca]),o}function t(r){return Qo(r)?e(r):r}var n="add";gN("Patches",{$:function(r,o){return o.forEach(function(i){for(var a=i.path,l=i.op,c=r,u=0;u<a.length-1;u++){var d=_o(c),f=a[u];typeof f!="string"&&typeof f!="number"&&(f=""+f),d!==0&&d!==1||f!=="__proto__"&&f!=="constructor"||gn(24),typeof c=="function"&&f==="prototype"&&gn(24),typeof(c=Fl(c,f))!="object"&&gn(15,a.join("/"))}var m=_o(c),p=e(i.value),g=a[a.length-1];switch(l){case"replace":switch(m){case 2:return c.set(g,p);case 3:gn(16);default:return c[g]=p}case n:switch(m){case 1:return g==="-"?c.push(p):c.splice(g,0,p);case 2:return c.set(g,p);case 3:return c.add(p);default:return c[g]=p}case"remove":switch(m){case 1:return c.splice(g,1);case 2:return c.delete(g);case 3:return c.delete(i.value);default:return delete c[g]}default:gn(17,l)}}),r},N:function(r,o,i,a){switch(r.i){case 0:case 4:case 2:return function(l,c,u,d){var f=l.t,m=l.o;Ei(l.R,function(p,g){var h=Fl(f,p),v=Fl(m,p),y=g?ya(f,p)?"replace":n:"remove";if(h!==v||y!=="replace"){var C=c.concat(p);u.push(y==="remove"?{op:y,path:C}:{op:y,path:C,value:v}),d.push(y===n?{op:"remove",path:C}:y==="remove"?{op:n,path:C,value:t(h)}:{op:"replace",path:C,value:t(h)})}})}(r,o,i,a);case 5:case 1:return function(l,c,u,d){var f=l.t,m=l.R,p=l.o;if(p.length<f.length){var g=[p,f];f=g[0],p=g[1];var h=[d,u];u=h[0],d=h[1]}for(var v=0;v<f.length;v++)if(m[v]&&p[v]!==f[v]){var y=c.concat([v]);u.push({op:"replace",path:y,value:t(p[v])}),d.push({op:"replace",path:y,value:t(f[v])})}for(var C=f.length;C<p.length;C++){var x=c.concat([C]);u.push({op:n,path:x,value:t(p[C])})}f.length<p.length&&d.push({op:"replace",path:c.concat(["length"]),value:f.length})}(r,o,i,a);case 3:return function(l,c,u,d){var f=l.t,m=l.o,p=0;f.forEach(function(g){if(!m.has(g)){var h=c.concat([p]);u.push({op:"remove",path:h,value:g}),d.unshift({op:n,path:h,value:g})}p++}),p=0,m.forEach(function(g){if(!f.has(g)){var h=c.concat([p]);u.push({op:n,path:h,value:g}),d.unshift({op:"remove",path:h,value:g})}p++})}(r,o,i,a)}},M:function(r,o,i,a){i.push({op:"replace",path:[],value:o===Gu?void 0:o}),a.push({op:"replace",path:[],value:r})}})}var dg,$i,qu=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",CN=typeof Map!="undefined",SN=typeof Set!="undefined",fg=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Gu=qu?Symbol.for("immer-nothing"):((dg={})["immer-nothing"]=!0,dg),Ca=qu?Symbol.for("immer-draftable"):"__$immer_draftable",dr=qu?Symbol.for("immer-state"):"__$immer_state",xN={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},EN=""+Object.prototype.constructor,Uu=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$N=Object.getOwnPropertyDescriptors||function(e){var t={};return Uu(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Xu={},Qu={get:function(e,t){if(t===dr)return e;var n=Yo(e);if(!ya(n,t))return function(o,i,a){var l,c=cg(i,a);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!po(r)?r:r===Hu(e.t,t)?(Wu(e),e.o[t]=Ku(e.A.h,r,e)):r},has:function(e,t){return t in Yo(e)},ownKeys:function(e){return Reflect.ownKeys(Yo(e))},set:function(e,t,n){var r=cg(Yo(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Hu(Yo(e),t),i=o==null?void 0:o[dr];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(pN(n,o)&&(n!==void 0||ya(e.t,t)))return!0;Wu(e),Vu(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Hu(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Wu(e),Vu(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Yo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){gn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){gn(12)}},Sa={};Ei(Qu,function(e,t){Sa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Sa.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&gn(13),Sa.set.call(this,e,t,void 0)},Sa.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&gn(14),Qu.set.call(this,e[0],t,n,e[0])};var wN=function(){function e(n){var r=this;this.O=fg,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var l=i;i=o;var c=r;return function(h){var v=this;h===void 0&&(h=l);for(var y=arguments.length,C=Array(y>1?y-1:0),x=1;x<y;x++)C[x-1]=arguments[x];return c.produce(h,function(E){var S;return(S=i).call.apply(S,[v,E].concat(C))})}}var u;if(typeof i!="function"&&gn(6),a!==void 0&&typeof a!="function"&&gn(7),po(o)){var d=lg(r),f=Ku(r,o,void 0),m=!0;try{u=i(f),m=!1}finally{m?Wl(d):ku(d)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(h){return Bu(d,a),Fu(h,d)},function(h){throw Wl(d),h}):(Bu(d,a),Fu(u,d))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Gu&&(u=void 0),r.D&&Lu(u,!0),a){var p=[],g=[];qr("Patches").M(o,u,p,g),a(p,g)}return u}gn(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];return r.produceWithPatches(u,function(p){return o.apply(void 0,[p].concat(f))})};var a,l,c=r.produce(o,i,function(u,d){a=u,l=d});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(u){return[u,a,l]}):[c,a,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){po(n)||gn(8),Qo(n)&&(n=bN(n));var r=lg(this),o=Ku(this,n,void 0);return o[dr].C=!0,ku(r),o},t.finishDraft=function(n,r){var o=n&&n[dr];process.env.NODE_ENV!=="production"&&(o&&o.C||gn(9),o.I&&gn(10));var i=o.A;return Bu(i,r),Fu(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!fg&&gn(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=qr("Patches").$;return Qo(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),fr=new wN;fr.produce;var mg=fr.produceWithPatches.bind(fr);fr.setAutoFreeze.bind(fr),fr.setUseProxies.bind(fr);var pg=fr.applyPatches.bind(fr);fr.createDraft.bind(fr),fr.finishDraft.bind(fr);var Gl="NOT_FOUND";function ON(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Gl},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function NN(e,t){var n=[];function r(l){var c=n.findIndex(function(d){return t(l,d.key)});if(c>-1){var u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Gl}function o(l,c){r(l)===Gl&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var IN=function(t,n){return t===n};function _N(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function vg(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?IN:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,c=_N(o),u=a===1?ON(c):NN(a,c);function d(){var f=u.get(arguments);if(f===Gl){if(f=e.apply(null,arguments),l){var m=u.getEntries(),p=m.find(function(g){return l(g.value,f)});p&&(f=p.value)}u.put(arguments,f)}return f}return d.clearCache=function(){return u.clear()},d}var Ul=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Xl=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},PN=Object.defineProperty,TN=Object.defineProperties,MN=Object.getOwnPropertyDescriptors,Ql=Object.getOwnPropertySymbols,gg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,bg=function(e,t,n){return t in e?PN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},$n=function(e,t){for(var n in t||(t={}))gg.call(t,n)&&bg(e,n,t[n]);if(Ql)for(var r=0,o=Ql(t);r<o.length;r++){var n=o[r];hg.call(t,n)&&bg(e,n,t[n])}return e},Gr=function(e,t){return TN(e,MN(t))},yg=function(e,t){var n={};for(var r in e)gg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ql)for(var o=0,i=Ql(e);o<i.length;o++){var r=i[o];t.indexOf(r)<0&&hg.call(e,r)&&(n[r]=e[r])}return n},Yl=function(e,t,n){return new Promise(function(r,o){var i=function(c){try{l(n.next(c))}catch(u){o(u)}},a=function(c){try{l(n.throw(c))}catch(u){o(u)}},l=function(c){return c.done?r(c.value):Promise.resolve(c.value).then(i,a)};l((n=n.apply(e,t)).next())})},cn;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(cn||(cn={}));function DN(e){return{status:e,isUninitialized:e===cn.uninitialized,isLoading:e===cn.pending,isSuccess:e===cn.fulfilled,isError:e===cn.rejected}}function AN(e){return new RegExp("(^|:)//").test(e)}var RN=function(e){return e.replace(/\/$/,"")},jN=function(e){return e.replace(/^\//,"")};function LN(e,t){if(!e)return t;if(!t)return e;if(AN(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=RN(e),t=jN(t),""+e+n+t}var Cg=function(e){return[].concat.apply([],e)};function zN(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function BN(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var Sg=We.isPlainObject;function xg(e,t){if(e===t||!(Sg(e)&&Sg(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),o=n.length===r.length,i=Array.isArray(t)?[]:{},a=0,l=n;a<l.length;a++){var c=l[a];i[c]=xg(e[c],t[c]),o&&(o=e[c]===i[c])}return o?e:i}var Eg=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},kN=function(e){return e.status>=200&&e.status<=299},FN=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function $g(e){if(!We.isPlainObject(e))return e;for(var t=$n({},e),n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];a===void 0&&delete t[i]}return t}function HN(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,o=n.prepareHeaders,i=o===void 0?function(C){return C}:o,a=n.fetchFn,l=a===void 0?Eg:a,c=n.paramsSerializer,u=n.isJsonContentType,d=u===void 0?FN:u,f=n.jsonContentType,m=f===void 0?"application/json":f,p=n.jsonReplacer,g=n.timeout,h=n.validateStatus,v=yg(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&l===Eg&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(C,x){return Yl(t,null,function(){var E,S,$,O,I,w,N,_,T,M,D,P,A,R,L,j,z,B,K,W,k,V,Q,J,Y,te,oe,X,F,ee,Z,ne,re,se,le,he;return Ul(this,function(fe){switch(fe.label){case 0:return E=x.signal,S=x.getState,$=x.extra,O=x.endpoint,I=x.forced,w=x.type,_=typeof C=="string"?{url:C}:C,T=_.url,M=_.headers,D=M===void 0?new Headers(v.headers):M,P=_.params,A=P===void 0?void 0:P,R=_.responseHandler,L=R===void 0?"json":R,j=_.validateStatus,z=j===void 0?h!=null?h:kN:j,B=_.timeout,K=B===void 0?g:B,W=yg(_,["url","headers","params","responseHandler","validateStatus","timeout"]),k=$n(Gr($n({},v),{signal:E}),W),D=new Headers($g(D)),V=k,[4,i(D,{getState:S,extra:$,endpoint:O,forced:I,type:w})];case 1:V.headers=fe.sent()||D,Q=function(ie){return typeof ie=="object"&&(We.isPlainObject(ie)||Array.isArray(ie)||typeof ie.toJSON=="function")},!k.headers.has("content-type")&&Q(k.body)&&k.headers.set("content-type",m),Q(k.body)&&d(k.headers)&&(k.body=JSON.stringify(k.body,p)),A&&(J=~T.indexOf("?")?"&":"?",Y=c?c(A):new URLSearchParams($g(A)),T+=J+Y),T=LN(r,T),te=new Request(T,k),oe=te.clone(),N={request:oe},F=!1,ee=K&&setTimeout(function(){F=!0,x.abort()},K),fe.label=2;case 2:return fe.trys.push([2,4,5,6]),[4,l(te)];case 3:return X=fe.sent(),[3,6];case 4:return Z=fe.sent(),[2,{error:{status:F?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Z)},meta:N}];case 5:return ee&&clearTimeout(ee),[7];case 6:ne=X.clone(),N.response=ne,se="",fe.label=7;case 7:return fe.trys.push([7,9,,10]),[4,Promise.all([y(X,L).then(function(ie){return re=ie},function(ie){return le=ie}),ne.text().then(function(ie){return se=ie},function(){})])];case 8:if(fe.sent(),le)throw le;return[3,10];case 9:return he=fe.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:X.status,data:se,error:String(he)},meta:N}];case 10:return[2,z(X,re)?{data:re,meta:N}:{error:{status:X.status,data:re},meta:N}]}})})};function y(C,x){return Yl(this,null,function(){var E;return Ul(this,function(S){switch(S.label){case 0:return typeof x=="function"?[2,x(C)]:(x==="content-type"&&(x=d(C.headers)?"json":"text"),x!=="json"?[3,2]:[4,C.text()]);case 1:return E=S.sent(),[2,E.length?JSON.parse(E):null];case 2:return[2,C.text()]}})})}}var wg=function(){function e(t,n){n===void 0&&(n=void 0),this.value=t,this.meta=n}return e}(),Yu=We.createAction("__rtkq/focused"),Og=We.createAction("__rtkq/unfocused"),Ju=We.createAction("__rtkq/online"),Ng=We.createAction("__rtkq/offline"),Ur;(function(e){e.query="query",e.mutation="mutation"})(Ur||(Ur={}));function Ig(e){return e.type===Ur.query}function VN(e){return e.type===Ur.mutation}function _g(e,t,n,r,o,i){return WN(e)?e(t,n,r,o).map(Zu).map(i):Array.isArray(e)?e.map(Zu).map(i):[]}function WN(e){return typeof e=="function"}function Zu(e){return typeof e=="string"?{type:e}:e}function ed(e){return e!=null}var xa=Symbol("forceQueryFn"),td=function(e){return typeof e[xa]=="function"};function KN(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,o=e.api,i=e.context,a=new Map,l=new Map,c=o.internalActions,u=c.unsubscribeQueryResult,d=c.removeMutationResult,f=c.updateSubscriptionOptions;return{buildInitiateQuery:x,buildInitiateMutation:E,getRunningQueryThunk:g,getRunningMutationThunk:h,getRunningQueriesThunk:v,getRunningMutationsThunk:y,getRunningOperationPromises:p,removalWarning:m};function m(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
21
21
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
22
|
-
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function
|
|
23
|
-
You must add the middleware for RTK-Query to function correctly!`)}}function
|
|
24
|
-
`+
|
|
25
|
-
In the case of an unhandled error, no tags will be "provided" or "invalidated".`,R):console.error(R),R;case 13:return[2]}})})};function d(y,b){var f,S,C,x,k=(S=(f=b[n])==null?void 0:f.queries)==null?void 0:S[y.queryCacheKey],w=(C=b[n])==null?void 0:C.config.refetchOnMountOrArgChange,N=k==null?void 0:k.fulfilledTimeStamp,M=(x=y.forceRefetch)!=null?x:y.subscribe&&w;return M?M===!0||(Number(new Date)-Number(N))/1e3>=M:!1}var g=q.createAsyncThunk(n+"/executeQuery",p,{getPendingMeta:function(){var y;return y={startedTimeStamp:Date.now()},y[q.SHOULD_AUTOBATCH]=!0,y},condition:function(y,b){var f=b.getState,S,C,x,k=f(),w=(C=(S=k[n])==null?void 0:S.queries)==null?void 0:C[y.queryCacheKey],N=w==null?void 0:w.fulfilledTimeStamp,M=y.originalArgs,j=w==null?void 0:w.originalArgs,F=a[y.endpointName];return $n(y)?!0:(w==null?void 0:w.status)==="pending"?!1:d(y,k)||di(F)&&((x=F==null?void 0:F.forceRefetch)!=null&&x.call(F,{currentArg:M,previousArg:j,endpointState:w,state:k}))?!0:!N},dispatchConditionRejection:!0}),v=q.createAsyncThunk(n+"/executeMutation",p,{getPendingMeta:function(){var y;return y={startedTimeStamp:Date.now()},y[q.SHOULD_AUTOBATCH]=!0,y}}),_=function(y){return"force"in y},h=function(y){return"ifOlderThan"in y},E=function(y,b,f){return function(S,C){var x=_(f)&&f.force,k=h(f)&&f.ifOlderThan,w=function(F){return F===void 0&&(F=!0),l.endpoints[y].initiate(b,{forceRefetch:F})},N=l.endpoints[y].select(b)(C());if(x)S(w());else if(k){var M=N==null?void 0:N.fulfilledTimeStamp;if(!M){S(w());return}var j=(Number(new Date)-Number(new Date(M)))/1e3>=k;j&&S(w())}else S(w(!1))}};function A(y){return function(b){var f,S;return((S=(f=b==null?void 0:b.meta)==null?void 0:f.arg)==null?void 0:S.endpointName)===y}}function T(y,b){return{matchPending:q.isAllOf(q.isPending(y),A(b)),matchFulfilled:q.isAllOf(q.isFulfilled(y),A(b)),matchRejected:q.isAllOf(q.isRejected(y),A(b))}}return{queryThunk:g,mutationThunk:v,prefetch:E,updateQueryData:c,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:T}}function mi(e,t,n,r){return pi(n[e.meta.arg.endpointName][t],q.isFulfilled(e)?e.payload:void 0,q.isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Ft(e,t,n){var r=e[t];r&&n(r)}function ft(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function vi(e,t,n){var r=e[ft(t)];r&&n(r)}var mt={};function yl(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,a=e.context,o=a.endpointDefinitions,l=a.apiUid,s=a.extractRehydrationInfo,c=a.hasRehydrationInfo,u=e.assertTagType,p=e.config,d=q.createAction(t+"/resetApiState"),g=q.createSlice({name:t+"/queries",initialState:mt,reducers:{removeQueryResult:{reducer:function(f,S){var C=S.payload.queryCacheKey;delete f[C]},prepare:q.prepareAutoBatched()},queryResultPatched:function(f,S){var C=S.payload,x=C.queryCacheKey,k=C.patches;Ft(f,x,function(w){w.data=Rr(w.data,k.concat())})}},extraReducers:function(f){f.addCase(n.pending,function(S,C){var x=C.meta,k=C.meta.arg,w,N,M=$n(k);(k.subscribe||M)&&((N=S[w=k.queryCacheKey])!=null||(S[w]={status:le.uninitialized,endpointName:k.endpointName})),Ft(S,k.queryCacheKey,function(j){j.status=le.pending,j.requestId=M&&j.requestId?j.requestId:x.requestId,k.originalArgs!==void 0&&(j.originalArgs=k.originalArgs),j.startedTimeStamp=x.startedTimeStamp})}).addCase(n.fulfilled,function(S,C){var x=C.meta,k=C.payload;Ft(S,x.arg.queryCacheKey,function(w){var N;if(!(w.requestId!==x.requestId&&!$n(x.arg))){var M=o[x.arg.endpointName].merge;if(w.status=le.fulfilled,M)if(w.data!==void 0){var j=x.fulfilledTimeStamp,F=x.arg,O=x.baseQueryMeta,V=x.requestId,K=q.createNextState(w.data,function(Y){return M(Y,k,{arg:F.originalArgs,baseQueryMeta:O,fulfilledTimeStamp:j,requestId:V})});w.data=K}else w.data=k;else w.data=(N=o[x.arg.endpointName].structuralSharing)==null||N?ai(w.data,k):k;delete w.error,w.fulfilledTimeStamp=x.fulfilledTimeStamp}})}).addCase(n.rejected,function(S,C){var x=C.meta,k=x.condition,w=x.arg,N=x.requestId,M=C.error,j=C.payload;Ft(S,w.queryCacheKey,function(F){if(!k){if(F.requestId!==N)return;F.status=le.rejected,F.error=j!=null?j:M}})}).addMatcher(c,function(S,C){for(var x=s(C).queries,k=0,w=Object.entries(x);k<w.length;k++){var N=w[k],M=N[0],j=N[1];((j==null?void 0:j.status)===le.fulfilled||(j==null?void 0:j.status)===le.rejected)&&(S[M]=j)}})}}),v=q.createSlice({name:t+"/mutations",initialState:mt,reducers:{removeMutationResult:{reducer:function(f,S){var C=S.payload,x=ft(C);x in f&&delete f[x]},prepare:q.prepareAutoBatched()}},extraReducers:function(f){f.addCase(r.pending,function(S,C){var x=C.meta,k=C.meta,w=k.requestId,N=k.arg,M=k.startedTimeStamp;N.track&&(S[ft(x)]={requestId:w,status:le.pending,endpointName:N.endpointName,startedTimeStamp:M})}).addCase(r.fulfilled,function(S,C){var x=C.payload,k=C.meta;k.arg.track&&vi(S,k,function(w){w.requestId===k.requestId&&(w.status=le.fulfilled,w.data=x,w.fulfilledTimeStamp=k.fulfilledTimeStamp)})}).addCase(r.rejected,function(S,C){var x=C.payload,k=C.error,w=C.meta;w.arg.track&&vi(S,w,function(N){N.requestId===w.requestId&&(N.status=le.rejected,N.error=x!=null?x:k)})}).addMatcher(c,function(S,C){for(var x=s(C).mutations,k=0,w=Object.entries(x);k<w.length;k++){var N=w[k],M=N[0],j=N[1];((j==null?void 0:j.status)===le.fulfilled||(j==null?void 0:j.status)===le.rejected)&&M!==(j==null?void 0:j.requestId)&&(S[M]=j)}})}}),_=q.createSlice({name:t+"/invalidation",initialState:mt,reducers:{},extraReducers:function(f){f.addCase(g.actions.removeQueryResult,function(S,C){for(var x=C.payload.queryCacheKey,k=0,w=Object.values(S);k<w.length;k++)for(var N=w[k],M=0,j=Object.values(N);M<j.length;M++){var F=j[M],O=F.indexOf(x);O!==-1&&F.splice(O,1)}}).addMatcher(c,function(S,C){for(var x,k,w,N,M=s(C).provided,j=0,F=Object.entries(M);j<F.length;j++)for(var O=F[j],V=O[0],K=O[1],Y=0,R=Object.entries(K);Y<R.length;Y++)for(var P=R[Y],D=P[0],H=P[1],B=(N=(k=(x=S[V])!=null?x:S[V]={})[w=D||"__internal_without_id"])!=null?N:k[w]=[],$=0,J=H;$<J.length;$++){var z=J[$],U=B.includes(z);U||B.push(z)}}).addMatcher(q.isAnyOf(q.isFulfilled(n),q.isRejectedWithValue(n)),function(S,C){for(var x,k,w,N,M=mi(C,"providesTags",o,u),j=C.meta.arg.queryCacheKey,F=0,O=Object.values(S);F<O.length;F++)for(var V=O[F],K=0,Y=Object.values(V);K<Y.length;K++){var R=Y[K],P=R.indexOf(j);P!==-1&&R.splice(P,1)}for(var D=0,H=M;D<H.length;D++){var B=H[D],$=B.type,J=B.id,z=(N=(k=(x=S[$])!=null?x:S[$]={})[w=J||"__internal_without_id"])!=null?N:k[w]=[],U=z.includes(j);U||z.push(j)}})}}),h=q.createSlice({name:t+"/subscriptions",initialState:mt,reducers:{updateSubscriptionOptions:function(f,S){},unsubscribeQueryResult:function(f,S){},internal_probeSubscription:function(f,S){}}}),E=q.createSlice({name:t+"/internalSubscriptions",initialState:mt,reducers:{subscriptionsUpdated:function(f,S){return Rr(f,S.payload)}}}),A=q.createSlice({name:t+"/config",initialState:fe({online:cl(),focused:ul(),middlewareRegistered:!1},p),reducers:{middlewareRegistered:function(f,S){var C=S.payload;f.middlewareRegistered=f.middlewareRegistered==="conflict"||l!==C?"conflict":!0}},extraReducers:function(f){f.addCase(Ln,function(S){S.online=!0}).addCase(ui,function(S){S.online=!1}).addCase(jn,function(S){S.focused=!0}).addCase(ci,function(S){S.focused=!1}).addMatcher(c,function(S){return fe({},S)})}}),T=q.combineReducers({queries:g.reducer,mutations:v.reducer,provided:_.reducer,subscriptions:E.reducer,config:A.reducer}),y=function(f,S){return T(d.match(S)?void 0:f,S)},b=Ie(fe(fe(fe(fe(fe({},A.actions),g.actions),h.actions),E.actions),v.actions),{unsubscribeMutationResult:v.actions.removeMutationResult,resetApiState:d});return{reducer:y,actions:b}}var Ye=Symbol.for("RTKQ/skipToken"),hi={status:le.uninitialized},gi=q.createNextState(hi,function(){}),yi=q.createNextState(hi,function(){});function bl(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(p){return gi},a=function(p){return yi};return{buildQuerySelector:s,buildMutationSelector:c,selectInvalidatedBy:u};function o(p){return fe(fe({},p),il(p.status))}function l(p){var d=p[n];if(process.env.NODE_ENV!=="production"&&!d){if(l.triggered)return d;l.triggered=!0,console.error("Error: No data found at `state."+n+"`. Did you forget to add the reducer to the store?")}return d}function s(p,d){return function(g){var v=t({queryArgs:g,endpointDefinition:d,endpointName:p}),_=function(E){var A,T,y;return(y=(T=(A=l(E))==null?void 0:A.queries)==null?void 0:T[v])!=null?y:gi},h=g===Ye?r:_;return q.createSelector(h,o)}}function c(){return function(p){var d,g;typeof p=="object"?g=(d=ft(p))!=null?d:Ye:g=p;var v=function(h){var E,A,T;return(T=(A=(E=l(h))==null?void 0:E.mutations)==null?void 0:A[g])!=null?T:yi},_=g===Ye?a:v;return q.createSelector(_,o)}}function u(p,d){for(var g,v=p[n],_=new Set,h=0,E=d.map(Fn);h<E.length;h++){var A=E[h],T=v.provided[A.type];if(T)for(var y=(g=A.id!==void 0?T[A.id]:ri(Object.values(T)))!=null?g:[],b=0,f=y;b<f.length;b++){var S=f[b];_.add(S)}}return ri(Array.from(_.values()).map(function(C){var x=v.queries[C];return x?[{queryCacheKey:C,endpointName:x.endpointName,originalArgs:x.originalArgs}]:[]}))}}var qt=WeakMap?new WeakMap:void 0,bi=function(e){var t=e.endpointName,n=e.queryArgs,r="",a=qt==null?void 0:qt.get(n);if(typeof a=="string")r=a;else{var o=JSON.stringify(n,function(l,s){return q.isPlainObject(s)?Object.keys(s).sort().reduce(function(c,u){return c[u]=s[u],c},{}):s});q.isPlainObject(n)&&(qt==null||qt.set(n,o)),r=o}return t+"("+r+")"};function _l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){var a=Zr(function(p){var d,g;return(g=r.extractRehydrationInfo)==null?void 0:g.call(r,p,{reducerPath:(d=r.reducerPath)!=null?d:"api"})}),o=Ie(fe({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:a,serializeQueryArgs:function(p){var d=bi;if("serializeQueryArgs"in p.endpointDefinition){var g=p.endpointDefinition.serializeQueryArgs;d=function(v){var _=g(v);return typeof _=="string"?_:bi(Ie(fe({},v),{queryArgs:_}))}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(p)},tagTypes:Dt([],r.tagTypes||[])}),l={endpointDefinitions:{},batch:function(p){p()},apiUid:q.nanoid(),extractRehydrationInfo:a,hasRehydrationInfo:Zr(function(p){return a(p)!=null})},s={injectEndpoints:u,enhanceEndpoints:function(p){var d=p.addTagTypes,g=p.endpoints;if(d)for(var v=0,_=d;v<_.length;v++){var h=_[v];o.tagTypes.includes(h)||o.tagTypes.push(h)}if(g)for(var E=0,A=Object.entries(g);E<A.length;E++){var T=A[E],y=T[0],b=T[1];typeof b=="function"?b(l.endpointDefinitions[y]):Object.assign(l.endpointDefinitions[y]||{},b)}return s}},c=e.map(function(p){return p.init(s,o,l)});function u(p){for(var d=p.endpoints({query:function(b){return Ie(fe({},b),{type:xe.query})},mutation:function(b){return Ie(fe({},b),{type:xe.mutation})}}),g=0,v=Object.entries(d);g<v.length;g++){var _=v[g],h=_[0],E=_[1];if(!p.overrideExisting&&h in l.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+h+" without specifying `overrideExisting: true`");continue}l.endpointDefinitions[h]=E;for(var A=0,T=c;A<T.length;A++){var y=T[A];y.injectEndpoint(h,E)}}return s}return s.injectEndpoints({endpoints:r.endpoints})}}function El(e){for(var t in e)return!1;return!0}var Sl=2147483647/1e3-1,Cl=function(e){var t=e.reducerPath,n=e.api,r=e.context,a=e.internalState,o=n.internalActions,l=o.removeQueryResult,s=o.unsubscribeQueryResult;function c(g){var v=a.currentSubscriptions[g];return!!v&&!El(v)}var u={},p=function(g,v,_){var h;if(s.match(g)){var E=v.getState()[t],A=g.payload.queryCacheKey;d(A,(h=E.queries[A])==null?void 0:h.endpointName,v,E.config)}if(n.util.resetApiState.match(g))for(var T=0,y=Object.entries(u);T<y.length;T++){var b=y[T],f=b[0],S=b[1];S&&clearTimeout(S),delete u[f]}if(r.hasRehydrationInfo(g))for(var E=v.getState()[t],C=r.extractRehydrationInfo(g).queries,x=0,k=Object.entries(C);x<k.length;x++){var w=k[x],A=w[0],N=w[1];d(A,N==null?void 0:N.endpointName,v,E.config)}};function d(g,v,_,h){var E,A=r.endpointDefinitions[v],T=(E=A==null?void 0:A.keepUnusedDataFor)!=null?E:h.keepUnusedDataFor;if(T!==1/0){var y=Math.max(0,Math.min(T,Sl));if(!c(g)){var b=u[g];b&&clearTimeout(b),u[g]=setTimeout(function(){c(g)||_.dispatch(l({queryCacheKey:g})),delete u[g]},y*1e3)}}}return p},Tl=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,a=e.mutationThunk,o=e.api,l=e.assertTagType,s=e.refetchQuery,c=o.internalActions.removeQueryResult,u=q.isAnyOf(q.isFulfilled(a),q.isRejectedWithValue(a)),p=function(g,v){u(g)&&d(mi(g,"invalidatesTags",r,l),v),o.util.invalidateTags.match(g)&&d(pi(g.payload,void 0,void 0,void 0,void 0,l),v)};function d(g,v){var _=v.getState(),h=_[t],E=o.util.selectInvalidatedBy(_,g);n.batch(function(){for(var A,T=Array.from(E.values()),y=0,b=T;y<b.length;y++){var f=b[y].queryCacheKey,S=h.queries[f],C=(A=h.subscriptions[f])!=null?A:{};S&&(Object.keys(C).length===0?v.dispatch(c({queryCacheKey:f})):S.status!==le.uninitialized&&v.dispatch(s(S,f)))}})}return p},Ol=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,a=e.refetchQuery,o=e.internalState,l={},s=function(v,_){(r.internalActions.updateSubscriptionOptions.match(v)||r.internalActions.unsubscribeQueryResult.match(v))&&u(v.payload,_),(n.pending.match(v)||n.rejected.match(v)&&v.meta.condition)&&u(v.meta.arg,_),(n.fulfilled.match(v)||n.rejected.match(v)&&!v.meta.condition)&&c(v.meta.arg,_),r.util.resetApiState.match(v)&&d()};function c(v,_){var h=v.queryCacheKey,E=_.getState()[t],A=E.queries[h],T=o.currentSubscriptions[h];if(!(!A||A.status===le.uninitialized)){var y=g(T);if(Number.isFinite(y)){var b=l[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);var f=Date.now()+y,S=l[h]={nextPollTimestamp:f,pollingInterval:y,timeout:setTimeout(function(){S.timeout=void 0,_.dispatch(a(A,h))},y)}}}}function u(v,_){var h=v.queryCacheKey,E=_.getState()[t],A=E.queries[h],T=o.currentSubscriptions[h];if(!(!A||A.status===le.uninitialized)){var y=g(T);if(!Number.isFinite(y)){p(h);return}var b=l[h],f=Date.now()+y;(!b||f<b.nextPollTimestamp)&&c({queryCacheKey:h},_)}}function p(v){var _=l[v];_!=null&&_.timeout&&clearTimeout(_.timeout),delete l[v]}function d(){for(var v=0,_=Object.keys(l);v<_.length;v++){var h=_[v];p(h)}}function g(v){v===void 0&&(v={});var _=Number.POSITIVE_INFINITY;for(var h in v)v[h].pollingInterval&&(_=Math.min(v[h].pollingInterval,_));return _}return s},Al=function(e){var t=e.reducerPath,n=e.context,r=e.api,a=e.refetchQuery,o=e.internalState,l=r.internalActions.removeQueryResult,s=function(u,p){jn.match(u)&&c(p,"refetchOnFocus"),Ln.match(u)&&c(p,"refetchOnReconnect")};function c(u,p){var d=u.getState()[t],g=d.queries,v=o.currentSubscriptions;n.batch(function(){for(var _=0,h=Object.keys(v);_<h.length;_++){var E=h[_],A=g[E],T=v[E];if(!(!T||!A)){var y=Object.values(T).some(function(b){return b[p]===!0})||Object.values(T).every(function(b){return b[p]===void 0})&&d.config[p];y&&(Object.keys(T).length===0?u.dispatch(l({queryCacheKey:E})):A.status!==le.uninitialized&&u.dispatch(a(A,E)))}}})}return s},_i=new Error("Promise never resolved before cacheEntryRemoved."),wl=function(e){var t=e.api,n=e.reducerPath,r=e.context,a=e.queryThunk,o=e.mutationThunk;e.internalState;var l=q.isAsyncThunkAction(a),s=q.isAsyncThunkAction(o),c=q.isFulfilled(a,o),u={},p=function(v,_,h){var E=d(v);if(a.pending.match(v)){var A=h[n].queries[E],T=_.getState()[n].queries[E];!A&&T&&g(v.meta.arg.endpointName,v.meta.arg.originalArgs,E,_,v.meta.requestId)}else if(o.pending.match(v)){var T=_.getState()[n].mutations[E];T&&g(v.meta.arg.endpointName,v.meta.arg.originalArgs,E,_,v.meta.requestId)}else if(c(v)){var y=u[E];y!=null&&y.valueResolved&&(y.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete y.valueResolved)}else if(t.internalActions.removeQueryResult.match(v)||t.internalActions.removeMutationResult.match(v)){var y=u[E];y&&(delete u[E],y.cacheEntryRemoved())}else if(t.util.resetApiState.match(v))for(var b=0,f=Object.entries(u);b<f.length;b++){var S=f[b],C=S[0],y=S[1];delete u[C],y.cacheEntryRemoved()}};function d(v){return l(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.requestId:t.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:t.internalActions.removeMutationResult.match(v)?ft(v.payload):""}function g(v,_,h,E,A){var T=r.endpointDefinitions[v],y=T==null?void 0:T.onCacheEntryAdded;if(y){var b={},f=new Promise(function(N){b.cacheEntryRemoved=N}),S=Promise.race([new Promise(function(N){b.valueResolved=N}),f.then(function(){throw _i})]);S.catch(function(){}),u[h]=b;var C=t.endpoints[v].select(T.type===xe.query?_:h),x=E.dispatch(function(N,M,j){return j}),k=Ie(fe({},E),{getCacheEntry:function(){return C(E.getState())},requestId:A,extra:x,updateCachedData:T.type===xe.query?function(N){return E.dispatch(t.util.updateQueryData(v,_,N))}:void 0,cacheDataLoaded:S,cacheEntryRemoved:f}),w=y(_,k);Promise.resolve(w).catch(function(N){if(N!==_i)throw N})}}return p},Il=function(e){var t=e.api,n=e.context,r=e.queryThunk,a=e.mutationThunk,o=q.isPending(r,a),l=q.isRejected(r,a),s=q.isFulfilled(r,a),c={},u=function(p,d){var g,v,_;if(o(p)){var h=p.meta,E=h.requestId,A=h.arg,T=A.endpointName,y=A.originalArgs,b=n.endpointDefinitions[T],f=b==null?void 0:b.onQueryStarted;if(f){var S={},C=new Promise(function(O,V){S.resolve=O,S.reject=V});C.catch(function(){}),c[E]=S;var x=t.endpoints[T].select(b.type===xe.query?y:E),k=d.dispatch(function(O,V,K){return K}),w=Ie(fe({},d),{getCacheEntry:function(){return x(d.getState())},requestId:E,extra:k,updateCachedData:b.type===xe.query?function(O){return d.dispatch(t.util.updateQueryData(T,y,O))}:void 0,queryFulfilled:C});f(y,w)}}else if(s(p)){var N=p.meta,E=N.requestId,M=N.baseQueryMeta;(g=c[E])==null||g.resolve({data:p.payload,meta:M}),delete c[E]}else if(l(p)){var j=p.meta,E=j.requestId,F=j.rejectedWithValue,M=j.baseQueryMeta;(_=c[E])==null||_.reject({error:(v=p.payload)!=null?v:p.error,isUnhandledError:!F,meta:M}),delete c[E]}};return u},xl=function(e){var t=e.api,n=e.context.apiUid,r=e.reducerPath;return function(a,o){var l,s;t.util.resetApiState.match(a)&&o.dispatch(t.internalActions.middlewareRegistered(n)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&t.internalActions.middlewareRegistered.match(a)&&a.payload===n&&((s=(l=o.getState()[r])==null?void 0:l.config)==null?void 0:s.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+r+`".
|
|
22
|
+
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function p(){if(typeof process!="undefined"&&process.env.NODE_ENV==="development")m();else{var S=function($){return Array.from($.values()).flatMap(function(O){return O?Object.values(O):[]})};return Xl(Xl([],S(a)),S(l)).filter(ed)}}function g(S,$){return function(O){var I,w=i.endpointDefinitions[S],N=t({queryArgs:$,endpointDefinition:w,endpointName:S});return(I=a.get(O))==null?void 0:I[N]}}function h(S,$){return function(O){var I;return(I=l.get(O))==null?void 0:I[$]}}function v(){return function(S){return Object.values(a.get(S)||{}).filter(ed)}}function y(){return function(S){return Object.values(l.get(S)||{}).filter(ed)}}function C(S){if(process.env.NODE_ENV!=="production"){if(C.triggered)return;var $=S(o.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(C.triggered=!0,typeof $!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+o.reducerPath+`" has not been added to the store.
|
|
23
|
+
You must add the middleware for RTK-Query to function correctly!`)}}function x(S,$){var O=function(I,w){var N=w===void 0?{}:w,_=N.subscribe,T=_===void 0?!0:_,M=N.forceRefetch,D=N.subscriptionOptions,P=xa,A=N[P];return function(R,L){var j,z,B=t({queryArgs:I,endpointDefinition:$,endpointName:S}),K=n((j={type:"query",subscribe:T,forceRefetch:M,subscriptionOptions:D,endpointName:S,originalArgs:I,queryCacheKey:B},j[xa]=A,j)),W=o.endpoints[S].select(I),k=R(K),V=W(L());C(R);var Q=k.requestId,J=k.abort,Y=V.requestId!==Q,te=(z=a.get(R))==null?void 0:z[B],oe=function(){return W(L())},X=Object.assign(A?k.then(oe):Y&&!te?Promise.resolve(V):Promise.all([te,k]).then(oe),{arg:I,requestId:Q,subscriptionOptions:D,queryCacheKey:B,abort:J,unwrap:function(){return Yl(this,null,function(){var ee;return Ul(this,function(Z){switch(Z.label){case 0:return[4,X];case 1:if(ee=Z.sent(),ee.isError)throw ee.error;return[2,ee.data]}})})},refetch:function(){return R(O(I,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){T&&R(u({queryCacheKey:B,requestId:Q}))},updateSubscriptionOptions:function(ee){X.subscriptionOptions=ee,R(f({endpointName:S,requestId:Q,queryCacheKey:B,options:ee}))}});if(!te&&!Y&&!A){var F=a.get(R)||{};F[B]=X,a.set(R,F),X.then(function(){delete F[B],Object.keys(F).length||a.delete(R)})}return X}};return O}function E(S){return function($,O){var I=O===void 0?{}:O,w=I.track,N=w===void 0?!0:w,_=I.fixedCacheKey;return function(T,M){var D=r({type:"mutation",endpointName:S,originalArgs:$,track:N,fixedCacheKey:_}),P=T(D);C(T);var A=P.requestId,R=P.abort,L=P.unwrap,j=P.unwrap().then(function(W){return{data:W}}).catch(function(W){return{error:W}}),z=function(){T(d({requestId:A,fixedCacheKey:_}))},B=Object.assign(j,{arg:P.arg,requestId:A,abort:R,unwrap:L,unsubscribe:z,reset:z}),K=l.get(T)||{};return l.set(T,K),K[A]=B,B.then(function(){delete K[A],Object.keys(K).length||l.delete(T)}),_&&(K[_]=B,B.then(function(){K[_]===B&&(delete K[_],Object.keys(K).length||l.delete(T))})),B}}}}function Pg(e){return e}function qN(e){var t=this,n=e.reducerPath,r=e.baseQuery,o=e.context.endpointDefinitions,i=e.serializeQueryArgs,a=e.api,l=function(x,E,S){return function($){var O=o[x];$(a.internalActions.queryResultPatched({queryCacheKey:i({queryArgs:E,endpointDefinition:O,endpointName:x}),patches:S}))}},c=function(x,E,S){return function($,O){var I,w,N=a.endpoints[x].select(E)(O()),_={patches:[],inversePatches:[],undo:function(){return $(a.util.patchQueryData(x,E,_.inversePatches))}};if(N.status===cn.uninitialized)return _;if("data"in N)if(po(N.data)){var T=mg(N.data,S),M=T[1],D=T[2];(I=_.patches).push.apply(I,M),(w=_.inversePatches).push.apply(w,D)}else{var P=S(N.data);_.patches.push({op:"replace",path:[],value:P}),_.inversePatches.push({op:"replace",path:[],value:N.data})}return $(a.util.patchQueryData(x,E,_.patches)),_}},u=function(x,E,S){return function($){var O;return $(a.endpoints[x].initiate(E,(O={subscribe:!1,forceRefetch:!0},O[xa]=function(){return{data:S}},O)))}},d=function(x,E){return Yl(t,[x,E],function(S,$){var O,I,w,N,_,T,M,D,P,A,R,L,j,z,B,K,W,k,V=$.signal,Q=$.abort,J=$.rejectWithValue,Y=$.fulfillWithValue,te=$.dispatch,oe=$.getState,X=$.extra;return Ul(this,function(F){switch(F.label){case 0:O=o[S.endpointName],F.label=1;case 1:return F.trys.push([1,8,,13]),I=Pg,w=void 0,N={signal:V,abort:Q,dispatch:te,getState:oe,extra:X,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?f(S,oe()):void 0},_=S.type==="query"?S[xa]:void 0,_?(w=_(),[3,6]):[3,2];case 2:return O.query?[4,r(O.query(S.originalArgs),N,O.extraOptions)]:[3,4];case 3:return w=F.sent(),O.transformResponse&&(I=O.transformResponse),[3,6];case 4:return[4,O.queryFn(S.originalArgs,N,O.extraOptions,function(ee){return r(ee,N,O.extraOptions)})];case 5:w=F.sent(),F.label=6;case 6:if(typeof process!="undefined"&&process.env.NODE_ENV==="development"){if(T=O.query?"`baseQuery`":"`queryFn`",M=void 0,!w)M=T+" did not return anything.";else if(typeof w!="object")M=T+" did not return an object.";else if(w.error&&w.data)M=T+" returned an object containing both `error` and `result`.";else if(w.error===void 0&&w.data===void 0)M=T+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(D=0,P=Object.keys(w);D<P.length;D++)if(A=P[D],A!=="error"&&A!=="data"&&A!=="meta"){M="The object returned by "+T+" has the unknown property "+A+".";break}M&&console.error("Error encountered handling the endpoint "+S.endpointName+`.
|
|
24
|
+
`+M+"\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:",w)}if(w.error)throw new wg(w.error,w.meta);return R=Y,[4,I(w.data,w.meta,S.originalArgs)];case 7:return[2,R.apply(void 0,[F.sent(),(W={fulfilledTimeStamp:Date.now(),baseQueryMeta:w.meta},W[We.SHOULD_AUTOBATCH]=!0,W)])];case 8:if(L=F.sent(),j=L,!(j instanceof wg))return[3,12];z=Pg,O.query&&O.transformErrorResponse&&(z=O.transformErrorResponse),F.label=9;case 9:return F.trys.push([9,11,,12]),B=J,[4,z(j.value,j.meta,S.originalArgs)];case 10:return[2,B.apply(void 0,[F.sent(),(k={baseQueryMeta:j.meta},k[We.SHOULD_AUTOBATCH]=!0,k)])];case 11:return K=F.sent(),j=K,[3,12];case 12:throw typeof process!="undefined"&&process.env.NODE_ENV!=="production"?console.error('An unhandled error occurred processing a request for the endpoint "'+S.endpointName+`".
|
|
25
|
+
In the case of an unhandled error, no tags will be "provided" or "invalidated".`,j):console.error(j),j;case 13:return[2]}})})};function f(x,E){var S,$,O,I,w=($=(S=E[n])==null?void 0:S.queries)==null?void 0:$[x.queryCacheKey],N=(O=E[n])==null?void 0:O.config.refetchOnMountOrArgChange,_=w==null?void 0:w.fulfilledTimeStamp,T=(I=x.forceRefetch)!=null?I:x.subscribe&&N;return T?T===!0||(Number(new Date)-Number(_))/1e3>=T:!1}var m=We.createAsyncThunk(n+"/executeQuery",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[We.SHOULD_AUTOBATCH]=!0,x},condition:function(x,E){var S=E.getState,$,O,I,w=S(),N=(O=($=w[n])==null?void 0:$.queries)==null?void 0:O[x.queryCacheKey],_=N==null?void 0:N.fulfilledTimeStamp,T=x.originalArgs,M=N==null?void 0:N.originalArgs,D=o[x.endpointName];return td(x)?!0:(N==null?void 0:N.status)==="pending"?!1:f(x,w)||Ig(D)&&((I=D==null?void 0:D.forceRefetch)!=null&&I.call(D,{currentArg:T,previousArg:M,endpointState:N,state:w}))?!0:!_},dispatchConditionRejection:!0}),p=We.createAsyncThunk(n+"/executeMutation",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[We.SHOULD_AUTOBATCH]=!0,x}}),g=function(x){return"force"in x},h=function(x){return"ifOlderThan"in x},v=function(x,E,S){return function($,O){var I=g(S)&&S.force,w=h(S)&&S.ifOlderThan,N=function(D){return D===void 0&&(D=!0),a.endpoints[x].initiate(E,{forceRefetch:D})},_=a.endpoints[x].select(E)(O());if(I)$(N());else if(w){var T=_==null?void 0:_.fulfilledTimeStamp;if(!T){$(N());return}var M=(Number(new Date)-Number(new Date(T)))/1e3>=w;M&&$(N())}else $(N(!1))}};function y(x){return function(E){var S,$;return(($=(S=E==null?void 0:E.meta)==null?void 0:S.arg)==null?void 0:$.endpointName)===x}}function C(x,E){return{matchPending:We.isAllOf(We.isPending(x),y(E)),matchFulfilled:We.isAllOf(We.isFulfilled(x),y(E)),matchRejected:We.isAllOf(We.isRejected(x),y(E))}}return{queryThunk:m,mutationThunk:p,prefetch:v,updateQueryData:c,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:C}}function Tg(e,t,n,r){return _g(n[e.meta.arg.endpointName][t],We.isFulfilled(e)?e.payload:void 0,We.isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Jl(e,t,n){var r=e[t];r&&n(r)}function Ea(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function Mg(e,t,n){var r=e[Ea(t)];r&&n(r)}var $a={};function GN(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,o=e.context,i=o.endpointDefinitions,a=o.apiUid,l=o.extractRehydrationInfo,c=o.hasRehydrationInfo,u=e.assertTagType,d=e.config,f=We.createAction(t+"/resetApiState"),m=We.createSlice({name:t+"/queries",initialState:$a,reducers:{removeQueryResult:{reducer:function(S,$){var O=$.payload.queryCacheKey;delete S[O]},prepare:We.prepareAutoBatched()},queryResultPatched:function(S,$){var O=$.payload,I=O.queryCacheKey,w=O.patches;Jl(S,I,function(N){N.data=pg(N.data,w.concat())})}},extraReducers:function(S){S.addCase(n.pending,function($,O){var I=O.meta,w=O.meta.arg,N,_,T=td(w);(w.subscribe||T)&&((_=$[N=w.queryCacheKey])!=null||($[N]={status:cn.uninitialized,endpointName:w.endpointName})),Jl($,w.queryCacheKey,function(M){M.status=cn.pending,M.requestId=T&&M.requestId?M.requestId:I.requestId,w.originalArgs!==void 0&&(M.originalArgs=w.originalArgs),M.startedTimeStamp=I.startedTimeStamp})}).addCase(n.fulfilled,function($,O){var I=O.meta,w=O.payload;Jl($,I.arg.queryCacheKey,function(N){var _;if(!(N.requestId!==I.requestId&&!td(I.arg))){var T=i[I.arg.endpointName].merge;if(N.status=cn.fulfilled,T)if(N.data!==void 0){var M=I.fulfilledTimeStamp,D=I.arg,P=I.baseQueryMeta,A=I.requestId,R=We.createNextState(N.data,function(L){return T(L,w,{arg:D.originalArgs,baseQueryMeta:P,fulfilledTimeStamp:M,requestId:A})});N.data=R}else N.data=w;else N.data=(_=i[I.arg.endpointName].structuralSharing)==null||_?xg(N.data,w):w;delete N.error,N.fulfilledTimeStamp=I.fulfilledTimeStamp}})}).addCase(n.rejected,function($,O){var I=O.meta,w=I.condition,N=I.arg,_=I.requestId,T=O.error,M=O.payload;Jl($,N.queryCacheKey,function(D){if(!w){if(D.requestId!==_)return;D.status=cn.rejected,D.error=M!=null?M:T}})}).addMatcher(c,function($,O){for(var I=l(O).queries,w=0,N=Object.entries(I);w<N.length;w++){var _=N[w],T=_[0],M=_[1];((M==null?void 0:M.status)===cn.fulfilled||(M==null?void 0:M.status)===cn.rejected)&&($[T]=M)}})}}),p=We.createSlice({name:t+"/mutations",initialState:$a,reducers:{removeMutationResult:{reducer:function(S,$){var O=$.payload,I=Ea(O);I in S&&delete S[I]},prepare:We.prepareAutoBatched()}},extraReducers:function(S){S.addCase(r.pending,function($,O){var I=O.meta,w=O.meta,N=w.requestId,_=w.arg,T=w.startedTimeStamp;_.track&&($[Ea(I)]={requestId:N,status:cn.pending,endpointName:_.endpointName,startedTimeStamp:T})}).addCase(r.fulfilled,function($,O){var I=O.payload,w=O.meta;w.arg.track&&Mg($,w,function(N){N.requestId===w.requestId&&(N.status=cn.fulfilled,N.data=I,N.fulfilledTimeStamp=w.fulfilledTimeStamp)})}).addCase(r.rejected,function($,O){var I=O.payload,w=O.error,N=O.meta;N.arg.track&&Mg($,N,function(_){_.requestId===N.requestId&&(_.status=cn.rejected,_.error=I!=null?I:w)})}).addMatcher(c,function($,O){for(var I=l(O).mutations,w=0,N=Object.entries(I);w<N.length;w++){var _=N[w],T=_[0],M=_[1];((M==null?void 0:M.status)===cn.fulfilled||(M==null?void 0:M.status)===cn.rejected)&&T!==(M==null?void 0:M.requestId)&&($[T]=M)}})}}),g=We.createSlice({name:t+"/invalidation",initialState:$a,reducers:{},extraReducers:function(S){S.addCase(m.actions.removeQueryResult,function($,O){for(var I=O.payload.queryCacheKey,w=0,N=Object.values($);w<N.length;w++)for(var _=N[w],T=0,M=Object.values(_);T<M.length;T++){var D=M[T],P=D.indexOf(I);P!==-1&&D.splice(P,1)}}).addMatcher(c,function($,O){for(var I,w,N,_,T=l(O).provided,M=0,D=Object.entries(T);M<D.length;M++)for(var P=D[M],A=P[0],R=P[1],L=0,j=Object.entries(R);L<j.length;L++)for(var z=j[L],B=z[0],K=z[1],W=(_=(w=(I=$[A])!=null?I:$[A]={})[N=B||"__internal_without_id"])!=null?_:w[N]=[],k=0,V=K;k<V.length;k++){var Q=V[k],J=W.includes(Q);J||W.push(Q)}}).addMatcher(We.isAnyOf(We.isFulfilled(n),We.isRejectedWithValue(n)),function($,O){for(var I,w,N,_,T=Tg(O,"providesTags",i,u),M=O.meta.arg.queryCacheKey,D=0,P=Object.values($);D<P.length;D++)for(var A=P[D],R=0,L=Object.values(A);R<L.length;R++){var j=L[R],z=j.indexOf(M);z!==-1&&j.splice(z,1)}for(var B=0,K=T;B<K.length;B++){var W=K[B],k=W.type,V=W.id,Q=(_=(w=(I=$[k])!=null?I:$[k]={})[N=V||"__internal_without_id"])!=null?_:w[N]=[],J=Q.includes(M);J||Q.push(M)}})}}),h=We.createSlice({name:t+"/subscriptions",initialState:$a,reducers:{updateSubscriptionOptions:function(S,$){},unsubscribeQueryResult:function(S,$){},internal_probeSubscription:function(S,$){}}}),v=We.createSlice({name:t+"/internalSubscriptions",initialState:$a,reducers:{subscriptionsUpdated:function(S,$){return pg(S,$.payload)}}}),y=We.createSlice({name:t+"/config",initialState:$n({online:zN(),focused:BN(),middlewareRegistered:!1},d),reducers:{middlewareRegistered:function(S,$){var O=$.payload;S.middlewareRegistered=S.middlewareRegistered==="conflict"||a!==O?"conflict":!0}},extraReducers:function(S){S.addCase(Ju,function($){$.online=!0}).addCase(Ng,function($){$.online=!1}).addCase(Yu,function($){$.focused=!0}).addCase(Og,function($){$.focused=!1}).addMatcher(c,function($){return $n({},$)})}}),C=We.combineReducers({queries:m.reducer,mutations:p.reducer,provided:g.reducer,subscriptions:v.reducer,config:y.reducer}),x=function(S,$){return C(f.match($)?void 0:S,$)},E=Gr($n($n($n($n($n({},y.actions),m.actions),h.actions),v.actions),p.actions),{unsubscribeMutationResult:p.actions.removeMutationResult,resetApiState:f});return{reducer:x,actions:E}}var Jo=Symbol.for("RTKQ/skipToken"),Dg={status:cn.uninitialized},Ag=We.createNextState(Dg,function(){}),Rg=We.createNextState(Dg,function(){});function UN(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(d){return Ag},o=function(d){return Rg};return{buildQuerySelector:l,buildMutationSelector:c,selectInvalidatedBy:u};function i(d){return $n($n({},d),DN(d.status))}function a(d){var f=d[n];if(process.env.NODE_ENV!=="production"&&!f){if(a.triggered)return f;a.triggered=!0,console.error("Error: No data found at `state."+n+"`. Did you forget to add the reducer to the store?")}return f}function l(d,f){return function(m){var p=t({queryArgs:m,endpointDefinition:f,endpointName:d}),g=function(v){var y,C,x;return(x=(C=(y=a(v))==null?void 0:y.queries)==null?void 0:C[p])!=null?x:Ag},h=m===Jo?r:g;return We.createSelector(h,i)}}function c(){return function(d){var f,m;typeof d=="object"?m=(f=Ea(d))!=null?f:Jo:m=d;var p=function(h){var v,y,C;return(C=(y=(v=a(h))==null?void 0:v.mutations)==null?void 0:y[m])!=null?C:Rg},g=m===Jo?o:p;return We.createSelector(g,i)}}function u(d,f){for(var m,p=d[n],g=new Set,h=0,v=f.map(Zu);h<v.length;h++){var y=v[h],C=p.provided[y.type];if(C)for(var x=(m=y.id!==void 0?C[y.id]:Cg(Object.values(C)))!=null?m:[],E=0,S=x;E<S.length;E++){var $=S[E];g.add($)}}return Cg(Array.from(g.values()).map(function(O){var I=p.queries[O];return I?[{queryCacheKey:O,endpointName:I.endpointName,originalArgs:I.originalArgs}]:[]}))}}var Zl=WeakMap?new WeakMap:void 0,jg=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=Zl==null?void 0:Zl.get(n);if(typeof o=="string")r=o;else{var i=JSON.stringify(n,function(a,l){return We.isPlainObject(l)?Object.keys(l).sort().reduce(function(c,u){return c[u]=l[u],c},{}):l});We.isPlainObject(n)&&(Zl==null||Zl.set(n,i)),r=i}return t+"("+r+")"};function XN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){var o=vg(function(d){var f,m;return(m=r.extractRehydrationInfo)==null?void 0:m.call(r,d,{reducerPath:(f=r.reducerPath)!=null?f:"api"})}),i=Gr($n({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:o,serializeQueryArgs:function(d){var f=jg;if("serializeQueryArgs"in d.endpointDefinition){var m=d.endpointDefinition.serializeQueryArgs;f=function(p){var g=m(p);return typeof g=="string"?g:jg(Gr($n({},p),{queryArgs:g}))}}else r.serializeQueryArgs&&(f=r.serializeQueryArgs);return f(d)},tagTypes:Xl([],r.tagTypes||[])}),a={endpointDefinitions:{},batch:function(d){d()},apiUid:We.nanoid(),extractRehydrationInfo:o,hasRehydrationInfo:vg(function(d){return o(d)!=null})},l={injectEndpoints:u,enhanceEndpoints:function(d){var f=d.addTagTypes,m=d.endpoints;if(f)for(var p=0,g=f;p<g.length;p++){var h=g[p];i.tagTypes.includes(h)||i.tagTypes.push(h)}if(m)for(var v=0,y=Object.entries(m);v<y.length;v++){var C=y[v],x=C[0],E=C[1];typeof E=="function"?E(a.endpointDefinitions[x]):Object.assign(a.endpointDefinitions[x]||{},E)}return l}},c=e.map(function(d){return d.init(l,i,a)});function u(d){for(var f=d.endpoints({query:function(E){return Gr($n({},E),{type:Ur.query})},mutation:function(E){return Gr($n({},E),{type:Ur.mutation})}}),m=0,p=Object.entries(f);m<p.length;m++){var g=p[m],h=g[0],v=g[1];if(!d.overrideExisting&&h in a.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+h+" without specifying `overrideExisting: true`");continue}a.endpointDefinitions[h]=v;for(var y=0,C=c;y<C.length;y++){var x=C[y];x.injectEndpoint(h,v)}}return l}return l.injectEndpoints({endpoints:r.endpoints})}}function QN(e){for(var t in e)return!1;return!0}var YN=2147483647/1e3-1,JN=function(e){var t=e.reducerPath,n=e.api,r=e.context,o=e.internalState,i=n.internalActions,a=i.removeQueryResult,l=i.unsubscribeQueryResult;function c(m){var p=o.currentSubscriptions[m];return!!p&&!QN(p)}var u={},d=function(m,p,g){var h;if(l.match(m)){var v=p.getState()[t],y=m.payload.queryCacheKey;f(y,(h=v.queries[y])==null?void 0:h.endpointName,p,v.config)}if(n.util.resetApiState.match(m))for(var C=0,x=Object.entries(u);C<x.length;C++){var E=x[C],S=E[0],$=E[1];$&&clearTimeout($),delete u[S]}if(r.hasRehydrationInfo(m))for(var v=p.getState()[t],O=r.extractRehydrationInfo(m).queries,I=0,w=Object.entries(O);I<w.length;I++){var N=w[I],y=N[0],_=N[1];f(y,_==null?void 0:_.endpointName,p,v.config)}};function f(m,p,g,h){var v,y=r.endpointDefinitions[p],C=(v=y==null?void 0:y.keepUnusedDataFor)!=null?v:h.keepUnusedDataFor;if(C!==1/0){var x=Math.max(0,Math.min(C,YN));if(!c(m)){var E=u[m];E&&clearTimeout(E),u[m]=setTimeout(function(){c(m)||g.dispatch(a({queryCacheKey:m})),delete u[m]},x*1e3)}}}return d},ZN=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,o=e.mutationThunk,i=e.api,a=e.assertTagType,l=e.refetchQuery,c=i.internalActions.removeQueryResult,u=We.isAnyOf(We.isFulfilled(o),We.isRejectedWithValue(o)),d=function(m,p){u(m)&&f(Tg(m,"invalidatesTags",r,a),p),i.util.invalidateTags.match(m)&&f(_g(m.payload,void 0,void 0,void 0,void 0,a),p)};function f(m,p){var g=p.getState(),h=g[t],v=i.util.selectInvalidatedBy(g,m);n.batch(function(){for(var y,C=Array.from(v.values()),x=0,E=C;x<E.length;x++){var S=E[x].queryCacheKey,$=h.queries[S],O=(y=h.subscriptions[S])!=null?y:{};$&&(Object.keys(O).length===0?p.dispatch(c({queryCacheKey:S})):$.status!==cn.uninitialized&&p.dispatch(l($,S)))}})}return d},eI=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.refetchQuery,i=e.internalState,a={},l=function(p,g){(r.internalActions.updateSubscriptionOptions.match(p)||r.internalActions.unsubscribeQueryResult.match(p))&&u(p.payload,g),(n.pending.match(p)||n.rejected.match(p)&&p.meta.condition)&&u(p.meta.arg,g),(n.fulfilled.match(p)||n.rejected.match(p)&&!p.meta.condition)&&c(p.meta.arg,g),r.util.resetApiState.match(p)&&f()};function c(p,g){var h=p.queryCacheKey,v=g.getState()[t],y=v.queries[h],C=i.currentSubscriptions[h];if(!(!y||y.status===cn.uninitialized)){var x=m(C);if(Number.isFinite(x)){var E=a[h];E!=null&&E.timeout&&(clearTimeout(E.timeout),E.timeout=void 0);var S=Date.now()+x,$=a[h]={nextPollTimestamp:S,pollingInterval:x,timeout:setTimeout(function(){$.timeout=void 0,g.dispatch(o(y,h))},x)}}}}function u(p,g){var h=p.queryCacheKey,v=g.getState()[t],y=v.queries[h],C=i.currentSubscriptions[h];if(!(!y||y.status===cn.uninitialized)){var x=m(C);if(!Number.isFinite(x)){d(h);return}var E=a[h],S=Date.now()+x;(!E||S<E.nextPollTimestamp)&&c({queryCacheKey:h},g)}}function d(p){var g=a[p];g!=null&&g.timeout&&clearTimeout(g.timeout),delete a[p]}function f(){for(var p=0,g=Object.keys(a);p<g.length;p++){var h=g[p];d(h)}}function m(p){p===void 0&&(p={});var g=Number.POSITIVE_INFINITY;for(var h in p)p[h].pollingInterval&&(g=Math.min(p[h].pollingInterval,g));return g}return l},tI=function(e){var t=e.reducerPath,n=e.context,r=e.api,o=e.refetchQuery,i=e.internalState,a=r.internalActions.removeQueryResult,l=function(u,d){Yu.match(u)&&c(d,"refetchOnFocus"),Ju.match(u)&&c(d,"refetchOnReconnect")};function c(u,d){var f=u.getState()[t],m=f.queries,p=i.currentSubscriptions;n.batch(function(){for(var g=0,h=Object.keys(p);g<h.length;g++){var v=h[g],y=m[v],C=p[v];if(!(!C||!y)){var x=Object.values(C).some(function(E){return E[d]===!0})||Object.values(C).every(function(E){return E[d]===void 0})&&f.config[d];x&&(Object.keys(C).length===0?u.dispatch(a({queryCacheKey:v})):y.status!==cn.uninitialized&&u.dispatch(o(y,v)))}}})}return l},Lg=new Error("Promise never resolved before cacheEntryRemoved."),nI=function(e){var t=e.api,n=e.reducerPath,r=e.context,o=e.queryThunk,i=e.mutationThunk;e.internalState;var a=We.isAsyncThunkAction(o),l=We.isAsyncThunkAction(i),c=We.isFulfilled(o,i),u={},d=function(p,g,h){var v=f(p);if(o.pending.match(p)){var y=h[n].queries[v],C=g.getState()[n].queries[v];!y&&C&&m(p.meta.arg.endpointName,p.meta.arg.originalArgs,v,g,p.meta.requestId)}else if(i.pending.match(p)){var C=g.getState()[n].mutations[v];C&&m(p.meta.arg.endpointName,p.meta.arg.originalArgs,v,g,p.meta.requestId)}else if(c(p)){var x=u[v];x!=null&&x.valueResolved&&(x.valueResolved({data:p.payload,meta:p.meta.baseQueryMeta}),delete x.valueResolved)}else if(t.internalActions.removeQueryResult.match(p)||t.internalActions.removeMutationResult.match(p)){var x=u[v];x&&(delete u[v],x.cacheEntryRemoved())}else if(t.util.resetApiState.match(p))for(var E=0,S=Object.entries(u);E<S.length;E++){var $=S[E],O=$[0],x=$[1];delete u[O],x.cacheEntryRemoved()}};function f(p){return a(p)?p.meta.arg.queryCacheKey:l(p)?p.meta.requestId:t.internalActions.removeQueryResult.match(p)?p.payload.queryCacheKey:t.internalActions.removeMutationResult.match(p)?Ea(p.payload):""}function m(p,g,h,v,y){var C=r.endpointDefinitions[p],x=C==null?void 0:C.onCacheEntryAdded;if(x){var E={},S=new Promise(function(_){E.cacheEntryRemoved=_}),$=Promise.race([new Promise(function(_){E.valueResolved=_}),S.then(function(){throw Lg})]);$.catch(function(){}),u[h]=E;var O=t.endpoints[p].select(C.type===Ur.query?g:h),I=v.dispatch(function(_,T,M){return M}),w=Gr($n({},v),{getCacheEntry:function(){return O(v.getState())},requestId:y,extra:I,updateCachedData:C.type===Ur.query?function(_){return v.dispatch(t.util.updateQueryData(p,g,_))}:void 0,cacheDataLoaded:$,cacheEntryRemoved:S}),N=x(g,w);Promise.resolve(N).catch(function(_){if(_!==Lg)throw _})}}return d},rI=function(e){var t=e.api,n=e.context,r=e.queryThunk,o=e.mutationThunk,i=We.isPending(r,o),a=We.isRejected(r,o),l=We.isFulfilled(r,o),c={},u=function(d,f){var m,p,g;if(i(d)){var h=d.meta,v=h.requestId,y=h.arg,C=y.endpointName,x=y.originalArgs,E=n.endpointDefinitions[C],S=E==null?void 0:E.onQueryStarted;if(S){var $={},O=new Promise(function(P,A){$.resolve=P,$.reject=A});O.catch(function(){}),c[v]=$;var I=t.endpoints[C].select(E.type===Ur.query?x:v),w=f.dispatch(function(P,A,R){return R}),N=Gr($n({},f),{getCacheEntry:function(){return I(f.getState())},requestId:v,extra:w,updateCachedData:E.type===Ur.query?function(P){return f.dispatch(t.util.updateQueryData(C,x,P))}:void 0,queryFulfilled:O});S(x,N)}}else if(l(d)){var _=d.meta,v=_.requestId,T=_.baseQueryMeta;(m=c[v])==null||m.resolve({data:d.payload,meta:T}),delete c[v]}else if(a(d)){var M=d.meta,v=M.requestId,D=M.rejectedWithValue,T=M.baseQueryMeta;(g=c[v])==null||g.reject({error:(p=d.payload)!=null?p:d.error,isUnhandledError:!D,meta:T}),delete c[v]}};return u},oI=function(e){var t=e.api,n=e.context.apiUid,r=e.reducerPath;return function(o,i){var a,l;t.util.resetApiState.match(o)&&i.dispatch(t.internalActions.middlewareRegistered(n)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&t.internalActions.middlewareRegistered.match(o)&&o.payload===n&&((l=(a=i.getState()[r])==null?void 0:a.config)==null?void 0:l.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+r+`".
|
|
26
26
|
You can only have one api per reducer path, this will lead to crashes in various situations!`+(r==="api"?`
|
|
27
|
-
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},
|
|
28
|
-
You must add the middleware for RTK-Query to function correctly!`);H=!!B}var $=!H&&K.current;return p(function(){K.current=H}),p(function(){$&&(Y.current=void 0)},[$]),p(function(){var J,z=Y.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log($),O===Ye){z==null||z.unsubscribe(),Y.current=void 0;return}var U=(J=Y.current)==null?void 0:J.subscriptionOptions;if(!z||z.arg!==O){z==null||z.unsubscribe();var Z=F(j(O,{subscriptionOptions:V,forceRefetch:x}));Y.current=Z}else V!==U&&z.updateSubscriptionOptions(V)},[F,j,x,O,V,$]),i.useEffect(function(){return function(){var J;(J=Y.current)==null||J.unsubscribe(),Y.current=void 0}},[]),i.useMemo(function(){return{refetch:function(){var J;if(!Y.current)throw new Error("Cannot refetch a query that has not been started yet.");return(J=Y.current)==null?void 0:J.refetch()}}},[])},A=function(y){var b=y===void 0?{}:y,f=b.refetchOnReconnect,S=b.refetchOnFocus,C=b.pollingInterval,x=C===void 0?0:C,k=t.endpoints[h].initiate,w=a(),N=i.useState(Bn),M=N[0],j=N[1],F=i.useRef(),O=zn({refetchOnReconnect:f,refetchOnFocus:S,pollingInterval:x});p(function(){var Y,R,P=(Y=F.current)==null?void 0:Y.subscriptionOptions;O!==P&&((R=F.current)==null||R.updateSubscriptionOptions(O))},[O]);var V=i.useRef(O);p(function(){V.current=O},[O]);var K=i.useCallback(function(Y,R){R===void 0&&(R=!1);var P;return r(function(){var D;(D=F.current)==null||D.unsubscribe(),F.current=P=w(k(Y,{subscriptionOptions:V.current,forceRefetch:!R})),j(Y)}),P},[w,k]);return i.useEffect(function(){return function(){var Y;(Y=F==null?void 0:F.current)==null||Y.unsubscribe()}},[]),i.useEffect(function(){M!==Bn&&!F.current&&K(M,!0)},[M,K]),i.useMemo(function(){return[K,M]},[K,M])},T=function(y,b){var f=b===void 0?{}:b,S=f.skip,C=S===void 0?!1:S,x=f.selectFromResult,k=t.endpoints[h].select,w=Oi(C?Ye:y,c,u.endpointDefinitions[h],h),N=i.useRef(),M=i.useMemo(function(){return q.createSelector([k(w),function(K,Y){return Y},function(K){return w}],d)},[k,w]),j=i.useMemo(function(){return x?q.createSelector([M],x):M},[M,x]),F=o(function(K){return j(K,N.current)},G.shallowEqual),O=l(),V=M(O.getState(),N.current);return zl(function(){N.current=V},[V]),F};return{useQueryState:T,useQuerySubscription:E,useLazyQuerySubscription:A,useLazyQuery:function(y){var b=A(y),f=b[0],S=b[1],C=T(S,$t(qe({},y),{skip:S===Bn})),x=i.useMemo(function(){return{lastArg:S}},[S]);return i.useMemo(function(){return[f,C,x]},[f,C,x])},useQuery:function(y,b){var f=E(y,b),S=T(y,qe({selectFromResult:y===Ye||b!=null&&b.skip?void 0:Ql},b)),C=S.data,x=S.status,k=S.isLoading,w=S.isSuccess,N=S.isError,M=S.error;return i.useDebugValue({data:C,status:x,isLoading:k,isSuccess:w,isError:N,error:M}),i.useMemo(function(){return qe(qe({},S),f)},[S,f])}}}function _(h){return function(E){var A=E===void 0?{}:E,T=A.selectFromResult,y=T===void 0?Hl:T,b=A.fixedCacheKey,f=t.endpoints[h],S=f.select,C=f.initiate,x=a(),k=i.useState(),w=k[0],N=k[1];i.useEffect(function(){return function(){w!=null&&w.arg.fixedCacheKey||w==null||w.reset()}},[w]);var M=i.useCallback(function(z){var U=x(C(z,{fixedCacheKey:b}));return N(U),U},[x,C,b]),j=(w||{}).requestId,F=i.useMemo(function(){return q.createSelector([S({fixedCacheKey:b,requestId:w==null?void 0:w.requestId})],y)},[S,w,y,b]),O=o(F,G.shallowEqual),V=b==null?w==null?void 0:w.arg.originalArgs:void 0,K=i.useCallback(function(){r(function(){w&&N(void 0),b&&x(t.internalActions.removeMutationResult({requestId:j,fixedCacheKey:b}))})},[x,b,w,j]),Y=O.endpointName,R=O.data,P=O.status,D=O.isLoading,H=O.isSuccess,B=O.isError,$=O.error;i.useDebugValue({endpointName:Y,data:R,status:P,isLoading:D,isSuccess:H,isError:B,error:$});var J=i.useMemo(function(){return $t(qe({},O),{originalArgs:V,reset:K})},[O,V,K]);return i.useMemo(function(){return[M,J]},[M,J])}}}var zt;(function(e){e.query="query",e.mutation="mutation"})(zt||(zt={}));function Jl(e){return e.type===zt.query}function Ul(e){return e.type===zt.mutation}function Hn(e){return e.replace(e[0],e[0].toUpperCase())}function Ht(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Dl([e],t))}var Wl=Symbol(),Kl=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?G.batch:n,a=t.useDispatch,o=a===void 0?G.useDispatch:a,l=t.useSelector,s=l===void 0?G.useSelector:l,c=t.useStore,u=c===void 0?G.useStore:c,p=t.unstable__sideEffectsInRender,d=p===void 0?!1:p;return{name:Wl,init:function(g,v,_){var h=v.serializeQueryArgs,E=g,A=Vl({api:g,moduleOptions:{batch:r,useDispatch:o,useSelector:s,useStore:u,unstable__sideEffectsInRender:d},serializeQueryArgs:h,context:_}),T=A.buildQueryHooks,y=A.buildMutationHook,b=A.usePrefetch;return Ht(E,{usePrefetch:b}),Ht(_,{batch:r}),{injectEndpoint:function(f,S){if(Jl(S)){var C=T(f),x=C.useQuery,k=C.useLazyQuery,w=C.useLazyQuerySubscription,N=C.useQueryState,M=C.useQuerySubscription;Ht(E.endpoints[f],{useQuery:x,useLazyQuery:k,useLazyQuerySubscription:w,useQueryState:N,useQuerySubscription:M}),g["use"+Hn(f)+"Query"]=x,g["useLazy"+Hn(f)+"Query"]=k}else if(Ul(S)){var j=y(f);Ht(E.endpoints[f],{useMutation:j}),g["use"+Hn(f)+"Mutation"]=j}}}}}},Yl=_l(Ml(),Kl());let Qn="http://localhost:8000";const ke=Yl({reducerPath:"careerHubApi",baseQuery:(e,t,n)=>_e(this,null,function*(){return fl({baseUrl:Qn,prepareHeaders:a=>{if(a.set("Content-Type","application/json"),typeof window!="undefined"){const o=document.querySelector('meta[name="csrf-token"]');o&&a.set("X-CSRF-Token",o.content)}return a}})(e,t,n)}),tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),Gl=e=>{e!==Qn&&(Qn=e)},Rl=ke.injectEndpoints({endpoints:e=>({createApplication:e.mutation({query:({jobProfileId:t,utmMedium:n,utmSource:r,currentTab:a,utmId:o})=>({url:"/api/v3/careers-hub/applications/",method:"POST",body:{job_profile_id:t,medium:n!=null?n:"ch",origin:r!=null?r:"direct",tab_name:a,action_type:o!=null?o:"apply"}})}),getApplication:e.query({query:({applicationId:t,jobProfileId:n,status:r})=>({url:`/api/v3/careers-hub/applications/${t}`,params:{job_profile_id:n,step_name:r}})})})}),{useCreateApplicationMutation:Zl,useGetApplicationQuery:Xl}=Rl,Ai=({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:a})=>{const[o,l]=i.useState(null),[s,c]=i.useState(null),[u,{isLoading:p,isError:d,error:g,isSuccess:v}]=Zl(),_=i.useCallback(()=>_e(this,null,function*(){var E,A,T,y;const h=yield u({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:a});l((A=(E=h==null?void 0:h.data)==null?void 0:E.user_company)==null?void 0:A.id),c((y=(T=h==null?void 0:h.data)==null?void 0:T.user_company)==null?void 0:y.status)}),[u,e,t,n,r,a]);return i.useEffect(()=>{_()},[_]),{retry:_,data:{status:s,applicationId:o},isLoading:p,isError:d,error:g,isSuccess:v}},wi=({jobProfileId:e,applicationId:t,status:n})=>{var u;const{data:r,isLoading:a,isError:o,error:l,isSuccess:s,refetch:c}=Xl({applicationId:t,jobProfileId:e,status:n},{skip:!t||!n});return{retry:c,data:(u=r==null?void 0:r.details)==null?void 0:u.data,isLoading:a,isError:o,error:l,isSuccess:s}};function es(e){return e.map(t=>({label:t,value:t}))}const Vn={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!1,isNoticePeriodAvailable:!1,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},ts={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},ns={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},rs={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},vt=es(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),Ii=({currentTab:e,isActive:t,jobData:n})=>{const r=i.useMemo(()=>Vn[e]||Vn.all,[e]),a=i.useMemo(()=>!0,[]),o=i.useMemo(()=>n.expiry?new Date(n.expiry)<new Date||n.jobProfileStatus!=="active":!1,[n.expiry,n.jobProfileStatus]);return{cardConfig:r,shouldShowBody:a,isExpired:o}},Qt=()=>{const e=G.useSelector(n=>{var r;return((r=n.scalantCareerHub)==null?void 0:r.filter)||{}});return i.useMemo(()=>{const{filters:n,per_page:r,tab:a,page_number:o,sortings:l,skip_expired_jobs:s}=e;return{per_page:r,tab:a,filters:n||{keyword:""},sortings:l,page_number:o,skip_expired_jobs:s}},[e])},xi={per_page:18,tab:"all",filters:{keyword:""},sortings:[{property:"eligibility",direction:"DESC"}],page_number:1,skip_expired_jobs:!1},ki=q.createSlice({name:"filter",initialState:xi,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.page_number=1},setKeyword:(e,t)=>{e.filters.keyword=t.payload,e.page_number=1},setPageNumber:(e,t)=>{e.page_number=t.payload},setPerPage:(e,t)=>{e.per_page=t.payload,e.page_number=1},setSortings:(e,t)=>{e.sortings=t.payload},setSkipExpiredJobs:(e,t)=>{e.skip_expired_jobs=t.payload},resetFilters:e=>st(Ee({},xi),{tab:e.tab}),updateFiltersFromForm:(e,t)=>{var r;const n=((r=e.filters)==null?void 0:r.keyword)||"";e.filters=Ee({keyword:n},t.payload),e.page_number=1}}}),{setTab:is,setKeyword:as,setPageNumber:os,setPerPage:qf,setSortings:ls,setSkipExpiredJobs:$f,resetFilters:Bf,updateFiltersFromForm:Ni}=ki.actions,ss=ki.reducer,cs=({hasMore:e=!0,isLoading:t=!1,isFetchingMore:n=!1,rootMargin:r="100px",threshold:a=.1}={})=>{const o=G.useDispatch(),l=G.useSelector(d=>{var g,v;return((v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.page_number)||1}),s=i.useRef(null),c=i.useRef(null),u=i.useCallback(()=>{!t&&!n&&e&&o(os(l+1))},[o,l,t,n,e]);return i.useEffect(()=>{const d=s.current;if(c.current&&(d&&c.current.unobserve(d),c.current=null),!d||!e||t||n)return;const g=new IntersectionObserver(v=>{const[_]=v;_.isIntersecting&&u()},{root:null,rootMargin:r,threshold:a});return g.observe(d),c.current=g,()=>{c.current&&d&&(c.current.unobserve(d),c.current=null)}},[u,e,t,n,r,a]),{sentinelRef:i.useCallback(d=>{if(s.current&&c.current&&(c.current.unobserve(s.current),c.current=null),s.current=d,d&&e&&!t&&!n){const g=new IntersectionObserver(v=>{const[_]=v;_.isIntersecting&&u()},{root:null,rootMargin:r,threshold:a});g.observe(d),c.current=g}},[u,e,t,n,r,a])}};var us=i.createContext({});const Pi=us;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}function ds(e){if(Array.isArray(e))return e}function ps(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(p){u=!0,a=p}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}function Mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fs(e,t){if(e){if(typeof e=="string")return Mi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(e,t):void 0}}function ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
27
|
+
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},zg,iI=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(e){return(zg||(zg=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},aI=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,o=t.reducerPath+"/subscriptions",i=null,a=!1,l=t.internalActions,c=l.updateSubscriptionOptions,u=l.unsubscribeQueryResult,d=function(f,m){var p,g,h,v,y,C,x,E,S;if(c.match(m)){var $=m.payload,O=$.queryCacheKey,I=$.requestId,w=$.options;return(p=f==null?void 0:f[O])!=null&&p[I]&&(f[O][I]=w),!0}if(u.match(m)){var N=m.payload,O=N.queryCacheKey,I=N.requestId;return f[O]&&delete f[O][I],!0}if(t.internalActions.removeQueryResult.match(m))return delete f[m.payload.queryCacheKey],!0;if(n.pending.match(m)){var _=m.meta,T=_.arg,I=_.requestId;if(T.subscribe){var M=(h=f[g=T.queryCacheKey])!=null?h:f[g]={};return M[I]=(y=(v=T.subscriptionOptions)!=null?v:M[I])!=null?y:{},!0}}if(n.rejected.match(m)){var D=m.meta,P=D.condition,T=D.arg,I=D.requestId;if(P&&T.subscribe){var M=(x=f[C=T.queryCacheKey])!=null?x:f[C]={};return M[I]=(S=(E=T.subscriptionOptions)!=null?E:M[I])!=null?S:{},!0}}return!1};return function(f,m){var p,g;if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.internalActions.internal_probeSubscription.match(f)){var h=f.payload,v=h.queryCacheKey,y=h.requestId,C=!!((p=r.currentSubscriptions[v])!=null&&p[y]);return[!1,C]}var x=d(r.currentSubscriptions,f);if(x){a||(iI(function(){var O=JSON.parse(JSON.stringify(r.currentSubscriptions)),I=mg(i,function(){return O}),w=I[1];m.next(t.internalActions.subscriptionsUpdated(w)),i=O,a=!1}),a=!0);var E=!!((g=f.type)!=null&&g.startsWith(o)),S=n.rejected.match(f)&&f.meta.condition&&!!f.meta.arg.subscribe,$=!E&&!S;return[$,!1]}return[!0,!1]}};function lI(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.context,i=o.apiUid,a={invalidateTags:We.createAction(t+"/invalidateTags")},l=function(f){return!!f&&typeof f.type=="string"&&f.type.startsWith(t+"/")},c=[oI,JN,ZN,eI,nI,rI],u=function(f){var m=!1,p={currentSubscriptions:{}},g=Gr($n({},e),{internalState:p,refetchQuery:d}),h=c.map(function(C){return C(g)}),v=aI(g),y=tI(g);return function(C){return function(x){m||(m=!0,f.dispatch(r.internalActions.middlewareRegistered(i)));var E=Gr($n({},f),{next:C}),S=f.getState(),$=v(x,E,S),O=$[0],I=$[1],w;if(O?w=C(x):w=I,f.getState()[t]&&(y(x,E,S),l(x)||o.hasRehydrationInfo(x)))for(var N=0,_=h;N<_.length;N++){var T=_[N];T(x,E,S)}return w}}};return{middleware:u,actions:a};function d(f,m,p){return p===void 0&&(p={}),n($n({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:m},p))}}function Po(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Xl([e],t))}var Bg=Symbol(),sI=function(){return{name:Bg,init:function(e,t,n){var r=t.baseQuery,o=t.tagTypes,i=t.reducerPath,a=t.serializeQueryArgs,l=t.keepUnusedDataFor,c=t.refetchOnMountOrArgChange,u=t.refetchOnFocus,d=t.refetchOnReconnect;yN();var f=function(W){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(o.includes(W.type)||console.error("Tag type '"+W.type+"' was used, but not specified in `tagTypes`!")),W};Object.assign(e,{reducerPath:i,endpoints:{},internalActions:{onOnline:Ju,onOffline:Ng,onFocus:Yu,onFocusLost:Og},util:{}});var m=qN({baseQuery:r,reducerPath:i,context:n,api:e,serializeQueryArgs:a}),p=m.queryThunk,g=m.mutationThunk,h=m.patchQueryData,v=m.updateQueryData,y=m.upsertQueryData,C=m.prefetch,x=m.buildMatchThunkActions,E=GN({context:n,queryThunk:p,mutationThunk:g,reducerPath:i,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:d,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:i}}),S=E.reducer,$=E.actions;Po(e.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:y,prefetch:C,resetApiState:$.resetApiState}),Po(e.internalActions,$);var O=lI({reducerPath:i,context:n,queryThunk:p,mutationThunk:g,api:e,assertTagType:f}),I=O.middleware,w=O.actions;Po(e.util,w),Po(e,{reducer:S,middleware:I});var N=UN({serializeQueryArgs:a,reducerPath:i}),_=N.buildQuerySelector,T=N.buildMutationSelector,M=N.selectInvalidatedBy;Po(e.util,{selectInvalidatedBy:M});var D=KN({queryThunk:p,mutationThunk:g,api:e,serializeQueryArgs:a,context:n}),P=D.buildInitiateQuery,A=D.buildInitiateMutation,R=D.getRunningMutationThunk,L=D.getRunningMutationsThunk,j=D.getRunningQueriesThunk,z=D.getRunningQueryThunk,B=D.getRunningOperationPromises,K=D.removalWarning;return Po(e.util,{getRunningOperationPromises:B,getRunningOperationPromise:K,getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueryThunk:z,getRunningQueriesThunk:j}),{name:Bg,injectEndpoint:function(W,k){var V,Q,J=e;(Q=(V=J.endpoints)[W])!=null||(V[W]={}),Ig(k)?Po(J.endpoints[W],{name:W,select:_(W,k),initiate:P(W,k)},x(p,W)):VN(k)&&Po(J.endpoints[W],{name:W,select:T(),initiate:A(W)},x(g,W))}}}}},cI=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},uI=Object.defineProperty,dI=Object.defineProperties,fI=Object.getOwnPropertyDescriptors,kg=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,pI=Object.prototype.propertyIsEnumerable,Fg=function(e,t,n){return t in e?uI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},vo=function(e,t){for(var n in t||(t={}))mI.call(t,n)&&Fg(e,n,t[n]);if(kg)for(var r=0,o=kg(t);r<o.length;r++){var n=o[r];pI.call(t,n)&&Fg(e,n,t[n])}return e},es=function(e,t){return dI(e,fI(t))};function Hg(e,t,n,r){var o=b.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),i=b.useRef(o);return b.useEffect(function(){i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}var nd=Symbol();function rd(e){var t=b.useRef(e);return b.useEffect(function(){wt.shallowEqual(t.current,e)||(t.current=e)},[e]),wt.shallowEqual(t.current,e)?t.current:e}var ts=WeakMap?new WeakMap:void 0,vI=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=ts==null?void 0:ts.get(n);if(typeof o=="string")r=o;else{var i=JSON.stringify(n,function(a,l){return We.isPlainObject(l)?Object.keys(l).sort().reduce(function(c,u){return c[u]=l[u],c},{}):l});We.isPlainObject(n)&&(ts==null||ts.set(n,i)),r=i}return t+"("+r+")"},gI=typeof window!="undefined"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,hI=function(e){return e},bI=function(e){return e.isUninitialized?es(vo({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:cn.pending}):e};function yI(e){var t=e.api,n=e.moduleOptions,r=n.batch,o=n.useDispatch,i=n.useSelector,a=n.useStore,l=n.unstable__sideEffectsInRender,c=e.serializeQueryArgs,u=e.context,d=l?function(h){return h()}:b.useEffect;return{buildQueryHooks:p,buildMutationHook:g,usePrefetch:m};function f(h,v,y){if(v!=null&&v.endpointName&&h.isUninitialized){var C=v.endpointName,x=u.endpointDefinitions[C];c({queryArgs:v.originalArgs,endpointDefinition:x,endpointName:C})===c({queryArgs:y,endpointDefinition:x,endpointName:C})&&(v=void 0)}var E=h.isSuccess?h.data:v==null?void 0:v.data;E===void 0&&(E=h.data);var S=E!==void 0,$=h.isLoading,O=!S&&$,I=h.isSuccess||$&&S;return es(vo({},h),{data:E,currentData:h.data,isFetching:$,isLoading:O,isSuccess:I})}function m(h,v){var y=o(),C=rd(v);return b.useCallback(function(x,E){return y(t.util.prefetch(h,x,vo(vo({},C),E)))},[h,y,C])}function p(h){var v=function(x,E){var S=E===void 0?{}:E,$=S.refetchOnReconnect,O=S.refetchOnFocus,I=S.refetchOnMountOrArgChange,w=S.skip,N=w===void 0?!1:w,_=S.pollingInterval,T=_===void 0?0:_,M=t.endpoints[h].initiate,D=o(),P=Hg(N?Jo:x,vI,u.endpointDefinitions[h],h),A=rd({refetchOnReconnect:$,refetchOnFocus:O,pollingInterval:T}),R=b.useRef(!1),L=b.useRef(),j=L.current||{},z=j.queryCacheKey,B=j.requestId,K=!1;if(z&&B){var W=D(t.internalActions.internal_probeSubscription({queryCacheKey:z,requestId:B}));if(process.env.NODE_ENV!=="production"&&typeof W!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+t.reducerPath+`" has not been added to the store.
|
|
28
|
+
You must add the middleware for RTK-Query to function correctly!`);K=!!W}var k=!K&&R.current;return d(function(){R.current=K}),d(function(){k&&(L.current=void 0)},[k]),d(function(){var V,Q=L.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(k),P===Jo){Q==null||Q.unsubscribe(),L.current=void 0;return}var J=(V=L.current)==null?void 0:V.subscriptionOptions;if(!Q||Q.arg!==P){Q==null||Q.unsubscribe();var Y=D(M(P,{subscriptionOptions:A,forceRefetch:I}));L.current=Y}else A!==J&&Q.updateSubscriptionOptions(A)},[D,M,I,P,A,k]),b.useEffect(function(){return function(){var V;(V=L.current)==null||V.unsubscribe(),L.current=void 0}},[]),b.useMemo(function(){return{refetch:function(){var V;if(!L.current)throw new Error("Cannot refetch a query that has not been started yet.");return(V=L.current)==null?void 0:V.refetch()}}},[])},y=function(x){var E=x===void 0?{}:x,S=E.refetchOnReconnect,$=E.refetchOnFocus,O=E.pollingInterval,I=O===void 0?0:O,w=t.endpoints[h].initiate,N=o(),_=b.useState(nd),T=_[0],M=_[1],D=b.useRef(),P=rd({refetchOnReconnect:S,refetchOnFocus:$,pollingInterval:I});d(function(){var L,j,z=(L=D.current)==null?void 0:L.subscriptionOptions;P!==z&&((j=D.current)==null||j.updateSubscriptionOptions(P))},[P]);var A=b.useRef(P);d(function(){A.current=P},[P]);var R=b.useCallback(function(L,j){j===void 0&&(j=!1);var z;return r(function(){var B;(B=D.current)==null||B.unsubscribe(),D.current=z=N(w(L,{subscriptionOptions:A.current,forceRefetch:!j})),M(L)}),z},[N,w]);return b.useEffect(function(){return function(){var L;(L=D==null?void 0:D.current)==null||L.unsubscribe()}},[]),b.useEffect(function(){T!==nd&&!D.current&&R(T,!0)},[T,R]),b.useMemo(function(){return[R,T]},[R,T])},C=function(x,E){var S=E===void 0?{}:E,$=S.skip,O=$===void 0?!1:$,I=S.selectFromResult,w=t.endpoints[h].select,N=Hg(O?Jo:x,c,u.endpointDefinitions[h],h),_=b.useRef(),T=b.useMemo(function(){return We.createSelector([w(N),function(R,L){return L},function(R){return N}],f)},[w,N]),M=b.useMemo(function(){return I?We.createSelector([T],I):T},[T,I]),D=i(function(R){return M(R,_.current)},wt.shallowEqual),P=a(),A=T(P.getState(),_.current);return gI(function(){_.current=A},[A]),D};return{useQueryState:C,useQuerySubscription:v,useLazyQuerySubscription:y,useLazyQuery:function(x){var E=y(x),S=E[0],$=E[1],O=C($,es(vo({},x),{skip:$===nd})),I=b.useMemo(function(){return{lastArg:$}},[$]);return b.useMemo(function(){return[S,O,I]},[S,O,I])},useQuery:function(x,E){var S=v(x,E),$=C(x,vo({selectFromResult:x===Jo||E!=null&&E.skip?void 0:bI},E)),O=$.data,I=$.status,w=$.isLoading,N=$.isSuccess,_=$.isError,T=$.error;return b.useDebugValue({data:O,status:I,isLoading:w,isSuccess:N,isError:_,error:T}),b.useMemo(function(){return vo(vo({},$),S)},[$,S])}}}function g(h){return function(v){var y=v===void 0?{}:v,C=y.selectFromResult,x=C===void 0?hI:C,E=y.fixedCacheKey,S=t.endpoints[h],$=S.select,O=S.initiate,I=o(),w=b.useState(),N=w[0],_=w[1];b.useEffect(function(){return function(){N!=null&&N.arg.fixedCacheKey||N==null||N.reset()}},[N]);var T=b.useCallback(function(Q){var J=I(O(Q,{fixedCacheKey:E}));return _(J),J},[I,O,E]),M=(N||{}).requestId,D=b.useMemo(function(){return We.createSelector([$({fixedCacheKey:E,requestId:N==null?void 0:N.requestId})],x)},[$,N,x,E]),P=i(D,wt.shallowEqual),A=E==null?N==null?void 0:N.arg.originalArgs:void 0,R=b.useCallback(function(){r(function(){N&&_(void 0),E&&I(t.internalActions.removeMutationResult({requestId:M,fixedCacheKey:E}))})},[I,E,N,M]),L=P.endpointName,j=P.data,z=P.status,B=P.isLoading,K=P.isSuccess,W=P.isError,k=P.error;b.useDebugValue({endpointName:L,data:j,status:z,isLoading:B,isSuccess:K,isError:W,error:k});var V=b.useMemo(function(){return es(vo({},P),{originalArgs:A,reset:R})},[P,A,R]);return b.useMemo(function(){return[T,V]},[T,V])}}}var ns;(function(e){e.query="query",e.mutation="mutation"})(ns||(ns={}));function CI(e){return e.type===ns.query}function SI(e){return e.type===ns.mutation}function od(e){return e.replace(e[0],e[0].toUpperCase())}function rs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,cI([e],t))}var xI=Symbol(),EI=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?wt.batch:n,o=t.useDispatch,i=o===void 0?wt.useDispatch:o,a=t.useSelector,l=a===void 0?wt.useSelector:a,c=t.useStore,u=c===void 0?wt.useStore:c,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:xI,init:function(m,p,g){var h=p.serializeQueryArgs,v=m,y=yI({api:m,moduleOptions:{batch:r,useDispatch:i,useSelector:l,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:h,context:g}),C=y.buildQueryHooks,x=y.buildMutationHook,E=y.usePrefetch;return rs(v,{usePrefetch:E}),rs(g,{batch:r}),{injectEndpoint:function(S,$){if(CI($)){var O=C(S),I=O.useQuery,w=O.useLazyQuery,N=O.useLazyQuerySubscription,_=O.useQueryState,T=O.useQuerySubscription;rs(v.endpoints[S],{useQuery:I,useLazyQuery:w,useLazyQuerySubscription:N,useQueryState:_,useQuerySubscription:T}),m["use"+od(S)+"Query"]=I,m["useLazy"+od(S)+"Query"]=w}else if(SI($)){var M=x(S);rs(v.endpoints[S],{useMutation:M}),m["use"+od(S)+"Mutation"]=M}}}}}},$I=XN(sI(),EI());let id="http://localhost:8000";const Xr=$I({reducerPath:"careerHubApi",baseQuery:(e,t,n)=>ar(this,null,function*(){return HN({baseUrl:id,prepareHeaders:o=>{if(o.set("Content-Type","application/json"),typeof window!="undefined"){const i=document.querySelector('meta[name="csrf-token"]');i&&o.set("X-CSRF-Token",i.content)}return o}})(e,t,n)}),tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),wI=e=>{e!==id&&(id=e)},OI=Xr.injectEndpoints({endpoints:e=>({createApplication:e.mutation({query:({jobProfileId:t,utmMedium:n,utmSource:r,currentTab:o,utmId:i})=>({url:"/api/v3/careers-hub/applications/",method:"POST",body:{job_profile_id:t,medium:n!=null?n:"ch",origin:r!=null?r:"direct",tab_name:o,action_type:i!=null?i:"apply"}})}),getApplication:e.query({query:({applicationId:t,jobProfileId:n,status:r})=>({url:`/api/v3/careers-hub/applications/${t}`,params:{job_profile_id:n,step_name:r}})})})}),{useCreateApplicationMutation:NI,useGetApplicationQuery:II}=OI,Vg=({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:o})=>{const[i,a]=b.useState(null),[l,c]=b.useState(null),[u,{isLoading:d,isError:f,error:m,isSuccess:p}]=NI(),g=b.useCallback(()=>ar(this,null,function*(){var v,y,C,x;const h=yield u({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:o});a((y=(v=h==null?void 0:h.data)==null?void 0:v.user_company)==null?void 0:y.id),c((x=(C=h==null?void 0:h.data)==null?void 0:C.user_company)==null?void 0:x.status)}),[u,e,t,n,r,o]);return b.useEffect(()=>{g()},[g]),{retry:g,data:{status:l,applicationId:i},isLoading:d,isError:f,error:m,isSuccess:p}},Wg=({jobProfileId:e,applicationId:t,status:n})=>{var u;const{data:r,isLoading:o,isError:i,error:a,isSuccess:l,refetch:c}=II({applicationId:t,jobProfileId:e,status:n},{skip:!t||!n});return{retry:c,data:(u=r==null?void 0:r.details)==null?void 0:u.data,isLoading:o,isError:i,error:a,isSuccess:l}};function _I(e){return e.map(t=>({label:t,value:t}))}const ad={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!1,isNoticePeriodAvailable:!1,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},PI={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},TI={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},MI={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},wa=_I(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),Kg=({currentTab:e,isActive:t,jobData:n})=>{const r=b.useMemo(()=>ad[e]||ad.all,[e]),o=b.useMemo(()=>!0,[]),i=b.useMemo(()=>n.expiry?new Date(n.expiry)<new Date||n.jobProfileStatus!=="active":!1,[n.expiry,n.jobProfileStatus]);return{cardConfig:r,shouldShowBody:o,isExpired:i}},os=()=>{const e=wt.useSelector(n=>{var r;return((r=n.scalantCareerHub)==null?void 0:r.filter)||{}});return b.useMemo(()=>{const{filters:n,per_page:r,tab:o,page_number:i,sortings:a,skip_expired_jobs:l}=e;return{per_page:r,tab:o,filters:n||{keyword:""},sortings:a,page_number:i,skip_expired_jobs:l}},[e])},qg={per_page:18,tab:"all",filters:{keyword:""},sortings:[{property:"eligibility",direction:"DESC"}],page_number:1,skip_expired_jobs:!1},Gg=We.createSlice({name:"filter",initialState:qg,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.page_number=1},setKeyword:(e,t)=>{e.filters.keyword=t.payload,e.page_number=1},setPageNumber:(e,t)=>{e.page_number=t.payload},setPerPage:(e,t)=>{e.per_page=t.payload,e.page_number=1},setSortings:(e,t)=>{e.sortings=t.payload},setSkipExpiredJobs:(e,t)=>{e.skip_expired_jobs=t.payload},resetFilters:e=>ba(ur({},qg),{tab:e.tab}),updateFiltersFromForm:(e,t)=>{var r;const n=((r=e.filters)==null?void 0:r.keyword)||"";e.filters=ur({keyword:n},t.payload),e.page_number=1}}}),{setTab:DI,setKeyword:AI,setPageNumber:RI,setPerPage:lU,setSortings:jI,setSkipExpiredJobs:sU,resetFilters:cU,updateFiltersFromForm:Ug}=Gg.actions,LI=Gg.reducer,zI=({hasMore:e=!0,isLoading:t=!1,isFetchingMore:n=!1,rootMargin:r="100px",threshold:o=.1}={})=>{const i=wt.useDispatch(),a=wt.useSelector(f=>{var m,p;return((p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.page_number)||1}),l=b.useRef(null),c=b.useRef(null),u=b.useCallback(()=>{!t&&!n&&e&&i(RI(a+1))},[i,a,t,n,e]);return b.useEffect(()=>{const f=l.current;if(c.current&&(f&&c.current.unobserve(f),c.current=null),!f||!e||t||n)return;const m=new IntersectionObserver(p=>{const[g]=p;g.isIntersecting&&u()},{root:null,rootMargin:r,threshold:o});return m.observe(f),c.current=m,()=>{c.current&&f&&(c.current.unobserve(f),c.current=null)}},[u,e,t,n,r,o]),{sentinelRef:b.useCallback(f=>{if(l.current&&c.current&&(c.current.unobserve(l.current),c.current=null),l.current=f,f&&e&&!t&&!n){const m=new IntersectionObserver(p=>{const[g]=p;g.isIntersecting&&u()},{root:null,rootMargin:r,threshold:o});m.observe(f),c.current=m}},[u,e,t,n,r,o])}};var BI=b.createContext({});const ld=BI;function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}function Xg(e){if(Array.isArray(e))return e}function kI(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cd(e,t){if(e){if(typeof e=="string")return sd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sd(e,t):void 0}}function Qg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return Xg(e)||kI(e,t)||cd(e,t)||Qg()}function He(e){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(e)}function FI(e,t){if(He(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(He(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yg(e){var t=FI(e,"string");return He(t)=="symbol"?t:t+""}function H(e,t,n){return(t=Yg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tt(e,t){if(e==null)return{};var n,r,o=HI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jg={exports:{}};/*!
|
|
30
30
|
Copyright (c) 2018 Jed Watson.
|
|
31
31
|
Licensed under the MIT License (MIT), see
|
|
32
32
|
http://jedwatson.github.io/classnames
|
|
33
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=a(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)t.call(o,s)&&o[s]&&(l=a(l,s));return l}function a(o,l){return l?o?o+" "+l:o+l:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Li);var ys=Li.exports;const ye=Ae(ys),ve=Math.round;function Jn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Fi=(e,t,n)=>n===0?e:e/100;function ht(e,t){const n=t||255;return e>n?n:e<0?0:e}class at{constructor(t){ge(this,"isValid",!0),ge(this,"r",0),ge(this,"g",0),ge(this,"b",0),ge(this,"a",1),ge(this,"_h",void 0),ge(this,"_s",void 0),ge(this,"_l",void 0),ge(this,"_v",void 0),ge(this,"_max",void 0),ge(this,"_min",void 0),ge(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 a=function(o){return r.startsWith(o)};const r=t.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(t instanceof at)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=ht(t.r),this.g=ht(t.g),this.b=ht(t.b),this.a=typeof t.a=="number"?ht(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(o){const l=o/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ve(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=="undefined"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(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 a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],l={r:ve(o("r")),g:ve(o("g")),b:ve(o("b")),a:ve(o("a")*100)/100};return this._c(l)}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),a=o=>ve((this[o]*this.a+n[o]*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(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 a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ve(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ve(this.getSaturation()*100),r=ve(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 a=this.clone();return a[t]=ht(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||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:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=ve(r*255);this.r=g,this.g=g,this.b=g}let o=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,p=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,l=p):c>=1&&c<2?(o=p,l=u):c>=2&&c<3?(l=u,s=p):c>=3&&c<4?(l=p,s=u):c>=4&&c<5?(o=p,s=u):c>=5&&c<6&&(o=u,s=p);const d=r-u/2;this.r=ve((o+d)*255),this.g=ve((l+d)*255),this.b=ve((s+d)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ve(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=ve(r*(1-n)*255),p=ve(r*(1-n*c)*255),d=ve(r*(1-n*(1-c))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=p,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=p;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=p;break}}fromHsvString(t){const n=Jn(t,Fi);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Jn(t,Fi);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Jn(t,(r,a)=>a.includes("%")?ve(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vt=2,qi=.16,bs=.05,_s=.05,Es=.15,$i=5,Bi=4,Ss=[{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 zi(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Vt*t:Math.round(e.h)+Vt*t:r=n?Math.round(e.h)+Vt*t:Math.round(e.h)-Vt*t,r<0?r+=360:r>=360&&(r-=360),r}function Hi(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-qi*t:t===Bi?r=e.s+qi:r=e.s+bs*t,r>1&&(r=1),n&&t===$i&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Qi(e,t,n){var r;return n?r=e.v+_s*t:r=e.v-Es*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Cs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new at(e),a=r.toHsv(),o=$i;o>0;o-=1){var l=new at({h:zi(a,o,!0),s:Hi(a,o,!0),v:Qi(a,o,!0)});n.push(l)}n.push(r);for(var s=1;s<=Bi;s+=1){var c=new at({h:zi(a,s),s:Hi(a,s),v:Qi(a,s)});n.push(c)}return t.theme==="dark"?Ss.map(function(u){var p=u.index,d=u.amount;return new at(t.backgroundColor||"#141414").mix(n[p],d).toHexString()}):n.map(function(u){return u.toHexString()})}var Un=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Un.primary=Un[5];function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(r){ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ts(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Os(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Ji="data-rc-order",Ui="data-rc-priority",As="rc-util-key",Wn=new Map;function Wi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):As}function Kn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ws(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Yn(e){return Array.from((Wn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ts())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,l=ws(r),s=l==="prependQueue",c=document.createElement("style");c.setAttribute(Ji,l),s&&o&&c.setAttribute(Ui,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Kn(t),p=u.firstChild;if(r){if(s){var d=(t.styles||Yn(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(Ji)))return!1;var v=Number(g.getAttribute(Ui)||0);return o>=v});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,p)}else u.appendChild(c);return c}function Is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Kn(t);return(t.styles||Yn(n)).find(function(r){return r.getAttribute(Wi(t))===e})}function xs(e,t){var n=Wn.get(e);if(!n||!Os(document,n)){var r=Ki("",t),a=r.parentNode;Wn.set(e,a),e.removeChild(r)}}function ks(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kn(n),a=Yn(r),o=Ne(Ne({},n),{},{styles:a});xs(r,o);var l=Is(t,o);if(l){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&l.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;l.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var p=Ki(e,o);return p.setAttribute(Wi(o),t),p}function Yi(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ns(e){return Yi(e)instanceof ShadowRoot}function Ps(e){return Ns(e)?Yi(e):null}var Gn={},Rn=[],Ms=function(t){Rn.push(t)};function Ds(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Rn.reduce(function(r,a){return a(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function js(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Rn.reduce(function(r,a){return a(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ls(){Gn={}}function Gi(e,t,n){!t&&!Gn[n]&&(e(!1,n),Gn[n]=!0)}function Jt(e,t){Gi(Ds,e,t)}function Fs(e,t){Gi(js,e,t)}Jt.preMessage=Ms,Jt.resetWarned=Ls,Jt.noteOnce=Fs;function qs(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $s(e,t){Jt(e,"[@ant-design/icons] ".concat(t))}function Ri(e){return Ge(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ge(e.icon)==="object"||typeof e.icon=="function")}function Zi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[qs(n)]=r}return t},{})}function Zn(e,t,n){return n?i.createElement(e.tag,Ne(Ne({key:t},Zi(e.attrs)),n),(e.children||[]).map(function(r,a){return Zn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):i.createElement(e.tag,Ne({key:t},Zi(e.attrs)),(e.children||[]).map(function(r,a){return Zn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Xi(e){return Cs(e)[0]}function ea(e){return e?Array.isArray(e)?e:[e]:[]}var Bs=`
|
|
33
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Jg);var VI=Jg.exports;const U=Xo(VI),kn=Math.round;function ud(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Zg=(e,t,n)=>n===0?e:e/100;function Oa(e,t){const n=t||255;return e>n?n:e<0?0:e}class Bt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(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 o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Bt)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=Oa(t.r),this.g=Oa(t.g),this.b=Oa(t.b),this.a=typeof t.a=="number"?Oa(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=kn(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=="undefined"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(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 o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],a={r:kn(i("r")),g:kn(i("g")),b:kn(i("b")),a:kn(i("a")*100)/100};return this._c(a)}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),o=i=>kn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=kn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=kn(this.getSaturation()*100),r=kn(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 o=this.clone();return o[t]=Oa(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],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:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=kn(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,a=d):c>=1&&c<2?(i=d,a=u):c>=2&&c<3?(a=u,l=d):c>=3&&c<4?(a=d,l=u):c>=4&&c<5?(i=d,l=u):c>=5&&c<6&&(i=u,l=d);const f=r-u/2;this.r=kn((i+f)*255),this.g=kn((a+f)*255),this.b=kn((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=kn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,u=kn(r*(1-n)*255),d=kn(r*(1-n*c)*255),f=kn(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=ud(t,Zg);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ud(t,Zg);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ud(t,(r,o)=>o.includes("%")?kn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var is=2,eh=.16,WI=.05,KI=.05,qI=.15,th=5,nh=4,GI=[{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 rh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-is*t:Math.round(e.h)+is*t:r=n?Math.round(e.h)+is*t:Math.round(e.h)-is*t,r<0?r+=360:r>=360&&(r-=360),r}function oh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-eh*t:t===nh?r=e.s+eh:r=e.s+WI*t,r>1&&(r=1),n&&t===th&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ih(e,t,n){var r;return n?r=e.v+KI*t:r=e.v-qI*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Na(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Bt(e),o=r.toHsv(),i=th;i>0;i-=1){var a=new Bt({h:rh(o,i,!0),s:oh(o,i,!0),v:ih(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=nh;l+=1){var c=new Bt({h:rh(o,l),s:oh(o,l),v:ih(o,l)});n.push(c)}return t.theme==="dark"?GI.map(function(u){var d=u.index,f=u.amount;return new Bt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var wi={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"},dd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];dd.primary=dd[5];var fd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];fd.primary=fd[5];var md=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];md.primary=md[5];var as=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];as.primary=as[5];var pd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];pd.primary=pd[5];var vd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];vd.primary=vd[5];var gd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gd.primary=gd[5];var hd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hd.primary=hd[5];var ls=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ls.primary=ls[5];var bd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bd.primary=bd[5];var yd=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];yd.primary=yd[5];var Cd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Cd.primary=Cd[5];var Sd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sd.primary=Sd[5];var xd={red:dd,volcano:fd,orange:md,gold:as,yellow:pd,lime:vd,green:gd,cyan:hd,blue:ls,geekblue:bd,purple:yd,magenta:Cd,grey:Sd};function ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ah(Object(n),!0).forEach(function(r){H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function In(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Ed(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var lh="data-rc-order",sh="data-rc-priority",UI="rc-util-key",$d=new Map;function ch(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):UI}function ss(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function XI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wd(e){return Array.from(($d.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!In())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=XI(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(lh,a),l&&i&&c.setAttribute(sh,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=ss(t),d=u.firstChild;if(r){if(l){var f=(t.styles||wd(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(lh)))return!1;var p=Number(m.getAttribute(sh)||0);return i>=p});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function dh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ss(t);return(t.styles||wd(n)).find(function(r){return r.getAttribute(ch(t))===e})}function Ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dh(e,t);if(n){var r=ss(t);r.removeChild(n)}}function QI(e,t){var n=$d.get(e);if(!n||!Ed(document,n)){var r=uh("",t),o=r.parentNode;$d.set(e,o),e.removeChild(r)}}function go(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ss(n),o=wd(r),i=q(q({},n),{},{styles:o});QI(r,i);var a=dh(t,i);if(a){var l,c;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=uh(e,i);return d.setAttribute(ch(i),t),d}function fh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function YI(e){return fh(e)instanceof ShadowRoot}function cs(e){return YI(e)?fh(e):null}var Od={},Nd=[],JI=function(t){Nd.push(t)};function ho(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Nd.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function ZI(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Nd.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function mh(){Od={}}function ph(e,t,n){!t&&!Od[n]&&(e(!1,n),Od[n]=!0)}function Ue(e,t){ph(ho,e,t)}function Id(e,t){ph(ZI,e,t)}Ue.preMessage=JI,Ue.resetWarned=mh,Ue.noteOnce=Id;function e_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function t_(e,t){Ue(e,"[@ant-design/icons] ".concat(t))}function vh(e){return He(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(He(e.icon)==="object"||typeof e.icon=="function")}function gh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[e_(n)]=r}return t},{})}function _d(e,t,n){return n?b.createElement(e.tag,q(q({key:t},gh(e.attrs)),n),(e.children||[]).map(function(r,o){return _d(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):b.createElement(e.tag,q({key:t},gh(e.attrs)),(e.children||[]).map(function(r,o){return _d(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function hh(e){return Na(e)[0]}function bh(e){return e?Array.isArray(e)?e:[e]:[]}var n_=`
|
|
34
34
|
.anticon {
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
align-items: center;
|
|
@@ -85,6 +85,330 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
85
85
|
transform: rotate(360deg);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
89
|
-
`).concat(
|
|
90
|
-
}`)),i.useEffect(function(){var s=t.current,c=Ps(s);ks(l,"@ant-design-icons",{prepend:!o,csp:r,attachTo:c})},[])},Hs=["icon","className","onClick","style","primaryColor","secondaryColor"],gt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qs(e){var t=e.primaryColor,n=e.secondaryColor;gt.primaryColor=t,gt.secondaryColor=n||Xi(t),gt.calculated=!!n}function Vs(){return Ne({},gt)}var Ut=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,l=t.primaryColor,s=t.secondaryColor,c=ji(t,Hs),u=Q.useRef(),p=gt;if(l&&(p={primaryColor:l,secondaryColor:s||Xi(l)}),zs(u),$s(Ri(n),"icon should be icon definiton, but got ".concat(n)),!Ri(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Ne(Ne({},d),{},{icon:d.icon(p.primaryColor,p.secondaryColor)})),Zn(d.icon,"svg-".concat(d.name),Ne(Ne({className:r,onClick:a,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Ut.displayName="IconReact",Ut.getTwoToneColors=Vs,Ut.setTwoToneColors=Qs;const Xn=Ut;function ta(e){var t=ea(e),n=Di(t,2),r=n[0],a=n[1];return Xn.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Js(){var e=Xn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Us=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ta(Un.primary);var Wt=Q.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=ji(e,Us),p=Q.useContext(Pi),d=p.prefixCls,g=d===void 0?"anticon":d,v=p.rootClassName,_=ye(v,g,ge(ge({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),h=l;h===void 0&&s&&(h=-1);var E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,A=ea(c),T=Di(A,2),y=T[0],b=T[1];return Q.createElement("span",re({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:_}),Q.createElement(Xn,{icon:r,primaryColor:y,secondaryColor:b,style:E}))});Wt.displayName="AntdIcon",Wt.getTwoToneColor=Js,Wt.setTwoToneColor=ta;const ae=Wt;var Ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const Ks=Ws;var Ys=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ks}))},na=Q.forwardRef(Ys);process.env.NODE_ENV!=="production"&&(na.displayName="AlertFilled");const er=na;var Gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const Rs=Gs;var Zs=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Rs}))},ra=Q.forwardRef(Zs);process.env.NODE_ENV!=="production"&&(ra.displayName="BellOutlined");const Xs=ra;var ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const tc=ec;var nc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:tc}))},ia=Q.forwardRef(nc);process.env.NODE_ENV!=="production"&&(ia.displayName="CheckCircleFilled");const aa=ia;var rc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const ic=rc;var ac=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:ic}))},oa=Q.forwardRef(ac);process.env.NODE_ENV!=="production"&&(oa.displayName="CheckCircleOutlined");const la=oa;var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const lc=oc;var sc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:lc}))},sa=Q.forwardRef(sc);process.env.NODE_ENV!=="production"&&(sa.displayName="ClockCircleOutlined");const ca=sa;var cc={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:n}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:t}}]}},name:"clock-circle",theme:"twotone"};const uc=cc;var dc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:uc}))},ua=Q.forwardRef(dc);process.env.NODE_ENV!=="production"&&(ua.displayName="ClockCircleTwoTone");const pc=ua;var fc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const mc=fc;var vc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:mc}))},da=Q.forwardRef(vc);process.env.NODE_ENV!=="production"&&(da.displayName="CloseCircleOutlined");const hc=da;var gc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const yc=gc;var bc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:yc}))},pa=Q.forwardRef(bc);process.env.NODE_ENV!=="production"&&(pa.displayName="CloseOutlined");const fa=pa;var _c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ec=_c;var Sc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ec}))},ma=Q.forwardRef(Sc);process.env.NODE_ENV!=="production"&&(ma.displayName="DeleteOutlined");const va=ma;var Cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Tc=Cc;var Oc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Tc}))},ha=Q.forwardRef(Oc);process.env.NODE_ENV!=="production"&&(ha.displayName="DoubleRightOutlined");const Ac=ha;var wc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Ic=wc;var xc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ic}))},ga=Q.forwardRef(xc);process.env.NODE_ENV!=="production"&&(ga.displayName="DownOutlined");const ya=ga;var kc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Nc=kc;var Pc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Nc}))},ba=Q.forwardRef(Pc);process.env.NODE_ENV!=="production"&&(ba.displayName="DownloadOutlined");const Mc=ba;var Dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const jc=Dc;var Lc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:jc}))},_a=Q.forwardRef(Lc);process.env.NODE_ENV!=="production"&&(_a.displayName="EditOutlined");const Ea=_a;var Fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const qc=Fc;var $c=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:qc}))},Sa=Q.forwardRef($c);process.env.NODE_ENV!=="production"&&(Sa.displayName="ExclamationCircleOutlined");const Bc=Sa;var zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const Hc=zc;var Qc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Hc}))},Ca=Q.forwardRef(Qc);process.env.NODE_ENV!=="production"&&(Ca.displayName="FilterOutlined");const Vc=Ca;var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Uc=Jc;var Wc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Uc}))},Ta=Q.forwardRef(Wc);process.env.NODE_ENV!=="production"&&(Ta.displayName="InfoCircleFilled");const Kc=Ta;var Yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const Gc=Yc;var Rc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Gc}))},Oa=Q.forwardRef(Rc);process.env.NODE_ENV!=="production"&&(Oa.displayName="LinkOutlined");const Aa=Oa;var Zc={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:n}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:n}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:t}}]}},name:"mail",theme:"twotone"};const Xc=Zc;var eu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Xc}))},wa=Q.forwardRef(eu);process.env.NODE_ENV!=="production"&&(wa.displayName="MailTwoTone");const tu=wa;var nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ru=nu;var iu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:ru}))},Ia=Q.forwardRef(iu);process.env.NODE_ENV!=="production"&&(Ia.displayName="PlusOutlined");const au=Ia;var ou={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const lu=ou;var su=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:lu}))},xa=Q.forwardRef(su);process.env.NODE_ENV!=="production"&&(xa.displayName="RiseOutlined");const ka=xa;var cu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const uu=cu;var du=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:uu}))},Na=Q.forwardRef(du);process.env.NODE_ENV!=="production"&&(Na.displayName="RocketOutlined");const pu=Na;var fu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const mu=fu;var vu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:mu}))},Pa=Q.forwardRef(vu);process.env.NODE_ENV!=="production"&&(Pa.displayName="SaveOutlined");const hu=Pa;var gu={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const yu=gu;var bu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:yu}))},Ma=Q.forwardRef(bu);process.env.NODE_ENV!=="production"&&(Ma.displayName="SaveTwoTone");const Da=Ma;var _u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Eu=_u;var Su=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Eu}))},ja=Q.forwardRef(Su);process.env.NODE_ENV!=="production"&&(ja.displayName="SearchOutlined");const La=ja;var Cu={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:n}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"};const Tu=Cu;var Ou=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Tu}))},Fa=Q.forwardRef(Ou);process.env.NODE_ENV!=="production"&&(Fa.displayName="StarTwoTone");const Au=Fa;var wu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const Iu=wu;var xu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Iu}))},qa=Q.forwardRef(xu);process.env.NODE_ENV!=="production"&&(qa.displayName="UnlockOutlined");const ku=qa;var Nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const Pu=Nu;var Mu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Pu}))},$a=Q.forwardRef(Mu);process.env.NODE_ENV!=="production"&&($a.displayName="WarningFilled");const Du=$a,ot={APPLICATION_FORM:"application_form",SAVED:"Saved",WITHDRAWN:"Application Withdrawn"},Ba={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},tr={relevant:{label:"Unlocked Jobs",icon:ku},all:{label:"All Jobs",icon:ka},saved:{label:"Saved",icon:Mc},applied:{label:"Applied",icon:la}},de={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},ju={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},Kt={eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},Re={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},se={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},za={[se.REALTIME]:"Realtime",[se.DAILY]:"Daily",[se.ALTERNATE_DAY]:"Every alternate day",[se.WEEKLY]:"Weekly"},be={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},Ha={[be.EMAIL]:"On Email",[be.WHATSAPP]:"On Whatsapp",[be.BOTH]:"On Email & Whatsapp"},yt={ACTIVE:"active",INACTIVE:"inactive"},Qa={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},Lu=(e=[])=>{if(!e||e.length===0)return"eligibility";const t=e[0];for(const n of Object.values(Kt))if(n.mapping.property===t.property&&n.mapping.direction===t.direction)return n.value;return"eligibility"},Fu=(e=[],t=[])=>{if(!t||t.length===0)return e;const n=new Set(e.map(a=>a.id)),r=t.filter(a=>!n.has(a.id));return[...e,...r]},qu=(e={},t={})=>Ee(Ee({},e),t),Yt=(e,t=!1,n=!1,r=null)=>{const a=G.useSelector(E=>{var A,T;return((T=(A=E.scalantCareerHub)==null?void 0:A.filter)==null?void 0:T.page_number)||1}),o=G.useSelector(E=>{var A,T;return((T=(A=E.scalantCareerHub)==null?void 0:A.dashboard)==null?void 0:T.processCounts)||{}}),[l,s]=i.useState([]),[c,u]=i.useState({}),p=i.useMemo(()=>(e==null?void 0:e.jobs)||(e==null?void 0:e.results)||[],[e==null?void 0:e.jobs,e==null?void 0:e.results]),d=i.useMemo(()=>(e==null?void 0:e.companiesMap)||{},[e==null?void 0:e.companiesMap]),g=i.useMemo(()=>r||null,[r]),v=i.useMemo(()=>g?o[g]||0:null,[g,o]);i.useEffect(()=>{a===1?(s(p),u(d)):p.length>0&&(s(E=>Fu(E,p)),u(E=>qu(E,d)))},[p,d,a]);const _=i.useMemo(()=>v===null?p.length>0:l.length<v,[v,l.length,p.length]),h=t&&a>1;return{accumulatedJobs:l,accumulatedCompaniesMap:c,hasMore:_,isFetchingMore:h,isLoading:n&&a===1}},Gt=ke.injectEndpoints({endpoints:e=>({getCompanies:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:t}}),transformResponse:t=>(t.data||[]).map(r=>({id:r.id,value:r.attributes.name})),providesTags:["FilterOptions"]}),getTitles:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"title",q:t}}),transformResponse:t=>{const n=(t.data||[]).map(a=>({id:a.id,value:a.attributes.title||a.attributes.name}));let r={};return n.forEach(a=>{r[a.value]=a.value}),Object.keys(r).map(a=>({key:a,value:r[a]}))},providesTags:["FilterOptions"]}),getExperienceSkills:e.query({query:t=>({url:"/user/skills/all",params:{prefix_q:t}}),transformResponse:t=>(t.all_skills||[]).map(r=>({skill_id:r.skill_id,key:r.key,skill_type:r.skill_type})).filter(r=>r.key&&r.skill_id&&r.skill_type).map(r=>({key:r.skill_id,value:r.key,type:r.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery:$u,useGetTitlesQuery:Bu,useGetExperienceSkillsQuery:zu}=Gt,He=(e,t,n=t)=>!e||!Array.isArray(e)?[]:e.map(r=>({key:r[t],value:r[n]})),Va=new Array(5).fill(1).map((e,t)=>({value:(e+t)*5,label:`>= ${(e+t)*5} Lakhs`})),Ja=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],Ua=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],Hu=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],Qu=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],Vu=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],Ju=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],Uu=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],Wu=new Array(3).fill(1).map((e,t)=>({value:((e+t+1)*30).toString(),label:`greater than ${e+t+1} Months`})),Ku=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...Wu],Ze={minCtcOptions:Va,minCtcUSOptions:Ja,getMinCtcOptions:e=>e?Ja:Va,mockInterviewSkillOptions:Ua,datePostedOnOptions:Hu,seniorityLevelOptions:Qu,stipendOptions:Vu,internshipDurationOptions:Ju,jobTypeOptions:Uu,NOTICE_PERIOD_OPTIONS:Ku,convertToSelectOption:He,getProficiencyOptions:e=>e?Object.entries(e).map(([t,n])=>({value:n,label:t})):Ua,getMeritBasedSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.id,label:t.title})),getExperienceSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.subtopic_id,label:t.subtopic,type:t.eligible_class||"SubTopic"}))},Yu={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},Wa=q.createSlice({name:"filterOptions",initialState:Yu,reducers:{setCompanyOptions:(e,t)=>{e.companyOptions=He(t.payload,"id","value")},setTitleOptions:(e,t)=>{e.titleOptions=t.payload},setExperienceSkillOptions:(e,t)=>{e.experienceSkillOptions=t.payload},clearCompanyOptions:e=>{e.companyOptions=[]},clearTitleOptions:e=>{e.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:e=>{e.companyOptions=[],e.titleOptions=[],e.experienceSkillOptions=[]}},extraReducers:e=>{e.addMatcher(Gt.endpoints.getCompanies.matchFulfilled,(t,n)=>{t.companyOptions=He(n.payload,"id","value")}),e.addMatcher(Gt.endpoints.getTitles.matchFulfilled,(t,n)=>{t.titleOptions=n.payload}),e.addMatcher(Gt.endpoints.getExperienceSkills.matchFulfilled,(t,n)=>{const r=n.payload||[],a=t.experienceSkillOptions||[],o=new Map(a.map(l=>[l.key,l]));r.forEach(l=>{o.set(l.key,l)}),t.experienceSkillOptions=Array.from(o.values())})}}),{setCompanyOptions:Jf,setTitleOptions:Uf,setExperienceSkillOptions:Wf,clearCompanyOptions:Gu,clearTitleOptions:Ru,clearExperienceSkillOptions:Zu,clearAllOptions:Xu}=Wa.actions,ed=Wa.reducer,nr=(e,t)=>{const n=i.useRef(null);return i.useCallback((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...r)},t)},[e,t])},td=()=>{const e=G.useDispatch(),[t,n]=i.useState(""),[r,a]=i.useState(""),[o,l]=i.useState(""),{isLoading:s,isFetching:c}=$u(t,{skip:!t||t.length<3}),{isLoading:u,isFetching:p}=Bu(r,{skip:!r||r.length<3}),{isLoading:d,isFetching:g}=zu(o,{skip:!o||o.length<2});i.useEffect(()=>{(!t||t.length<3)&&e(Gu())},[t,e]),i.useEffect(()=>{(!r||r.length<3)&&e(Ru())},[r,e]),i.useEffect(()=>{(!o||o.length<2)&&e(Zu())},[o,e]);const v=i.useCallback(b=>{n(b)},[]),_=nr(v,300),h=i.useCallback(b=>{a(b)},[]),E=nr(h,300),A=i.useCallback(b=>{l(b)},[]),T=nr(A,300),y=i.useCallback((b,f)=>b.map(S=>{const C=f==null?void 0:f.find(x=>x.key===S);return{experience_skill_id:S,skill_type:(C==null?void 0:C.type)||"SubTopic"}}),[]);return{handleCompanySearch:_,handleTitleSearch:E,handleExperienceSkillSearch:T,handleExperienceSkillChange:y,loadingCompanies:s||c,loadingTitles:u||p,loadingExperienceSkills:d||g}},Ka=()=>{const e=G.useSelector(v=>{var _;return((_=v.scalantCareerHub.metaData)==null?void 0:_.meta)||{}}),t=i.useMemo(()=>Ze.jobTypeOptions,[]),n=i.useMemo(()=>He(e.jobCategories||[],"value","label"),[e.jobCategories]),r=i.useMemo(()=>He(e.seniorityLevels||[],"value","label"),[e.seniorityLevels]),a=i.useMemo(()=>He(e.companyCategories||[],"value","label"),[e.companyCategories]),o=i.useMemo(()=>He(e.jobLocations||[],"label"),[e.jobLocations]),l=i.useMemo(()=>He(e.meritBasedSkills||[],"id","title"),[e.meritBasedSkills]),s=i.useMemo(()=>Ze.getMinCtcOptions(!1),[]),c=i.useMemo(()=>Ze.stipendOptions,[]),u=i.useMemo(()=>Ze.internshipDurationOptions,[]),p=i.useMemo(()=>Ze.NOTICE_PERIOD_OPTIONS,[]),d=i.useMemo(()=>Ze.datePostedOnOptions,[]),g=i.useMemo(()=>Ze.mockInterviewSkillOptions,[]);return{jobTypes:t,functions:n,seniorityLevels:r,companyCategories:a,locations:o,mbeSkills:l,ctcRanges:s,stipendRanges:c,durationRanges:u,noticePeriods:p,datePostedOptions:d,skillRatings:g}};function rr({applicationData:e}){switch(e.status){case ot.APPLICATION_FORM:return i.createElement(i.Fragment,null,"Application Form");default:return null}}rr.propTypes={applicationData:I.object.isRequired};function Ya({jobProfileId:e,applicationId:t,status:n}){const{data:r,isLoading:a}=wi({jobProfileId:e,applicationId:t,status:n});return a?i.createElement("div",null,"Loading..."):i.createElement(rr,{applicationData:r||{status:n}})}Ya.propTypes={jobProfileId:I.number.isRequired,applicationId:I.number,status:I.string};const bt={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:Ga}=m.Typography;function ir({currentStep:e,icon:t,title:n,totalSteps:r}){return i.createElement(m.Space,{className:bt.container,direction:"vertical"},i.createElement(Ga,{className:bt.stepText},"Step ",e,"/",r),i.createElement(m.Space,{className:bt.titleContainer},i.createElement(t,{className:bt.titleIcon}),i.createElement(Ga,{className:bt.titleText},n)))}ir.propTypes={currentStep:I.number.isRequired,icon:I.elementType.isRequired,title:I.string.isRequired,totalSteps:I.number.isRequired};function nd({applicationData:e}){switch(e.status){case ot.APPLICATION_FORM:return i.createElement(i.Fragment,null,"Application Form");default:return null}}function Ra({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:a}){const[o,l]=i.useState(!0),{data:s,isLoading:c}=Ai({jobProfileId:t,utmMedium:r,utmSource:a,currentTab:e,utmId:n}),u=()=>{l(!1)};return i.createElement(m.Drawer,{closable:{placement:"end"},loading:c,onClose:u,open:o,placement:"bottom",title:i.createElement(ir,{currentStep:1,icon:Kc,title:"Required Details",totalSteps:2})},i.createElement(nd,{applicationData:s}))}Ra.propTypes={currentTab:I.string.isRequired,jobProfileId:I.number.isRequired,utmId:I.string,utmMedium:I.string,utmSource:I.string};const Za="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",Rt=({logo:e,company:t,companiesList:n,companyName:r,size:a=48})=>{const[o,l]=i.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:Za)}),s=()=>{l(Za)};return i.createElement(m.Avatar,{size:a,src:o,alt:r,onError:s,shape:"square"})};Rt.propTypes={logo:I.string,company:I.arrayOf(I.number),companiesList:I.object,companyName:I.string,size:I.number},Rt.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const Xe={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:rd,Text:id}=m.Typography,ar=({title:e,companyName:t,isExpanded:n})=>i.createElement(m.Space,{direction:"vertical",size:4,className:ye(Xe.titleContainer,{[Xe.titleContainerExpanded]:n,[Xe.titleContainerCollapsed]:!n})},i.createElement(rd,{level:5,className:Xe.jobTitle,ellipsis:{rows:1}},e),i.createElement(id,{type:"secondary",ellipsis:!0,className:Xe.companyName},t));ar.propTypes={title:I.string.isRequired,companyName:I.string.isRequired,isExpanded:I.bool},ar.defaultProps={isExpanded:!1};const Xa=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},or=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const a=e[r];return!a||a.isEligible}),lr={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},ad=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],sr=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:a}=e,{isEligible:o,reasons:l=[]}=t||{};if(r&&(new Date(r)<new Date||a!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=l.reduce((_,h)=>(_[h.label]=h,_),{}),u=c.experience,p=c.notice_period,d=c.skills,g=c.tech_stacks;if(o&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(o)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(p&&!p.isEligible&&or(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const v=Xa(d,g);return v>0&&or(c,"skills")?{tag:"steps_to_apply",text:`${v} ${v===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:v}:{tag:lr.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},od={tag:"_tag_ueyiz_1"},ld={CheckCircleOutlined:la,CloseCircleOutlined:hc,ClockCircleOutlined:ca,RocketOutlined:pu},Zt=({jobData:e,currentTab:t})=>{const n=sr(e,e.eligibilityCriteria);if(!n)return null;const r=ld[n.icon];return i.createElement(m.Tag,{icon:r&&i.createElement(r,null),color:n.antdColor,className:od.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};Zt.propTypes={jobData:I.shape({isRelevant:I.bool,expiry:I.string,jobProfileStatus:I.string,eligibilityCriteria:I.shape({isEligible:I.bool,reasons:I.arrayOf(I.shape({label:I.string,isEligible:I.bool,data:I.object}))})}).isRequired,currentTab:I.string},Zt.defaultProps={currentTab:"all"};const cr=({jobData:e,currentTab:t})=>i.createElement("div",{className:Xe.actions},i.createElement(Zt,{jobData:e,currentTab:t}));cr.propTypes={jobData:I.object.isRequired,currentTab:I.string},cr.defaultProps={currentTab:"all"};const ur=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>i.createElement(m.Row,{gutter:[12,8],className:Xe.header},i.createElement(m.Col,{flex:"auto"},i.createElement(m.Row,{gutter:12,align:"top",wrap:!1},i.createElement(m.Col,null,i.createElement(Rt,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),i.createElement(m.Col,{flex:"auto"},i.createElement(ar,{title:e.title,companyName:e.name,isExpanded:r})))),i.createElement(m.Col,null,i.createElement(cr,{jobData:e,currentTab:n})));ur.propTypes={jobData:I.object.isRequired,companiesList:I.object,currentTab:I.string,isExpanded:I.bool},ur.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const dr=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},pr=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:a,userCountry:o="IN"})=>{if(r)return a?`₹${a}/month`:"Unpaid Internship";const l=o==="US"?"$":"₹",s=o==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${l} (Flexible)`:n?`${l}${e}${s}+ (Negotiable)`:e===t?`${l}${e}${s} CTC`:`${l}${e}${s} - ${l}${t}${s} CTC`},fr=e=>!e||e===0?"Immediate":`${e} days Notice Period`,eo=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),a=t.getFullYear();return`${n}/${r}/${a}`},mr=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},to={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},Xt=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:a=!1})=>{const[o,l]=i.useState(!1),s=t==="Saved",c=u=>_e(this,null,function*(){u.stopPropagation(),l(!0);try{yield r(e,s?"unsave":"save")}catch(p){console.error("Save action failed:",p)}finally{l(!1)}});return s&&n?i.createElement(m.Button,{type:"text",icon:i.createElement(Da,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:a||o,loading:o,className:to.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",eo(n)):i.createElement(m.Button,{type:"text",icon:i.createElement(hu,null),onClick:c,disabled:a||o,loading:o,className:to.saveButton,size:"small"},s?"Saved":"Save")};Xt.propTypes={jobProfileId:I.number.isRequired,applicationStatus:I.string,applicationLastUpdatedAt:I.string,onSave:I.func.isRequired,disabled:I.bool},Xt.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const _t={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:sd}=m.Typography,no=({text:e})=>e?i.createElement(sd,{className:_t.detailText},e):null;no.propTypes={text:I.string};const vr=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a})=>{const{preferredCities:o,minExperience:l,maxExperience:s,minCtc:c,maxCtc:u,openForDiscussionCtc:p,isInternship:d,stipend:g,preferredNoticePeriod:v}=e,_=mr(o),h=a===null&&t.isExperienceCtcAvailable?dr(l,s):null,E=t.isExperienceCtcAvailable?pr({minCtc:c,maxCtc:u,openForDiscussionCtc:p,isInternship:d,stipend:g,userCountry:n}):null,A=a===null&&t.isNoticePeriodAvailable?fr(v):null,T=[_&&{text:_},h&&{text:h},E&&{text:E},A&&{text:A}].filter(Boolean);return i.createElement("div",{className:_t.detailsRowContainer},T.length>0&&i.createElement(m.Space,{split:i.createElement(m.Divider,{type:"vertical"}),className:_t.detailsRow},T.map((y,b)=>i.createElement(no,{key:b,text:y.text}))),i.createElement("div",{className:_t.saveButtonWrapper},i.createElement(Xt,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};vr.propTypes={jobData:I.shape({id:I.number.isRequired,preferredCities:I.string,minExperience:I.number,maxExperience:I.number,minCtc:I.number,maxCtc:I.number,openForDiscussionCtc:I.bool,isInternship:I.bool,stipend:I.string,preferredNoticePeriod:I.number,applicationStatus:I.string,applicationLastUpdatedAt:I.string}).isRequired,cardConfig:I.shape({isExperienceCtcAvailable:I.bool,isNoticePeriodAvailable:I.bool}).isRequired,userCountry:I.oneOf(["IN","US"]),onSave:I.func.isRequired,selectedJobId:I.number},vr.defaultProps={userCountry:"IN",selectedJobId:null};const hr=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a})=>i.createElement("div",{className:_t.body},i.createElement(vr,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a}));hr.propTypes={jobData:I.object.isRequired,cardConfig:I.object.isRequired,userCountry:I.oneOf(["IN","US"]),onSave:I.func.isRequired,selectedJobId:I.number},hr.defaultProps={userCountry:"IN",selectedJobId:null};const en={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},tn=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:a,companiesList:o,userCountry:l,className:s,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:p}=Ii({currentTab:n,isActive:t,jobData:e}),d=()=>{r&&r(e.id)};return i.createElement(m.Card,{className:ye(en.jobCard,{[en.active]:t,[en.archived]:e.applicationStatus==="Archived"},s),onClick:d},i.createElement("div",{className:en.cardContent},i.createElement(ur,{jobData:e,companiesList:o,currentTab:n,isExpanded:!c}),p&&i.createElement(hr,{jobData:e,cardConfig:u,userCountry:l,onSave:a,selectedJobId:c})))};tn.propTypes={jobData:I.shape({id:I.number.isRequired,title:I.string.isRequired,name:I.string.isRequired,company:I.arrayOf(I.number),logo:I.string,preferredCities:I.string,expiry:I.string,jobProfileStatus:I.string,isRelevant:I.bool,applicationStatus:I.string,applicationLastUpdatedAt:I.string,minExperience:I.number,maxExperience:I.number,minCtc:I.number,maxCtc:I.number,preferredNoticePeriod:I.number,openForDiscussionCtc:I.bool,isInternship:I.bool,stipend:I.string,eligibilityCriteria:I.shape({isEligible:I.bool,reasons:I.arrayOf(I.object)})}).isRequired,isActive:I.bool,currentTab:I.string,onClick:I.func,onSave:I.func.isRequired,companiesList:I.object,userCountry:I.oneOf(["IN","US"]),className:I.string,selectedJobId:I.number},tn.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const gr=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),yr=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),cd=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return gr(t);case"titleCase":return yr(t);default:return t}},nn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(nn);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=gr(n);t[r]=nn(e[n])}),t}return e},ud=ke.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var l,s,c;const n=nn(t),r=((l=n==null?void 0:n.data)==null?void 0:l.attributes)||{},a=((c=(s=n==null?void 0:n.included)==null?void 0:s.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},o=r.contestSkills||[];return{jobData:st(Ee({},r),{contestSkills:o,name:r.name||(a==null?void 0:a.name)||"Company"}),companyData:a,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:ro}=ud,io=i.createContext(null),dd=({country:e="IN",jobId:t,openMockInterviewModal:n=(l,s)=>{console.log("Method not implemented. We should get it from MIT"),console.log(l,s)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:a=!1,children:o})=>{const{data:l,isLoading:s,error:c,refetch:u}=ro(t,{skip:!t||a}),[p,d]=i.useState(),g={activeTab:p,setActiveTab:d,country:e,jobId:t,data:l,isLoading:s,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:l==null?void 0:l.jobData,companyData:l==null?void 0:l.companyData,highlights:l==null?void 0:l.highlights,eligibilityCriteria:l==null?void 0:l.eligibilityCriteria};return i.createElement(io.Provider,{value:g},o)},oe=()=>{const e=i.useContext(io);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},et={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},pd=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return i.createElement(m.Card,{size:"small"},i.createElement(m.Space,{direction:"horizontal"},i.createElement(m.Avatar,{size:48,src:n,className:et.recruiterAvatar}),i.createElement(m.Space,{direction:"vertical",className:et.recruiterCardContent},i.createElement(m.Typography.Text,{className:et.recruiterName},t),i.createElement(m.Typography.Link,{className:et.recruiterEmail,href:`mailto:${r}`},i.createElement(tu,null),"Send Email To Recruiter"))))},fd=()=>{const{jobData:e}=oe(),{recruiters:t}=e||{};return i.createElement(m.Space,null,t.map((n,r)=>i.createElement(pd,{key:r,recruiter:n})))},md=()=>{const{jobData:e}=oe(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(o=>({title:o.stageName,description:o.stageComments})),a=n.findIndex(o=>o.stageStatus==="ongoing");return i.createElement(m.Steps,{current:a,items:r,direction:"vertical"})},vd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:et.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Your Application Status"),i.createElement(md,null)),hd=()=>{const{jobData:e}=oe(),{recruiters:t}=e||{};return!t||t.length===0?null:i.createElement(m.Space,{direction:"vertical",size:"large",className:et.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Recruiter Details"),i.createElement(fd,null))},gd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:et.container},i.createElement(vd,null),i.createElement(hd,null)),br={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679"},Et={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},ao=({icon:e,title:t,description:n,buttonText:r,buttonIcon:a,className:o,onClick:l,isLoading:s})=>i.createElement("div",{className:ye(Et.actionBanner,o)},e,i.createElement("div",{className:Et.actionBannerContent},i.createElement("span",{className:Et.actionBannerTitle},t),i.createElement("span",{className:Et.actionBannerDescription},n)),i.createElement(m.Button,{icon:a,type:"primary",className:Et.actionBannerButton,onClick:l,loading:s},r)),oo={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},yd="https://companion.scaler.com/interview-experiences",lo=()=>{const{jobData:e,companyData:t}=oe(),{appliedOn:n,title:r,applicationStatus:a}=e||{},o=a===ot.WITHDRAWN,{name:l}=t||{},s=i.useCallback(()=>{globalThis.open(`${yd}?company=${encodeURIComponent(l)}&role=${encodeURIComponent(r)}`,"_blank")},[l,r]);return!n||o?null:i.createElement(ao,{icon:i.createElement("img",{src:br.monitor,className:oo.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:i.createElement(Ac,null),className:oo.monitorBanner,onClick:s})},ce={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},bd=()=>{const{companyData:e}=oe(),{name:t,employeeCount:n,companyVision:r,location:a,category:o,companyWebsite:l}=e||{};return i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"About ",t,l&&i.createElement(m.Typography.Link,{className:ce.descriptionLink,href:l,target:"_blank"},i.createElement(m.Space,null,i.createElement(Aa,null),"Company Website"))),r&&i.createElement(m.Typography.Paragraph,{className:ce.descriptionText},i.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),a&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Office Location:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},a)),o&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Company Category:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},yr(o))),n&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"No. of Employees:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},n)))},_r={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},_d=({html:e,contentClassName:t})=>{const[n,r]=i.useState(!1);return i.createElement("div",{className:_r.collapsableContainer},i.createElement("div",{className:ye(t,{[_r.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),i.createElement(m.Typography.Link,{className:_r.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},Ed=()=>{const{jobData:e}=oe(),{jobDescText:t,jobDesc:n}=e||{};return i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"About the Role",n&&i.createElement(m.Typography.Link,{className:ce.descriptionLink,href:n,target:"_blank"},i.createElement(m.Space,null,i.createElement(Aa,null),"Know More"))),t&&i.createElement(_d,{html:t,contentClassName:ce.descriptionText}))},Er={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},Sd=({children:e,contentClassName:t})=>{const[n,r]=i.useState(!1);return i.createElement("div",{className:Er.collapsableContainer},i.createElement("div",{className:ye(t,{[Er.collapsed]:!n})},e),i.createElement(m.Typography.Link,{className:Er.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},Cd=()=>{const{jobData:e,country:t}=oe(),{benefits:n,visaSponsorship:r}=e||{},a=r==="yes";return!n&&!a||t!=="US"?null:i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Benefits"),i.createElement(Sd,{contentClassName:ce.descriptionText},i.createElement("ul",{className:ce.list},n==null?void 0:n.map(o=>i.createElement("li",{key:o},o)),a&&i.createElement("li",null,"Visa sponsorship available"))))},Td=()=>{const{jobData:e}=oe(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:i.createElement("span",{className:ce.descriptionTitle},r.stepName),description:i.createElement("span",{className:ce.descriptionText},r.interviewType)}));return i.createElement(m.Steps,{className:ce.steps,current:-1,progressDot:!0,items:n})},Od=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Job Description"),i.createElement(bd,null),i.createElement(Ed,null),i.createElement(Cd,null)),Ad=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Post Application Process"),i.createElement(Td,null)),wd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.container},i.createElement(Od,null),i.createElement(Ad,null),i.createElement(lo,null)),Qe={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Oe={completed:"Completed",pending:"Pending",notRequired:"Not Required"},Id=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],xd=({status:e})=>i.createElement(m.Tag,{color:e===Oe.completed?"success":"warning"},e),kd=({contestDetails:e})=>{if(!e)return Oe.notRequired;const{cleared:t,joinLink:n}=e;return t?i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,Qe.successDot)}),i.createElement(m.Typography.Text,null,"Success")):i.createElement(m.Typography.Link,{href:n,underline:!0},"Attempt Contest")},Nd=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=oe();if(!e)return Oe.notRequired;const{cleared:a}=e;return a?i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,Qe.successDot)}),i.createElement(m.Typography.Text,null,"Success")):i.createElement(m.Typography.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},Pd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(o=>o.label==="skills");if(!r)return null;const a=Object.entries(r.data).map(([o,l])=>{const s=l.contests,c=s?l.contests.cleared?Oe.completed:Oe.pending:Oe.notRequired,u=l.skills,p=u?l.skills.cleared?Oe.completed:Oe.pending:Oe.notRequired,d=[c,p].every(g=>g!==Oe.pending)?Oe.completed:Oe.pending;return{skillType:o,status:i.createElement(xd,{status:d}),contests:i.createElement(kd,{contestDetails:s}),mockInterview:i.createElement(Nd,{mockInterviewDetails:u,skillId:l.skillId,skillName:l.skillName})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Scaler certifications you need to apply"),columns:Id,dataSource:a,pagination:!1})},St={added:"Added",missing:"Missing"},Md=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],Dd=({status:e})=>i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,{[Qe.successDot]:e===St.added,[Qe.errorDot]:e===St.missing})}),i.createElement(m.Typography.Text,null,e)),jd=({status:e})=>{const{openResume:t}=oe();return e===St.added?null:i.createElement(m.Typography.Link,{onClick:t,underline:!0},"Add Skill")},Ld=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(o=>o.label==="tech_stacks");if(!r)return null;const a=Object.entries(r.data).map(([o,l])=>{var c;const s=(c=l.data)!=null&&c.cleared?St.added:St.missing;return{stackType:o,experience:`${Math.floor(l.proficiencyPeriod/12)}+`,status:i.createElement(Dd,{status:s}),action:i.createElement(jd,{status:s})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:Md,dataSource:a,pagination:!1})},Fd=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,a=`${n}${r}`;if(!t)return`${a}+ Experience`;const o=`${Math.floor(t/12)}y`,l=t%12===0?"":`${t%12}m`;return`${a} - ${o} ${l} Experience`},qd=e=>e===0?"Immediate":e==null?"NA":`${e} days`,$d={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>Fd(e,t),notice_period:({preferredNoticePeriod:e})=>`${qd(e)} Notice Period`},Sr={eligible:"Eligible",ineligible:"Ineligible"},Bd=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],zd=({status:e})=>e===Sr.eligible?i.createElement(m.Tag,{color:"success"},"Eligible"):i.createElement(m.Tag,{color:"error"},"Ineligible"),Hd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(o=>o.label!=="skills"&&o.showText);if(!r)return null;const a=r.map(o=>{const l=o.isEligible?Sr.eligible:Sr.ineligible;return{requirement:yr(o.label),details:$d[o.label](e),status:i.createElement(zd,{status:l})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:Bd,dataSource:a,pagination:!1})},Qd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{};return t?i.createElement(m.Space,{direction:"vertical",size:"large",className:Qe.container},i.createElement(m.Typography.Title,{level:4},"Job Check-list"),i.createElement(Pd,null),i.createElement(Ld,null),i.createElement(Hd,null)):null},so={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},Vd=()=>{var l;const{activeTab:e,setActiveTab:t,jobData:n}=oe(),{applicationTimeline:r}=n||{},o=[((l=r==null?void 0:r.timeline)==null?void 0:l.length)>0&&{key:Re.APPLICATION_TIMELINE.key,label:Re.APPLICATION_TIMELINE.label,children:i.createElement(gd,null)},{key:Re.ABOUT_ROLE.key,label:Re.ABOUT_ROLE.label,children:i.createElement(wd,null)},{key:Re.REQUIREMENTS.key,label:Re.REQUIREMENTS.label,children:i.createElement(Qd,null)}].filter(Boolean);return i.createElement("div",{className:so.bodyContainer},i.createElement(m.Tabs,{activeKey:e,className:so.tabs,items:o,onChange:t}))},Jd=ke.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:co}=Jd,Ve={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},Ud=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const a=l=>{const s=l.target.value;t(s),s!=="Other"&&r("")},o=l=>{r(l.target.value)};return i.createElement(i.Fragment,null,i.createElement(m.Typography.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),i.createElement(m.Form,{className:Ve.withdrawalReasonForm},i.createElement(m.Form.Item,{layout:"vertical",label:"Select reason"},i.createElement(m.Radio.Group,{className:Ve.withdrawalReasonRadioGroup,onChange:a,value:e},vt.map(l=>i.createElement(m.Radio,{key:l.value,value:l.value},l.label))),e==="Other"&&i.createElement(m.Form.Item,null,i.createElement(m.Input.TextArea,{value:n,onChange:o,placeholder:"Please specify your reason"})))))},Wd=()=>{var E;const{jobId:e,jobData:t,refetch:n}=oe(),{applicationStatus:r,appliedOn:a}=t||{},[o,l]=i.useState(!1),[s,c]=i.useState((E=vt[0])==null?void 0:E.value),[u,p]=i.useState(""),[d]=co(),{message:g}=m.App.useApp(),v=()=>_e(this,null,function*(){var T,y;const A=yield d({job_profile_id:e,update_action:"withdraw",message:u||s});(T=A==null?void 0:A.data)!=null&&T.success?(g.success("Application withdrawn successfully"),l(!1),c((y=vt[0])==null?void 0:y.value),p(""),n()):g.error("Failed to withdraw application")}),_=()=>{var A;l(!1),c((A=vt[0])==null?void 0:A.value),p("")},h=()=>{var A;c((A=vt[0])==null?void 0:A.value),p(""),l(!0)};return r===ot.WITHDRAWN?i.createElement("div",{className:Ve.withdrawnText},i.createElement(aa,null),"Your Application has been Withdrawn"):a&&!ad.includes(r)?i.createElement(i.Fragment,null,i.createElement(m.Button,{icon:i.createElement("img",{src:br.exit,alt:"exit"}),onClick:h,className:Ve.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),i.createElement(m.Modal,{title:i.createElement(m.Space,null,i.createElement(Du,{className:Ve.warningIcon}),i.createElement(m.Typography.Text,null,"Withdraw My Application")),open:o,onOk:v,onCancel:_},i.createElement(Ud,{withdrawalReason:s,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:p}))):null},Kd=()=>{const{jobId:e,jobData:t,refetch:n}=oe(),[r,{isLoading:a}]=co(),{applicationStatus:o,appliedOn:l}=t||{},s=o===ot.SAVED,c=()=>_e(this,null,function*(){var p;const u=yield r({job_profile_id:e,update_action:"save"});(p=u==null?void 0:u.data)!=null&&p.success?(m.message.success("Application saved successfully"),n()):m.message.error("Failed to save application")});return l?null:s?i.createElement(m.Button,{icon:i.createElement("img",{src:br.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):i.createElement(m.Button,{icon:i.createElement(Da,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:a},"Save")},Yd=()=>{const{jobData:e,eligibilityCriteria:t}=oe(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:a}=t||{},o=r===ot.WITHDRAWN,l=()=>{};return o?null:n?i.createElement(m.Button,{icon:i.createElement(aa,null),className:Ve.appliedButton,type:"text",size:"large"},"Applied"):i.createElement(m.Button,{icon:i.createElement(ka,null),onClick:l,className:Ve.applyButton,type:"primary",size:"large",disabled:!a},"Apply Now")},Gd=()=>i.createElement("div",{className:Ve.jobActions},i.createElement(Yd,null),i.createElement(Kd,null),i.createElement(Wd,null)),$e={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Rd=()=>{const{companyData:e}=oe(),{logo:t,name:n}=e||{};return i.createElement("div",{className:$e.companyInfo},i.createElement(Rt,{logo:t,companyName:n,size:50}),i.createElement("div",{className:$e.companyName},n))},Zd=()=>{const{jobData:e}=oe(),{title:t}=e||{};return i.createElement(m.Typography.Text,{ellipsis:!0,className:$e.jobTitle},t)},Xd=()=>{const{jobData:e}=oe(),{preferredCities:t}=e||{},n=mr(t);return i.createElement("div",{className:$e.jobLocation},n)},ep=()=>i.createElement("div",{className:$e.basicInfo},i.createElement(Rd,null),i.createElement(Zd,null),i.createElement(Xd,null)),tp=()=>{const{jobData:e}=oe(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:a,stipend:o,preferredNoticePeriod:l,minExperience:s,maxExperience:c}=e||{},u=pr({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:a,stipend:o}),p=dr(s,c),d=fr(l);return i.createElement("div",{className:$e.extraDetails},[u,p,d].filter(Boolean).map((g,v)=>i.createElement(i.Fragment,{key:v},i.createElement("div",{className:$e.detail},g),i.createElement(m.Divider,{size:"large",type:"vertical",className:$e.extraDetailsDivider}))))},np=()=>i.createElement("div",{className:$e.container},i.createElement(ep,null),i.createElement(tp,null),i.createElement(Gd,null)),me={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},rp=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=oe(),a=()=>{r(Re.REQUIREMENTS.key),n()};return e===lr.ineligible?i.createElement("div",{className:ye(me.actionAlert,me.ineligible)},i.createElement(Bc,null),i.createElement("span",{className:me.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===lr.steps_to_apply?i.createElement(ao,{icon:i.createElement(pc,{className:me.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:i.createElement(Ea,null),className:me.stepsToApply,onClick:a}):null},ip=({highlights:e})=>i.createElement(i.Fragment,null,i.createElement("div",{className:me.title},"Top Reasons to Apply"),i.createElement("ul",{className:me.highlightsList},e==null?void 0:e.map(t=>i.createElement("li",{key:t,className:me.highlight},i.createElement("span",{className:me.highlightText},t))))),ap=({keywords:e,eligibilityStatus:t})=>i.createElement("div",{className:me.keywordsList},e==null?void 0:e.map((n,r)=>i.createElement("div",{key:r,className:ye(me.keyword,me[gr(t)])},n))),op=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return i.createElement("div",{className:me.exceptions},i.createElement("div",{className:me.exceptionsIconContainer},i.createElement(Au,{size:20,twoToneColor:"#FAAD14",className:me.exceptionsIcon})),i.createElement("div",null,i.createElement("div",{className:me.exceptionsTitle},"We've made an exception for you!"),i.createElement("ul",{className:me.exceptionsList},t.map((n,r)=>i.createElement("li",{className:[me.exception],key:r},n)))))},lp=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=oe(),r=i.useRef(null),{highlights:a,keywords:o}=t||(e==null?void 0:e.highlights)||{},{tag:l,count:s}=sr(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const p=r.current.getBoundingClientRect(),d=p.top+window.pageYOffset,g=p.height,v=window.innerHeight,_=d+g-v/2;window.scrollTo({top:_,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(a!=null&&a.length)?null:i.createElement("div",{ref:r,className:ye(me.container,me[l])},i.createElement(rp,{eligibilityStatus:l,metric:s,onScrollToEnd:c}),i.createElement(ip,{highlights:a}),i.createElement(ap,{keywords:o,eligibilityStatus:l}),i.createElement(op,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},sp=ke.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:cp}=sp,Lv={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},up=()=>{oe();const[e,{isLoading:t}]=cp();return i.useCallback(()=>_e(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):m.message.error("Failed to initiate screening call. Please try again.")}),[e]),null},rn={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},dp=()=>i.createElement("div",{className:rn.expandedJobView},i.createElement(np,null),i.createElement(lp,null),i.createElement(up,null),i.createElement(lo,null),i.createElement(Vd,null)),pp=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:a,currentTab:o})=>{var u;const{data:l,isLoading:s,error:c}=ro(r,{skip:!r||!a});return!a||!r?null:s?i.createElement(m.Card,{className:`${rn.expandedJobView} ${rn.loadingCard}`},i.createElement(m.Spin,{size:"large"})):c?i.createElement(m.Card,{className:rn.expandedJobView},i.createElement(m.Alert,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):l?i.createElement(m.App,null,i.createElement(dd,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!a},i.createElement(dp,{currentTab:o}))):null},an={content:"_content_koeg3_1",header:"_header_koeg3_8",sider:"_sider_koeg3_16",layout:"_layout_koeg3_20"},{Header:fp,Sider:mp,Content:vp}=m.Layout;function on({header:e,children:t,className:n,sider:r,siderWidth:a}){return i.createElement(m.Layout,{className:n},i.createElement(fp,{className:an.header},e||"Header"),i.createElement(m.Layout,{className:an.layout},i.createElement(vp,{className:an.content},t),r&&i.createElement(mp,{className:an.sider,width:a||"25%"},r)))}on.propTypes={children:I.node.isRequired,className:I.string,sider:I.node,siderWidth:I.oneOfType([I.string,I.number])},on.defaultProps={className:"",sider:null,siderWidth:"25%"};const Ct={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function hp(){const e=G.useDispatch(),t=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.filter)==null?void 0:c.tab)||"all"}),n=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.dashboard)==null?void 0:c.processCounts)||{}}),r=l=>{const s=de[l];s&&e(is(s))},a=l=>{const s=de[l];return t===s},o=l=>{const s=ju[l];return n[s]||0};return i.createElement("div",{className:Ct.tagsSection},Object.keys(tr).map(l=>i.createElement(m.Tag,{className:ye(Ct.tag,{[Ct.activeTag]:a(l)}),key:l,onClick:()=>r(l)},i.createElement(tr[l].icon,{className:Ct.icon}),tr[l].label," ",i.createElement("span",{className:Ct.count},"(",o(l),")"))))}const gp={processCounts:Qa,filterModalOpen:!1,jobAlertModalOpen:!1},uo=q.createSlice({name:"dashboard",initialState:gp,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:yp,openFilterModal:bp,closeFilterModal:_p,openJobAlertModal:Ep,closeJobAlertModal:Sp}=uo.actions,Cp=uo.reducer,po={jobAlert:"_jobAlert_sfx7a_1"};function Tp(){const e=G.useDispatch(),t=()=>{e(Ep())};return i.createElement("div",{className:po.jobAlert,onClick:t},i.createElement(er,{className:po.icon}),"Job Alerts")}const Op={};function Ap(){const e=G.useDispatch(),t=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.filter)==null?void 0:c.sortings)||[]}),n=i.useMemo(()=>Lu(t),[t]),r=l=>{const s=Kt[l];s&&e(ls([s.mapping]))},a=Object.values(Kt).map(l=>({value:l.value,label:l.value===n?`Sorted By: ${l.label}`:l.label})),o=l=>{const s=Kt[l.value];return s?s.label:l.label};return i.createElement(m.Select,{className:Op.sorting,value:n,onChange:r,suffixIcon:i.createElement(ya,null),options:a,optionRender:o})}const wp={};function Ip(){const e=G.useDispatch(),t=()=>{e(bp())};return i.createElement(m.Button,{type:"primary",className:wp.filter,onClick:t},"Filters ",i.createElement(ya,null))}const Cr={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function xp(){const e=G.useDispatch(),t=G.useSelector(d=>{var g,v,_;return((_=(v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.filters)==null?void 0:_.keyword)||""}),[n,r]=i.useState(!1),[a,o]=i.useState(t),l=i.useRef(null),s=i.useRef(null);i.useEffect(()=>{o(t)},[t]),i.useEffect(()=>{n&&l.current&&l.current.focus()},[n]);const c=()=>{r(!0)},u=d=>{const g=d.target.value;o(g),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{e(as(g))},300)},p=()=>{a.trim()||r(!1)};return i.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),i.createElement("div",{className:Cr.search},n||a?i.createElement(m.Input,{ref:l,className:Cr.input,placeholder:"Search for job or Company Name",value:a,onChange:u,onBlur:p,suffix:i.createElement(La,null)}):i.createElement("div",{className:Cr.iconContainer,onClick:c},i.createElement(La,null)))}const kp={actions:"_actions_nxp1u_1"};function Np(){return i.createElement("div",{className:kp.actions},i.createElement(Tp,null),i.createElement(Ap,null),i.createElement(Ip,null),i.createElement(xp,null))}const Pp={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function ln({className:e}){return i.createElement("div",{className:ye(e,Pp.jobsHeaderContainer)},i.createElement(hp,null),i.createElement(Np,null))}ln.propTypes={className:I.string},ln.defaultProps={className:""};function sn({className:e}){return i.createElement("div",{className:e},i.createElement("h1",{style:{textAlign:"center"}},"Profile Details"))}sn.propTypes={className:I.string},sn.defaultProps={className:""};function cn({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:a}){return r?i.createElement("div",{className:a},i.createElement(pp,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}cn.propTypes={country:I.string,openMockInterviewModal:I.func,openResume:I.func,jobId:I.oneOfType([I.string,I.number]),className:I.string},cn.defaultProps={jobId:null,className:""};const Tr=e=>{if(!e||!e.data||!Array.isArray(e.data))return[];const t={};return e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=n.attributes)}),e.data.map(n=>{if(n.type!=="job_profile"||!n.attributes)return null;const r=n.attributes,a=n.relationships||{};let o=null;if(a.company&&a.company.data){const s=a.company.data.id;o=t[s]||null}return{id:parseInt(n.id,10),title:r.title||"",name:r.title||"",slug:r.slug||"",jobDesc:r.job_desc||"",jobDescText:r.job_desc_text||"",minExperience:r.min_experience?parseFloat(r.min_experience):null,maxExperience:r.max_experience?parseFloat(r.max_experience):null,minCtc:r.min_ctc?parseFloat(r.min_ctc):null,maxCtc:r.max_ctc?parseFloat(r.max_ctc):null,validTill:r.valid_till||null,createdAt:r.created_at||null,jobType:r.job_type||null,preferredCities:r.preferred_cities||"",preferredNoticePeriod:r.preferred_notice_period||null,meritBasedSkills:r.merit_based_skills||[],contestSkills:r.contest_skills||[],applicationStatus:r.application_status||null,expiry:r.expiry||r.valid_till||null,applicationId:r.application_id||null,userCompanyStatus:r.user_company_status||null,applicationLastUpdatedAt:r.application_last_upated_at||null,jobSource:r.job_source||null,jobProfileId:r.job_profile_id||null,jobProfileStatus:r.job_profile_status||"active",datePostedOn:r.date_posted_on||null,openForDiscussionCtc:r.open_for_discussion_ctc||!1,appliedOn:r.applied_on||null,seniorityLevel:r.seniority_level||null,roleType:r.role_type||"full_time",duration:r.duration||null,stipend:r.stipend||null,eligibilityCriteria:r.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:r.exceptional_job||!1,isRelevant:r.is_relevant||!1,isInternship:r.role_type==="internship",company:o?[parseInt(a.company.data.id,10)]:[],logo:(o==null?void 0:o.logo)||null,companyName:(o==null?void 0:o.name)||null,companySlug:(o==null?void 0:o.slug)||null,companyLocation:(o==null?void 0:o.location)||null,companyWebsite:(o==null?void 0:o.company_website)||null,companyVision:(o==null?void 0:o.company_vision)||null,companyTagline:(o==null?void 0:o.tagline)||null,companyCategory:(o==null?void 0:o.category)||null,companyEmployeeCount:(o==null?void 0:o.employee_count)||null}}).filter(Boolean)},Or=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=Ee({id:n.id},n.attributes))}),t},Mp=ke.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:Dp,useFetchPipelineJobsQuery:fo,useFetchRelevantJobsQuery:jp}=Mp,Lp={selectedJobId:null},mo=q.createSlice({name:"layout",initialState:Lp,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:Fp,clearSelectedJobId:qp}=mo.actions,$p=mo.reducer,Pe={heading:"_heading_1jbzw_1",spinner:"_spinner_1jbzw_8",alert:"_alert_1jbzw_14",header:"_header_1jbzw_18",sentinel:"_sentinel_1jbzw_23",loadingMore:"_loadingMore_1jbzw_30"},{Title:un,Text:Bp}=m.Typography,vo={[de.relevant]:"Unlocked Jobs",[de.all]:"All Jobs",[de.saved]:"Saved Jobs",[de.applied]:"Applied Jobs"};function tt({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:a=!1,error:o=null,isFetchingMore:l=!1,hasMore:s=!0}){var A;const c=G.useDispatch(),u=G.useSelector(T=>T.scalantCareerHub.layout.selectedJobId),p=G.useSelector(T=>{var y,b;return((b=(y=T.scalantCareerHub)==null?void 0:y.dashboard)==null?void 0:b.processCounts)||{}}),d=s!==void 0?s:!0,{sentinelRef:g}=cs({hasMore:d,isLoading:a,isFetchingMore:l}),v=T=>{c(u===T?qp():Fp(T))},_=()=>_e(this,null,function*(){return Promise.resolve()}),h=vo[t]||vo[de.all],E=()=>p[t]||0;return a?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Spin,{size:"large",className:Pe.spinner})):o?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Alert,{message:"Error loading jobs",description:((A=o==null?void 0:o.data)==null?void 0:A.message)||(o==null?void 0:o.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:Pe.alert})):!n||n.length===0?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Alert,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:Pe.alert})):i.createElement("div",{className:e},i.createElement(m.Space,{direction:"vertical",className:Pe.header},i.createElement(un,{level:4,className:Pe.heading},h," ",i.createElement(m.Tag,{color:"green"},E()," Found")),i.createElement(Bp,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),i.createElement("div",null,n.map(T=>i.createElement(tn,{key:T.id,jobData:T,isActive:u===T.id,currentTab:t,onClick:v,onSave:_,companiesList:r,userCountry:"IN",selectedJobId:u})),d&&i.createElement("div",{ref:g,className:Pe.sentinel},l&&i.createElement("div",{className:Pe.loadingMore},i.createElement(m.Spin,{size:"small"}),i.createElement("span",null,"Loading more jobs...")))))}tt.propTypes={className:I.string,currentTab:I.string,jobs:I.arrayOf(I.object),companiesMap:I.object,isLoading:I.bool,error:I.object,isFetchingMore:I.bool,hasMore:I.bool},tt.defaultProps={className:"",currentTab:de.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const zp={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function Hp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=jp(e),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.relevant);return i.createElement("div",{className:zp.relevantJobsPage},i.createElement(tt,{currentTab:de.relevant,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Qp={allJobsPage:"_allJobsPage_10f3p_1"};function Vp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=Dp(e),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.all);return i.createElement("div",{className:Qp.allJobsPage},i.createElement(tt,{currentTab:de.all,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Jp={savedJobsPage:"_savedJobsPage_km19z_1"};function Up(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=fo(Ee({type:de.saved},e)),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.saved);return i.createElement("div",{className:Jp.savedJobsPage},i.createElement(tt,{currentTab:de.saved,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Wp={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function Kp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=fo(Ee({type:de.applied},e)),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.applied);return i.createElement("div",{className:Wp.appliedJobsPage},i.createElement(tt,{currentTab:de.applied,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const ho={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},go=q.createSlice({name:"filterForm",initialState:ho,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>ho,setFormData:(e,t)=>Ee(Ee({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const a=n.split("_").slice(-1)[0],o=n.replace(`_${a}`,"");e.mbe_skill_ids[o]||(e.mbe_skill_ids[o]={subject:null,rating:null}),a==="subject"?e.mbe_skill_ids[o].subject=r:a==="rating"&&(e.mbe_skill_ids[o].rating=r)}}}),{updateFormField:Yp,resetForm:Gp,setFormData:uh,addRatingFilterInput:yo,deleteRatingFilterInput:Rp,updateRatingFilterInput:bo}=go.actions,Zp=go.reducer,_o=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=G.useDispatch(),o=G.useSelector(h=>h.scalantCareerHub.filterForm)[e],l=i.useMemo(()=>o||{},[o]),s=i.useMemo(()=>typeof l=="object"&&!Array.isArray(l)?l:{},[l]);i.useEffect(()=>{(!l||Object.keys(s).length===0)&&r(yo())},[l,s,r]);const c=i.useMemo(()=>Object.values(s).map(h=>{var E;return((E=h==null?void 0:h.subject)==null?void 0:E.key)||(h==null?void 0:h.subject)}).filter(Boolean),[s]),u=i.useMemo(()=>t.filter(h=>!c.includes(h.key)),[t,c]),p=i.useCallback(()=>{r(yo())},[r]),d=i.useCallback(h=>{r(Rp({inputFieldKey:h}))},[r]),g=i.useCallback((h,E)=>{const A=t.find(T=>T.key===E);r(bo({inputFilterSubKey:`${h}_subject`,value:A||E}))},[t,r]),v=i.useCallback((h,E)=>{r(bo({inputFilterSubKey:`${h}_rating`,value:E}))},[r]),_=Object.keys(s);return i.createElement(m.Space,{direction:"vertical",style:{width:"100%"},size:"middle"},_.map(h=>{var b;const E=s[h],A=((b=E==null?void 0:E.subject)==null?void 0:b.key)||(E==null?void 0:E.subject),T=E==null?void 0:E.rating,y=[...t.filter(f=>f.key===A),...u];return i.createElement(m.Row,{key:h,gutter:16,align:"middle"},i.createElement(m.Col,{span:10},i.createElement(m.Select,{placeholder:"Select skill",value:A,onChange:f=>g(h,f),showSearch:!0,filterOption:(f,S)=>{var C;return((C=S==null?void 0:S.label)!=null?C:"").toLowerCase().includes(f.toLowerCase())},options:y.map(f=>({label:f.value,value:f.key}))})),i.createElement(m.Col,{span:10},i.createElement(m.Select,{placeholder:"Select rating",value:T,onChange:f=>v(h,f),options:n.map(f=>({label:f.label,value:f.value}))})),i.createElement(m.Col,{span:4},i.createElement(m.Space,null,i.createElement(m.Button,{type:"text",icon:i.createElement(au,null),onClick:p,style:{color:"#1890ff"}}),_.length>1&&i.createElement(m.Button,{type:"text",icon:i.createElement(va,null),onClick:()=>d(h),danger:!0}))))}))};_o.propTypes={fieldName:I.string.isRequired,subjectOptions:I.arrayOf(I.shape({key:I.oneOfType([I.string,I.number]),value:I.string})).isRequired,ratingOptions:I.arrayOf(I.shape({value:I.oneOfType([I.string,I.number]),label:I.string})).isRequired};const Je={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:Te}=m.Select;function Xp(){var N,M,j,F;const e=G.useDispatch(),t=G.useSelector(O=>O.scalantCareerHub.filterForm),n=G.useSelector(O=>O.scalantCareerHub.filterOptions||{}),[r]=m.Form.useForm();i.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:a,handleTitleSearch:o,handleExperienceSkillSearch:l,handleExperienceSkillChange:s,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:p}=td(),{jobTypes:d,functions:g,seniorityLevels:v,companyCategories:_,locations:h,mbeSkills:E,ctcRanges:A,stipendRanges:T,durationRanges:y,noticePeriods:b,datePostedOptions:f,skillRatings:S}=Ka(),C=(O,V)=>{e(Yp({field:O,value:V}))},x=t.role_type,k=x==="full_time",w=x==="internship";return i.createElement(m.Form,{layout:"vertical",className:Je.filterForm,form:r,initialValues:t},i.createElement(m.Form.Item,{label:"Job Types",name:"role_type"},i.createElement(m.Select,{placeholder:"Select job profile",value:t.role_type,onChange:O=>C("role_type",O)},d.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Company Name",name:"company_ids"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:a,loading:c,value:t.company_ids,onChange:O=>C("company_ids",O),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(N=n.companyOptions)==null?void 0:N.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Title",name:"job_title"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:o,loading:u,value:t.job_title,onChange:O=>C("job_title",O),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(M=n.titleOptions)==null?void 0:M.map(O=>i.createElement(Te,{key:O.key,value:O.value},O.value)))),i.createElement(m.Form.Item,{label:"Function",name:"job_category"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:O=>C("job_category",O)},g.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Role seniority level",name:"seniority_level"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:O=>C("seniority_level",O)},v.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Company category",name:"company_categories"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:O=>C("company_categories",O)},_.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))))),i.createElement(m.Form.Item,{label:"Location",name:"location"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:O=>C("location",O)},h.map(O=>i.createElement(Te,{key:O.key,value:O.value},O.value)))),!w&&i.createElement(m.Form.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_ctc,onChange:O=>C("min_ctc",O)},A.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))),!k&&i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Stipend (INR per month)",name:"min_stipend"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_stipend,onChange:O=>C("min_stipend",O)},T.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Internship duration (in months)",name:"min_duration"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_duration,onChange:O=>C("min_duration",O)},y.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))))),i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Notice period requirement",name:"notice_period"},i.createElement(m.Select,{placeholder:"Choose period",value:t.notice_period,onChange:O=>C("notice_period",O)},b.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Job posted date",name:"date_posted_on"},i.createElement(m.Select,{placeholder:"Pick date",value:t.date_posted_on,onChange:O=>C("date_posted_on",O)},f.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))))),i.createElement(m.Form.Item,{label:"Expert Mock Interview Skills Required"},i.createElement(_o,{fieldName:"mbe_skill_ids",subjectOptions:E,ratingOptions:S})),i.createElement(m.Form.Item,{label:"Experienced based skills",name:"experience_skill_ids"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:l,loading:p,value:((j=t.experience_skill_ids)==null?void 0:j.map(O=>typeof O=="object"?O.experience_skill_id:O))||[],onChange:O=>{const V=s(O,n.experienceSkillOptions);C("experience_skill_ids",V)},notFoundContent:p?"Loading...":"Type at least 2 characters to search"},(F=n.experienceSkillOptions)==null?void 0:F.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Experience (Years)? *"},i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"min_experience",noStyle:!0},i.createElement(m.Input,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:O=>C("min_experience",O.target.value)}))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"max_experience",noStyle:!0},i.createElement(m.Input,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:O=>C("max_experience",O.target.value)}))))))}function ef({onClose:e}){return i.createElement(m.Flex,{vertical:!0},i.createElement(m.Flex,{justify:"space-between"},i.createElement(m.Flex,{align:"center",gap:5},i.createElement(Vc,{className:Je.filterIcon}),"Filters"),i.createElement(fa,{onClick:e})),i.createElement("div",{className:Je.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function tf(){const e=G.useDispatch(),t=G.useSelector(l=>l.scalantCareerHub.dashboard.filterModalOpen),n=G.useSelector(l=>l.scalantCareerHub.filterForm),r=()=>{e(_p())},a=()=>{var c,u,p,d,g,v,_;let l;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(l=Object.values(n.mbe_skill_ids).filter(h=>!h||h.rating===void 0||h.rating===null?!1:h.subject?typeof h.subject=="object"?h.subject.key!==void 0&&h.subject.key!==null:h.subject!==void 0&&h.subject!==null:!1).map(h=>{var A;let E;return typeof h.subject=="object"&&((A=h.subject)==null?void 0:A.key)!==void 0?E=h.subject.key:E=h.subject,{mbe_skill_id:E,rating:h.rating}}),l.length===0&&(l=void 0));const s={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(p=n.job_category)!=null&&p.length?n.job_category:void 0,seniority_level:(d=n.seniority_level)!=null&&d.length?n.seniority_level:void 0,location:(g=n.location)!=null&&g.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:l,experience_skill_ids:(v=n.experience_skill_ids)!=null&&v.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(_=n.company_categories)!=null&&_.length?n.company_categories:void 0};Object.keys(s).forEach(h=>{s[h]===void 0&&delete s[h]}),e(Ni(s)),r()},o=()=>{e(Gp()),e(Xu()),e(Ni({}))};return i.createElement(m.Drawer,{title:i.createElement(ef,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Je.drawer},i.createElement("div",{className:Je.drawerContent},i.createElement(Xp,null),i.createElement("div",{className:Je.buttonContainer},i.createElement(m.Button,{className:Je.resetButton,onClick:o},"Reset Filters"),i.createElement(m.Button,{type:"primary",className:Je.applyButton,onClick:a},"Apply"))))}const nf=ke.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:rf,useCreateAlertMutation:af,useUpdateAlertStatusMutation:of,useDeleteAlertMutation:lf,useUpdateAlertMutation:sf}=nf,cf={alerts:[],loading:!1,error:null},Eo=q.createSlice({name:"alerts",initialState:cf,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:uf,addAlert:gh,setLoading:yh,setError:bh}=Eo.actions,df=Eo.reducer,Me={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Ar}=m.Select;function So({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:a,locations:o,ctcRanges:l}=Ka(),[s,c]=i.useState("realtime");i.useEffect(()=>{var d,g;if(t&&e){const _={[se.REALTIME]:"realtime",[se.DAILY]:"daily",[se.ALTERNATE_DAY]:"alternate",[se.WEEKLY]:"weekly"}[t.frequency]||"realtime",h={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((d=t.min_experience)==null?void 0:d.toString())||"",max_experience:((g=t.max_experience)==null?void 0:g.toString())||"",frequency:_,notification_type:t.notification_type||be.EMAIL};e.setFieldsValue(h),c(_)}},[t,e]);const u=()=>_e(this,null,function*(){try{const d=yield e.validateFields(),g={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},v=d.frequency==="realtime",_={alert:{name:d.name,job_functions:d.job_functions||[],min_ctc:d.min_ctc,locations:d.locations||[],min_experience:d.min_experience?parseInt(d.min_experience,10):0,max_experience:d.max_experience?parseInt(d.max_experience,10):null,frequency:g[d.frequency]||se.REALTIME,notification_type:v&&d.notification_type||be.EMAIL}};n&&(yield n(_))}catch(d){console.error("Error submitting form:",d)}});i.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const p=m.Form.useWatch("frequency",e)||"realtime";return i.useEffect(()=>{c(p)},[p]),i.createElement(m.Form,{form:e,layout:"vertical",className:Me.createAlertContent,initialValues:{frequency:"realtime"}},i.createElement(m.Form.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},i.createElement(m.Input,{placeholder:"Give your job alert a name"})),i.createElement(m.Form.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},i.createElement(m.Select,{mode:"multiple",placeholder:"Select job function",className:Me.formInput},a.map(d=>i.createElement(Ar,{key:d.key,value:d.key},d.value)))),i.createElement(m.Form.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},i.createElement(m.Select,{placeholder:"Select range",className:Me.formInput},l.map(d=>i.createElement(Ar,{key:d.value,value:d.value},d.label)))),i.createElement(m.Form.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},i.createElement(m.Select,{mode:"multiple",placeholder:"Select locations",className:Me.formInput},o.map(d=>i.createElement(Ar,{key:d.key,value:d.value},d.value)))),i.createElement(m.Form.Item,{label:"Experience (Years)?"},i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},i.createElement(m.Input,{placeholder:"Minimum",type:"number"}))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},i.createElement(m.Input,{placeholder:"Maximum",type:"number"}))))),i.createElement(m.Form.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},i.createElement(m.Radio.Group,{className:Me.radioGroup,onChange:d=>{c(d.target.value),d.target.value!=="realtime"&&e.setFieldsValue({notification_type:be.EMAIL})}},i.createElement(m.Radio,{value:"realtime"},"Realtime"),i.createElement(m.Radio,{value:"daily"},"Daily"),i.createElement(m.Radio,{value:"alternate"},"Every alternate day"),i.createElement(m.Radio,{value:"weekly"},"Weekly"))),s==="realtime"&&i.createElement(m.Form.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},i.createElement(m.Radio.Group,{className:Me.radioGroup},i.createElement(m.Radio,{value:be.EMAIL},"Email"),i.createElement(m.Radio,{value:be.WHATSAPP},"Whatsapp"),i.createElement(m.Radio,{value:be.BOTH},"Both"))))}const he={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function pf(){const e=G.useDispatch(),{data:t=[],isLoading:n,error:r}=rf(),[a]=of(),[o]=lf(),[l,{isLoading:s}]=sf(),[c,u]=i.useState(null),[p]=m.Form.useForm();i.useEffect(()=>{t&&e(uf(t))},[t,e]);const d=y=>za[y]||za[se.REALTIME],g=y=>Ha[y]||Ha[be.EMAIL],v=y=>y===yt.ACTIVE,_=(y,b)=>_e(this,null,function*(){try{const f=b===yt.ACTIVE?yt.INACTIVE:yt.ACTIVE;yield a({id:y,status:f}).unwrap(),m.message.success(`Alert ${f===yt.ACTIVE?"activated":"deactivated"} successfully`)}catch(f){m.message.error("Failed to update alert status"),console.error("Error updating alert status:",f)}}),h=y=>{u(y)},E=()=>{u(null),p.resetFields()},A=y=>_e(this,null,function*(){try{yield l({id:c,payload:y}).unwrap(),m.message.success("Alert updated successfully"),u(null),p.resetFields()}catch(b){throw m.message.error("Failed to update alert"),console.error("Error updating alert:",b),b}}),T=y=>_e(this,null,function*(){try{yield o(y).unwrap(),m.message.success("Alert deleted successfully")}catch(b){m.message.error("Failed to delete alert"),console.error("Error deleting alert:",b)}});return n?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.loadingText},"Loading alerts...")):r?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.errorText},"Error loading alerts")):!t||t.length===0?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.emptyText},"No alerts found")):i.createElement("div",{className:he.existingAlertContent},t.map(y=>{const b=y.attributes||y,f=y.id||b.id,S=v(b.status),C=d(b.frequency),x=g(b.notification_type),k=c===f;return i.createElement("div",{key:f,className:he.alertCard},i.createElement(m.Flex,{align:"center",className:he.alertHeader},i.createElement(er,{className:ye(he.alertIcon,{[he.inactiveIcon]:!S})}),i.createElement("div",null,b.name)),i.createElement("div",{className:he.alertSettings},i.createElement(m.Flex,{align:"center",gap:16,wrap:!0},i.createElement(m.Flex,{align:"center",gap:8},i.createElement(m.Switch,{checked:S,onChange:()=>_(f,b.status),size:"small",disabled:k}),i.createElement("span",null,"Active")),i.createElement(m.Flex,{align:"center",gap:8},i.createElement(ca,null),i.createElement("span",null,C)),i.createElement(m.Flex,{align:"center",gap:8},i.createElement(er,null),i.createElement("span",null,x)))),!k&&i.createElement("div",{className:he.alertActions},i.createElement(m.Button,{type:"text",danger:!0,icon:i.createElement(va,null),onClick:()=>T(f),className:he.deleteButton},"Delete"),i.createElement(m.Button,{type:"primary",icon:i.createElement(Ea,null),onClick:()=>h(f),className:he.editButton},"Edit")),k&&i.createElement("div",{className:he.editFormCard},i.createElement(So,{form:p,initialValues:b,onSubmit:A,isSubmitting:s}),i.createElement(m.Flex,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},i.createElement(m.Button,{onClick:E,disabled:s},"Cancel"),i.createElement(m.Button,{type:"primary",onClick:()=>_e(this,null,function*(){try{const w=yield p.validateFields(),N={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},M=w.frequency==="realtime",j={alert:{name:w.name,job_functions:w.job_functions||[],min_ctc:w.min_ctc,locations:w.locations||[],min_experience:w.min_experience?parseInt(w.min_experience,10):0,max_experience:w.max_experience?parseInt(w.max_experience,10):null,frequency:N[w.frequency]||se.REALTIME,notification_type:M&&w.notification_type||be.EMAIL}};yield A(j)}catch(w){}}),loading:s},"Update Alert"))))}))}function ff(){const e=G.useDispatch(),t=G.useSelector(h=>h.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=i.useState("create"),[a]=m.Form.useForm(),[o,{isLoading:l}]=af();i.useEffect(()=>{t||(a.resetFields(),r("create"))},[t,a]);const s=()=>{e(Sp())},c=()=>{s()},u=()=>_e(this,null,function*(){try{const h=yield a.validateFields(),E={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},A=h.frequency==="realtime",T={alert:{name:h.name,job_functions:h.job_functions||[],min_ctc:h.min_ctc,locations:h.locations||[],min_experience:h.min_experience?parseInt(h.min_experience,10):0,max_experience:h.max_experience?parseInt(h.max_experience,10):null,frequency:E[h.frequency]||se.REALTIME,notification_type:A&&h.notification_type||be.EMAIL},resume_alert:!1},y=yield o(T).unwrap();y.success&&y.alert&&(a.resetFields(),r("existing"),m.message.success("Alert created successfully"))}catch(h){m.message.error("Failed to create alert"),console.error("Error creating alert:",h)}}),p=h=>_e(this,null,function*(){const E=st(Ee({},h),{resume_alert:!1});return yield o(E).unwrap()}),d=i.createElement(m.Flex,{vertical:!0},i.createElement(m.Flex,{justify:"space-between"},i.createElement(m.Flex,{align:"center",gap:8},i.createElement(Xs,{className:Me.filterIcon}),"Curate your Job Alert"),i.createElement(fa,{onClick:s})),i.createElement("div",{className:Me.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),g=i.createElement("div",{className:Me.modalFooter},i.createElement(m.Button,{onClick:c},"Cancel"),i.createElement(m.Button,{type:"primary",onClick:u,loading:l},"Create Alert")),v=i.createElement(So,{form:a,onSubmit:p,isSubmitting:l}),_=i.createElement(pf,null);return i.createElement(m.Modal,{title:d,open:t,onCancel:s,footer:g,width:600,closable:!1,className:Me.modal},i.createElement(m.Tabs,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:v},{key:"existing",label:"Existing alerts",children:_}]}))}const mf={jobsPageContent:"_jobsPageContent_pk7y3_1"};function Co({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Qa}){const a=G.useDispatch(),o=G.useSelector(d=>d.scalantCareerHub.layout.selectedJobId),l=G.useSelector(d=>{var g,v;return((v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.tab)||de.all});i.useEffect(()=>{a(yp(r))},[r,a]);const s=i.createElement(ln,null),c=o?i.createElement(cn,{country:e,openMockInterviewModal:t,openResume:n,jobId:o}):i.createElement(sn,null),u=o?Ba.JOB_DETAILS:Ba.PROFILE_DETAILS,p=()=>{switch(l){case de.relevant:return i.createElement(Hp,null);case de.saved:return i.createElement(Up,null);case de.applied:return i.createElement(Kp,null);case de.all:default:return i.createElement(Vp,null)}};return i.createElement(i.Fragment,null,i.createElement(on,{header:s,sider:c,siderWidth:u,className:mf.jobsPage},p()),i.createElement(tf,null),i.createElement(ff,null))}Co.propTypes={processCounts:I.shape({all:I.number,relevant:I.number,draft:I.number,applications:I.number,saved:I.number,archived:I.number})};function wr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ir=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tt={INIT:"@@redux/INIT"+Ir(),REPLACE:"@@redux/REPLACE"+Ir(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ir()}};function vf(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hf(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(bf(e))return"date";if(yf(e))return"error";var n=gf(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function gf(e){return typeof e.constructor=="function"?e.constructor.name:null}function yf(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function bf(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _f(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=hf(e)),t}function To(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function Ef(e,t,n,r){var a=Object.keys(t),o=n&&n.type===Tt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!vf(e))return"The "+o+' has unexpected type of "'+_f(e)+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"');var l=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!r[s]});if(l.forEach(function(s){r[s]=!0}),!(n&&n.type===Tt.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}function Sf(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Tt.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?wr(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Tt.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?wr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Tt.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Cf(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];process.env.NODE_ENV!=="production"&&typeof e[a]=="undefined"&&To('No reducer provided for key "'+a+'"'),typeof e[a]=="function"&&(n[a]=e[a])}var o=Object.keys(n),l;process.env.NODE_ENV!=="production"&&(l={});var s;try{Sf(n)}catch(c){s=c}return function(u,p){if(u===void 0&&(u={}),s)throw s;if(process.env.NODE_ENV!=="production"){var d=Ef(u,n,p,l);d&&To(d)}for(var g=!1,v={},_=0;_<o.length;_++){var h=o[_],E=n[h],A=u[h],T=E(A,p);if(typeof T=="undefined"){var y=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?wr(14):"When called with an action of type "+(y?'"'+String(y)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}v[h]=T,g=g||T!==A}return g=g||o.length!==Object.keys(u).length,g?v:u}}const Tf={company_categories:[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories:[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations:[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types:[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels:[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping:{"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked:!0,pipeline_stages:[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills:[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled:!0,v0_onboarding_completed:!0,initial_user_application_stage:4,is_discussion_hub_enabled:!1,resume_issues:{total_issues:2},default_resume_details:{id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills:{language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data:[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}]},Of=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),Af=e=>!e||!Array.isArray(e)?e:e.map(t=>st(Ee({},t),{label:Of(t.label||"").replace(/_/g," ")})),wf=e=>!e||!Array.isArray(e)?e:e.map(t=>st(Ee({},t),{label:cd("titleCase",t.label||"")})),Oo=e=>{if(!e||typeof e!="object")return e;const t=nn(e);return t.companyCategories&&(t.companyCategories=Af(t.companyCategories)),t.roleTypes&&(t.roleTypes=wf(t.roleTypes)),t},If=window.__CAREERS_HUB__||Tf,xf={meta:Oo(If)},Ao=q.createSlice({name:"metaData",initialState:xf,reducers:{setMetaData:(e,t)=>{e.meta=Oo(t.payload)}}});Ao.actions;const kf=Ao.reducer,Nf=Cf({[ke.reducerPath]:ke.reducer,layout:$p,filter:ss,dashboard:Cp,filterForm:Zp,metaData:kf,filterOptions:ed,alerts:df});W.APPLICATION_STATUS=ts,W.ApplicationForm=Ya,W.EligibilityTag=Zt,W.FormContainer=Ra,W.FormContent=rr,W.FormHeader=ir,W.HelloWorld=nt,W.JOB_CARD_CONFIG=Vn,W.JOB_PROFILE_STATUS=ns,W.JobCard=tn,W.JobDetails=cn,W.JobsHeader=ln,W.JobsLayout=on,W.JobsList=tt,W.JobsPage=Co,W.ProfileDetails=sn,W.SaveButton=Xt,W.TABS=rs,W.careerHubApi=ke,W.checkAllOtherRequirementsMet=or,W.countPendingSteps=Xa,W.default=nt,W.determineJobTag=sr,W.formatCtc=pr,W.formatDate=eo,W.formatExperience=dr,W.formatLocation=mr,W.formatNoticePeriod=fr,W.setBaseUrl=Gl,W.store=Nf,W.useApplicationForm=wi,W.useCreateApplication=Ai,W.useJobCardState=Ii,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
88
|
+
`,r_=function(t){var n=b.useContext(ld),r=n.csp,o=n.prefixCls,i=n.layer,a=n_;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
89
|
+
`).concat(a,`
|
|
90
|
+
}`)),b.useEffect(function(){var l=t.current,c=cs(l);go(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:c})},[])},o_=["icon","className","onClick","style","primaryColor","secondaryColor"],_a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function i_(e){var t=e.primaryColor,n=e.secondaryColor;_a.primaryColor=t,_a.secondaryColor=n||hh(t),_a.calculated=!!n}function a_(){return q({},_a)}var us=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=tt(t,o_),u=s.useRef(),d=_a;if(a&&(d={primaryColor:a,secondaryColor:l||hh(a)}),r_(u),t_(vh(n),"icon should be icon definiton, but got ".concat(n)),!vh(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),_d(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};us.displayName="IconReact",us.getTwoToneColors=a_,us.setTwoToneColors=i_;const Pd=us;function yh(e){var t=bh(e),n=ae(t,2),r=n[0],o=n[1];return Pd.setTwoToneColors({primaryColor:r,secondaryColor:o})}function l_(){var e=Pd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var s_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yh(ls.primary);var ds=s.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,s_),d=s.useContext(ld),f=d.prefixCls,m=f===void 0?"anticon":f,p=d.rootClassName,g=U(p,m,H(H({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=a;h===void 0&&l&&(h=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=bh(c),C=ae(y,2),x=C[0],E=C[1];return s.createElement("span",de({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:l,className:g}),s.createElement(Pd,{icon:r,primaryColor:x,secondaryColor:E,style:v}))});ds.displayName="AntdIcon",ds.getTwoToneColor=l_,ds.setTwoToneColor=yh;const gt=ds;var c_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const u_=c_;var d_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:u_}))},Ch=s.forwardRef(d_);process.env.NODE_ENV!=="production"&&(Ch.displayName="AlertFilled");const Td=Ch;var f_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const m_=f_;var p_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:m_}))},Sh=s.forwardRef(p_);process.env.NODE_ENV!=="production"&&(Sh.displayName="BarsOutlined");const v_=Sh;var g_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const h_=g_;var b_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:h_}))},xh=s.forwardRef(b_);process.env.NODE_ENV!=="production"&&(xh.displayName="BellOutlined");const y_=xh;var C_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const S_=C_;var x_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:S_}))},Eh=s.forwardRef(x_);process.env.NODE_ENV!=="production"&&(Eh.displayName="CaretDownFilled");const E_=Eh;var $_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const w_=$_;var O_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:w_}))},$h=s.forwardRef(O_);process.env.NODE_ENV!=="production"&&($h.displayName="CaretDownOutlined");const N_=$h;var I_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const __=I_;var P_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:__}))},wh=s.forwardRef(P_);process.env.NODE_ENV!=="production"&&(wh.displayName="CaretUpOutlined");const T_=wh;var M_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const D_=M_;var A_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:D_}))},Oh=s.forwardRef(A_);process.env.NODE_ENV!=="production"&&(Oh.displayName="CheckCircleFilled");const To=Oh;var R_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const j_=R_;var L_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:j_}))},Nh=s.forwardRef(L_);process.env.NODE_ENV!=="production"&&(Nh.displayName="CheckCircleOutlined");const Ih=Nh;var z_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const B_=z_;var k_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:B_}))},_h=s.forwardRef(k_);process.env.NODE_ENV!=="production"&&(_h.displayName="CheckOutlined");const fs=_h;var F_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const H_=F_;var V_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:H_}))},Ph=s.forwardRef(V_);process.env.NODE_ENV!=="production"&&(Ph.displayName="ClockCircleOutlined");const Th=Ph;var W_={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:n}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:t}}]}},name:"clock-circle",theme:"twotone"};const K_=W_;var q_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:K_}))},Mh=s.forwardRef(q_);process.env.NODE_ENV!=="production"&&(Mh.displayName="ClockCircleTwoTone");const G_=Mh;var U_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const X_=U_;var Q_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:X_}))},Dh=s.forwardRef(Q_);process.env.NODE_ENV!=="production"&&(Dh.displayName="CloseCircleFilled");const Mo=Dh;var Y_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const J_=Y_;var Z_=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:J_}))},Ah=s.forwardRef(Z_);process.env.NODE_ENV!=="production"&&(Ah.displayName="CloseCircleOutlined");const eP=Ah;var tP={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const nP=tP;var rP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:nP}))},Rh=s.forwardRef(rP);process.env.NODE_ENV!=="production"&&(Rh.displayName="CloseOutlined");const xr=Rh;var oP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const iP=oP;var aP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:iP}))},jh=s.forwardRef(aP);process.env.NODE_ENV!=="production"&&(jh.displayName="CopyOutlined");const lP=jh;var sP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const cP=sP;var uP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:cP}))},Lh=s.forwardRef(uP);process.env.NODE_ENV!=="production"&&(Lh.displayName="DeleteOutlined");const zh=Lh;var dP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const fP=dP;var mP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:fP}))},Bh=s.forwardRef(mP);process.env.NODE_ENV!=="production"&&(Bh.displayName="DoubleLeftOutlined");const kh=Bh;var pP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const vP=pP;var gP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:vP}))},Fh=s.forwardRef(gP);process.env.NODE_ENV!=="production"&&(Fh.displayName="DoubleRightOutlined");const Md=Fh;var hP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const bP=hP;var yP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:bP}))},Hh=s.forwardRef(yP);process.env.NODE_ENV!=="production"&&(Hh.displayName="DownOutlined");const ms=Hh;var CP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const SP=CP;var xP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:SP}))},Vh=s.forwardRef(xP);process.env.NODE_ENV!=="production"&&(Vh.displayName="DownloadOutlined");const EP=Vh;var $P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const wP=$P;var OP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:wP}))},Wh=s.forwardRef(OP);process.env.NODE_ENV!=="production"&&(Wh.displayName="EditOutlined");const Dd=Wh;var NP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const IP=NP;var _P=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:IP}))},Kh=s.forwardRef(_P);process.env.NODE_ENV!=="production"&&(Kh.displayName="EllipsisOutlined");const Ad=Kh;var PP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const TP=PP;var MP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:TP}))},qh=s.forwardRef(MP);process.env.NODE_ENV!=="production"&&(qh.displayName="EnterOutlined");const DP=qh;var AP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const RP=AP;var jP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:RP}))},Gh=s.forwardRef(jP);process.env.NODE_ENV!=="production"&&(Gh.displayName="ExclamationCircleFilled");const Pa=Gh;var LP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const zP=LP;var BP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:zP}))},Uh=s.forwardRef(BP);process.env.NODE_ENV!=="production"&&(Uh.displayName="ExclamationCircleOutlined");const kP=Uh;var FP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const HP=FP;var VP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:HP}))},Xh=s.forwardRef(VP);process.env.NODE_ENV!=="production"&&(Xh.displayName="EyeInvisibleOutlined");const WP=Xh;var KP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const qP=KP;var GP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:qP}))},Qh=s.forwardRef(GP);process.env.NODE_ENV!=="production"&&(Qh.displayName="EyeOutlined");const UP=Qh;var XP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const QP=XP;var YP=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:QP}))},Yh=s.forwardRef(YP);process.env.NODE_ENV!=="production"&&(Yh.displayName="FileOutlined");const Jh=Yh;var JP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const ZP=JP;var eT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:ZP}))},Zh=s.forwardRef(eT);process.env.NODE_ENV!=="production"&&(Zh.displayName="FilterFilled");const tT=Zh;var nT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const rT=nT;var oT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:rT}))},eb=s.forwardRef(oT);process.env.NODE_ENV!=="production"&&(eb.displayName="FilterOutlined");const iT=eb;var aT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const lT=aT;var sT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:lT}))},tb=s.forwardRef(sT);process.env.NODE_ENV!=="production"&&(tb.displayName="FolderOpenOutlined");const cT=tb;var uT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const dT=uT;var fT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:dT}))},nb=s.forwardRef(fT);process.env.NODE_ENV!=="production"&&(nb.displayName="FolderOutlined");const mT=nb;var pT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const vT=pT;var gT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:vT}))},rb=s.forwardRef(gT);process.env.NODE_ENV!=="production"&&(rb.displayName="HolderOutlined");const hT=rb;var bT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const yT=bT;var CT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:yT}))},ob=s.forwardRef(CT);process.env.NODE_ENV!=="production"&&(ob.displayName="InfoCircleFilled");const Ta=ob;var ST={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const xT=ST;var ET=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:xT}))},ib=s.forwardRef(ET);process.env.NODE_ENV!=="production"&&(ib.displayName="LeftOutlined");const Ma=ib;var $T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const wT=$T;var OT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:wT}))},ab=s.forwardRef(OT);process.env.NODE_ENV!=="production"&&(ab.displayName="LinkOutlined");const lb=ab;var NT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const IT=NT;var _T=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:IT}))},sb=s.forwardRef(_T);process.env.NODE_ENV!=="production"&&(sb.displayName="LoadingOutlined");const Zo=sb;var PT={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:n}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:n}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:t}}]}},name:"mail",theme:"twotone"};const TT=PT;var MT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:TT}))},cb=s.forwardRef(MT);process.env.NODE_ENV!=="production"&&(cb.displayName="MailTwoTone");const DT=cb;var AT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const RT=AT;var jT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:RT}))},ub=s.forwardRef(jT);process.env.NODE_ENV!=="production"&&(ub.displayName="MinusSquareOutlined");const LT=ub;var zT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const BT=zT;var kT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:BT}))},db=s.forwardRef(kT);process.env.NODE_ENV!=="production"&&(db.displayName="PlusOutlined");const fb=db;var FT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const HT=FT;var VT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:HT}))},mb=s.forwardRef(VT);process.env.NODE_ENV!=="production"&&(mb.displayName="PlusSquareOutlined");const WT=mb;var KT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const qT=KT;var GT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:qT}))},pb=s.forwardRef(GT);process.env.NODE_ENV!=="production"&&(pb.displayName="QuestionCircleOutlined");const UT=pb;var XT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const QT=XT;var YT=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:QT}))},vb=s.forwardRef(YT);process.env.NODE_ENV!=="production"&&(vb.displayName="RightOutlined");const Da=vb;var JT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const ZT=JT;var e2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:ZT}))},gb=s.forwardRef(e2);process.env.NODE_ENV!=="production"&&(gb.displayName="RiseOutlined");const hb=gb;var t2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const n2=t2;var r2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:n2}))},bb=s.forwardRef(r2);process.env.NODE_ENV!=="production"&&(bb.displayName="RocketOutlined");const o2=bb;var i2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const a2=i2;var l2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:a2}))},yb=s.forwardRef(l2);process.env.NODE_ENV!=="production"&&(yb.displayName="SaveOutlined");const s2=yb;var c2={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const u2=c2;var d2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:u2}))},Cb=s.forwardRef(d2);process.env.NODE_ENV!=="production"&&(Cb.displayName="SaveTwoTone");const Sb=Cb;var f2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const m2=f2;var p2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:m2}))},xb=s.forwardRef(p2);process.env.NODE_ENV!=="production"&&(xb.displayName="SearchOutlined");const Aa=xb;var v2={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:n}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"};const g2=v2;var h2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:g2}))},Eb=s.forwardRef(h2);process.env.NODE_ENV!=="production"&&(Eb.displayName="StarTwoTone");const b2=Eb;var y2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const C2=y2;var S2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:C2}))},$b=s.forwardRef(S2);process.env.NODE_ENV!=="production"&&($b.displayName="UnlockOutlined");const x2=$b;var E2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const $2=E2;var w2=function(t,n){return s.createElement(gt,de({},t,{ref:n,icon:$2}))},wb=s.forwardRef(w2);process.env.NODE_ENV!=="production"&&(wb.displayName="WarningFilled");const O2=wb;var Rd={exports:{}},Yt={};/**
|
|
91
|
+
* @license React
|
|
92
|
+
* react-is.production.min.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/var Ob;function N2(){if(Ob)return Yt;Ob=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case o:case r:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case c:case m:case f:case i:return v;default:return y}}case t:return y}}}return Yt.ContextConsumer=a,Yt.ContextProvider=i,Yt.Element=e,Yt.ForwardRef=c,Yt.Fragment=n,Yt.Lazy=m,Yt.Memo=f,Yt.Portal=t,Yt.Profiler=o,Yt.StrictMode=r,Yt.Suspense=u,Yt.SuspenseList=d,Yt.isAsyncMode=function(){return!1},Yt.isConcurrentMode=function(){return!1},Yt.isContextConsumer=function(v){return h(v)===a},Yt.isContextProvider=function(v){return h(v)===i},Yt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Yt.isForwardRef=function(v){return h(v)===c},Yt.isFragment=function(v){return h(v)===n},Yt.isLazy=function(v){return h(v)===m},Yt.isMemo=function(v){return h(v)===f},Yt.isPortal=function(v){return h(v)===t},Yt.isProfiler=function(v){return h(v)===o},Yt.isStrictMode=function(v){return h(v)===r},Yt.isSuspense=function(v){return h(v)===u},Yt.isSuspenseList=function(v){return h(v)===d},Yt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===u||v===d||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===g||v.getModuleId!==void 0)},Yt.typeOf=h,Yt}var Jt={};/**
|
|
99
|
+
* @license React
|
|
100
|
+
* react-is.development.js
|
|
101
|
+
*
|
|
102
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the MIT license found in the
|
|
105
|
+
* LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/var Nb;function I2(){return Nb||(Nb=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,y=!1,C=!1,x;x=Symbol.for("react.module.reference");function E(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===o||C||Z===r||Z===u||Z===d||y||Z===p||g||h||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===m||Z.$$typeof===f||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===x||Z.getModuleId!==void 0))}function S(Z){if(typeof Z=="object"&&Z!==null){var ne=Z.$$typeof;switch(ne){case e:var re=Z.type;switch(re){case n:case o:case r:case u:case d:return re;default:var se=re&&re.$$typeof;switch(se){case l:case a:case c:case m:case f:case i:return se;default:return ne}}case t:return ne}}}var $=a,O=i,I=e,w=c,N=n,_=m,T=f,M=t,D=o,P=r,A=u,R=d,L=!1,j=!1;function z(Z){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(Z){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(Z){return S(Z)===a}function W(Z){return S(Z)===i}function k(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function V(Z){return S(Z)===c}function Q(Z){return S(Z)===n}function J(Z){return S(Z)===m}function Y(Z){return S(Z)===f}function te(Z){return S(Z)===t}function oe(Z){return S(Z)===o}function X(Z){return S(Z)===r}function F(Z){return S(Z)===u}function ee(Z){return S(Z)===d}Jt.ContextConsumer=$,Jt.ContextProvider=O,Jt.Element=I,Jt.ForwardRef=w,Jt.Fragment=N,Jt.Lazy=_,Jt.Memo=T,Jt.Portal=M,Jt.Profiler=D,Jt.StrictMode=P,Jt.Suspense=A,Jt.SuspenseList=R,Jt.isAsyncMode=z,Jt.isConcurrentMode=B,Jt.isContextConsumer=K,Jt.isContextProvider=W,Jt.isElement=k,Jt.isForwardRef=V,Jt.isFragment=Q,Jt.isLazy=J,Jt.isMemo=Y,Jt.isPortal=te,Jt.isProfiler=oe,Jt.isStrictMode=X,Jt.isSuspense=F,Jt.isSuspenseList=ee,Jt.isValidElementType=E,Jt.typeOf=S}()),Jt}process.env.NODE_ENV==="production"?Rd.exports=N2():Rd.exports=I2();var jd=Rd.exports;function ei(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var _2=Symbol.for("react.element"),P2=Symbol.for("react.transitional.element"),T2=Symbol.for("react.fragment");function Ib(e){return e&&He(e)==="object"&&(e.$$typeof===_2||e.$$typeof===P2)&&e.type===T2}var M2=Number(b.version.split(".")[0]),Ra=function(t,n){typeof t=="function"?t(n):He(t)==="object"&&t&&"current"in t&&(t.current=n)},Vn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){Ra(a,i)})}},Qr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ei(function(){return Vn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Ar=function(t){var n,r;if(!t)return!1;if(Ld(t)&&M2>=19)return!0;var o=jd.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==jd.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==jd.ForwardRef)};function Ld(e){return b.isValidElement(e)&&!Ib(e)}var D2=function(t){return Ld(t)&&Ar(t)},Do=function(t){if(t&&Ld(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};const Oi={APPLICATION_FORM:"application_form",SAVED:"Saved",WITHDRAWN:"Application Withdrawn"},_b={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},zd={relevant:{label:"Unlocked Jobs",icon:x2},all:{label:"All Jobs",icon:hb},saved:{label:"Saved",icon:EP},applied:{label:"Applied",icon:Ih}},pn={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},A2={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},ps={eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},ti={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},un={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},Pb={[un.REALTIME]:"Realtime",[un.DAILY]:"Daily",[un.ALTERNATE_DAY]:"Every alternate day",[un.WEEKLY]:"Weekly"},nr={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},Tb={[nr.EMAIL]:"On Email",[nr.WHATSAPP]:"On Whatsapp",[nr.BOTH]:"On Email & Whatsapp"},ja={ACTIVE:"active",INACTIVE:"inactive"},Mb={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},R2=(e=[])=>{if(!e||e.length===0)return"eligibility";const t=e[0];for(const n of Object.values(ps))if(n.mapping.property===t.property&&n.mapping.direction===t.direction)return n.value;return"eligibility"},j2=(e=[],t=[])=>{if(!t||t.length===0)return e;const n=new Set(e.map(o=>o.id)),r=t.filter(o=>!n.has(o.id));return[...e,...r]},L2=(e={},t={})=>ur(ur({},e),t),vs=(e,t=!1,n=!1,r=null)=>{const o=wt.useSelector(v=>{var y,C;return((C=(y=v.scalantCareerHub)==null?void 0:y.filter)==null?void 0:C.page_number)||1}),i=wt.useSelector(v=>{var y,C;return((C=(y=v.scalantCareerHub)==null?void 0:y.dashboard)==null?void 0:C.processCounts)||{}}),[a,l]=b.useState([]),[c,u]=b.useState({}),d=b.useMemo(()=>(e==null?void 0:e.jobs)||(e==null?void 0:e.results)||[],[e==null?void 0:e.jobs,e==null?void 0:e.results]),f=b.useMemo(()=>(e==null?void 0:e.companiesMap)||{},[e==null?void 0:e.companiesMap]),m=b.useMemo(()=>r||null,[r]),p=b.useMemo(()=>m?i[m]||0:null,[m,i]);b.useEffect(()=>{o===1?(l(d),u(f)):d.length>0&&(l(v=>j2(v,d)),u(v=>L2(v,f)))},[d,f,o]);const g=b.useMemo(()=>p===null?d.length>0:a.length<p,[p,a.length,d.length]),h=t&&o>1;return{accumulatedJobs:a,accumulatedCompaniesMap:c,hasMore:g,isFetchingMore:h,isLoading:n&&o===1}},gs=Xr.injectEndpoints({endpoints:e=>({getCompanies:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:t}}),transformResponse:t=>(t.data||[]).map(r=>({id:r.id,value:r.attributes.name})),providesTags:["FilterOptions"]}),getTitles:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"title",q:t}}),transformResponse:t=>{const n=(t.data||[]).map(o=>({id:o.id,value:o.attributes.title||o.attributes.name}));let r={};return n.forEach(o=>{r[o.value]=o.value}),Object.keys(r).map(o=>({key:o,value:r[o]}))},providesTags:["FilterOptions"]}),getExperienceSkills:e.query({query:t=>({url:"/user/skills/all",params:{prefix_q:t}}),transformResponse:t=>(t.all_skills||[]).map(r=>({skill_id:r.skill_id,key:r.key,skill_type:r.skill_type})).filter(r=>r.key&&r.skill_id&&r.skill_type).map(r=>({key:r.skill_id,value:r.key,type:r.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery:z2,useGetTitlesQuery:B2,useGetExperienceSkillsQuery:k2}=gs,Ao=(e,t,n=t)=>!e||!Array.isArray(e)?[]:e.map(r=>({key:r[t],value:r[n]})),Db=new Array(5).fill(1).map((e,t)=>({value:(e+t)*5,label:`>= ${(e+t)*5} Lakhs`})),Ab=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],Rb=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],F2=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],H2=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],V2=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],W2=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],K2=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],q2=new Array(3).fill(1).map((e,t)=>({value:((e+t+1)*30).toString(),label:`greater than ${e+t+1} Months`})),G2=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...q2],ni={minCtcOptions:Db,minCtcUSOptions:Ab,getMinCtcOptions:e=>e?Ab:Db,mockInterviewSkillOptions:Rb,datePostedOnOptions:F2,seniorityLevelOptions:H2,stipendOptions:V2,internshipDurationOptions:W2,jobTypeOptions:K2,NOTICE_PERIOD_OPTIONS:G2,convertToSelectOption:Ao,getProficiencyOptions:e=>e?Object.entries(e).map(([t,n])=>({value:n,label:t})):Rb,getMeritBasedSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.id,label:t.title})),getExperienceSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.subtopic_id,label:t.subtopic,type:t.eligible_class||"SubTopic"}))},U2={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},jb=We.createSlice({name:"filterOptions",initialState:U2,reducers:{setCompanyOptions:(e,t)=>{e.companyOptions=Ao(t.payload,"id","value")},setTitleOptions:(e,t)=>{e.titleOptions=t.payload},setExperienceSkillOptions:(e,t)=>{e.experienceSkillOptions=t.payload},clearCompanyOptions:e=>{e.companyOptions=[]},clearTitleOptions:e=>{e.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:e=>{e.companyOptions=[],e.titleOptions=[],e.experienceSkillOptions=[]}},extraReducers:e=>{e.addMatcher(gs.endpoints.getCompanies.matchFulfilled,(t,n)=>{t.companyOptions=Ao(n.payload,"id","value")}),e.addMatcher(gs.endpoints.getTitles.matchFulfilled,(t,n)=>{t.titleOptions=n.payload}),e.addMatcher(gs.endpoints.getExperienceSkills.matchFulfilled,(t,n)=>{const r=n.payload||[],o=t.experienceSkillOptions||[],i=new Map(o.map(a=>[a.key,a]));r.forEach(a=>{i.set(a.key,a)}),t.experienceSkillOptions=Array.from(i.values())})}}),{setCompanyOptions:pU,setTitleOptions:vU,setExperienceSkillOptions:gU,clearCompanyOptions:X2,clearTitleOptions:Q2,clearExperienceSkillOptions:Y2,clearAllOptions:J2}=jb.actions,Z2=jb.reducer,Bd=(e,t)=>{const n=b.useRef(null);return b.useCallback((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...r)},t)},[e,t])},eM=()=>{const e=wt.useDispatch(),[t,n]=b.useState(""),[r,o]=b.useState(""),[i,a]=b.useState(""),{isLoading:l,isFetching:c}=z2(t,{skip:!t||t.length<3}),{isLoading:u,isFetching:d}=B2(r,{skip:!r||r.length<3}),{isLoading:f,isFetching:m}=k2(i,{skip:!i||i.length<2});b.useEffect(()=>{(!t||t.length<3)&&e(X2())},[t,e]),b.useEffect(()=>{(!r||r.length<3)&&e(Q2())},[r,e]),b.useEffect(()=>{(!i||i.length<2)&&e(Y2())},[i,e]);const p=b.useCallback(E=>{n(E)},[]),g=Bd(p,300),h=b.useCallback(E=>{o(E)},[]),v=Bd(h,300),y=b.useCallback(E=>{a(E)},[]),C=Bd(y,300),x=b.useCallback((E,S)=>E.map($=>{const O=S==null?void 0:S.find(I=>I.key===$);return{experience_skill_id:$,skill_type:(O==null?void 0:O.type)||"SubTopic"}}),[]);return{handleCompanySearch:g,handleTitleSearch:v,handleExperienceSkillSearch:C,handleExperienceSkillChange:x,loadingCompanies:l||c,loadingTitles:u||d,loadingExperienceSkills:f||m}},Lb=()=>{const e=wt.useSelector(p=>{var g;return((g=p.scalantCareerHub.metaData)==null?void 0:g.meta)||{}}),t=b.useMemo(()=>ni.jobTypeOptions,[]),n=b.useMemo(()=>Ao(e.jobCategories||[],"value","label"),[e.jobCategories]),r=b.useMemo(()=>Ao(e.seniorityLevels||[],"value","label"),[e.seniorityLevels]),o=b.useMemo(()=>Ao(e.companyCategories||[],"value","label"),[e.companyCategories]),i=b.useMemo(()=>Ao(e.jobLocations||[],"label"),[e.jobLocations]),a=b.useMemo(()=>Ao(e.meritBasedSkills||[],"id","title"),[e.meritBasedSkills]),l=b.useMemo(()=>ni.getMinCtcOptions(!1),[]),c=b.useMemo(()=>ni.stipendOptions,[]),u=b.useMemo(()=>ni.internshipDurationOptions,[]),d=b.useMemo(()=>ni.NOTICE_PERIOD_OPTIONS,[]),f=b.useMemo(()=>ni.datePostedOnOptions,[]),m=b.useMemo(()=>ni.mockInterviewSkillOptions,[]);return{jobTypes:t,functions:n,seniorityLevels:r,companyCategories:o,locations:i,mbeSkills:a,ctcRanges:l,stipendRanges:c,durationRanges:u,noticePeriods:d,datePostedOptions:f,skillRatings:m}};function kd({applicationData:e}){switch(e.status){case Oi.APPLICATION_FORM:return b.createElement(b.Fragment,null,"Application Form");default:return null}}kd.propTypes={applicationData:pe.object.isRequired};function zb({jobProfileId:e,applicationId:t,status:n}){const{data:r,isLoading:o}=Wg({jobProfileId:e,applicationId:t,status:n});return o?b.createElement("div",null,"Loading..."):b.createElement(kd,{applicationData:r||{status:n}})}zb.propTypes={jobProfileId:pe.number.isRequired,applicationId:pe.number,status:pe.string};function _n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return b.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_n(r)):Ib(r)&&r.props?n=n.concat(_n(r.props.children,t)):n.push(r))}),n}function La(e){return e instanceof HTMLElement||e instanceof SVGElement}function za(e){return e&&He(e)==="object"&&La(e.nativeElement)?e.nativeElement:La(e)?e:null}function hs(e){var t=za(e);if(t)return t;if(e instanceof b.Component){var n;return(n=tr.findDOMNode)===null||n===void 0?void 0:n.call(tr,e)}return null}var Fd=s.createContext(null);function tM(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(Fd),a=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(Fd.Provider,{value:a},t)}var Bb=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Hd=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,bs=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),nM=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(bs):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),rM=2;function oM(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){nM(i)}function l(){var c=Date.now();if(n){if(c-o<rM)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return l}var iM=20,aM=["top","right","bottom","left","width","height","size","weight"],lM=typeof MutationObserver!="undefined",sM=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=oM(this.refresh.bind(this),iM)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Hd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),lM?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Hd||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=aM.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),kb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ni=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||bs},Fb=Cs(0,0,0,0);function ys(e){return parseFloat(e)||0}function Hb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+ys(i)},0)}function cM(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=ys(a)}return n}function uM(e){var t=e.getBBox();return Cs(0,0,t.width,t.height)}function dM(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Fb;var r=Ni(e).getComputedStyle(e),o=cM(r),i=o.left+o.right,a=o.top+o.bottom,l=ys(r.width),c=ys(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=Hb(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Hb(r,"top","bottom")+a)),!mM(e)){var u=Math.round(l+i)-t,d=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return Cs(o.left,o.top,l,c)}var fM=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof Ni(e).SVGGraphicsElement}:function(e){return e instanceof Ni(e).SVGElement&&typeof e.getBBox=="function"}}();function mM(e){return e===Ni(e).document.documentElement}function pM(e){return Hd?fM(e)?uM(e):dM(e):Fb}function vM(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return kb(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Cs(e,t,n,r){return{x:e,y:t,width:n,height:r}}var gM=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Cs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=pM(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hM=function(){function e(t,n){var r=vM(n);kb(this,{target:t,contentRect:r})}return e}(),bM=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Bb,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new gM(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hM(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Vb=typeof WeakMap!="undefined"?new WeakMap:new Bb,Wb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=sM.getInstance(),r=new bM(t,n,this);Vb.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Wb.prototype[e]=function(){var t;return(t=Vb.get(this))[e].apply(t,arguments)}});var yM=function(){return typeof bs.ResizeObserver!="undefined"?bs.ResizeObserver:Wb}(),bo=new Map;function Kb(e){e.forEach(function(t){var n,r=t.target;(n=bo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var qb=new yM(Kb);process.env.NODE_ENV,process.env.NODE_ENV;function CM(e,t){bo.has(e)||(bo.set(e,new Set),qb.observe(e)),bo.get(e).add(t)}function SM(e,t){bo.has(e)&&(bo.get(e).delete(t),bo.get(e).size||(qb.unobserve(e),bo.delete(e)))}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yg(r.key),r)}}function bn(e,t,n){return t&&Gb(e.prototype,t),n&&Gb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ba(e,t){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ba(e,t)}function Rr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ba(e,t)}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ri(e)}function Ss(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ss=function(){return!!e})()}function qe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ub(e,t){if(t&&(He(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function Yr(e){var t=Ss();return function(){var n,r=ri(e);if(t){var o=ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ub(this,n)}}var xM=function(e){Rr(n,e);var t=Yr(n);function n(){return hn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function EM(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(Fd),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&s.isValidElement(c)&&Ar(c),f=d?Do(c):null,m=Qr(f,o),p=function(){var y;return hs(o.current)||(o.current&&He(o.current)==="object"?hs((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||hs(i.current)};s.useImperativeHandle(t,function(){return p()});var g=s.useRef(e);g.current=e;var h=s.useCallback(function(v){var y=g.current,C=y.onResize,x=y.data,E=v.getBoundingClientRect(),S=E.width,$=E.height,O=v.offsetWidth,I=v.offsetHeight,w=Math.floor(S),N=Math.floor($);if(u.current.width!==w||u.current.height!==N||u.current.offsetWidth!==O||u.current.offsetHeight!==I){var _={width:w,height:N,offsetWidth:O,offsetHeight:I};u.current=_;var T=O===Math.round(S)?S:O,M=I===Math.round($)?$:I,D=q(q({},_),{},{offsetWidth:T,offsetHeight:M});a==null||a(D,v,x),C&&Promise.resolve().then(function(){C(D,v)})}},[]);return s.useEffect(function(){var v=p();return v&&!r&&CM(v,h),function(){return SM(v,h)}},[o.current,r]),s.createElement(xM,{ref:i},d?s.cloneElement(c,{ref:m}):c)}var Xb=s.forwardRef(EM);process.env.NODE_ENV!=="production"&&(Xb.displayName="SingleObserver");var $M="rc-observer-key";function wM(e,t){var n=e.children,r=typeof n=="function"?[n]:_n(n);return process.env.NODE_ENV!=="production"&&(r.length>1?ho(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&ho(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat($M,"-").concat(i);return s.createElement(Xb,de({},e,{key:a,ref:i===0?t:void 0}),o)})}var Wn=s.forwardRef(wM);process.env.NODE_ENV!=="production"&&(Wn.displayName="ResizeObserver"),Wn.Collection=tM;function OM(e){if(Array.isArray(e))return sd(e)}function Qb(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return OM(e)||Qb(e)||cd(e)||NM()}var Yb=function(t){return+setTimeout(t,16)},Jb=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yb=function(t){return window.requestAnimationFrame(t)},Jb=function(t){return window.cancelAnimationFrame(t)});var Zb=0,xs=new Map;function ey(e){xs.delete(e)}var At=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Zb+=1;var r=Zb;function o(i){if(i===0)ey(r),t();else{var a=Yb(function(){o(i-1)});xs.set(r,a)}}return o(n),r};At.cancel=function(e){var t=xs.get(e);return ey(e),Jb(t)},process.env.NODE_ENV!=="production"&&(At.ids=function(){return xs});function ka(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Jr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Ue(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&He(i)==="object"&&He(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var IM="%";function Vd(e){return e.join(IM)}var _M=function(){function e(t){hn(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t}return bn(e,[{key:"get",value:function(n){return this.opGet(Vd(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Vd(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Ii="data-token-hash",jr="data-css-hash",PM="data-cache-path",Ro="__cssinjs_instance__";function TM(){var e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(jr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ro]=o[Ro]||e,o[Ro]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(jr,"]"))).forEach(function(o){var i=o.getAttribute(jr);if(r[i]){if(o[Ro]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new _M(e)}var Fa=s.createContext({hashPriority:"low",cache:TM(),defaultCache:!0});function MM(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Wd=function(){function e(){hn(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=ae(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=ae(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!MM(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();H(Wd,"MAX_CACHE_SIZE",20),H(Wd,"MAX_CACHE_OFFSET",5);var ty=0,ny=function(){function e(t){hn(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ty,t.length===0&&ho(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ty+=1}return bn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Kd=new Wd;function qd(e){var t=Array.isArray(e)?e:[e];return Kd.has(t)||Kd.set(t,new ny(t)),Kd.get(t)}var DM=new WeakMap,Gd={};function AM(e,t){for(var n=DM,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Gd)||n.set(Gd,e()),n.get(Gd)}var ry=new WeakMap;function Ha(e){var t=ry.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ny?t+=r.id:r&&He(r)==="object"?t+=Ha(r):t+=r}),t=ka(t),ry.set(e,t)),t}function oy(e,t){return ka("".concat(t,"_").concat(Ha(e)))}var Ud=In();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function Es(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=q(q({},o),{},(r={},H(r,Ii,t),H(r,jr,n),r)),l=Object.keys(a).map(function(c){var u=a[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var $s=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},RM=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=ae(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},iy=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,u=ae(a,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,p=$s(d,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(p,")")}}),[i,RM(o,n,{scope:r==null?void 0:r.scope})]},ay=process.env.NODE_ENV!=="test"&&In()?s.useLayoutEffect:s.useEffect,Et=function(t,n){var r=s.useRef(!0);ay(function(){return t(r.current)},n),ay(function(){return r.current=!1,function(){r.current=!0}},[])},Xd=function(t,n){Et(function(r){if(!r)return t()},n)},jM=q({},s),ly=jM.useInsertionEffect,LM=function(t,n,r){s.useMemo(t,r),Et(function(){return n(!0)},r)},zM=ly?function(e,t,n){return ly(function(){return e(),t()},n)}:LM,BM=q({},s),kM=BM.useInsertionEffect,FM=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&ho(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},HM=function(){return function(t){t()}},VM=typeof kM!="undefined"?FM:HM;function WM(){return!1}var Qd=!1;function KM(){return Qd}const qM=process.env.NODE_ENV==="production"?WM:KM;if(process.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var ws=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:null;if(ws&&typeof ws.webpackHotUpdate=="function"){var GM=ws.webpackHotUpdate;ws.webpackHotUpdate=function(){return Qd=!0,setTimeout(function(){Qd=!1},0),GM.apply(void 0,arguments)}}}function Yd(e,t,n,r,o){var i=s.useContext(Fa),a=i.cache,l=[e].concat(ge(t)),c=Vd(l),u=VM([c]),d=qM(),f=function(h){a.opUpdate(c,function(v){var y=v||[void 0,void 0],C=ae(y,2),x=C[0],E=x===void 0?0:x,S=C[1],$=S;process.env.NODE_ENV!=="production"&&S&&d&&(r==null||r($,d),$=null);var O=$||n(),I=[E,O];return h?h(I):I})};s.useMemo(function(){f()},[c]);var m=a.opGet(c);process.env.NODE_ENV!=="production"&&!m&&(f(),m=a.opGet(c));var p=m[1];return zM(function(){o==null||o(p)},function(g){return f(function(h){var v=ae(h,2),y=v[0],C=v[1];return g&&y===0&&(o==null||o(p)),[y+1,C]}),function(){a.opUpdate(c,function(h){var v=h||[],y=ae(v,2),C=y[0],x=C===void 0?0:C,E=y[1],S=x-1;return S===0?(u(function(){(g||!a.opGet(c))&&(r==null||r(E,!1))}),null):[x-1,E]})}},[c]),p}var UM={},XM=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",oi=new Map;function QM(e){oi.set(e,(oi.get(e)||0)+1)}function YM(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(Ii,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ro]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var JM=0;function ZM(e,t){oi.set(e,(oi.get(e)||0)-1);var n=Array.from(oi.keys()),r=n.filter(function(o){var i=oi.get(o)||0;return i<=0});n.length-r.length>JM&&r.forEach(function(o){YM(o,t),oi.delete(o)})}var eD=function(t,n,r,o){var i=r.getDerivativeToken(t),a=q(q({},i),n);return o&&(a=o(a)),a},sy="token";function tD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.useContext(Fa),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,u=c===void 0?UM:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,p=AM(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),g=Ha(p),h=Ha(u),v=m?Ha(m):"",y=Yd(sy,[l,e.id,g,h,v],function(){var C,x=f?f(p,u,e):eD(p,u,e,d),E=q({},x),S="";if(m){var $=iy(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),O=ae($,2);x=O[0],S=O[1]}var I=oy(x,l);x._tokenKey=I,E._tokenKey=oy(E,l);var w=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:I;x._themeKey=w,QM(w);var N="".concat(XM,"-").concat(ka(I));return x._hashId=N,[x,N,E,S,(m==null?void 0:m.key)||""]},function(C){ZM(C[0]._themeKey,o)},function(C){var x=ae(C,4),E=x[0],S=x[3];if(m&&S){var $=go(S,ka("css-variables-".concat(E._themeKey)),{mark:jr,prepend:"queue",attachTo:i,priority:-999});$[Ro]=o,$.setAttribute(Ii,E._themeKey)}});return y}var nD=function(t,n,r){var o=ae(t,5),i=o[2],a=o[3],l=o[4],c=r||{},u=c.plain;if(!a)return null;var d=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Es(a,l,d,m,u);return[f,d,p]},rD={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cy="comm",uy="rule",dy="decl",oD="@import",iD="@namespace",aD="@keyframes",lD="@layer",fy=Math.abs,Jd=String.fromCharCode;function my(e){return e.trim()}function Os(e,t,n){return e.replace(t,n)}function sD(e,t,n){return e.indexOf(t,n)}function _i(e,t){return e.charCodeAt(t)|0}function Pi(e,t,n){return e.slice(t,n)}function Zr(e){return e.length}function cD(e){return e.length}function Ns(e,t){return t.push(e),e}var Is=1,Ti=1,py=0,Er=0,Pn=0,Mi="";function Zd(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Is,column:Ti,length:a,return:"",siblings:l}}function uD(){return Pn}function dD(){return Pn=Er>0?_i(Mi,--Er):0,Ti--,Pn===10&&(Ti=1,Is--),Pn}function Lr(){return Pn=Er<py?_i(Mi,Er++):0,Ti++,Pn===10&&(Ti=1,Is++),Pn}function jo(){return _i(Mi,Er)}function _s(){return Er}function Ps(e,t){return Pi(Mi,e,t)}function Va(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fD(e){return Is=Ti=1,py=Zr(Mi=e),Er=0,[]}function mD(e){return Mi="",e}function ef(e){return my(Ps(Er-1,tf(e===91?e+2:e===40?e+1:e)))}function pD(e){for(;(Pn=jo())&&Pn<33;)Lr();return Va(e)>2||Va(Pn)>3?"":" "}function vD(e,t){for(;--t&&Lr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return Ps(e,_s()+(t<6&&jo()==32&&Lr()==32))}function tf(e){for(;Lr();)switch(Pn){case e:return Er;case 34:case 39:e!==34&&e!==39&&tf(Pn);break;case 40:e===41&&tf(e);break;case 92:Lr();break}return Er}function gD(e,t){for(;Lr()&&e+Pn!==47+10;)if(e+Pn===42+42&&jo()===47)break;return"/*"+Ps(t,Er-1)+"*"+Jd(e===47?e:Lr())}function hD(e){for(;!Va(jo());)Lr();return Ps(e,Er)}function bD(e){return mD(Ts("",null,null,null,[""],e=fD(e),0,[0],e))}function Ts(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,m=0,p=0,g=0,h=1,v=1,y=1,C=0,x="",E=o,S=i,$=r,O=x;v;)switch(g=C,C=Lr()){case 40:if(g!=108&&_i(O,f-1)==58){sD(O+=Os(ef(C),"&","&\f"),"&\f",fy(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:O+=ef(C);break;case 9:case 10:case 13:case 32:O+=pD(g);break;case 92:O+=vD(_s()-1,7);continue;case 47:switch(jo()){case 42:case 47:Ns(yD(gD(Lr(),_s()),t,n,c),c),(Va(g||1)==5||Va(jo()||1)==5)&&Zr(O)&&Pi(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*h:l[u++]=Zr(O)*y;case 125*h:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+d:y==-1&&(O=Os(O,/\f/g,"")),p>0&&(Zr(O)-f||h===0&&g===47)&&Ns(p>32?gy(O+";",r,n,f-1,c):gy(Os(O," ","")+";",r,n,f-2,c),c);break;case 59:O+=";";default:if(Ns($=vy(O,t,n,u,d,o,l,x,E=[],S=[],f,i),i),C===123)if(d===0)Ts(O,t,$,$,E,i,f,l,S);else{switch(m){case 99:if(_i(O,3)===110)break;case 108:if(_i(O,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Ts(e,$,$,r&&Ns(vy(e,$,$,0,0,o,l,x,o,E=[],f,S),S),o,S,f,l,r?E:S):Ts(O,$,$,$,[""],S,0,l,S)}}u=d=p=0,h=y=1,x=O="",f=a;break;case 58:f=1+Zr(O),p=g;default:if(h<1){if(C==123)--h;else if(C==125&&h++==0&&dD()==125)continue}switch(O+=Jd(C),C*h){case 38:y=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(Zr(O)-1)*y,y=1;break;case 64:jo()===45&&(O+=ef(Lr())),m=jo(),d=f=Zr(x=O+=hD(_s())),C++;break;case 45:g===45&&Zr(O)==2&&(h=0)}}return i}function vy(e,t,n,r,o,i,a,l,c,u,d,f){for(var m=o-1,p=o===0?i:[""],g=cD(p),h=0,v=0,y=0;h<r;++h)for(var C=0,x=Pi(e,m+1,m=fy(v=a[h])),E=e;C<g;++C)(E=my(v>0?p[C]+" "+x:Os(x,/&\f/g,p[C])))&&(c[y++]=E);return Zd(e,t,n,o===0?uy:l,c,u,d,f)}function yD(e,t,n,r){return Zd(e,t,n,cy,Jd(uD()),Pi(e,2,-2),0,r)}function gy(e,t,n,r,o){return Zd(e,t,n,dy,Pi(e,0,r),Pi(e,r+1,-1),r,o)}function nf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function CD(e,t,n,r){switch(e.type){case lD:if(e.children.length)break;case oD:case iD:case dy:return e.return=e.return||e.value;case cy:return"";case aD:return e.return=e.value+"{"+nf(e.children,r)+"}";case uy:if(!Zr(e.value=e.props.join(",")))return""}return Zr(n=nf(e.children,r))?e.return=e.value+"{"+n+"}":""}function hy(e,t){var n=t.path,r=t.parentSelectors;Ue(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var SD=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&hy("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},xD=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&hy("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},by="data-ant-cssinjs-cache-path",yy="_FILE_STYLE__",ii,Cy=!0;function ED(){if(!ii&&(ii={},In())){var e=document.createElement("div");e.className=by,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ae(i,2),l=a[0],c=a[1];ii[l]=c});var n=document.querySelector("style[".concat(by,"]"));if(n){var r;Cy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function $D(e){return ED(),!!ii[e]}function wD(e){var t=ii[e],n=null;if(t&&In())if(Cy)n=yy;else{var r=document.querySelector("style[".concat(jr,'="').concat(ii[e],'"]'));r?n=r.innerHTML:delete ii[e]}return[n,t]}var Sy="_skip_check_",xy="_multi_value_";function Ms(e){var t=nf(bD(e),CD);return t.replace(/\{%%%\:[^;];}/g,";")}function OD(e){return He(e)==="object"&&e&&(Sy in e||xy in e)}function Ey(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ge(c.slice(1))).join(" ")});return i.join(",")}var ND=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f,p=n.linters,g=p===void 0?[]:p,h="",v={};function y(E){var S=E.getName(l);if(!v[S]){var $=e(E.style,n,{root:!1,parentSelectors:a}),O=ae($,1),I=O[0];v[S]="@keyframes ".concat(E.getName(l)).concat(I)}}function C(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function($){Array.isArray($)?C($,S):$&&S.push($)}),S}var x=C(Array.isArray(t)?t:[t]);return x.forEach(function(E){var S=typeof E=="string"&&!o?{}:E;if(typeof S=="string")h+="".concat(S,`
|
|
108
|
+
`);else if(S._keyframe)y(S);else{var $=m.reduce(function(O,I){var w;return(I==null||(w=I.visit)===null||w===void 0?void 0:w.call(I,O))||O},S);Object.keys($).forEach(function(O){var I=$[O];if(He(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!OD(I)){var w=!1,N=O.trim(),_=!1;(o||i)&&l?N.startsWith("@")?w=!0:N==="&"?N=Ey("",l,d):N=Ey(O,l,d):o&&!l&&(N==="&"||N==="")&&(N="",_=!0);var T=e(I,n,{root:_,injectHash:w,parentSelectors:[].concat(ge(a),[N])}),M=ae(T,2),D=M[0],P=M[1];v=q(q({},v),P),h+="".concat(N).concat(D)}else{let L=function(j,z){process.env.NODE_ENV!=="production"&&(He(I)!=="object"||!(I!=null&&I[Sy]))&&[SD,xD].concat(ge(g)).forEach(function(W){return W(j,z,{path:u,hashId:l,parentSelectors:a})});var B=j.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=z;!rD[j]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),j==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(y(z),K=z.getName(l)),h+="".concat(B,":").concat(K,";")};var A,R=(A=I==null?void 0:I.value)!==null&&A!==void 0?A:I;He(I)==="object"&&I!==null&&I!==void 0&&I[xy]&&Array.isArray(R)?R.forEach(function(j){L(O,j)}):L(O,R)}})}}),o?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(c.name,";")}).join(`
|
|
109
|
+
`))):h="{".concat(h,"}"),[h,v]};function $y(e,t){return ka("".concat(e.join("%")).concat(t))}function ID(){return null}var wy="style";function rf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Fa),f=d.autoClear,m=d.mock,p=d.defaultCache,g=d.hashPriority,h=d.container,v=d.ssrInline,y=d.transformers,C=d.linters,x=d.cache,E=d.layer,S=n._tokenKey,$=[S];E&&$.push("layer"),$.push.apply($,ge(r));var O=Ud;process.env.NODE_ENV!=="production"&&m!==void 0&&(O=m==="client");var I=Yd(wy,$,function(){var M=$.join("|");if($D(M)){var D=wD(M),P=ae(D,2),A=P[0],R=P[1];if(A)return[A,S,R,{},l,u]}var L=t(),j=ND(L,{hashId:o,hashPriority:g,layer:E?i:void 0,path:r.join("-"),transformers:y,linters:C}),z=ae(j,2),B=z[0],K=z[1],W=Ms(B),k=$y($,W);return[W,S,k,K,l,u]},function(M,D){var P=ae(M,3),A=P[2];(D||f)&&Ud&&Ia(A,{mark:jr})},function(M){var D=ae(M,4),P=D[0];D[1];var A=D[2],R=D[3];if(O&&P!==yy){var L={mark:jr,prepend:E?!1:"queue",attachTo:h,priority:u},j=typeof a=="function"?a():a;j&&(L.csp={nonce:j});var z=[],B=[];Object.keys(R).forEach(function(W){W.startsWith("@layer")?z.push(W):B.push(W)}),z.forEach(function(W){go(Ms(R[W]),"_layer-".concat(W),q(q({},L),{},{prepend:!0}))});var K=go(P,A,L);K[Ro]=x.instanceId,K.setAttribute(Ii,S),process.env.NODE_ENV!=="production"&&K.setAttribute(PM,$.join("|")),B.forEach(function(W){go(Ms(R[W]),"_effect-".concat(W),L)})}}),w=ae(I,3),N=w[0],_=w[1],T=w[2];return function(M){var D;if(!v||O||!p)D=s.createElement(ID,null);else{var P;D=s.createElement("style",de({},(P={},H(P,Ii,_),H(P,jr,T),P),{dangerouslySetInnerHTML:{__html:N}}))}return s.createElement(s.Fragment,null,D,M)}}var _D=function(t,n,r){var o=ae(t,6),i=o[0],a=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var p=i,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=Es(i,a,l,g,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var v=Ms(c[h]),y=Es(v,a,"_effect-".concat(h),g,m);h.startsWith("@layer")?p=y+p:p+=y}}),[d,l,p]},Oy="cssVar",PD=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=b.useContext(Fa),f=d.cache.instanceId,m=d.container,p=l._tokenKey,g=[].concat(ge(t.path),[r,u,p]),h=Yd(Oy,g,function(){var v=n(),y=iy(v,r,{prefix:o,unitless:i,ignore:a,scope:u}),C=ae(y,2),x=C[0],E=C[1],S=$y(g,E);return[x,E,S,r]},function(v){var y=ae(v,3),C=y[2];Ud&&Ia(C,{mark:jr})},function(v){var y=ae(v,3),C=y[1],x=y[2];if(C){var E=go(C,x,{mark:jr,prepend:"queue",attachTo:m,priority:-999});E[Ro]=f,E.setAttribute(Ii,r)}});return h},TD=function(t,n,r){var o=ae(t,4),i=o[1],a=o[2],l=o[3],c=r||{},u=c.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Es(i,l,a,f,u);return[d,a,m]},Wa;Wa={},H(Wa,wy,_D),H(Wa,sy,nD),H(Wa,Oy,TD);var It=function(){function e(t,n){hn(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return bn(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 Di(e){return e.notSplit=!0,e}Di(["borderTop","borderBottom"]),Di(["borderTop"]),Di(["borderBottom"]),Di(["borderLeft","borderRight"]),Di(["borderLeft"]),Di(["borderRight"]);function Ny(e){return Xg(e)||Qb(e)||cd(e)||Qg()}function rr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Iy(e,t,n,r){if(!t.length)return n;var o=Ny(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=ge(e):l=q({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Iy(l[i],a,n,r),l}function $r(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!rr(e,t.slice(0,-1))?e:Iy(e,t,n,r)}function MD(e){return He(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function _y(e){return Array.isArray(e)?[]:{}}var DD=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=_y(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=rr(o,a),d=Array.isArray(u);if(d||MD(u)){if(!c.has(u)){c.add(u);var f=rr(r,a);d?r=$r(r,a,[]):(!f||He(f)!=="object")&&(r=$r(r,a,_y(u))),DD(u).forEach(function(m){i([].concat(ge(a),[m]),c)})}}else r=$r(r,a,u)}i([])}),r}function Py(){}let yo=null;function AD(){yo=null,mh()}let of=Py;process.env.NODE_ENV!=="production"&&(of=(e,t,n)=>{Ue(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&AD()});const Ty=s.createContext({}),vt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(Ty),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=yo;yo||(yo={}),yo[e]=yo[e]||[],yo[e].includes(i||"")||yo[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",yo)}else process.env.NODE_ENV!=="production"&&of(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Py,e},Lo=of,My=b.createContext(void 0);var Dy={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},RD={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},jD=q(q({},RD),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Ay={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ry={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},jD),timePickerLocale:Object.assign({},Ay)},mr="${label} is not a valid ${type}",eo={locale:"en",Pagination:Dy,DatePicker:Ry,TimePicker:Ay,Calendar:Ry,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:mr,method:mr,array:mr,object:mr,number:mr,date:mr,boolean:mr,integer:mr,float:mr,regexp:mr,email:mr,url:mr,hex:mr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ds=Object.assign({},eo.Modal),As=[];const jy=()=>As.reduce((e,t)=>Object.assign(Object.assign({},e),t),eo.Modal);function LD(e){if(e){const t=Object.assign({},e);return As.push(t),Ds=jy(),()=>{As=As.filter(n=>n!==t),Ds=jy()}}Ds=Object.assign({},eo.Modal)}function Ly(){return Ds}const af=b.createContext(void 0),to=(e,t)=>{const n=s.useContext(af),r=s.useMemo(()=>{var i;const a=t||eo[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=s.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?eo.locale:i},[n]);return[r,o]},zy="internalMark",By=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=vt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===zy,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>LD(t==null?void 0:t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(af.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(By.displayName="LocaleProvider");const zD=By,ky={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"},Ka=Object.assign(Object.assign({},ky),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
110
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
111
|
+
'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});function BD(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),p=n(i),g=n(a),h=n(l),v=r(u,d),y=e.colorLink||e.colorInfo,C=n(y),x=new Bt(g[1]).mix(new Bt(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:x,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new Bt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const kD=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function FD(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},kD(r))}const HD=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Rs(e){return(e+8)/e}function VD(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Rs(n)}))}const WD=e=>{const t=VD(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function KD(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 wr=(e,t)=>new Bt(e).setA(t).toRgbString(),qa=(e,t)=>new Bt(e).darken(t).toHexString(),qD=e=>{const t=Na(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]}},GD=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:wr(r,.88),colorTextSecondary:wr(r,.65),colorTextTertiary:wr(r,.45),colorTextQuaternary:wr(r,.25),colorFill:wr(r,.15),colorFillSecondary:wr(r,.06),colorFillTertiary:wr(r,.04),colorFillQuaternary:wr(r,.02),colorBgSolid:wr(r,1),colorBgSolidHover:wr(r,.75),colorBgSolidActive:wr(r,.95),colorBgLayout:qa(n,4),colorBgContainer:qa(n,0),colorBgElevated:qa(n,0),colorBgSpotlight:wr(r,.85),colorBgBlur:"transparent",colorBorder:qa(n,15),colorBorderSecondary:qa(n,6)}};function UD(e){wi.pink=wi.magenta,xd.pink=xd.magenta;const t=Object.keys(ky).map(n=>{const r=e[n]===wi[n]?xd[n]:Na(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),BD(e,{generateColorPalettes:qD,generateNeutralColorPalettes:GD})),WD(e.fontSize)),KD(e)),HD(e)),FD(e))}const Fy=qd(UD),lf={token:Ka,override:{override:Ka},hashed:!0},Hy=b.createContext(lf),Ga="ant",js="anticon",XD=["outlined","borderless","filled","underlined"],QD=(e,t)=>t||(e?`${Ga}-${e}`:Ga),Xe=s.createContext({getPrefixCls:QD,iconPrefixCls:js}),Vy={};function Dn(e){const t=s.useContext(Xe),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Vy,styles:Vy},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const YD=`-ant-${Date.now()}-${Math.random()}`;function JD(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new Bt(a),u=Na(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Bt(t.primaryColor),l=Na(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setA(u.a*.12));const c=new Bt(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
112
|
+
:root {
|
|
113
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
114
|
+
`)}
|
|
115
|
+
}
|
|
116
|
+
`.trim()}function ZD(e,t){const n=JD(e,t);In()?go(n,`${YD}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Lo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const sf=s.createContext(!1),cf=e=>{let{children:t,disabled:n}=e;const r=s.useContext(sf);return s.createElement(sf.Provider,{value:n!=null?n:r},t)},no=sf,uf=s.createContext(void 0),eA=e=>{let{children:t,size:n}=e;const r=s.useContext(uf);return s.createElement(uf.Provider,{value:n||r},t)},Ua=uf;function tA(){const e=b.useContext(no),t=b.useContext(Ua);return{componentDisabled:e,componentSize:t}}var Wy=bn(function e(){hn(this,e)}),Ky="CALC_UNIT",nA=new RegExp(Ky,"g");function df(e){return typeof e=="number"?"".concat(e).concat(Ky):e}var rA=function(e){Rr(n,e);var t=Yr(n);function n(r,o){var i;hn(this,n),i=t.call(this),H(qe(i),"result",""),H(qe(i),"unitlessCssVar",void 0),H(qe(i),"lowPriority",void 0);var a=He(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=df(r):a==="string"&&(i.result=r),i}return bn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(df(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(df(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(nA,c?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(Wy),oA=function(e){Rr(n,e);var t=Yr(n);function n(r){var o;return hn(this,n),o=t.call(this),H(qe(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return bn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(Wy),iA=function(t,n){var r=t==="css"?rA:oA;return function(o){return new r(o,n)}},qy=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 qt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function ai(e){var t=s.useRef(!1),n=s.useState(e),r=ae(n,2),o=r[0],i=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function ff(e){return e!==void 0}function an(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=ai(function(){return ff(o)?o:ff(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=ae(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=a?a(f):f,p=qt(i),g=ai([f]),h=ae(g,2),v=h[0],y=h[1];Xd(function(){var x=v[0];u!==x&&p(u,x)},[v]),Xd(function(){ff(o)||d(o)},[o]);var C=qt(function(x,E){d(x,E),y([f],E)});return[m,C]}function Gy(e,t,n,r){var o=q({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var c=ae(l,2),u=c[0],d=c[1];if(process.env.NODE_ENV!=="production"&&Ue(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var a=q(q({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Uy=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC!="undefined",mf=!0;function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Uy)return Object.assign.apply(Object,[{}].concat(t));mf=!1;var r={};return t.forEach(function(o){if(He(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),mf=!0,r}var Xy={};function aA(){}var lA=function(t){var n,r=t,o=aA;return Uy&&typeof Proxy!="undefined"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(mf){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;Xy[a]={global:Array.from(n),component:q(q({},(c=Xy[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:o}};function Qy(e,t,n){if(typeof n=="function"){var r;return n(St(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n!=null?n:{}}function sA(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return G(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return G(i)}).join(","),")")}}}var cA=1e3*60*10,uA=function(){function e(){hn(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return bn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&He(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(He(i),"_").concat(i)});return o.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(o,i){r-o>cA&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Yy=new uA;function dA(e,t){return b.useMemo(function(){var n=Yy.get(t);if(n)return n;var r=e();return Yy.set(t,r),r},t)}var fA=function(){return{}};function mA(e){var t=e.useCSP,n=t===void 0?fA:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,p,g,h){var v=Array.isArray(m)?m[0]:m;function y(I){return"".concat(String(v)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var C=(h==null?void 0:h.unitless)||{},x=typeof l=="function"?l(m):{},E=q(q({},x),{},H({},y("zIndexPopup"),!0));Object.keys(C).forEach(function(I){E[y(I)]=C[I]});var S=q(q({},h),{},{unitless:E,prefixToken:y}),$=d(m,p,g,S),O=u(v,g,S);return function(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,N=$(I,w),_=ae(N,2),T=_[1],M=O(w),D=ae(M,2),P=D[0],A=D[1];return[P,T,A]}}function u(m,p,g){var h=g.unitless,v=g.injectStyle,y=v===void 0?!0:v,C=g.prefixToken,x=g.ignore,E=function(O){var I=O.rootCls,w=O.cssVar,N=w===void 0?{}:w,_=r(),T=_.realToken;return PD({path:[m],prefix:N.prefix,key:N.key,unitless:h,ignore:x,token:T,scope:I},function(){var M=Qy(m,T,p),D=Gy(m,T,M,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(M).forEach(function(P){D[C(P)]=D[P],delete D[P]}),D}),null},S=function(O){var I=r(),w=I.cssVar;return[function(N){return y&&w?b.createElement(b.Fragment,null,b.createElement(E,{rootCls:O,cssVar:w,component:m}),N):N},w==null?void 0:w.key]};return S}function d(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(m)?m:[m,m],y=ae(v,1),C=y[0],x=v.join("-"),E=e.layer||{name:"antd"};return function(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,O=r(),I=O.theme,w=O.realToken,N=O.hashId,_=O.token,T=O.cssVar,M=o(),D=M.rootPrefixCls,P=M.iconPrefixCls,A=n(),R=T?"css":"js",L=dA(function(){var k=new Set;return T&&Object.keys(h.unitless||{}).forEach(function(V){k.add($s(V,T.prefix)),k.add($s(V,qy(C,T.prefix)))}),iA(R,k)},[R,C,T==null?void 0:T.prefix]),j=sA(R),z=j.max,B=j.min,K={theme:I,token:_,hashId:N,nonce:function(){return A.nonce},clientOnly:h.clientOnly,layer:E,order:h.order||-999};typeof i=="function"&&rf(q(q({},K),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(_,{prefix:{rootPrefixCls:D,iconPrefixCls:P},csp:A})});var W=rf(q(q({},K),{},{path:[x,S,P]}),function(){if(h.injectStyle===!1)return[];var k=lA(_),V=k.token,Q=k.flush,J=Qy(C,w,g),Y=".".concat(S),te=Gy(C,w,J,{deprecatedTokens:h.deprecatedTokens});T&&J&&He(J)==="object"&&Object.keys(J).forEach(function(ee){J[ee]="var(".concat($s(ee,qy(C,T.prefix)),")")});var oe=St(V,{componentCls:Y,prefixCls:S,iconCls:".".concat(P),antCls:".".concat(D),calc:L,max:z,min:B},T?J:te),X=p(oe,{hashId:N,prefixCls:S,rootPrefixCls:D,iconPrefixCls:P});Q(C,te);var F=typeof a=="function"?a(oe,S,$,h.resetFont):null;return[h.resetStyle===!1?null:F,X]});return[W,N]}}function f(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=d(m,p,g,q({resetStyle:!1,order:-998},h)),y=function(x){var E=x.prefixCls,S=x.rootCls,$=S===void 0?E:S;return v(E,$),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(m)?m.join("."):m))),y}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const zo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pA="5.25.1";function pf(e){return e>=0&&e<=255}function Xa(e,t){const{r:n,g:r,b:o,a:i}=new Bt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Bt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(pf(d)&&pf(f)&&pf(m))return new Bt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Bt({r:n,g:r,b:o,a:1}).toRgbString()}var vA=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Jy(e){const{override:t}=e,n=vA(e,["override"]),r=Object.assign({},t);Object.keys(Ka).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xa(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Xa(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xa(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Xa(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
117
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
118
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
119
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
120
|
+
`,boxShadowSecondary:`
|
|
121
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
122
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
123
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
124
|
+
`,boxShadowTertiary:`
|
|
125
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
126
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
127
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
128
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
129
|
+
0 1px 2px -2px ${new Bt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
130
|
+
0 3px 6px 0 ${new Bt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
131
|
+
0 5px 12px 4px ${new Bt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
132
|
+
`,boxShadowDrawerRight:`
|
|
133
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
134
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
135
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
136
|
+
`,boxShadowDrawerLeft:`
|
|
137
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
138
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
139
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
140
|
+
`,boxShadowDrawerUp:`
|
|
141
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
142
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
143
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
144
|
+
`,boxShadowDrawerDown:`
|
|
145
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
146
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
147
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
148
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Zy=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const e0={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},gA={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},hA={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},t0=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Zy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Jy(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=Zy(u,["theme"]);let m=f;d&&(m=t0(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=m}),a};function Fn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=b.useContext(Hy),i=`${pA}-${t||""}`,a=n||Fy,[l,c,u]=tD(a,[Ka,e],{salt:i,override:r,getComputedToken:t0,formatToken:Jy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:e0,ignore:gA,preserve:hA}});return[a,u,t?c:"",l,o]}const Co={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ht=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Qa=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),So=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),bA=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),yA=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},zr=(e,t)=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t!=null?t:1,transition:"outline-offset 0s, outline 0s"}),Or=(e,t)=>({"&:focus-visible":Object.assign({},zr(e,t))}),n0=e=>({[`.${e}`]:Object.assign(Object.assign({},Qa()),{[`.${e} .${e}-icon`]:{display:"block"}})}),vf=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Or(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Mt,genComponentStyleHook:CA,genSubStyleComponent:Ri}=mA({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=b.useContext(Xe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Fn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=b.useContext(Xe);return e!=null?e:{}},getResetStyles:(e,t)=>{var n;const r=bA(e);return[r,{"&":r},n0((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:js)]},getCommonStyle:yA,getCompUnitless:()=>e0});function r0(e,t){return zo.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const SA=(e,t)=>{const[n,r]=Fn();return rf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[n0(e)])},xA=Object.assign({},s),{useId:o0}=xA,EA=typeof o0=="undefined"?()=>"":o0;function $A(e,t,n){var r,o;const i=vt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},lf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:lf.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=EA();if(process.env.NODE_ENV!=="production"){const u=a.cssVar||l.cssVar,d=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||c);process.env.NODE_ENV!=="production"&&i(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ei(()=>{var u,d;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(g=>{f[g]=Object.assign(Object.assign({},f[g]),e.components[g])});const m=`css-var-${c.replace(/:/g,"")}`,p=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||m});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:p})},[a,l],(u,d)=>u.some((f,m)=>{const p=d[m];return!Jr(f,p,!0)}))}var wA=["children"],i0=s.createContext({});function OA(e){var t=e.children,n=tt(e,wA);return s.createElement(i0.Provider,{value:n},t)}var NA=function(e){Rr(n,e);var t=Yr(n);function n(){return hn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function IA(e){var t=s.useReducer(function(l){return l+1},0),n=ae(t,2),r=n[1],o=s.useRef(e),i=qt(function(){return o.current}),a=qt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Bo="none",Ls="appear",zs="enter",Bs="leave",a0="none",Br="prepare",ji="start",Li="active",gf="end",l0="prepared";function s0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function _A(e,t){var n={animationend:s0("Animation","AnimationEnd"),transitionend:s0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var PA=_A(In(),typeof window!="undefined"?window:{}),c0={};if(In()){var TA=document.createElement("div");c0=TA.style}var ks={};function u0(e){if(ks[e])return ks[e];var t=PA[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in c0)return ks[e]=t[i],ks[e]}return""}var d0=u0("animationend"),f0=u0("transitionend"),m0=!!(d0&&f0),p0=d0||"animationend",v0=f0||"transitionend";function g0(e,t){if(!e)return null;if(He(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const MA=function(e){var t=b.useRef();function n(o){o&&(o.removeEventListener(v0,e),o.removeEventListener(p0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(v0,e),o.addEventListener(p0,e),t.current=o)}return s.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var h0=In()?b.useLayoutEffect:b.useEffect;const DA=function(){var e=s.useRef(null);function t(){At.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=At(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var AA=[Br,ji,Li,gf],RA=[Br,l0],b0=!1,jA=!0;function y0(e){return e===Li||e===gf}const LA=function(e,t,n){var r=ai(a0),o=ae(r,2),i=o[0],a=o[1],l=DA(),c=ae(l,2),u=c[0],d=c[1];function f(){a(Br,!0)}var m=t?RA:AA;return h0(function(){if(i!==a0&&i!==gf){var p=m.indexOf(i),g=m[p+1],h=n(i);h===b0?a(g,!0):g&&u(function(v){function y(){v.isCanceled()||a(g,!0)}h===!0?y():Promise.resolve(h).then(y)})}},[e,i]),s.useEffect(function(){return function(){d()}},[]),[f,i]};function zA(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,p=r.onEnterPrepare,g=r.onLeavePrepare,h=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,O=r.onLeaveEnd,I=r.onVisibleChanged,w=ai(),N=ae(w,2),_=N[0],T=N[1],M=IA(Bo),D=ae(M,2),P=D[0],A=D[1],R=ai(null),L=ae(R,2),j=L[0],z=L[1],B=P(),K=b.useRef(!1),W=b.useRef(null);function k(){return n()}var V=b.useRef(!1);function Q(){A(Bo),z(null,!0)}var J=qt(function(ie){var ce=P();if(ce!==Bo){var ue=k();if(!(ie&&!ie.deadline&&ie.target!==ue)){var me=V.current,Ce;ce===Ls&&me?Ce=S==null?void 0:S(ue,ie):ce===zs&&me?Ce=$==null?void 0:$(ue,ie):ce===Bs&&me&&(Ce=O==null?void 0:O(ue,ie)),me&&Ce!==!1&&Q()}}}),Y=MA(J),te=ae(Y,1),oe=te[0],X=function(ce){switch(ce){case Ls:return H(H(H({},Br,m),ji,h),Li,C);case zs:return H(H(H({},Br,p),ji,v),Li,x);case Bs:return H(H(H({},Br,g),ji,y),Li,E);default:return{}}},F=s.useMemo(function(){return X(B)},[B]),ee=LA(B,!e,function(ie){if(ie===Br){var ce=F[Br];return ce?ce(k()):b0}if(re in F){var ue;z(((ue=F[re])===null||ue===void 0?void 0:ue.call(F,k(),null))||null)}return re===Li&&B!==Bo&&(oe(k()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),re===l0&&Q(),jA}),Z=ae(ee,2),ne=Z[0],re=Z[1],se=y0(re);V.current=se;var le=b.useRef(null);h0(function(){if(!(K.current&&le.current===t)){T(t);var ie=K.current;K.current=!0;var ce;!ie&&t&&l&&(ce=Ls),ie&&t&&i&&(ce=zs),(ie&&!t&&u||!ie&&f&&!t&&u)&&(ce=Bs);var ue=X(ce);ce&&(e||ue[Br])?(A(ce),ne()):A(Bo),le.current=t}},[t]),b.useEffect(function(){(B===Ls&&!l||B===zs&&!i||B===Bs&&!u)&&A(Bo)},[l,i,u]),b.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=s.useRef(!1);b.useEffect(function(){_&&(he.current=!0),_!==void 0&&B===Bo&&((he.current||_)&&(I==null||I(_)),he.current=!0)},[_,B]);var fe=j;return F[Br]&&re===ji&&(fe=q({transition:"none"},fe)),[B,re,fe,_!=null?_:t]}function BA(e){var t=e;He(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=s.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,p=o.leavedClassName,g=o.eventProps,h=s.useContext(i0),v=h.motion,y=n(o,v),C=b.useRef(),x=b.useRef();function E(){try{return C.current instanceof HTMLElement?C.current:hs(x.current)}catch(L){return null}}var S=zA(y,l,E,o),$=ae(S,4),O=$[0],I=$[1],w=$[2],N=$[3],_=s.useRef(N);N&&(_.current=!0);var T=s.useCallback(function(L){C.current=L,Ra(i,L)},[i]),M,D=q(q({},g),{},{visible:l});if(!f)M=null;else if(O===Bo)N?M=f(q({},D),T):!u&&_.current&&p?M=f(q(q({},D),{},{className:p}),T):d||!u&&!p?M=f(q(q({},D),{},{style:{display:"none"}}),T):M=null;else{var P;I===Br?P="prepare":y0(I)?P="active":I===ji&&(P="start");var A=g0(m,"".concat(O,"-").concat(P));M=f(q(q({},D),{},{className:U(g0(m,O),H(H({},A,A&&P),m,typeof m=="string")),style:w}),T)}if(s.isValidElement(M)&&Ar(M)){var R=Do(M);R||(M=s.cloneElement(M,{ref:T}))}return s.createElement(NA,{ref:x},M)});return r.displayName="CSSMotion",r}const lr=BA(m0);var hf="add",bf="keep",yf="remove",Cf="removed";function kA(e){var t;return e&&He(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Sf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(kA)}function FA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Sf(e),a=Sf(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(p){return q(q({},p),{},{status:hf})})),r=f),n.push(q(q({},m),{},{status:bf})),r+=1,d=!0;break}}d||n.push(q(q({},u),{},{status:yf}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return q(q({},u),{},{status:hf})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==yf}),n.forEach(function(d){d.key===u&&(d.status=bf)})}),n}var HA=["component","children","onVisibleChanged","onAllRemoved"],VA=["status"],WA=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function KA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lr,n=function(r){Rr(i,r);var o=Yr(i);function i(){var a;hn(this,i);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=o.call.apply(o,[this].concat(c)),H(qe(a),"state",{keyEntities:[]}),H(qe(a),"removeKey",function(d){a.setState(function(f){var m=f.keyEntities.map(function(p){return p.key!==d?p:q(q({},p),{},{status:Cf})});return{keyEntities:m}},function(){var f=a.state.keyEntities,m=f.filter(function(p){var g=p.status;return g!==Cf}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return bn(i,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var p=tt(u,HA),g=d||s.Fragment,h={};return WA.forEach(function(v){h[v]=p[v],delete p[v]}),delete p.keys,s.createElement(g,p,c.map(function(v,y){var C=v.status,x=tt(v,VA),E=C===hf||C===bf;return s.createElement(t,de({},h,{key:x.key,visible:E,eventProps:x,onVisibleChanged:function($){m==null||m($,{key:x.key}),$||l.removeKey(x.key)}}),function(S,$){return f(q(q({},S),{},{index:y}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=Sf(u),m=FA(d,f);return{keyEntities:m.filter(function(p){var g=d.find(function(h){var v=h.key;return p.key===v});return!(g&&g.status===Cf&&p.status===yf)})}}}]),i}(s.Component);return H(n,"defaultProps",{component:"div"}),n}const C0=KA(m0);function qA(e){const{children:t}=e,[,n]=Fn(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(OA,{motion:r},t):t}const S0=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return vt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(S0.displayName="PropWarning");const GA=process.env.NODE_ENV!=="production"?S0:()=>null;var UA=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let xf=!1;const x0=process.env.NODE_ENV!=="production"?e=>{process.env.NODE_ENV!=="production"&&Lo(!xf,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,XA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Fs,E0,$0,w0;function Hs(){return Fs||Ga}function QA(){return E0||js}function YA(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const JA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Fs=t),n!==void 0&&(E0=n),"holderRender"in e&&(w0=o),r&&(YA(r)?(process.env.NODE_ENV!=="production"&&Lo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ZD(Hs(),r)):$0=r)},Ef=()=>({getPrefixCls:(e,t)=>t||(e?`${Hs()}-${e}`:Hs()),getIconPrefixCls:QA,getRootPrefixCls:()=>Fs||Hs(),getTheme:()=>$0,holderRender:w0}),ZA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:y,iconPrefixCls:C,theme:x,componentDisabled:E,segmented:S,statistic:$,spin:O,calendar:I,carousel:w,cascader:N,collapse:_,typography:T,checkbox:M,descriptions:D,divider:P,drawer:A,skeleton:R,steps:L,image:j,layout:z,list:B,mentions:K,modal:W,progress:k,result:V,slider:Q,breadcrumb:J,menu:Y,pagination:te,input:oe,textArea:X,empty:F,badge:ee,radio:Z,rate:ne,switch:re,transfer:se,avatar:le,message:he,tag:fe,table:ie,card:ce,tabs:ue,timeline:me,timePicker:Ce,upload:Oe,notification:Pe,tree:je,colorPicker:Ne,datePicker:Ie,rangePicker:xe,flex:be,wave:Ee,dropdown:$e,warning:_e,tour:ve,tooltip:Se,popover:Je,popconfirm:it,floatButtonGroup:Ot,variant:_t,inputNumber:Ut,treeSelect:st}=e,Pt=s.useCallback((Ve,Ze)=>{const{prefixCls:$t}=e;if(Ze)return Ze;const Ae=$t||y.getPrefixCls("");return Ve?`${Ae}-${Ve}`:Ae},[y.getPrefixCls,e.prefixCls]),mt=C||y.iconPrefixCls||js,et=n||y.csp;SA(mt,et);const ke=$A(x,y.theme,{prefixCls:Pt("")});process.env.NODE_ENV!=="production"&&(xf=xf||!!ke);const Me={csp:et,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:g!=null?g:p,popupOverflow:h,getPrefixCls:Pt,iconPrefixCls:mt,theme:ke,segmented:S,statistic:$,spin:O,calendar:I,carousel:w,cascader:N,collapse:_,typography:T,checkbox:M,descriptions:D,divider:P,drawer:A,skeleton:R,steps:L,image:j,input:oe,textArea:X,layout:z,list:B,mentions:K,modal:W,progress:k,result:V,slider:Q,breadcrumb:J,menu:Y,pagination:te,empty:F,badge:ee,radio:Z,rate:ne,switch:re,transfer:se,avatar:le,message:he,tag:fe,table:ie,card:ce,tabs:ue,timeline:me,timePicker:Ce,upload:Oe,notification:Pe,tree:je,colorPicker:Ne,datePicker:Ie,rangePicker:xe,flex:be,wave:Ee,dropdown:$e,warning:_e,tour:ve,tooltip:Se,popover:Je,popconfirm:it,floatButtonGroup:Ot,variant:_t,inputNumber:Ut,treeSelect:st};process.env.NODE_ENV!=="production"&&vt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Te=Object.assign({},y);Object.keys(Me).forEach(Ve=>{Me[Ve]!==void 0&&(Te[Ve]=Me[Ve])}),XA.forEach(Ve=>{const Ze=e[Ve];Ze&&(Te[Ve]=Ze)}),typeof r!="undefined"&&(Te.button=Object.assign({autoInsertSpace:r},Te.button));const at=ei(()=>Te,Te,(Ve,Ze)=>{const $t=Object.keys(Ve),Ae=Object.keys(Ze);return $t.length!==Ae.length||$t.some(Qe=>Ve[Qe]!==Ze[Qe])}),{layer:ct}=s.useContext(Fa),Le=s.useMemo(()=>({prefixCls:mt,csp:et,layer:ct?"antd":void 0}),[mt,et,ct]);let we=s.createElement(s.Fragment,null,s.createElement(GA,{dropdownMatchSelectWidth:p}),t);const ze=s.useMemo(()=>{var Ve,Ze,$t,Ae;return Ai(((Ve=eo.Form)===null||Ve===void 0?void 0:Ve.defaultValidateMessages)||{},(($t=(Ze=at.locale)===null||Ze===void 0?void 0:Ze.Form)===null||$t===void 0?void 0:$t.defaultValidateMessages)||{},((Ae=at.form)===null||Ae===void 0?void 0:Ae.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[at,a==null?void 0:a.validateMessages]);Object.keys(ze).length>0&&(we=s.createElement(My.Provider,{value:ze},we)),l&&(we=s.createElement(zD,{locale:l,_ANT_MARK__:zy},we)),(mt||et)&&(we=s.createElement(ld.Provider,{value:Le},we)),c&&(we=s.createElement(eA,{size:c},we)),we=s.createElement(qA,null,we);const Fe=s.useMemo(()=>{const Ve=ke||{},{algorithm:Ze,token:$t,components:Ae,cssVar:Qe}=Ve,nt=UA(Ve,["algorithm","token","components","cssVar"]),ot=Ze&&(!Array.isArray(Ze)||Ze.length>0)?qd(Ze):Fy,ht={};Object.entries(Ae||{}).forEach(Wt=>{let[yt,en]=Wt;const De=Object.assign({},en);"algorithm"in De&&(De.algorithm===!0?De.theme=ot:(Array.isArray(De.algorithm)||typeof De.algorithm=="function")&&(De.theme=qd(De.algorithm)),delete De.algorithm),ht[yt]=De});const Rt=Object.assign(Object.assign({},Ka),$t);return Object.assign(Object.assign({},nt),{theme:ot,token:Rt,components:ht,override:Object.assign({override:Rt},ht),cssVar:Qe})},[ke]);return x&&(we=s.createElement(Hy.Provider,{value:Fe},we)),at.warning&&(we=s.createElement(Ty.Provider,{value:at.warning},we)),E!==void 0&&(we=s.createElement(cf,{disabled:E},we)),s.createElement(Xe.Provider,{value:at},we)},ro=e=>{const t=s.useContext(Xe),n=s.useContext(af);return s.createElement(ZA,Object.assign({parentContext:t,legacyLocale:n},e))};ro.ConfigContext=Xe,ro.SizeContext=Ua,ro.config=JA,ro.useConfig=tA,Object.defineProperty(ro,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Lo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ua)}),process.env.NODE_ENV!=="production"&&(ro.displayName="ConfigProvider");var eR=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
149
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
150
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
151
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
152
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
153
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
154
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
155
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
156
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
157
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
158
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
159
|
+
summary tabIndex target title type useMap value width wmode wrap`,tR=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
160
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
161
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
162
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
163
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
164
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
165
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nR="".concat(eR," ").concat(tR).split(/[\s\n]+/),rR="aria-",oR="data-";function O0(e,t){return e.indexOf(t)===0}function An(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||O0(o,rR))||n.data&&O0(o,oR)||n.attr&&nR.includes(o))&&(r[o]=e[o])}),r}function N0(e){return e&&b.isValidElement(e)&&e.type===b.Fragment}const $f=(e,t,n)=>b.isValidElement(e)?b.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Gn(e,t){return $f(e,e,t)}const Vs=(e,t,n,r,o)=>({background:e,border:`${G(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),iR=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:p,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
|
|
166
|
+
padding-top ${n} ${u}, padding-bottom ${n} ${u},
|
|
167
|
+
margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},aR=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:p}=e;return{[t]:{"&-success":Vs(o,r,n,e,t),"&-info":Vs(p,m,f,e,t),"&-warning":Vs(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Vs(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},lR=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:G(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},sR=Mt("Alert",e=>[iR(e),aR(e),lR(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var I0=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cR={success:To,info:Ta,error:Mo,warning:Pa},uR=e=>{const{icon:t,prefixCls:n,type:r}=e,o=cR[r]||null;return t?$f(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:U(`${n}-icon`,t.props.className)})):s.createElement(o,{className:`${n}-icon`})},dR=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?s.createElement(xr,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},_0=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:p,closable:g,closeText:h,closeIcon:v,action:y,id:C}=e,x=I0(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,S]=s.useState(!1);process.env.NODE_ENV!=="production"&&vt("Alert").deprecated(!h,"closeText","closable.closeIcon");const $=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:O,direction:I,closable:w,closeIcon:N,className:_,style:T}=Dn("alert"),M=O("alert",r),[D,P,A]=sR(M),R=V=>{var Q;S(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,V)},L=s.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),j=s.useMemo(()=>typeof g=="object"&&g.closeIcon||h?!0:typeof g=="boolean"?g:v!==!1&&v!==null&&v!==void 0?!0:!!w,[h,v,g,w]),z=i&&p===void 0?!0:p,B=U(M,`${M}-${L}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!z,[`${M}-banner`]:!!i,[`${M}-rtl`]:I==="rtl"},_,a,l,A,P),K=An(x,{aria:!0,data:!0}),W=s.useMemo(()=>typeof g=="object"&&g.closeIcon?g.closeIcon:h||(v!==void 0?v:typeof w=="object"&&w.closeIcon?w.closeIcon:N),[v,g,h,N]),k=s.useMemo(()=>{const V=g!=null?g:w;return typeof V=="object"?I0(V,["closeIcon"]):{}},[g,w]);return D(s.createElement(lr,{visible:!E,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:V=>({maxHeight:V.offsetHeight}),onLeaveEnd:m},(V,Q)=>{let{className:J,style:Y}=V;return s.createElement("div",Object.assign({id:C,ref:Vn($,Q),"data-show":!E,className:U(B,J),style:Object.assign(Object.assign(Object.assign({},T),c),Y),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},K),z?s.createElement(uR,{description:n,icon:e.icon,prefixCls:M,type:L}):null,s.createElement("div",{className:`${M}-content`},o?s.createElement("div",{className:`${M}-message`},o):null,n?s.createElement("div",{className:`${M}-description`},n):null),y?s.createElement("div",{className:`${M}-action`},y):null,s.createElement(dR,{isClosable:j,prefixCls:M,closeIcon:W,handleClose:R,ariaProps:k}))}))});process.env.NODE_ENV!=="production"&&(_0.displayName="Alert");const P0=_0;function fR(e,t,n){return t=ri(t),Ub(e,Ss()?Reflect.construct(t,n||[],ri(e).constructor):t.apply(e,n))}const mR=function(e){function t(){var n;return hn(this,t),n=fR(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Rr(t,e),bn(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r=="undefined"?(l||"").toString():r,f=typeof o=="undefined"?u:o;return l?s.createElement(P0,{id:i,type:"error",message:d,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(s.Component),T0=P0;T0.ErrorBoundary=mR;const wf=T0,M0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,D0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ws=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return D0(n.overflowY,t)||D0(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ks=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,pR=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},A0=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:A=>A!==u;if(!M0(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let g=e;for(;M0(g)&&f(g);){if(g=pR(g),g===m){p.push(g);break}g!=null&&g===document.body&&Ws(g)&&!Ws(document.documentElement)||g!=null&&Ws(g,d)&&p.push(g)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:C}=window,{height:x,width:E,top:S,right:$,bottom:O,left:I}=e.getBoundingClientRect(),{top:w,right:N,bottom:_,left:T}=(A=>{const R=window.getComputedStyle(A);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let M=l==="start"||l==="nearest"?S-w:l==="end"?O+_:S+x/2-w+_,D=c==="center"?I+E/2-T+N:c==="end"?$+N:I-T;const P=[];for(let A=0;A<p.length;A++){const R=p[A],{height:L,width:j,top:z,right:B,bottom:K,left:W}=R.getBoundingClientRect();if(a==="if-needed"&&S>=0&&I>=0&&O<=v&&$<=h&&(R===m&&!Ws(R)||S>=z&&O<=K&&I>=W&&$<=B))return P;const k=getComputedStyle(R),V=parseInt(k.borderLeftWidth,10),Q=parseInt(k.borderTopWidth,10),J=parseInt(k.borderRightWidth,10),Y=parseInt(k.borderBottomWidth,10);let te=0,oe=0;const X="offsetWidth"in R?R.offsetWidth-R.clientWidth-V-J:0,F="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-Y:0,ee="offsetWidth"in R?R.offsetWidth===0?0:j/R.offsetWidth:0,Z="offsetHeight"in R?R.offsetHeight===0?0:L/R.offsetHeight:0;if(m===R)te=l==="start"?M:l==="end"?M-v:l==="nearest"?Ks(C,C+v,v,Q,Y,C+M,C+M+x,x):M-v/2,oe=c==="start"?D:c==="center"?D-h/2:c==="end"?D-h:Ks(y,y+h,h,V,J,y+D,y+D+E,E),te=Math.max(0,te+C),oe=Math.max(0,oe+y);else{te=l==="start"?M-z-Q:l==="end"?M-K+Y+F:l==="nearest"?Ks(z,K,L,Q,Y+F,M,M+x,x):M-(z+L/2)+F/2,oe=c==="start"?D-W-V:c==="center"?D-(W+j/2)+X/2:c==="end"?D-B+J+X:Ks(W,B,j,V,J+X,D,D+E,E);const{scrollLeft:ne,scrollTop:re}=R;te=Z===0?0:Math.max(0,Math.min(re+te/Z,R.scrollHeight-L/Z+F)),oe=ee===0?0:Math.max(0,Math.min(ne+oe/ee,R.scrollWidth-j/ee+X)),M+=re-te,D+=ne-oe}P.push({el:R,top:te,left:oe})}return P},vR=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function gR(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(A0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of A0(e,vR(t))){const l=i-n.top+n.bottom,c=a-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}function Of(e){return e!=null&&e===e.window}const hR=e=>{var t,n;if(typeof window=="undefined")return 0;let r=0;return Of(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Of(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function bR(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function yR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=hR(i),l=Date.now(),c=()=>{const d=Date.now()-l,f=bR(d>o?o:d,a,e,o);Of(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?At(c):typeof r=="function"&&r()};At(c)}const wn=e=>{const[,,,,t]=Fn();return t?`${e}-css-var`:""};var ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ye.F1&&n<=ye.F12)return!1;switch(n){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ye.ZERO&&t<=ye.NINE||t>=ye.NUM_ZERO&&t<=ye.NUM_MULTIPLY||t>=ye.A&&t<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},R0=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,p=e.closeIcon,g=p===void 0?"x":p,h=e.props,v=e.onClick,y=e.onNoticeClose,C=e.times,x=e.hovering,E=s.useState(!1),S=ae(E,2),$=S[0],O=S[1],I=s.useState(0),w=ae(I,2),N=w[0],_=w[1],T=s.useState(0),M=ae(T,2),D=M[0],P=M[1],A=x||$,R=a>0&&l,L=function(){y(d)},j=function(V){(V.key==="Enter"||V.code==="Enter"||V.keyCode===ye.ENTER)&&L()};s.useEffect(function(){if(!A&&a>0){var k=Date.now()-D,V=setTimeout(function(){L()},a*1e3-D);return function(){u&&clearTimeout(V),P(Date.now()-k)}}},[a,A,C]),s.useEffect(function(){if(!A&&R&&(u||D===0)){var k=performance.now(),V,Q=function J(){cancelAnimationFrame(V),V=requestAnimationFrame(function(Y){var te=Y+D-k,oe=Math.min(te/(a*1e3),1);_(oe*100),oe<1&&J()})};return Q(),function(){u&&cancelAnimationFrame(V)}}},[a,D,A,R,C]);var z=s.useMemo(function(){return He(m)==="object"&&m!==null?m:m?{closeIcon:g}:{}},[m,g]),B=An(z,!0),K=100-(!N||N<0?0:N>100?100:N),W="".concat(n,"-notice");return s.createElement("div",de({},h,{ref:t,className:U(W,o,H({},"".concat(W,"-closable"),m)),style:r,onMouseEnter:function(V){var Q;O(!0),h==null||(Q=h.onMouseEnter)===null||Q===void 0||Q.call(h,V)},onMouseLeave:function(V){var Q;O(!1),h==null||(Q=h.onMouseLeave)===null||Q===void 0||Q.call(h,V)},onClick:v}),s.createElement("div",{className:"".concat(W,"-content")},f),m&&s.createElement("a",de({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:j,"aria-label":"Close"},B,{onClick:function(V){V.preventDefault(),V.stopPropagation(),L()}}),z.closeIcon),R&&s.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:K},K+"%"))}),j0=b.createContext({}),L0=function(t){var n=t.children,r=t.classNames;return b.createElement(j0.Provider,{value:{classNames:r}},n)},z0=8,B0=3,k0=16,CR=function(t){var n={offset:z0,threshold:B0,gap:k0};if(t&&He(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:z0,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:B0,n.gap=(i=t.gap)!==null&&i!==void 0?i:k0}return[!!t,n]},SR=["className","style","classNames","styles"],F0=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=b.useContext(j0),m=f.classNames,p=b.useRef({}),g=b.useState(null),h=ae(g,2),v=h[0],y=h[1],C=b.useState([]),x=ae(C,2),E=x[0],S=x[1],$=n.map(function(A){return{config:A,key:String(A.key)}}),O=CR(d),I=ae(O,2),w=I[0],N=I[1],_=N.offset,T=N.threshold,M=N.gap,D=w&&(E.length>0||$.length<=T),P=typeof l=="function"?l(r):l;return b.useEffect(function(){w&&E.length>1&&S(function(A){return A.filter(function(R){return $.some(function(L){var j=L.key;return R===j})})})},[E,$,w]),b.useEffect(function(){var A;if(w&&p.current[(A=$[$.length-1])===null||A===void 0?void 0:A.key]){var R;y(p.current[(R=$[$.length-1])===null||R===void 0?void 0:R.key])}},[$,w]),b.createElement(C0,de({key:r,className:U(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,H(H({},"".concat(o,"-stack"),!!w),"".concat(o,"-stack-expanded"),D)),style:a,keys:$,motionAppear:!0},P,{onAllRemoved:function(){c(r)}}),function(A,R){var L=A.config,j=A.className,z=A.style,B=A.index,K=L,W=K.key,k=K.times,V=String(W),Q=L,J=Q.className,Y=Q.style,te=Q.classNames,oe=Q.styles,X=tt(Q,SR),F=$.findIndex(function(me){return me.key===V}),ee={};if(w){var Z=$.length-1-(F>-1?F:B-1),ne=r==="top"||r==="bottom"?"-50%":"0";if(Z>0){var re,se,le;ee.height=D?(re=p.current[V])===null||re===void 0?void 0:re.offsetHeight:v==null?void 0:v.offsetHeight;for(var he=0,fe=0;fe<Z;fe++){var ie;he+=((ie=p.current[$[$.length-1-fe].key])===null||ie===void 0?void 0:ie.offsetHeight)+M}var ce=(D?he:Z*_)*(r.startsWith("top")?1:-1),ue=!D&&v!==null&&v!==void 0&&v.offsetWidth&&(se=p.current[V])!==null&&se!==void 0&&se.offsetWidth?((v==null?void 0:v.offsetWidth)-_*2*(Z<3?Z:3))/((le=p.current[V])===null||le===void 0?void 0:le.offsetWidth):1;ee.transform="translate3d(".concat(ne,", ").concat(ce,"px, 0) scaleX(").concat(ue,")")}else ee.transform="translate3d(".concat(ne,", 0, 0)")}return b.createElement("div",{ref:R,className:U("".concat(o,"-notice-wrapper"),j,te==null?void 0:te.wrapper),style:q(q(q({},z),ee),oe==null?void 0:oe.wrapper),onMouseEnter:function(){return S(function(Ce){return Ce.includes(V)?Ce:[].concat(ge(Ce),[V])})},onMouseLeave:function(){return S(function(Ce){return Ce.filter(function(Oe){return Oe!==V})})}},b.createElement(R0,de({},X,{ref:function(Ce){F>-1?p.current[V]=Ce:delete p.current[V]},prefixCls:o,classNames:te,styles:oe,className:U(J,m==null?void 0:m.notice),style:Y,times:k,key:W,eventKey:W,onNoticeClose:u,hovering:w&&E.length>0})))})};process.env.NODE_ENV!=="production"&&(F0.displayName="NoticeList");var H0=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),p=ae(m,2),g=p[0],h=p[1],v=function(w){var N,_=g.find(function(T){return T.key===w});_==null||(N=_.onClose)===null||N===void 0||N.call(_),h(function(T){return T.filter(function(M){return M.key!==w})})};s.useImperativeHandle(t,function(){return{open:function(w){h(function(N){var _=ge(N),T=_.findIndex(function(P){return P.key===w.key}),M=q({},w);if(T>=0){var D;M.times=(((D=N[T])===null||D===void 0?void 0:D.times)||0)+1,_[T]=M}else M.times=0,_.push(M);return a>0&&_.length>a&&(_=_.slice(-a)),_})},close:function(w){v(w)},destroy:function(){h([])}}});var y=s.useState({}),C=ae(y,2),x=C[0],E=C[1];s.useEffect(function(){var I={};g.forEach(function(w){var N=w.placement,_=N===void 0?"topRight":N;_&&(I[_]=I[_]||[],I[_].push(w))}),Object.keys(x).forEach(function(w){I[w]=I[w]||[]}),E(I)},[g]);var S=function(w){E(function(N){var _=q({},N),T=_[w]||[];return T.length||delete _[w],_})},$=s.useRef(!1);if(s.useEffect(function(){Object.keys(x).length>0?$.current=!0:$.current&&(u==null||u(),$.current=!1)},[x]),!o)return null;var O=Object.keys(x);return tr.createPortal(s.createElement(s.Fragment,null,O.map(function(I){var w=x[I],N=s.createElement(F0,{key:I,configList:w,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:c==null?void 0:c(I),motion:i,onNoticeClose:v,onAllNoticeRemoved:S,stack:d});return f?f(N,{prefixCls:r,key:I}):N})),o)});process.env.NODE_ENV!=="production"&&(H0.displayName="Notifications");var xR=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ER=function(){return document.body},V0=0;function $R(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function W0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?ER:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=tt(e,xR),m=s.useState(),p=ae(m,2),g=p[0],h=p[1],v=s.useRef(),y=s.createElement(H0,{container:g,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),C=s.useState([]),x=ae(C,2),E=x[0],S=x[1],$=qt(function(I){var w=$R(f,I);(w.key===null||w.key===void 0)&&(w.key="rc-notification-".concat(V0),V0+=1),S(function(N){return[].concat(ge(N),[{type:"open",config:w}])})}),O=s.useMemo(function(){return{open:$,close:function(w){S(function(N){return[].concat(ge(N),[{type:"close",key:w}])})},destroy:function(){S(function(w){return[].concat(ge(w),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){h(n())}),s.useEffect(function(){if(v.current&&E.length){E.forEach(function(N){switch(N.type){case"open":v.current.open(N.config);break;case"close":v.current.close(N.key);break;case"destroy":v.current.destroy();break}});var I,w;S(function(N){return(I!==N||!w)&&(I=N,w=N.filter(function(_){return!E.includes(_)})),w})}},[E]),[O,y]}const K0=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(K0.displayName="zIndexContext");const Ya=K0,xo=100,qs=xo*10,wR=qs+xo,q0={Modal:xo,Drawer:xo,Popover:xo,Popconfirm:xo,Tooltip:xo,Tour:xo,FloatButton:xo},OR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function NR(e){return e in q0}const zi=(e,t)=>{const[,n]=Fn(),r=b.useContext(Ya),o=NR(e);let i;if(t!==void 0)i=[t,t];else{let a=r!=null?r:0;o?a+=(r?0:n.zIndexPopupBase)+q0[e]:a+=OR[e],i=[r===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=vt(e),l=n.zIndexPopupBase+wR,c=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||c<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},IR=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:g,zIndexPopup:h,contentPadding:v,contentBg:y}=e,C=`${t}-notice`,x=new It("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),E=new It("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
168
|
+
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ht(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
169
|
+
${t}-move-up-appear,
|
|
170
|
+
${t}-move-up-enter
|
|
171
|
+
`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
172
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
173
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
174
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},G0=Mt("Message",e=>{const t=St(e,{height:150});return[IR(t)]},e=>({zIndexPopup:e.zIndexPopupBase+qs+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var _R=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PR={info:s.createElement(Ta,null),success:s.createElement(To,null),error:s.createElement(Mo,null),warning:s.createElement(Pa,null),loading:s.createElement(Zo,null)},U0=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return s.createElement("div",{className:U(`${t}-custom-content`,`${t}-${n}`)},r||PR[n],s.createElement("span",null,o))},TR=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=_R(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(Xe),c=t||l("message"),u=wn(c),[d,f,m]=G0(c,u);return d(s.createElement(R0,Object.assign({},a,{prefixCls:c,className:U(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(U0,{prefixCls:c,type:r,icon:o},i)})))};function MR(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function Nf(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var DR=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AR=8,RR=3,jR=e=>{let{children:t,prefixCls:n}=e;const r=wn(n),[o,i,a]=G0(n,r);return o(s.createElement(L0,{classNames:{list:U(i,a,r)}},t))},LR=(e,t)=>{let{prefixCls:n,key:r}=t;return s.createElement(jR,{prefixCls:n,key:r},e)},zR=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=RR,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:p}=s.useContext(Xe),g=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:AR}),v=()=>U({[`${g}-rtl`]:l!=null?l:p==="rtl"}),y=()=>MR(g,c),C=s.createElement("span",{className:`${g}-close-x`},s.createElement(xr,{className:`${g}-close-icon`})),[x,E]=W0({prefixCls:g,style:h,className:v,motion:y,closable:!1,closeIcon:C,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:LR});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:g,message:m})),E});let X0=0;function Q0(e){const t=s.useRef(null),n=vt("Message");return[s.useMemo(()=>{const o=u=>{var d;(d=t.current)===null||d===void 0||d.close(u)},i=u=>{if(!t.current){process.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const O=()=>{};return O.then=()=>{},O}const{open:d,prefixCls:f,message:m}=t.current,p=`${f}-notice`,{content:g,icon:h,type:v,key:y,className:C,style:x,onClose:E}=u,S=DR(u,["content","icon","type","key","className","style","onClose"]);let $=y;return $==null&&(X0+=1,$=`antd-message-${X0}`),Nf(O=>(d(Object.assign(Object.assign({},S),{key:$,content:s.createElement(U0,{prefixCls:f,type:v,icon:h},g),placement:"top",className:U(v&&`${p}-${v}`,C,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),x),onClose:()=>{E==null||E(),O()}})),()=>{o($)}))},l={open:i,destroy:u=>{var d;u!==void 0?o(u):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const d=(f,m,p)=>{let g;f&&typeof f=="object"&&"content"in f?g=f:g={content:f};let h,v;typeof m=="function"?v=m:(h=m,v=p);const y=Object.assign(Object.assign({onClose:v,duration:h},g),{type:u});return i(y)};l[u]=d}),l},[]),s.createElement(zR,Object.assign({key:"message-holder"},e,{ref:t}))]}function Y0(e){return Q0(e)}function BR(){const[e,t]=s.useState([]),n=s.useCallback(r=>(t(o=>[].concat(ge(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function or(){or=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,_,T,M){return Object.defineProperty(N,_,{value:T,enumerable:!M,configurable:!M,writable:!M})}try{c({},"")}catch(N){c=function(T,M,D){return T[M]=D}}function u(N,_,T,M){var D=_&&_.prototype instanceof m?_:m,P=Object.create(D.prototype);return c(P,"_invoke",function(A,R,L){var j=1;return function(z,B){if(j===3)throw Error("Generator is already running");if(j===4){if(z==="throw")throw B;return{value:e,done:!0}}for(L.method=z,L.arg=B;;){var K=L.delegate;if(K){var W=S(K,L);if(W){if(W===f)continue;return W}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(j===1)throw j=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);j=3;var k=d(A,R,L);if(k.type==="normal"){if(j=L.done?4:2,k.arg===f)continue;return{value:k.arg,done:L.done}}k.type==="throw"&&(j=4,L.method="throw",L.arg=k.arg)}}}(N,T,new I(M||[])),!0),P}function d(N,_,T){try{return{type:"normal",arg:N.call(_,T)}}catch(M){return{type:"throw",arg:M}}}t.wrap=u;var f={};function m(){}function p(){}function g(){}var h={};c(h,i,function(){return this});var v=Object.getPrototypeOf,y=v&&v(v(w([])));y&&y!==n&&r.call(y,i)&&(h=y);var C=g.prototype=m.prototype=Object.create(h);function x(N){["next","throw","return"].forEach(function(_){c(N,_,function(T){return this._invoke(_,T)})})}function E(N,_){function T(D,P,A,R){var L=d(N[D],N,P);if(L.type!=="throw"){var j=L.arg,z=j.value;return z&&He(z)=="object"&&r.call(z,"__await")?_.resolve(z.__await).then(function(B){T("next",B,A,R)},function(B){T("throw",B,A,R)}):_.resolve(z).then(function(B){j.value=B,A(j)},function(B){return T("throw",B,A,R)})}R(L.arg)}var M;c(this,"_invoke",function(D,P){function A(){return new _(function(R,L){T(D,P,R,L)})}return M=M?M.then(A,A):A()},!0)}function S(N,_){var T=_.method,M=N.i[T];if(M===e)return _.delegate=null,T==="throw"&&N.i.return&&(_.method="return",_.arg=e,S(N,_),_.method==="throw")||T!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+T+"' method")),f;var D=d(M,N.i,_.arg);if(D.type==="throw")return _.method="throw",_.arg=D.arg,_.delegate=null,f;var P=D.arg;return P?P.done?(_[N.r]=P.value,_.next=N.n,_.method!=="return"&&(_.method="next",_.arg=e),_.delegate=null,f):P:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,f)}function $(N){this.tryEntries.push(N)}function O(N){var _=N[4]||{};_.type="normal",_.arg=e,N[4]=_}function I(N){this.tryEntries=[[-1]],N.forEach($,this),this.reset(!0)}function w(N){if(N!=null){var _=N[i];if(_)return _.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var T=-1,M=function D(){for(;++T<N.length;)if(r.call(N,T))return D.value=N[T],D.done=!1,D;return D.value=e,D.done=!0,D};return M.next=M}}throw new TypeError(He(N)+" is not iterable")}return p.prototype=g,c(C,"constructor",g),c(g,"constructor",p),p.displayName=c(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var _=typeof N=="function"&&N.constructor;return!!_&&(_===p||(_.displayName||_.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,g):(N.__proto__=g,c(N,l,"GeneratorFunction")),N.prototype=Object.create(C),N},t.awrap=function(N){return{__await:N}},x(E.prototype),c(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(N,_,T,M,D){D===void 0&&(D=Promise);var P=new E(u(N,_,T,M),D);return t.isGeneratorFunction(_)?P:P.next().then(function(A){return A.done?A.value:P.next()})},x(C),c(C,l,"Generator"),c(C,i,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(N){var _=Object(N),T=[];for(var M in _)T.unshift(M);return function D(){for(;T.length;)if((M=T.pop())in _)return D.value=M,D.done=!1,D;return D.done=!0,D}},t.values=w,I.prototype={constructor:I,reset:function(_){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!_)for(var T in this)T.charAt(0)==="t"&&r.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=e)},stop:function(){this.done=!0;var _=this.tryEntries[0][4];if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var T=this;function M(z){A.type="throw",A.arg=_,T.next=z}for(var D=T.tryEntries.length-1;D>=0;--D){var P=this.tryEntries[D],A=P[4],R=this.prev,L=P[1],j=P[2];if(P[0]===-1)return M("end"),!1;if(!L&&!j)throw Error("try statement without catch or finally");if(P[0]!=null&&P[0]<=R){if(R<L)return this.method="next",this.arg=e,M(L),!0;if(R<j)return M(j),!1}}},abrupt:function(_,T){for(var M=this.tryEntries.length-1;M>=0;--M){var D=this.tryEntries[M];if(D[0]>-1&&D[0]<=this.prev&&this.prev<D[2]){var P=D;break}}P&&(_==="break"||_==="continue")&&P[0]<=T&&T<=P[2]&&(P=null);var A=P?P[4]:{};return A.type=_,A.arg=T,P?(this.method="next",this.next=P[2],f):this.complete(A)},complete:function(_,T){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&T&&(this.next=T),f},finish:function(_){for(var T=this.tryEntries.length-1;T>=0;--T){var M=this.tryEntries[T];if(M[2]===_)return this.complete(M[4],M[3]),O(M),f}},catch:function(_){for(var T=this.tryEntries.length-1;T>=0;--T){var M=this.tryEntries[T];if(M[0]===_){var D=M[4];if(D.type==="throw"){var P=D.arg;O(M)}return P}}throw Error("illegal catch attempt")},delegateYield:function(_,T,M){return this.delegate={i:w(_),r:T,n:M},this.method==="next"&&(this.arg=e),f}},t}function J0(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,o)}function li(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){J0(i,r,o,a,l,"next",c)}function l(c){J0(i,r,o,a,l,"throw",c)}a(void 0)})}}var Ja=q({},xi),kR=Ja.version,If=Ja.render,FR=Ja.unmountComponentAtNode,Gs;try{var HR=Number((kR||"").split(".")[0]);HR>=18&&(Gs=Ja.createRoot)}catch(e){}function Z0(e){var t=Ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&He(t)==="object"&&(t.usingClientEntryPoint=e)}var Us="__rc_react_root__";function VR(e,t){Z0(!0);var n=t[Us]||Gs(t);Z0(!1),n.render(e),t[Us]=n}function WR(e,t){If==null||If(e,t)}function KR(e,t){if(Gs){VR(e,t);return}WR(e,t)}function qR(e){return _f.apply(this,arguments)}function _f(){return _f=li(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Us])===null||o===void 0||o.unmount(),delete t[Us]}));case 1:case"end":return r.stop()}},e)})),_f.apply(this,arguments)}function GR(e){FR(e)}function UR(e){return Pf.apply(this,arguments)}function Pf(){return Pf=li(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Gs===void 0){r.next=2;break}return r.abrupt("return",qR(t));case 2:GR(t);case 3:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}let eC=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=parseInt(s.version.split(".")[0],10),r=Object.keys(xi);process.env.NODE_ENV!=="production"&&Lo(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return KR(e,t),()=>UR(t)};function Tf(e){return e&&(eC=e),eC}const Mf=()=>({height:0,opacity:0}),tC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},XR=e=>({height:e?e.offsetHeight:0}),Df=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Xs=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ga}-motion-collapse`,onAppearStart:Mf,onEnterStart:Mf,onAppearActive:tC,onEnterActive:tC,onLeaveStart:XR,onLeaveActive:Mf,onAppearEnd:Df,onEnterEnd:Df,onLeaveEnd:Df,motionDeadline:500}},oo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function tn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Za=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},QR=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},YR=CA("Wave",e=>[QR(e)]),Qs=`${Ga}-wave-target`;function Af(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function JR(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Af(t)?t:Af(n)?n:Af(r)?r:null}function Rf(e){return Number.isNaN(e)?0:e}const ZR=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=s.useRef(null),a=s.useRef(null);s.useEffect(()=>{a.current=o()},[]);const[l,c]=s.useState(null),[u,d]=s.useState([]),[f,m]=s.useState(0),[p,g]=s.useState(0),[h,v]=s.useState(0),[y,C]=s.useState(0),[x,E]=s.useState(!1),S={left:f,top:p,width:h,height:y,borderRadius:u.map(I=>`${I}px`).join(" ")};l&&(S["--wave-color"]=l);function $(){const I=getComputedStyle(n);c(JR(n));const w=I.position==="static",{borderLeftWidth:N,borderTopWidth:_}=I;m(w?n.offsetLeft:Rf(-parseFloat(N))),g(w?n.offsetTop:Rf(-parseFloat(_))),v(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:M,borderBottomLeftRadius:D,borderBottomRightRadius:P}=I;d([T,M,P,D].map(A=>Rf(parseFloat(A))))}if(s.useEffect(()=>{if(n){const I=At(()=>{$(),E(!0)});let w;return typeof ResizeObserver!="undefined"&&(w=new ResizeObserver($),w.observe(n)),()=>{At.cancel(I),w==null||w.disconnect()}}},[]),!x)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Qs));return s.createElement(lr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,w)=>{var N,_;if(w.deadline||w.propertyName==="opacity"){const T=(N=i.current)===null||N===void 0?void 0:N.parentElement;(_=a.current)===null||_===void 0||_.call(a).then(()=>{T==null||T.remove()})}return!1}},(I,w)=>{let{className:N}=I;return s.createElement("div",{ref:Vn(i,w),className:U(t,N,{"wave-quick":O}),style:S})})},e4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=Tf();let a=null;function l(){return a}a=i(s.createElement(ZR,Object.assign({},t,{target:e,registerUnmount:l})),o)},t4=(e,t,n)=>{const{wave:r}=s.useContext(Xe),[,o,i]=Fn(),a=qt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Qs}`)||d,{showEffect:m}=r||{};(m||e4)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=s.useRef(null);return u=>{At.cancel(l.current),l.current=At(()=>{a(u)})}},nC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=b.useContext(Xe),i=b.useRef(null),a=o("wave"),[,l]=YR(a),c=t4(i,U(a,l),r);if(b.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!Za(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!b.isValidElement(t))return t!=null?t:null;const u=Ar(t)?Vn(Do(t),i):i;return Gn(t,{ref:u})};process.env.NODE_ENV!=="production"&&(nC.displayName="Wave");const el=nC,Kn=e=>{const t=b.useContext(Ua);return b.useMemo(()=>e?typeof e=="string"?e!=null?e:t:typeof e=="function"?e(t):t:t,[e,t])},n4=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},r4=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},o4=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},rC=Mt("Space",e=>{const t=St(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[r4(t),o4(t),n4(t)]},()=>({}),{resetStyle:!1});var oC=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ys=s.createContext(null),Bi=(e,t)=>{const n=s.useContext(Ys),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return U(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},i4=e=>{const{children:t}=e;return s.createElement(Ys.Provider,{value:null},t)},a4=e=>{const{children:t}=e,n=oC(e,["children"]);return s.createElement(Ys.Provider,{value:s.useMemo(()=>n,[n])},t)},l4=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Xe),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:u}=e,d=oC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Kn(x=>r!=null?r:x),m=t("space-compact",a),[p,g]=rC(m),h=U(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,c),v=s.useContext(Ys),y=_n(u),C=s.useMemo(()=>y.map((x,E)=>{const S=(x==null?void 0:x.key)||`${m}-item-${E}`;return s.createElement(a4,{key:S,compactSize:f,compactDirection:o,isFirstItem:E===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:E===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[r,y,v]);return y.length===0?null:p(s.createElement("div",Object.assign({className:h},d),C))};var s4=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iC=s.createContext(void 0),c4=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Xe),{prefixCls:r,size:o,className:i}=e,a=s4(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Fn(),u=s.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const f=vt("Button.Group");f.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const d=U(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,c);return s.createElement(iC.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:d})))},aC=/^[\u4E00-\u9FA5]{2}$/,jf=aC.test.bind(aC);function lC(e){return e==="danger"?{danger:!0}:{type:e}}function sC(e){return typeof e=="string"}function Js(e){return e==="text"||e==="link"}function u4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&sC(e.type)&&jf(e.props.children)?Gn(e,{children:e.props.children.split("").join(n)}):sC(e)?jf(e)?b.createElement("span",null,e.split("").join(n)):b.createElement("span",null,e):N0(e)?b.createElement("span",null,e):e}function d4(e,t){let n=!1;const r=[];return b.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),b.Children.map(r,o=>u4(o,t))}["default","primary","danger"].concat(ge(zo));const Lf=b.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=U(`${i}-icon`,n);return b.createElement("span",{ref:t,className:a,style:r},o)}),cC=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=U(`${n}-loading-icon`,r);return b.createElement(Lf,{prefixCls:n,className:a,style:o,ref:t},b.createElement(Zo,{className:i}))}),zf=()=>({width:0,opacity:0,transform:"scale(0)"}),Bf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),f4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?b.createElement(cC,{prefixCls:t,className:o,style:i}):b.createElement(lr,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:zf,onAppearActive:Bf,onEnterStart:zf,onEnterActive:Bf,onLeaveStart:Bf,onLeaveActive:zf},(c,u)=>{let{className:d,style:f}=c;const m=Object.assign(Object.assign({},i),f);return b.createElement(cC,{prefixCls:t,className:U(o,d),style:m,ref:u})})},uC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),m4=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},uC(`${t}-primary`,o),uC(`${t}-danger`,i)]}};var p4=["b"],v4=["v"],kf=function(t){return Math.round(Number(t||0))},g4=function(t){if(t instanceof Bt)return t;if(t&&He(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=tt(n,p4);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Eo=function(e){Rr(n,e);var t=Yr(n);function n(r){return hn(this,n),t.call(this,g4(r))}return bn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=kf(o.s*100),a=kf(o.b*100),l=kf(o.h),c=o.a,u="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=tt(o,v4);return q(q({},a),{},{b:i,a:this.a})}}]),n}(Bt),h4="rc-color-picker",ki=function(t){return t instanceof Eo?t:new Eo(t)},b4=ki("#1677ff"),dC=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,l=o.current.getBoundingClientRect(),c=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,p=f/2,g=m/2,h=(n.x+p)/c,v=1-(n.y+g)/u,y=i.toHsb(),C=h,x=(n.x+p)/c*360;if(a)switch(a){case"hue":return ki(q(q({},y),{},{h:x<=0?0:x}));case"alpha":return ki(q(q({},y),{},{a:C<=0?0:C}))}return ki({h:y.h,s:h<=0?0:h,b:v>=1?1:v,a:y.a})},fC=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},y4=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,l="".concat(r,"-color-block");return b.createElement("div",{className:U(l,o),style:i,onClick:a},b.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function C4(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function mC(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,l=e.color,c=e.disabledDrag,u=b.useState({x:0,y:0}),d=ae(u,2),f=d[0],m=d[1],p=b.useRef(null),g=b.useRef(null);b.useEffect(function(){m(a())},[l]),b.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null}},[]);var h=function(E){var S=C4(E),$=S.pageX,O=S.pageY,I=n.current.getBoundingClientRect(),w=I.x,N=I.y,_=I.width,T=I.height,M=t.current.getBoundingClientRect(),D=M.width,P=M.height,A=D/2,R=P/2,L=Math.max(0,Math.min($-w,_))-A,j=Math.max(0,Math.min(O-N,T))-R,z={x:L,y:r==="x"?f.y:j};if(D===0&&P===0||D!==P)return!1;o==null||o(z)},v=function(E){E.preventDefault(),h(E)},y=function(E){E.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null,i==null||i()},C=function(E){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),!c&&(h(E),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),p.current=v,g.current=y)};return[f,C]}var pC=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return b.createElement("div",{className:U("".concat(i,"-handler"),H({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},vC=function(t){var n=t.children,r=t.style,o=t.prefixCls;return b.createElement("div",{className:"".concat(o,"-palette"),style:q({position:"relative"},r)},n)},gC=b.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return b.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),S4=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,l=b.useRef(),c=b.useRef(),u=b.useRef(n),d=qt(function(h){var v=dC({offset:h,targetRef:c,containerRef:l,color:n});u.current=v,r(v)}),f=mC({color:n,containerRef:l,targetRef:c,calculate:function(){return fC(n)},onDragChange:d,onDragChangeComplete:function(){return i==null?void 0:i(u.current)},disabledDrag:a}),m=ae(f,2),p=m[0],g=m[1];return b.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},b.createElement(vC,{prefixCls:o},b.createElement(gC,{x:p.x,y:p.y,ref:c},b.createElement(pC,{color:n.toRgbString(),prefixCls:o})),b.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},x4=function(t,n){var r=an(t,{value:n}),o=ae(r,2),i=o[0],a=o[1],l=b.useMemo(function(){return ki(i)},[i]);return[l,a]},E4=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,l=t.prefixCls,c=b.useMemo(function(){return n.map(function(u,d){var f=ki(u);return a==="alpha"&&d===n.length-1&&(f=new Eo(f.setA(1))),f.toRgbString()}).join(",")},[n,a]);return b.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)},$4=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,l=t.color,c=t.type,u=b.useRef(),d=b.useRef(),f=b.useRef(l),m=function(S){return c==="hue"?S.getHue():S.a*100},p=qt(function(E){var S=dC({offset:E,targetRef:d,containerRef:u,color:l,type:c});f.current=S,i(m(S))}),g=mC({color:l,targetRef:d,containerRef:u,calculate:function(){return fC(l,c)},onDragChange:p,onDragChangeComplete:function(){a(m(f.current))},direction:"x",disabledDrag:o}),h=ae(g,2),v=h[0],y=h[1],C=b.useMemo(function(){if(c==="hue"){var E=l.toHsb();E.s=1,E.b=1,E.a=1;var S=new Eo(E);return S}return l},[l,c]),x=b.useMemo(function(){return r.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[r]);return b.createElement("div",{ref:u,className:U("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:y,onTouchStart:y},b.createElement(vC,{prefixCls:n},b.createElement(gC,{x:v.x,y:v.y,ref:d},b.createElement(pC,{size:"small",color:C.toHexString(),prefixCls:n})),b.createElement(E4,{colors:x,type:c,prefixCls:n})))};function w4(e){return s.useMemo(function(){var t=e||{},n=t.slider;return[n||$4]},[e])}var O4=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],N4=b.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?h4:o,a=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,p=e.disabled,g=p===void 0?!1:p,h=e.components,v=w4(h),y=ae(v,1),C=y[0],x=x4(r||b4,n),E=ae(x,2),S=E[0],$=E[1],O=b.useMemo(function(){return S.setA(1).toRgbString()},[S]),I=function(j,z){n||$(j),a==null||a(j,z)},w=function(j){return new Eo(S.setHue(j))},N=function(j){return new Eo(S.setA(j/100))},_=function(j){I(w(j),{type:"hue",value:j})},T=function(j){I(N(j),{type:"alpha",value:j})},M=function(j){l&&l(w(j))},D=function(j){l&&l(N(j))},P=U("".concat(i,"-panel"),c,H({},"".concat(i,"-panel-disabled"),g)),A={prefixCls:i,disabled:g,color:S},R=b.createElement(b.Fragment,null,b.createElement(S4,de({onChange:I},A,{onChangeComplete:l})),b.createElement("div",{className:"".concat(i,"-slider-container")},b.createElement("div",{className:U("".concat(i,"-slider-group"),H({},"".concat(i,"-slider-group-disabled-alpha"),m))},b.createElement(C,de({},A,{type:"hue",colors:O4,min:0,max:359,value:S.getHue(),onChange:_,onChangeComplete:M})),!m&&b.createElement(C,de({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:S.a*100,onChange:T,onChangeComplete:D}))),b.createElement(y4,{color:S.toRgbString(),prefixCls:i})));return b.createElement("div",{className:P,style:u,ref:t},typeof d=="function"?d(R):R)});process.env.NODE_ENV!=="production"&&(N4.displayName="ColorPicker");const I4=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",_4=(e,t)=>e?I4(e,t):"";let P4=function(){function e(t){hn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new Eo(this.colors[0].color.metaColor)):this.metaColor=new Eo(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return bn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return _4(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();const Ff=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
175
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
176
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),T4=e=>({animationDuration:e,animationFillMode:"both"}),M4=e=>({animationDuration:e,animationFillMode:"both"}),Zs=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
177
|
+
${i}${e}-enter,
|
|
178
|
+
${i}${e}-appear
|
|
179
|
+
`]:Object.assign(Object.assign({},T4(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},M4(r)),{animationPlayState:"paused"}),[`
|
|
180
|
+
${i}${e}-enter${e}-enter-active,
|
|
181
|
+
${i}${e}-appear${e}-appear-active
|
|
182
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},D4=new It("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),A4=new It("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),R4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Zs(r,D4,A4,e.motionDurationMid,t),{[`
|
|
183
|
+
${o}${r}-enter,
|
|
184
|
+
${o}${r}-appear
|
|
185
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},j4=new It("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L4=new It("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),z4=new It("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),B4=new It("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),k4=new It("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),F4=new It("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),H4=new It("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V4=new It("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),W4={"move-up":{inKeyframes:H4,outKeyframes:V4},"move-down":{inKeyframes:j4,outKeyframes:L4},"move-left":{inKeyframes:z4,outKeyframes:B4},"move-right":{inKeyframes:k4,outKeyframes:F4}},ec=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=W4[t];return[Zs(r,o,i,e.motionDurationMid),{[`
|
|
186
|
+
${r}-enter,
|
|
187
|
+
${r}-appear
|
|
188
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Hf=new It("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vf=new It("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wf=new It("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Kf=new It("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),K4=new It("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),q4=new It("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),G4=new It("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),U4=new It("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),X4={"slide-up":{inKeyframes:Hf,outKeyframes:Vf},"slide-down":{inKeyframes:Wf,outKeyframes:Kf},"slide-left":{inKeyframes:K4,outKeyframes:q4},"slide-right":{inKeyframes:G4,outKeyframes:U4}},ko=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=X4[t];return[Zs(r,o,i,e.motionDurationMid),{[`
|
|
189
|
+
${r}-enter,
|
|
190
|
+
${r}-appear
|
|
191
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},qf=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Q4=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hC=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bC=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Y4=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),J4=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Z4=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ej=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),tj=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),nj=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rj=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),oj=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ij={zoom:{inKeyframes:qf,outKeyframes:Q4},"zoom-big":{inKeyframes:hC,outKeyframes:bC},"zoom-big-fast":{inKeyframes:hC,outKeyframes:bC},"zoom-left":{inKeyframes:Z4,outKeyframes:ej},"zoom-right":{inKeyframes:tj,outKeyframes:nj},"zoom-up":{inKeyframes:Y4,outKeyframes:J4},"zoom-down":{inKeyframes:rj,outKeyframes:oj}},tl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ij[t];return[Zs(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
192
|
+
${r}-enter,
|
|
193
|
+
${r}-appear
|
|
194
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aj=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Eo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},yC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return St(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},CC=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Rs(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Rs(c),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Rs(u),p=aj(new P4(e.colorBgSolid),"#fff")?"#000":"#fff",g=zo.reduce((h,v)=>Object.assign(Object.assign({},h),{[`${v}ShadowColor`]:`0 ${G(e.controlOutlineWidth)} 0 ${Xa(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},lj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Qa(),"> a":{color:"currentColor"},"&:not(:disabled)":Or(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},SC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),sj=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cj=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uj=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),tc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},SC(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),dj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uj(e))}),fj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),nc=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?fj:dj;return Object.assign(Object.assign({},i(e)),SC(e.componentCls,t,n))},rc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},nc(e,r,o))}),oc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},nc(e,r,o))}),ic=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ac=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},nc(e,n,r))}),io=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},nc(e,r,o,n))}),mj=e=>{const{componentCls:t}=e;return zo.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},rc(e,e.colorTextLightSolid,o,{background:a},{background:u})),oc(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),ic(e)),ac(e,i,{background:l},{background:c})),io(e,o,"link",{color:a},{color:u})),io(e,o,"text",{color:a,background:i},{color:u,background:c}))})},{})},pj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},rc(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ic(e)),ac(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),tc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),io(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},oc(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ic(e)),ac(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),io(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),io(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),tc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},rc(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),oc(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ic(e)),ac(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),io(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),io(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),tc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hj=e=>Object.assign(Object.assign({},io(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),tc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),bj=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:pj(e),[`${t}-color-primary`]:vj(e),[`${t}-color-dangerous`]:gj(e),[`${t}-color-link`]:hj(e)},mj(e))},yj=e=>Object.assign(Object.assign(Object.assign(Object.assign({},oc(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),io(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),rc(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),io(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Gf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${G(c)} ${G(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:sj(e)},{[`${n}${n}-round${t}`]:cj(e)}]},Cj=e=>{const t=St(e,{fontSize:e.contentFontSize});return Gf(t,e.componentCls)},Sj=e=>{const t=St(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Gf(t,`${e.componentCls}-sm`)},xj=e=>{const t=St(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Gf(t,`${e.componentCls}-lg`)},Ej=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},$j=Mt("Button",e=>{const t=yC(e);return[lj(t),Cj(t),Sj(t),xj(t),Ej(t),bj(t),yj(t),m4(t)]},CC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function wj(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Oj(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},wj(e,r,t)),Oj(n,r,t))}}function Nj(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ij(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function _j(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Nj(e,t)),Ij(e.componentCls,t))}}const Pj=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Tj=Ri(["Button","compact"],e=>{const t=yC(e);return[Uf(t),_j(t),Pj(t)]},CC);var Mj=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dj(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Aj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},lc=b.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:l,type:c,danger:u=!1,shape:d="default",size:f,styles:m,disabled:p,className:g,rootClassName:h,children:v,icon:y,iconPosition:C="start",ghost:x=!1,block:E=!1,htmlType:S="button",classNames:$,style:O={},autoInsertSpace:I,autoFocus:w}=e,N=Mj(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),_=c||"default",{button:T}=b.useContext(Xe),[M,D]=b.useMemo(()=>{if(a&&l)return[a,l];if(c||u){const ve=Aj[_]||[];return u?["danger",ve[1]]:ve}return T!=null&&T.color&&(T!=null&&T.variant)?[T.color,T.variant]:["default","outlined"]},[c,a,l,u,T==null?void 0:T.variant,T==null?void 0:T.color]),A=M==="danger"?"dangerous":M,{getPrefixCls:R,direction:L,autoInsertSpace:j,className:z,style:B,classNames:K,styles:W}=Dn("button"),k=(n=I!=null?I:j)!==null&&n!==void 0?n:!0,V=R("btn",i),[Q,J,Y]=$j(V),te=b.useContext(no),oe=p!=null?p:te,X=b.useContext(iC),F=b.useMemo(()=>Dj(o),[o]),[ee,Z]=b.useState(F.loading),[ne,re]=b.useState(!1),se=b.useRef(null),le=Qr(t,se),he=b.Children.count(v)===1&&!y&&!Js(D),fe=b.useRef(!0);b.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),b.useEffect(()=>{let ve=null;F.delay>0?ve=setTimeout(()=>{ve=null,Z(!0)},F.delay):Z(F.loading);function Se(){ve&&(clearTimeout(ve),ve=null)}return Se},[F]),b.useEffect(()=>{if(!se.current||!k)return;const ve=se.current.textContent||"";he&&jf(ve)?ne||re(!0):ne&&re(!1)}),b.useEffect(()=>{w&&se.current&&se.current.focus()},[]);const ie=b.useCallback(ve=>{var Se;if(ee||oe){ve.preventDefault();return}(Se=e.onClick)===null||Se===void 0||Se.call(e,("href"in e,ve))},[e.onClick,ee,oe]);if(process.env.NODE_ENV!=="production"){const ve=vt("Button");process.env.NODE_ENV!=="production"&&ve(!(typeof y=="string"&&y.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${y}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ve(!(x&&Js(D)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ce,compactItemClassnames:ue}=Bi(V,L),me={large:"lg",small:"sm",middle:void 0},Ce=Kn(ve=>{var Se,Je;return(Je=(Se=f!=null?f:ce)!==null&&Se!==void 0?Se:X)!==null&&Je!==void 0?Je:ve}),Oe=Ce&&(r=me[Ce])!==null&&r!==void 0?r:"",Pe=ee?"loading":y,je=tn(N,["navigate"]),Ne=U(V,J,Y,{[`${V}-${d}`]:d!=="default"&&d,[`${V}-${_}`]:_,[`${V}-dangerous`]:u,[`${V}-color-${A}`]:A,[`${V}-variant-${D}`]:D,[`${V}-${Oe}`]:Oe,[`${V}-icon-only`]:!v&&v!==0&&!!Pe,[`${V}-background-ghost`]:x&&!Js(D),[`${V}-loading`]:ee,[`${V}-two-chinese-chars`]:ne&&k&&!ee,[`${V}-block`]:E,[`${V}-rtl`]:L==="rtl",[`${V}-icon-end`]:C==="end"},ue,g,h,z),Ie=Object.assign(Object.assign({},B),O),xe=U($==null?void 0:$.icon,K.icon),be=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),Ee=y&&!ee?b.createElement(Lf,{prefixCls:V,className:xe,style:be},y):o&&typeof o=="object"&&o.icon?b.createElement(Lf,{prefixCls:V,className:xe,style:be},o.icon):b.createElement(f4,{existIcon:!!y,prefixCls:V,loading:ee,mount:fe.current}),$e=v||v===0?d4(v,he&&k):null;if(je.href!==void 0)return Q(b.createElement("a",Object.assign({},je,{className:U(Ne,{[`${V}-disabled`]:oe}),href:oe?void 0:je.href,style:Ie,onClick:ie,ref:le,tabIndex:oe?-1:0}),Ee,$e));let _e=b.createElement("button",Object.assign({},N,{type:S,className:Ne,style:Ie,onClick:ie,disabled:oe,ref:le}),Ee,$e,ue&&b.createElement(Tj,{prefixCls:V}));return Js(D)||(_e=b.createElement(el,{component:"Button",disabled:ee},_e)),Q(_e)});lc.Group=c4,lc.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(lc.displayName="Button");const rn=lc;function Xf(e){return!!(e!=null&&e.then)}const xC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[p,g]=ai(!1),h=function(){i==null||i.apply(void 0,arguments)};s.useEffect(()=>{let C=null;return a&&(C=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[]);const v=C=>{Xf(C)&&(g(!0),C.then(function(){g(!1,!0),h.apply(void 0,arguments),f.current=!1},x=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},y=C=>{if(f.current)return;if(f.current=!0,!d){h();return}let x;if(l){if(x=d(C),u&&!Xf(x)){f.current=!1,h(C);return}}else if(d.length)x=d(i),f.current=!1;else if(x=d(),!Xf(x)){h();return}v(x)};return s.createElement(rn,Object.assign({},lC(t),{onClick:y,loading:p,prefixCls:r},o,{ref:m}),n)},nl=b.createContext({}),{Provider:EC}=nl,$C=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:c}=b.useContext(nl);return o?b.createElement(xC,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},wC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:c}=b.useContext(nl);return b.createElement(xC,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var OC=s.createContext(null),NC=[];function Rj(e,t){var n=s.useState(function(){if(!In())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&g.setAttribute("data-debug",t),g}),r=ae(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(OC),l=s.useState(NC),c=ae(l,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(g){d(function(h){var v=[g].concat(ge(h));return v})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1}return Et(function(){return e?a?a(m):m():p(),p},[e]),Et(function(){u.length&&(u.forEach(function(g){return g()}),d(NC))},[u]),[o,f]}var Qf;function IC(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";go(`
|
|
195
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
196
|
+
`).concat(d,`
|
|
197
|
+
`).concat(f,`
|
|
198
|
+
}`),t)}catch(g){console.error(g),o=c,i=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ia(t),{width:m,height:p}}function _C(e){return typeof document=="undefined"?0:((e||Qf===void 0)&&(Qf=IC()),Qf.width)}function Yf(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:IC(e)}function jj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Lj="rc-util-locker-".concat(Date.now()),PC=0;function zj(e){var t=!!e,n=s.useState(function(){return PC+=1,"".concat(Lj,"_").concat(PC)}),r=ae(n,1),o=r[0];Et(function(){if(t){var i=Yf(document.body).width,a=jj();go(`
|
|
199
|
+
html body {
|
|
200
|
+
overflow-y: hidden;
|
|
201
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
202
|
+
}`),o)}else Ia(o);return function(){Ia(o)}},[t,o])}var TC=!1;function Bj(e){return typeof e=="boolean"&&(TC=e),TC}var MC=function(t){return t===!1?!1:!In()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},rl=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,u=s.useState(n),d=ae(u,2),f=d[0],m=d[1],p=f||n;process.env.NODE_ENV!=="production"&&Ue(In()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(function(){(l||n)&&m(n)},[n,l]);var g=s.useState(function(){return MC(o)}),h=ae(g,2),v=h[0],y=h[1];s.useEffect(function(){var T=MC(o);y(T!=null?T:null)});var C=Rj(p&&!v,i),x=ae(C,2),E=x[0],S=x[1],$=v!=null?v:E;zj(r&&n&&In()&&($===E||$===document.body));var O=null;if(c&&Ar(c)&&t){var I=c;O=I.ref}var w=Qr(O,t);if(!p||!In()||v===void 0)return null;var N=$===!1||Bj(),_=c;return t&&(_=s.cloneElement(c,{ref:w})),s.createElement(OC.Provider,{value:S},N?_:tr.createPortal(_,$))});process.env.NODE_ENV!=="production"&&(rl.displayName="Portal");var DC=s.createContext({});function kj(){var e=q({},s);return e.useId}var AC=0,RC=kj();const sc=RC?function(t){var n=RC();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=ae(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=AC;AC+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};function jC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function LC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function Fj(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=LC(o),n.top+=LC(o,!0),n}const Hj=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Vj={width:0,height:0,overflow:"hidden",outline:"none"},Wj={outline:"none"},Jf=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,p=e.bodyProps,g=e.modalRender,h=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,C=e.visible,x=e.forceRender,E=e.width,S=e.height,$=e.classNames,O=e.styles,I=b.useContext(DC),w=I.panel,N=Qr(y,w),_=b.useRef(),T=b.useRef();b.useImperativeHandle(t,function(){return{focus:function(){var K;(K=_.current)===null||K===void 0||K.focus({preventScroll:!0})},changeActive:function(K){var W=document,k=W.activeElement;K&&k===T.current?_.current.focus({preventScroll:!0}):!K&&k===_.current&&T.current.focus({preventScroll:!0})}}});var M={};E!==void 0&&(M.width=E),S!==void 0&&(M.height=S);var D=l?b.createElement("div",{className:U("".concat(n,"-footer"),$==null?void 0:$.footer),style:q({},O==null?void 0:O.footer)},l):null,P=i?b.createElement("div",{className:U("".concat(n,"-header"),$==null?void 0:$.header),style:q({},O==null?void 0:O.header)},b.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,A=b.useMemo(function(){return He(c)==="object"&&c!==null?c:c?{closeIcon:u!=null?u:b.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),R=An(A,!0),L=He(c)==="object"&&c.disabled,j=c?b.createElement("button",de({type:"button",onClick:d,"aria-label":"Close"},R,{className:"".concat(n,"-close"),disabled:L}),A.closeIcon):null,z=b.createElement("div",{className:U("".concat(n,"-content"),$==null?void 0:$.content),style:O==null?void 0:O.content},j,P,b.createElement("div",de({className:U("".concat(n,"-body"),$==null?void 0:$.body),style:q(q({},m),O==null?void 0:O.body)},p),f),D);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:N,style:q(q({},o),M),className:U(n,r),onMouseDown:h,onMouseUp:v},b.createElement("div",{ref:_,tabIndex:0,style:Wj},b.createElement(Hj,{shouldUpdate:C||x},g?g(z):z)),b.createElement("div",{tabIndex:0,ref:T,style:Vj}))});process.env.NODE_ENV!=="production"&&(Jf.displayName="Panel");var zC=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,p=b.useRef(),g=s.useState(),h=ae(g,2),v=h[0],y=h[1],C={};v&&(C.transformOrigin=v);function x(){var E=Fj(p.current);y(m&&(m.x||m.y)?"".concat(m.x-E.left,"px ").concat(m.y-E.top,"px"):"")}return s.createElement(lr,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:c,ref:p},function(E,S){var $=E.className,O=E.style;return s.createElement(Jf,de({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:S,style:q(q(q({},O),o),C),className:U(i,$)}))})});zC.displayName="Content";var Kj=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return s.createElement(lr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return s.createElement("div",de({ref:u,style:q(q({},f),r),className:U("".concat(n,"-mask"),d,l)},i))})},qj=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,p=t.wrapProps,g=t.onClose,h=t.afterOpenChange,v=t.afterClose,y=t.transitionName,C=t.animation,x=t.closable,E=x===void 0?!0:x,S=t.mask,$=S===void 0?!0:S,O=t.maskTransitionName,I=t.maskAnimation,w=t.maskClosable,N=w===void 0?!0:w,_=t.maskStyle,T=t.maskProps,M=t.rootClassName,D=t.classNames,P=t.styles;process.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(ne){ho(!(ne in t),"".concat(ne," is deprecated, please use styles instead."))}),"wrapClassName"in t&&ho(!1,"wrapClassName is deprecated, please use classNames instead."));var A=b.useRef(),R=b.useRef(),L=b.useRef(),j=s.useState(a),z=ae(j,2),B=z[0],K=z[1],W=sc();function k(){Ed(R.current,document.activeElement)||(A.current=document.activeElement)}function V(){if(!Ed(R.current,document.activeElement)){var ne;(ne=L.current)===null||ne===void 0||ne.focus()}}function Q(ne){if(ne)V();else{if(K(!1),$&&A.current&&d){try{A.current.focus({preventScroll:!0})}catch(re){}A.current=null}B&&(v==null||v())}h==null||h(ne)}function J(ne){g==null||g(ne)}var Y=b.useRef(!1),te=b.useRef(),oe=function(){clearTimeout(te.current),Y.current=!0},X=function(){te.current=setTimeout(function(){Y.current=!1})},F=null;N&&(F=function(re){Y.current?Y.current=!1:R.current===re.target&&J(re)});function ee(ne){if(c&&ne.keyCode===ye.ESC){ne.stopPropagation(),J(ne);return}a&&ne.keyCode===ye.TAB&&L.current.changeActive(!ne.shiftKey)}b.useEffect(function(){a&&(K(!0),k())},[a]),b.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var Z=q(q(q({zIndex:o},f),P==null?void 0:P.wrapper),{},{display:B?null:"none"});return s.createElement("div",de({className:U("".concat(r,"-root"),M)},An(t,{data:!0})),s.createElement(Kj,{prefixCls:r,visible:$&&a,motionName:jC(r,O,I),style:q(q({zIndex:o},_),P==null?void 0:P.mask),maskProps:T,className:D==null?void 0:D.mask}),s.createElement("div",de({tabIndex:-1,onKeyDown:ee,className:U("".concat(r,"-wrap"),m,D==null?void 0:D.wrapper),ref:R,onClick:F,style:Z},p),s.createElement(zC,de({},t,{onMouseDown:oe,onMouseUp:X,ref:L,closable:E,ariaId:W,prefixCls:r,visible:a&&B,onClose:J,onVisibleChanged:Q,motionName:jC(r,y,C)}))))},BC=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=ae(u,2),f=d[0],m=d[1],p=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!o&&a&&!f?null:s.createElement(DC.Provider,{value:p},s.createElement(rl,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(qj,de({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}}))))};BC.displayName="Dialog";var si="RC_FORM_INTERNAL_HOOKS",nn=function(){Ue(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ci=s.createContext({getFieldValue:nn,getFieldsValue:nn,getFieldError:nn,getFieldWarning:nn,getFieldsError:nn,isFieldsTouched:nn,isFieldTouched:nn,isFieldValidating:nn,isFieldsValidating:nn,resetFields:nn,setFields:nn,setFieldValue:nn,setFieldsValue:nn,validateFields:nn,submit:nn,getInternalHooks:function(){return nn(),{dispatch:nn,initEntityValue:nn,registerField:nn,useSubscribe:nn,setInitialValues:nn,destroyForm:nn,setCallbacks:nn,registerWatch:nn,getFields:nn,setValidateMessages:nn,setPreserve:nn,getInitialValue:nn}}}),ol=s.createContext(null);function Zf(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gj(e){return e&&!!e._init}function em(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var tm=em();function Uj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function Xj(e,t,n){if(Ss())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ba(o,n.prototype),o}function nm(e){var t=typeof Map=="function"?new Map:void 0;return nm=function(r){if(r===null||!Uj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Xj(r,arguments,ri(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ba(o,r)},nm(e)}var Qj=/%[sdj%]/g,kC=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(kC=function(t,n){typeof console!="undefined"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING=="undefined"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function rm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function pr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Qj,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(c){return"[Circular]"}break;default:return l}});return a}return e}function Yj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Rn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Yj(t)&&typeof e=="string"&&!e)}function Jj(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,ge(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function FC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function Zj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ge(e[n]||[]))}),t}var HC=function(e){Rr(n,e);var t=Yr(n);function n(r,o){var i;return hn(this,n),i=t.call(this,"Async Validation Error"),H(qe(i),"errors",void 0),H(qe(i),"fields",void 0),i.errors=r,i.fields=o,i}return bn(n)}(nm(Error));function e3(e,t,n,r,o){if(t.first){var i=new Promise(function(m,p){var g=function(y){return r(y),y.length?p(new HC(y,rm(y))):m(o)},h=Zj(e);FC(h,n,g)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(m,p){var g=function(v){if(d.push.apply(d,v),u++,u===c)return r(d),d.length?p(new HC(d,rm(d))):m(o)};l.length||(r(d),m(o)),l.forEach(function(h){var v=e[h];a.indexOf(h)!==-1?FC(v,n,g):Jj(v,n,g)})});return f.catch(function(m){return m}),f}function t3(e){return!!(e&&e.message!==void 0)}function n3(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function VC(e,t){return function(n){var r;return e.fullFields?r=n3(t,e.fullFields):r=t[n.field||e.fullField],t3(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function WC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];He(r)==="object"&&He(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var Fi="enum",r3=function(t,n,r,o,i){t[Fi]=Array.isArray(t[Fi])?t[Fi]:[],t[Fi].indexOf(n)===-1&&o.push(pr(i.messages[Fi],t.fullField,t[Fi].join(", ")))},o3=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(pr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(pr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},i3=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(m?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(pr(i.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?o.push(pr(i.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?o.push(pr(i.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&o.push(pr(i.messages[f].range,t.fullField,t.min,t.max))},KC=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Rn(n,a||t.type))&&o.push(pr(i.messages.required,t.fullField))},cc;const a3=function(){if(cc)return cc;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function($){return $&&$.exact?l:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(a).concat(t($),")"),"g")};d.v4=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,g=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(g,"|").concat(h).concat(v).concat(y,")").concat(C).concat(x);return cc=new RegExp("(?:^".concat(E,"$)"),"i"),cc};var qC={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},il={integer:function(t){return il.number(t)&&parseInt(t,10)===t},float:function(t){return il.number(t)&&!il.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return He(t)==="object"&&!il.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(a3())},hex:function(t){return typeof t=="string"&&!!t.match(qC.hex)}},l3=function(t,n,r,o,i){if(t.required&&n===void 0){KC(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?il[l](n)||o.push(pr(i.messages.types[l],t.fullField,t.type)):l&&He(n)!==t.type&&o.push(pr(i.messages.types[l],t.fullField,t.type))},s3=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(pr(i.messages.whitespace,t.fullField))};const Ft={required:KC,whitespace:s3,type:l3,range:i3,enum:r3,pattern:o3};var c3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i)}r(a)},u3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ft.required(t,n,o,a,i,"array"),n!=null&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},d3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},f3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n,"date")&&!t.required)return r();if(Ft.required(t,n,o,a,i),!Rn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Ft.type(t,c,o,a,i),c&&Ft.range(t,c.getTime(),o,a,i)}}r(a)},m3="enum",p3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft[m3](t,n,o,a,i)}r(a)},v3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},g3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},h3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},b3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},y3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},C3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i),Rn(n,"string")||Ft.pattern(t,n,o,a,i)}r(a)},S3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),Rn(n)||Ft.type(t,n,o,a,i)}r(a)},x3=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":He(n);Ft.required(t,n,o,a,i,l),r(a)},E3=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i,"string"),Rn(n,"string")||(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i),Ft.pattern(t,n,o,a,i),t.whitespace===!0&&Ft.whitespace(t,n,o,a,i))}r(a)},om=function(t,n,r,o,i){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Rn(n,a)&&!t.required)return r();Ft.required(t,n,o,l,i,a),Rn(n,a)||Ft.type(t,n,o,l,i)}r(l)};const al={string:E3,method:h3,number:b3,boolean:d3,regexp:S3,integer:g3,float:v3,array:u3,object:y3,enum:p3,pattern:C3,date:f3,url:om,hex:om,email:om,required:x3,any:c3};var ll=function(){function e(t){hn(this,e),H(this,"rules",null),H(this,"_messages",tm),this.define(t)}return bn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(He(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=WC(em(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(g){var h=[],v={};function y(x){if(Array.isArray(x)){var E;h=(E=h).concat.apply(E,ge(x))}else h.push(x)}for(var C=0;C<g.length;C++)y(g[C]);h.length?(v=rm(h),c(h,v)):c(null,a)}if(l.messages){var d=this.messages();d===tm&&(d=em()),WC(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},m=l.keys||Object.keys(this.rules);m.forEach(function(g){var h=r.rules[g],v=a[g];h.forEach(function(y){var C=y;typeof C.transform=="function"&&(a===n&&(a=q({},a)),v=a[g]=C.transform(v),v!=null&&(C.type=C.type||(Array.isArray(v)?"array":He(v)))),typeof C=="function"?C={validator:C}:C=q({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=g,C.fullField=C.fullField||g,C.type=r.getType(C),f[g]=f[g]||[],f[g].push({rule:C,value:v,source:a,field:g}))})});var p={};return e3(f,l,function(g,h){var v=g.rule,y=(v.type==="object"||v.type==="array")&&(He(v.fields)==="object"||He(v.defaultField)==="object");y=y&&(v.required||!v.required&&g.value),v.field=g.field;function C(O,I){return q(q({},I),{},{fullField:"".concat(v.fullField,".").concat(O),fullFields:v.fullFields?[].concat(ge(v.fullFields),[O]):[O]})}function x(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(O)?O:[O];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&v.message!==void 0&&(I=[].concat(v.message));var w=I.map(VC(v,a));if(l.first&&w.length)return p[v.field]=1,h(w);if(!y)h(w);else{if(v.required&&!g.value)return v.message!==void 0?w=[].concat(v.message).map(VC(v,a)):l.error&&(w=[l.error(v,pr(l.messages.required,v.field))]),h(w);var N={};v.defaultField&&Object.keys(g.value).map(function(M){N[M]=v.defaultField}),N=q(q({},N),g.rule.fields);var _={};Object.keys(N).forEach(function(M){var D=N[M],P=Array.isArray(D)?D:[D];_[M]=P.map(C.bind(null,M))});var T=new e(_);T.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),T.validate(g.value,g.rule.options||l,function(M){var D=[];w&&w.length&&D.push.apply(D,ge(w)),M&&M.length&&D.push.apply(D,ge(M)),h(D.length?D:null)})}}var E;if(v.asyncValidator)E=v.asyncValidator(v,g.value,x,g.source,l);else if(v.validator){try{E=v.validator(v,g.value,x,g.source,l)}catch(O){var S,$;(S=($=console).error)===null||S===void 0||S.call($,O),l.suppressValidatorError||setTimeout(function(){throw O},0),x(O.message)}E===!0?x():E===!1?x(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):E instanceof Array?x(E):E instanceof Error&&x(E.message)}E&&E.then&&E.then(function(){return x()},function(O){return x(O)})},function(g){u(g)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!al.hasOwnProperty(n.type))throw new Error(pr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?al.required:al[this.getType(n)]||void 0}}]),e}();H(ll,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");al[t]=n}),H(ll,"warning",kC),H(ll,"messages",tm),H(ll,"validators",al);var vr="'${name}' is not a valid ${type}",GC={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:vr,method:vr,array:vr,object:vr,number:vr,date:vr,boolean:vr,integer:vr,float:vr,regexp:vr,email:vr,url:vr,hex:vr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},UC=ll;function $3(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var XC="CODE_LOGIC_ERROR";function im(e,t,n,r,o){return am.apply(this,arguments)}function am(){return am=li(or().mark(function e(t,n,r,o,i){var a,l,c,u,d,f,m,p,g;return or().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=q({},r),delete a.ruleIndex,UC.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(XC)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new UC(H({},t,[a])),d=Ai(GC,o.validateMessages),u.messages(d),f=[],v.prev=10,v.next=13,Promise.resolve(u.validate(H({},t,n),q({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,C){var x=y.message,E=x===XC?d.default:x;return s.isValidElement(E)?s.cloneElement(E,{key:"error_".concat(C)}):E}));case 18:if(!(!f.length&&c)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,C){return im("".concat(t,".").concat(C),y,c,o,i)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(y,C){return[].concat(ge(y),ge(C))},[]));case 23:return p=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),g=f.map(function(y){return typeof y=="string"?$3(y,p):y}),v.abrupt("return",g);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),am.apply(this,arguments)}function w3(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var m=d.validator,p=q(q({},d),{},{ruleIndex:f});return m&&(p.validator=function(g,h,v){var y=!1,C=function(){for(var S=arguments.length,$=new Array(S),O=0;O<S;O++)$[O]=arguments[O];Promise.resolve().then(function(){Ue(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,$)})},x=m(g,h,C);y=x&&typeof x.then=="function"&&typeof x.catch=="function",Ue(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){v()}).catch(function(E){v(E||" ")})}),p}).sort(function(d,f){var m=d.warningOnly,p=d.ruleIndex,g=f.warningOnly,h=f.ruleIndex;return!!m==!!g?p-h:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=li(or().mark(function f(m,p){var g,h,v;return or().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=0;case 1:if(!(g<l.length)){C.next=12;break}return h=l[g],C.next=5,im(a,t,h,r,i);case 5:if(v=C.sent,!v.length){C.next=9;break}return p([{errors:v,rule:h}]),C.abrupt("return");case 9:g+=1,C.next=1;break;case 12:m([]);case 13:case"end":return C.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return im(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});c=(o?N3(u):O3(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function O3(e){return lm.apply(this,arguments)}function lm(){return lm=li(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ge(o));return a}));case 1:case"end":return r.stop()}},e)})),lm.apply(this,arguments)}function N3(e){return sm.apply(this,arguments)}function sm(){return sm=li(or().mark(function e(t){var n;return or().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),sm.apply(this,arguments)}function On(e){return Zf(e)}function QC(e,t){var n={};return t.forEach(function(r){var o=rr(e,r);n=$r(n,r,o)}),n}function Hi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return YC(t,r,n)})}function YC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function I3(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||He(e)!=="object"||He(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function _3(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&He(t.target)==="object"&&e in t.target?t.target[e]:t}function JC(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var P3=["name"],Nr=[];function cm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var um=function(e){Rr(n,e);var t=Yr(n);function n(r){var o;if(hn(this,n),o=t.call(this,r),H(qe(o),"state",{resetCount:0}),H(qe(o),"cancelRegisterFunc",null),H(qe(o),"mounted",!1),H(qe(o),"touched",!1),H(qe(o),"dirty",!1),H(qe(o),"validatePromise",void 0),H(qe(o),"prevValidating",void 0),H(qe(o),"errors",Nr),H(qe(o),"warnings",Nr),H(qe(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,On(f)),o.cancelRegisterFunc=null}),H(qe(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ge(m),ge(u)):[]}),H(qe(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),H(qe(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),H(qe(o),"metaCache",null),H(qe(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=q(q({},o.getMeta()),{},{destroy:c});Jr(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),H(qe(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,p=f.dependencies,g=p===void 0?[]:p,h=f.onReset,v=d.store,y=o.getNamePath(),C=o.getValue(c),x=o.getValue(v),E=u&&Hi(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&!Jr(C,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m&&cm(m,c,v,C,x,d)){o.reRender();return}break}case"setField":{var S=d.data;if(E){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Nr),"warnings"in S&&(o.warnings=S.warnings||Nr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Hi(u,y,!0)){o.reRender();return}if(m&&!y.length&&cm(m,c,v,C,x,d)){o.reRender();return}break}case"dependenciesUpdate":{var $=g.map(On);if($.some(function(O){return Hi(d.relatedFields,O)})){o.reRender();return}break}default:if(E||(!g.length||y.length||m)&&cm(m,c,v,C,x,d)){o.reRender();return}break}m===!0&&o.reRender()}),H(qe(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,p=f.validateOnly,g=p===void 0?!1:p,h=Promise.resolve().then(li(or().mark(function v(){var y,C,x,E,S,$,O;return or().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(o.mounted){w.next=2;break}return w.abrupt("return",[]);case 2:if(y=o.props,C=y.validateFirst,x=C===void 0?!1:C,E=y.messageVariables,S=y.validateDebounce,$=o.getRules(),m&&($=$.filter(function(N){return N}).filter(function(N){var _=N.validateTrigger;if(!_)return!0;var T=Zf(_);return T.includes(m)})),!(S&&m)){w.next=10;break}return w.next=8,new Promise(function(N){setTimeout(N,S)});case 8:if(o.validatePromise===h){w.next=10;break}return w.abrupt("return",[]);case 10:return O=w3(u,d,$,c,x,E),O.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nr;if(o.validatePromise===h){var _;o.validatePromise=null;var T=[],M=[];(_=N.forEach)===null||_===void 0||_.call(N,function(D){var P=D.rule.warningOnly,A=D.errors,R=A===void 0?Nr:A;P?M.push.apply(M,ge(R)):T.push.apply(T,ge(R))}),o.errors=T,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),w.abrupt("return",O);case 13:case"end":return w.stop()}},v)})));return g||(o.validatePromise=h,o.dirty=!0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),o.reRender()),h}),H(qe(o),"isFieldValidating",function(){return!!o.validatePromise}),H(qe(o),"isFieldTouched",function(){return o.touched}),H(qe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(si),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),H(qe(o),"getErrors",function(){return o.errors}),H(qe(o),"getWarnings",function(){return o.warnings}),H(qe(o),"isListField",function(){return o.props.isListField}),H(qe(o),"isList",function(){return o.props.isList}),H(qe(o),"isPreserve",function(){return o.props.preserve}),H(qe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),H(qe(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return q(q({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=_n(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),H(qe(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return rr(c||u(!0),d)}),H(qe(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,p=u.getValueFromEvent,g=u.normalize,h=u.valuePropName,v=u.getValueProps,y=u.fieldContext,C=m!==void 0?m:y.validateTrigger,x=o.getNamePath(),E=y.getInternalHooks,S=y.getFieldsValue,$=E(si),O=$.dispatch,I=o.getValue(),w=v||function(D){return H({},h,D)},N=c[f],_=d!==void 0?w(I):{};process.env.NODE_ENV!=="production"&&_&&Object.keys(_).forEach(function(D){Ue(typeof _[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var T=q(q({},c),_);T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,P=arguments.length,A=new Array(P),R=0;R<P;R++)A[R]=arguments[R];p?D=p.apply(void 0,A):D=_3.apply(void 0,[h].concat(A)),g&&(D=g(D,I,S(!0))),D!==I&&O({type:"updateValue",namePath:x,value:D}),N&&N.apply(void 0,A)};var M=Zf(C||[]);return M.forEach(function(D){var P=T[D];T[D]=function(){P&&P.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&O({type:"validateField",namePath:x,triggerName:D})}}),T}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(si),l=a.initEntityValue;l(qe(o))}return o}return bn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,c=l(si),u=c.registerField;this.cancelRegisterFunc=u(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,c=a.isFunction,u;return c?u=l:s.isValidElement(l)?u=s.cloneElement(l,this.getControlled(l.props)):(Ue(!l,"`children` of Field is not validate ReactElement."),u=l),s.createElement(s.Fragment,{key:o},u)}}]),n}(s.Component);H(um,"contextType",ci),H(um,"defaultProps",{trigger:"onChange",valuePropName:"value"});function dm(e){var t,n=e.name,r=tt(e,P3),o=s.useContext(ci),i=s.useContext(ol),a=n!==void 0?On(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!i,c="keep";return l||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&l&&a.length<=1&&Ue(!1,"`preserve` should not apply on Form.List fields."),s.createElement(um,de({key:c,name:a,isListField:l},r,{fieldContext:o}))}function ZC(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=s.useContext(ci),c=s.useContext(ol),u=s.useRef({keys:[],id:0}),d=u.current,f=s.useMemo(function(){var h=On(l.prefixName)||[];return[].concat(ge(h),ge(On(t)))},[l.prefixName,t]),m=s.useMemo(function(){return q(q({},l),{},{prefixName:f})},[l,f]),p=s.useMemo(function(){return{getKey:function(v){var y=f.length,C=v[y];return[d.keys[C],v.slice(y+1)]}}},[f]);if(typeof r!="function")return Ue(!1,"Form.List only accepts function as children."),null;var g=function(v,y,C){var x=C.source;return x==="internal"?!1:v!==y};return s.createElement(ol.Provider,{value:p},s.createElement(ci.Provider,{value:m},s.createElement(dm,{name:[],shouldUpdate:g,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a!=null?a:!!c},function(h,v){var y=h.value,C=y===void 0?[]:y,x=h.onChange,E=l.getFieldValue,S=function(){var w=E(f||[]);return w||[]},$={add:function(w,N){var _=S();N>=0&&N<=_.length?(d.keys=[].concat(ge(d.keys.slice(0,N)),[d.id],ge(d.keys.slice(N))),x([].concat(ge(_.slice(0,N)),[w],ge(_.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>_.length)&&Ue(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ge(d.keys),[d.id]),x([].concat(ge(_),[w]))),d.id+=1},remove:function(w){var N=S(),_=new Set(Array.isArray(w)?w:[w]);_.size<=0||(d.keys=d.keys.filter(function(T,M){return!_.has(M)}),x(N.filter(function(T,M){return!_.has(M)})))},move:function(w,N){if(w!==N){var _=S();w<0||w>=_.length||N<0||N>=_.length||(d.keys=JC(d.keys,w,N),x(JC(_,w,N)))}}},O=C||[];return Array.isArray(O)||(O=[],process.env.NODE_ENV!=="production"&&Ue(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(O.map(function(I,w){var N=d.keys[w];return N===void 0&&(d.keys[w]=d.id,N=d.keys[w],d.id+=1),{name:w,key:N,isListField:!0}}),$,v)})))}function T3(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var eS="__@field_split__";function fm(e){return e.map(function(t){return"".concat(He(t),":").concat(t)}).join(eS)}var Vi=function(){function e(){hn(this,e),H(this,"kvs",new Map)}return bn(e,[{key:"set",value:function(n,r){this.kvs.set(fm(n),r)}},{key:"get",value:function(n){return this.kvs.get(fm(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(fm(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=ae(r,2),i=o[0],a=o[1],l=i.split(eS);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ae(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),M3=["name"],D3=bn(function e(t){var n=this;hn(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),H(this,"getInternalHooks",function(r){return r===si?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ue(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(r){n.subscribable=r}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Ai(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;a=$r(a,c,rr(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),H(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Vi;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),H(this,"getInitialValue",function(r){var o=rr(n.initialValues,r);return r.length?Ai(o):o}),H(this,"setCallbacks",function(r){n.callbacks=r}),H(this,"setValidateMessages",function(r){n.validateMessages=r}),H(this,"setPreserve",function(r){n.preserve=r}),H(this,"watchList",[]),H(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),H(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window!="undefined"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Ue(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),H(this,"updateStore",function(r){n.store=r}),H(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Vi;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=On(i);return o.get(a)||{INVALIDATE_NAME_PATH:On(i)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&He(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,h;if((g=(h=d).isList)!==null&&g!==void 0&&g.call(h))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)u.push(p);else{var v="getMeta"in d?d.getMeta():null;a(v)&&u.push(p)}}),QC(n.store,u.map(On))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=On(r);return rr(n.store,o)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:On(r[a]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=On(r),i=n.getFieldsError([o])[0];return i.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=On(r),i=n.getFieldsError([o])[0];return i.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(a)?(c=a.map(On),u=!1):(c=null,u=a):(c=a.map(On),u=l);var d=n.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!c)return u?d.every(function(h){return f(h)||h.isList()}):d.some(f);var m=new Vi;c.forEach(function(h){m.set(h,[])}),d.forEach(function(h){var v=h.getNamePath();c.forEach(function(y){y.every(function(C,x){return v[x]===C})&&m.update(y,function(C){return[].concat(ge(C),[h])})})});var p=function(v){return v.some(f)},g=m.map(function(h){var v=h.value;return v});return u?g.every(p):g.some(p)}),H(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),H(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(On);return o.some(function(a){var l=a.getNamePath();return Hi(i,l)&&a.isFieldValidating()})}),H(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),H(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Vi,i=n.getFieldEntities(!0);i.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)Ue(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)Ue(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var h=n.getFieldValue(m),v=d.isListField();!v&&(!r.skipExist||h===void 0)&&n.updateStore($r(n.store,m,ge(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,ge(ge(u).map(function(f){return f.entity})))}})):l=i,a(l)}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ai(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(On);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore($r(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,c=tt(a,M3),u=On(l);i.push(u),"value"in c&&n.updateStore($r(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),c=q(q({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=rr(n.store,i);a===void 0&&n.updateStore($r(n.store,i,o))}}),H(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o!=null?o:!0}),H(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!YC(f.getNamePath(),o)})){var d=n.store;n.updateStore($r(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),H(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=q(q({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(i))}),i}),H(this,"updateValue",function(r,o){var i=On(r),a=n.store;n.updateStore($r(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var u=QC(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(ge(l)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Ai(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Vi;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=On(d);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),c(m))}})};return l(r),i}),H(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Vi;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return Hi(r,d)});c.length&&i(c,a)}}),H(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,c=l?i.map(On):[],u=[],d=String(Date.now()),f=new Set,m=a||{},p=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(g&&!C.isFieldDirty())){var x=C.getNamePath();if(f.add(x.join(d)),!l||Hi(c,x,p)){var E=C.validateRules(q({validateMessages:q(q({},GC),n.validateMessages)},a));u.push(E.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var $,O=[],I=[];return($=S.forEach)===null||$===void 0||$.call(S,function(w){var N=w.rule.warningOnly,_=w.errors;N?I.push.apply(I,ge(_)):O.push.apply(O,ge(_))}),O.length?Promise.reject({name:x,errors:O,warnings:I}):{name:x,errors:O,warnings:I}}))}}});var h=T3(u);n.lastValidatePromise=h,h.catch(function(C){return C}).then(function(C){var x=C.map(function(E){var S=E.name;return S});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,C)});var v=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var x=C.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==h})});v.catch(function(C){return C});var y=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(y),v}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function mm(e){var t=s.useRef(),n=s.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new D3(i);t.current=a.getForm()}return[t.current]}var pm=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),tS=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=s.useContext(pm),l=s.useRef({});return s.createElement(pm.Provider,{value:q(q({},a),{},{validateMessages:q(q({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=q(q({},l.current),{},H({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=q({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},A3=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],R3=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,p=m===void 0?"onChange":m,g=t.onValuesChange,h=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,C=t.clearOnDestroy,x=tt(t,A3),E=s.useRef(null),S=s.useContext(pm),$=mm(a),O=ae($,1),I=O[0],w=I.getInternalHooks(si),N=w.useSubscribe,_=w.setInitialValues,T=w.setCallbacks,M=w.setValidateMessages,D=w.setPreserve,P=w.destroyForm;s.useImperativeHandle(n,function(){return q(q({},I),{},{nativeElement:E.current})}),s.useEffect(function(){return S.registerForm(r,I),function(){S.unregisterForm(r)}},[S,I,r]),M(q(q({},S.validateMessages),f)),T({onValuesChange:g,onFieldsChange:function(k){if(S.triggerFormChange(r,k),h){for(var V=arguments.length,Q=new Array(V>1?V-1:0),J=1;J<V;J++)Q[J-1]=arguments[J];h.apply(void 0,[k].concat(Q))}},onFinish:function(k){S.triggerFormFinish(r,k),v&&v(k)},onFinishFailed:y}),D(l);var A=s.useRef(null);_(o,!A.current),A.current||(A.current=!0),s.useEffect(function(){return function(){return P(C)}},[]);var R,L=typeof c=="function";if(L){var j=I.getFieldsValue(!0);R=c(j,I)}else R=c;N(!L);var z=s.useRef();s.useEffect(function(){I3(z.current||[],i||[])||I.setFields(i||[]),z.current=i},[i,I]);var B=s.useMemo(function(){return q(q({},I),{},{validateTrigger:p})},[I,p]),K=s.createElement(ol.Provider,{value:null},s.createElement(ci.Provider,{value:B},R));return d===!1?K:s.createElement(d,de({},x,{ref:E,onSubmit:function(k){k.preventDefault(),k.stopPropagation(),I.submit()},onReset:function(k){var V;k.preventDefault(),I.resetFields(),(V=x.onReset)===null||V===void 0||V.call(x,k)}}),K)};function nS(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var j3=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=b.useRef(t);Ue(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function rS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=Gj(i)?{form:i}:i,l=a.form,c=b.useState(),u=ae(c,2),d=u[0],f=u[1],m=b.useMemo(function(){return nS(d)},[d]),p=b.useRef(m);p.current=m;var g=b.useContext(ci),h=l||g,v=h&&h._init;process.env.NODE_ENV!=="production"&&Ue(t.length===2?l?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=On(r),C=b.useRef(y);return C.current=y,j3(y),b.useEffect(function(){if(v){var x=h.getFieldsValue,E=h.getInternalHooks,S=E(si),$=S.registerWatch,O=function(_,T){var M=a.preserve?T:_;return typeof r=="function"?r(M):rr(M,C.current)},I=$(function(N,_){var T=O(N,_),M=nS(T);p.current!==M&&(p.current=M,f(T))}),w=O(x(),x(!0));return d!==w&&f(w),I}},[v]),d}var L3=s.forwardRef(R3),Wi=L3;Wi.FormProvider=tS,Wi.Field=dm,Wi.List=ZC,Wi.useForm=mm,Wi.useWatch=rS;const $o=s.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),oS=s.createContext(null),iS=e=>{const t=tn(e,["prefixCls"]);return s.createElement(tS,Object.assign({},t))},vm=s.createContext({prefixCls:""}),Un=s.createContext({});process.env.NODE_ENV!=="production"&&(Un.displayName="FormItemInputContext");const z3=e=>{let{children:t,status:n,override:r}=e;const o=s.useContext(Un),i=s.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return s.createElement(Un.Provider,{value:i},t)},aS=s.createContext(void 0),Ki=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=b.createElement(z3,{override:!0,status:!0},o)),t&&(o=b.createElement(i4,null,o)),o};function uc(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}function qi(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function lS(e){const{closable:t,closeIcon:n}=e||{};return b.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const B3={};function gm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B3;const r=lS(e),o=lS(t),[i]=to("global",eo.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=b.useMemo(()=>Object.assign({closeIcon:b.createElement(xr,null)},n),[n]),c=b.useMemo(()=>r===!1?!1:r?uc(l,o,r):o===!1?!1:o?uc(l,o):l.closable?l:!1,[r,o,l]);return b.useMemo(()=>{if(c===!1)return[!1,null,a,{}];const{closeIconRender:u}=l,{closeIcon:d}=c;let f=d;const m=An(c,!0);return f!=null&&(u&&(f=u(d)),f=b.isValidElement(f)?b.cloneElement(f,Object.assign({"aria-label":i.close},m)):b.createElement("span",Object.assign({"aria-label":i.close},m),f)),[!0,f,a,m]},[c,l])}var sS=function(t){if(In()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},k3=function(t,n){if(!sS(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function hm(e,t){return!Array.isArray(e)&&t!==void 0?k3(e,t):sS(e)}const F3=()=>In()&&window.document.documentElement,dc=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=U({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=U({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=s.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return s.createElement("span",{className:U(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},H3=new It("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fc=e=>({height:e,lineHeight:G(e)}),Gi=e=>Object.assign({width:e},fc(e)),V3=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:H3,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),bm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},fc(e)),W3=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Gi(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Gi(o)),[`${t}${t}-sm`]:Object.assign({},Gi(i))}},K3=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},bm(t,l)),[`${r}-lg`]:Object.assign({},bm(o,l)),[`${r}-sm`]:Object.assign({},bm(i,l))}},cS=e=>Object.assign({width:e},fc(e)),q3=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},cS(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cS(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ym=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Cm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},fc(e)),G3=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Cm(r,l))},ym(e,r,n)),{[`${n}-lg`]:Object.assign({},Cm(o,l))}),ym(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Cm(i,l))}),ym(e,i,`${n}-sm`))},U3=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:p,borderRadius:g,titleHeight:h,blockRadius:v,paragraphLiHeight:y,controlHeightXS:C,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Gi(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Gi(u)),[`${n}-sm`]:Object.assign({},Gi(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},G3(e)),W3(e)),K3(e)),q3(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
203
|
+
${r},
|
|
204
|
+
${o} > li,
|
|
205
|
+
${n},
|
|
206
|
+
${i},
|
|
207
|
+
${a},
|
|
208
|
+
${l}
|
|
209
|
+
`]:Object.assign({},V3(e))}}},Ui=Mt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=St(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[U3(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),X3=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Ui(c),m=tn(e,["prefixCls","className"]),p=U(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(dc,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},m))))},Q3=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Ui(c),m=tn(e,["prefixCls"]),p=U(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(dc,Object.assign({prefixCls:`${c}-button`,size:a},m))))},Y3="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",J3=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=s.useContext(Xe),l=a("skeleton",t),[c,u,d]=Ui(l),f=U(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:U(`${l}-image`,n),style:o},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:Y3,className:`${l}-image-path`})))))},Z3=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Ui(c),m=tn(e,["prefixCls"]),p=U(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(dc,Object.assign({prefixCls:`${c}-input`,size:a},m))))},eL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Ui(c),m=U(c,`${c}-element`,{[`${c}-active`]:i},d,n,r,f);return u(s.createElement("div",{className:m},s.createElement("div",{className:U(`${c}-image`,n),style:o},a)))},tL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},nL=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>s.createElement("li",{key:l,style:{width:tL(l,e)}}));return s.createElement("ul",{className:U(t,n),style:r},i)},rL=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return s.createElement("h3",{className:U(t,n),style:Object.assign({width:r},o)})};function Sm(e){return e&&typeof e=="object"?e:{}}function oL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function iL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function aL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ui=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:p,className:g,style:h}=Dn("skeleton"),v=m("skeleton",t),[y,C,x]=Ui(v);if(n||!("loading"in e)){const E=!!l,S=!!c,$=!!u;let O;if(E){const N=Object.assign(Object.assign({prefixCls:`${v}-avatar`},oL(S,$)),Sm(l));O=s.createElement("div",{className:`${v}-header`},s.createElement(dc,Object.assign({},N)))}let I;if(S||$){let N;if(S){const T=Object.assign(Object.assign({prefixCls:`${v}-title`},iL(E,$)),Sm(c));N=s.createElement(rL,Object.assign({},T))}let _;if($){const T=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},aL(E,S)),Sm(u));_=s.createElement(nL,Object.assign({},T))}I=s.createElement("div",{className:`${v}-content`},N,_)}const w=U(v,{[`${v}-with-avatar`]:E,[`${v}-active`]:d,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:f},g,r,o,C,x);return y(s.createElement("div",{className:w,style:Object.assign(Object.assign({},h),i)},O,I))}return a!=null?a:null};ui.Button=Q3,ui.Avatar=X3,ui.Input=Z3,ui.Image=J3,ui.Node=eL,process.env.NODE_ENV!=="production"&&(ui.displayName="Skeleton");const xm=ui;function uS(){}const lL=s.createContext({add:uS,remove:uS});function dS(e){const t=s.useContext(lL),n=s.useRef(null);return qt(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const fS=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=b.useContext(nl);return b.createElement(rn,Object.assign({onClick:n},e),t)},mS=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=b.useContext(nl);return b.createElement(rn,Object.assign({},lC(n),{loading:e,onClick:o},t),r)};function pS(e,t){return b.createElement("span",{className:`${e}-close-x`},t||b.createElement(xr,{className:`${e}-close-icon`}))}const vS=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=to("Modal",Ly()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:i,onCancel:a},g=b.useMemo(()=>p,ge(Object.values(p)));let h;return typeof u=="function"||typeof u=="undefined"?(h=b.createElement(b.Fragment,null,b.createElement(fS,null),b.createElement(mS,null)),typeof u=="function"&&(h=u(h,{OkBtn:mS,CancelBtn:fS})),h=b.createElement(EC,{value:g},h)):h=u,b.createElement(cf,{disabled:!1},h)},sL=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},cL=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},uL=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Em=(e,t)=>uL(e,t),dL=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},Em(e,n))}),fL=()=>({}),mL=()=>({}),pL=Mt("Grid",sL,fL),gS=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),vL=Mt("Grid",e=>{const t=St(e,{gridColumns:24}),n=gS(t);return delete n.xs,[cL(t),Em(t,""),Em(t,"-xs"),Object.keys(n).map(r=>dL(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},mL);function hS(e){return{position:e,inset:0}}const gL=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hS("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hS("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:R4(e)}]},hL=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ht(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Or(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${G(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
210
|
+
${t}-body,
|
|
211
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},bL=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},yL=e=>{const{componentCls:t}=e,n=gS(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${G(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(ge(r))}}},bS=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return St(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yS=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),CS=Mt("Modal",e=>{const t=bS(e);return[hL(t),bL(t),gL(t),tl(t,"zoom"),yL(t)]},yS,{unitless:{titleLineHeight:!0}});var CL=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let $m;const SL=e=>{$m={x:e.pageX,y:e.pageY},setTimeout(()=>{$m=null},100)};F3()&&document.documentElement.addEventListener("click",SL,!0);const SS=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:p,styles:g,children:h,loading:v,confirmLoading:y,zIndex:C,mousePosition:x,onOk:E,onCancel:S,destroyOnHidden:$,destroyOnClose:O}=e,I=CL(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:w,getPrefixCls:N,direction:_,modal:T}=s.useContext(Xe),M=ee=>{y||S==null||S(ee)},D=ee=>{E==null||E(ee)};if(process.env.NODE_ENV!=="production"){const ee=vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"],["destroyOnClose","destroyOnHidden"]].forEach(Z=>{let[ne,re]=Z;ee.deprecated(!(ne in e),ne,re)})}const P=N("modal",t),A=N(),R=wn(P),[L,j,z]=CS(P,R),B=U(i,{[`${P}-centered`]:a!=null?a:T==null?void 0:T.centered,[`${P}-wrap-rtl`]:_==="rtl"}),K=m!==null&&!v?s.createElement(vS,Object.assign({},e,{onOk:D,onCancel:M})):null,[W,k,V,Q]=gm(qi(e),qi(T),{closable:!0,closeIcon:s.createElement(xr,{className:`${P}-close-icon`}),closeIconRender:ee=>pS(P,ee)}),J=dS(`.${P}-content`),[Y,te]=zi("Modal",C),[oe,X]=s.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),F=s.useMemo(()=>{const ee={};return X&&Object.keys(X).forEach(Z=>{const ne=X[Z];ne!==void 0&&(ee[`--${P}-${Z}-width`]=typeof ne=="number"?`${ne}px`:ne)}),ee},[X]);return L(s.createElement(Ki,{form:!0,space:!0},s.createElement(Ya.Provider,{value:te},s.createElement(BC,Object.assign({width:oe},I,{zIndex:Y,getContainer:l===void 0?w:l,prefixCls:P,rootClassName:U(j,r,z,R),footer:K,visible:o!=null?o:d,mousePosition:x!=null?x:$m,onClose:M,closable:W&&Object.assign({disabled:V,closeIcon:k},Q),closeIcon:k,focusTriggerAfterClose:c,transitionName:oo(A,"zoom",e.transitionName),maskTransitionName:oo(A,"fade",e.maskTransitionName),className:U(j,n,T==null?void 0:T.className),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),u),F),classNames:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.classNames),p),{wrapper:U(B,p==null?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),g),panelRef:J,destroyOnClose:$!=null?$:O}),v?s.createElement(xm,{active:!0,title:!1,paragraph:{rows:4},className:`${P}-body-skeleton`}):h))))},xL=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},So()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${G(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
|
212
|
+
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},EL=Ri(["Modal","confirm"],e=>{const t=bS(e);return[xL(t)]},yS,{order:-1e3});var $L=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xS(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:c,locale:u}=e,d=$L(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const O=vt("Modal");process.env.NODE_ENV!=="production"&&O(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&n!==null)switch(a){case"info":f=s.createElement(Ta,null);break;case"success":f=s.createElement(To,null);break;case"error":f=s.createElement(Mo,null);break;default:f=s.createElement(Pa,null)}const m=l!=null?l:a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=to("Modal"),h=u||g,v=r||(m?h==null?void 0:h.okText:h==null?void 0:h.justOkText),y=o||(h==null?void 0:h.cancelText),C=Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:m},d),x=s.useMemo(()=>C,ge(Object.values(C))),E=s.createElement(s.Fragment,null,s.createElement($C,null),s.createElement(wC,null)),S=e.title!==void 0&&e.title!==null,$=`${i}-body`;return s.createElement("div",{className:`${i}-body-wrapper`},s.createElement("div",{className:U($,{[`${$}-has-title`]:S})},f,s.createElement("div",{className:`${i}-paragraph`},S&&s.createElement("span",{className:`${i}-title`},e.title),s.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(EC,{value:x},s.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(E,{OkBtn:wC,CancelBtn:$C}):E)):c,s.createElement(EL,{prefixCls:t}))}const ES=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f}=e;if(process.env.NODE_ENV!=="production"){const E=vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(S=>{let[$,O]=S;E.deprecated(!($ in e),$,O)})}const m=`${i}-confirm`,p=e.width||416,g=e.style||{},h=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=U(m,`${m}-${e.type}`,{[`${m}-rtl`]:o==="rtl"},e.className),[,C]=Fn(),x=s.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+qs,[n,C]);return s.createElement(SS,Object.assign({},e,{className:y,wrapClassName:U({[`${m}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:oo(l||"","zoom",e.transitionName),maskTransitionName:oo(l||"","fade",e.maskTransitionName),mask:h,maskClosable:v,style:g,styles:Object.assign({body:c,mask:r},f),width:p,zIndex:x,closable:u}),s.createElement(xS,Object.assign({},e,{confirmPrefixCls:m})))},wm=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return s.createElement(ro,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},s.createElement(ES,Object.assign({},e)))};process.env.NODE_ENV!=="production"&&(ES.displayName="ConfirmDialog",wm.displayName="ConfirmDialogWrapper");const di=[];let $S="";function wS(){return $S}const wL=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Ly(),l=b.useContext(Xe),c=wS()||l.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Lo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),b.createElement(wm,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i!=null?i:l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:d}))};function sl(e){const t=Ef();process.env.NODE_ENV!=="production"&&!t.holderRender&&x0("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,i;function a(){for(var d,f=arguments.length,m=new Array(f),p=0;p<f;p++)m[p]=arguments[p];if(m.some(v=>v==null?void 0:v.triggerCancel)){var h;(d=e.onCancel)===null||d===void 0||(h=d).call.apply(h,[e,()=>{}].concat(ge(m.slice(1))))}for(let v=0;v<di.length;v++)if(di[v]===c){di.splice(v,1);break}i()}function l(d){clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,wS()),m=t.getIconPrefixCls(),p=t.getTheme(),g=b.createElement(wL,Object.assign({},d));i=Tf()(b.createElement(ro,{prefixCls:f,iconPrefixCls:m,theme:p},t.holderRender?t.holderRender(g):g),n)})}function c(){for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,l(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),di.push(c),{destroy:c,update:u}}function OS(e){return Object.assign(Object.assign({},e),{type:"warning"})}function NS(e){return Object.assign(Object.assign({},e),{type:"info"})}function IS(e){return Object.assign(Object.assign({},e),{type:"success"})}function _S(e){return Object.assign(Object.assign({},e),{type:"error"})}function PS(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function OL(e){let{rootPrefixCls:t}=e;process.env.NODE_ENV!=="production"&&Lo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),$S=t}var NL=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IL=(e,t)=>{var n,{afterClose:r,config:o}=e,i=NL(e,["afterClose","config"]);const[a,l]=s.useState(!0),[c,u]=s.useState(o),{direction:d,getPrefixCls:f}=s.useContext(Xe),m=f("modal"),p=f(),g=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},h=function(){var C;l(!1);for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];if(E.some(I=>I==null?void 0:I.triggerCancel)){var O;(C=c.onCancel)===null||C===void 0||(O=C).call.apply(O,[c,()=>{}].concat(ge(E.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:h,update:C=>{u(x=>Object.assign(Object.assign({},x),C))}}));const v=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[y]=to("Modal",eo.Modal);return s.createElement(wm,Object.assign({prefixCls:m,rootPrefixCls:p},c,{close:h,open:a,afterClose:g,okText:c.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:c.direction||d,cancelText:c.cancelText||(y==null?void 0:y.cancelText)},i))},_L=s.forwardRef(IL);let TS=0;const PL=s.memo(s.forwardRef((e,t)=>{const[n,r]=BR();return s.useImperativeHandle(t,()=>({patchElement:r}),[]),s.createElement(s.Fragment,null,n)}));function MS(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ge(t).forEach(a=>{a()}),n([]))},[t]);const r=s.useCallback(i=>function(l){var c;TS+=1;const u=s.createRef();let d;const f=new Promise(v=>{d=v});let m=!1,p;const g=s.createElement(_L,{key:`modal-${TS}`,config:i(l),ref:u,afterClose:()=>{p==null||p()},isSilent:()=>m,onConfirm:v=>{d(v)}});return p=(c=e.current)===null||c===void 0?void 0:c.patchElement(g),p&&di.push(p),{destroy:()=>{function v(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?v():n(y=>[].concat(ge(y),[v]))},update:v=>{function y(){var C;(C=u.current)===null||C===void 0||C.update(v)}u.current?y():n(C=>[].concat(ge(C),[y]))},then:v=>(m=!0,f.then(v))}},[]);return[s.useMemo(()=>({info:r(NS),success:r(IS),error:r(_S),warning:r(OS),confirm:r(PS)}),[]),s.createElement(PL,{key:"modal-holder",ref:e})]}const TL=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new It("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new It("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new It("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new It("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},ML=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],DL={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},AL=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[DL[t]]:{value:0,_skip_check_:!0}}}}},RL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},jL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},LL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},RL(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},jL(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},ML.map(n=>AL(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},zL=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:p,notificationMarginEdge:g,notificationProgressBg:h,notificationProgressHeight:v,fontSize:y,lineHeight:C,width:x,notificationIconSize:E,colorText:S}=e,$=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[$]:{padding:p,width:x,maxWidth:`calc(100vw - ${G(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:y,color:S},[`${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:y},[`${$}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${$}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Or(e)),[`${$}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${G(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:a,background:h}},[`${$}-actions`]:{float:"right",marginTop:e.marginSM}}},BL=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new It("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ht(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},zL(e))}}]},kL=e=>({zIndexPopup:e.zIndexPopupBase+qs+50,width:384}),FL=e=>{const t=e.paddingMD,n=e.paddingLG;return St(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},HL=Mt("Notification",e=>{const t=FL(e);return[BL(t),TL(t),LL(t)]},kL);globalThis&&globalThis.__rest;function DS(e,t){return t===null||t===!1?null:t||s.createElement(xr,{className:`${e}-close-icon`})}const VL={success:To,info:Ta,error:Mo,warning:Pa},WL=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,actions:a,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(VL[r]||null,{className:U(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:U({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},i),a&&s.createElement("div",{className:`${t}-actions`},a))};function KL(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function qL(e){return{motionName:`${e}-fade`}}function GL(e,t,n){return typeof e!="undefined"?e:typeof(t==null?void 0:t.closeIcon)!="undefined"?t.closeIcon:n==null?void 0:n.closeIcon}var UL=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AS=24,XL=4.5,QL="topRight",YL=e=>{let{children:t,prefixCls:n}=e;const r=wn(n),[o,i,a]=HL(n,r);return o(b.createElement(L0,{classNames:{list:U(i,a,r)}},t))},JL=(e,t)=>{let{prefixCls:n,key:r}=t;return b.createElement(YL,{prefixCls:n,key:r},e)},ZL=b.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:p,getPopupContainer:g,notification:h,direction:v}=b.useContext(Xe),[,y]=Fn(),C=o||p("notification"),x=I=>KL(I,n!=null?n:AS,r!=null?r:AS),E=()=>U({[`${C}-rtl`]:l!=null?l:v==="rtl"}),S=()=>qL(C),[$,O]=W0({prefixCls:C,style:x,className:E,motion:S,closable:!0,closeIcon:DS(C),duration:d!=null?d:XL,getContainer:()=>(i==null?void 0:i())||(g==null?void 0:g())||document.body,maxCount:a,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:JL,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:y.margin}});return b.useImperativeHandle(t,()=>Object.assign(Object.assign({},$),{prefixCls:C,notification:h})),O});function ez(e){const t=b.useRef(null),n=vt("Notification");return[b.useMemo(()=>{const o=c=>{var u;if(!t.current){process.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:d,prefixCls:f,notification:m}=t.current,p=`${f}-notice`,{message:g,description:h,icon:v,type:y,btn:C,actions:x,className:E,style:S,role:$="alert",closeIcon:O,closable:I}=c,w=UL(c,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);process.env.NODE_ENV!=="production"&&n.deprecated(!C,"btn","actions");const N=x!=null?x:C,_=DS(p,GL(O,e,m));return d(Object.assign(Object.assign({placement:(u=e==null?void 0:e.placement)!==null&&u!==void 0?u:QL},w),{content:b.createElement(WL,{prefixCls:p,icon:v,type:y,message:g,description:h,actions:N,role:$}),className:U(y&&`${p}-${y}`,E,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),S),closeIcon:_,closable:I!=null?I:!!_}))},a={open:o,destroy:c=>{var u,d;c!==void 0?(u=t.current)===null||u===void 0||u.close(c):(d=t.current)===null||d===void 0||d.destroy()}};return["success","info","warning","error"].forEach(c=>{a[c]=u=>o(Object.assign(Object.assign({},u),{type:c}))}),a},[]),b.createElement(ZL,Object.assign({key:"notification-holder"},e,{ref:t}))]}function tz(e){return ez(e)}const Om=b.createContext({}),RS=b.createContext({message:{},notification:{},modal:{}}),nz=Mt("App",e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({})),jS=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=b.useContext(Xe),f=d("app",t),[m,p,g]=nz(f),h=U(p,f,r,o,g,{[`${f}-rtl`]:u==="rtl"}),v=b.useContext(Om),y=b.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[C,x]=Y0(y.message),[E,S]=tz(y.notification),[$,O]=MS(),I=b.useMemo(()=>({message:C,notification:E,modal:$}),[C,E,$]);vt("App")(!(g&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const w=c===!1?b.Fragment:c,N={className:h,style:l};return m(b.createElement(RS.Provider,{value:I},b.createElement(Om.Provider,{value:y},b.createElement(w,Object.assign({},c===!1?void 0:N),O,x,S,n))))};process.env.NODE_ENV!=="production"&&(jS.displayName="App");const rz=jS,oz=()=>b.useContext(RS),LS=rz;LS.useApp=oz;const zS=LS;function BS(e){return t=>s.createElement(ro,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const kS=(e,t,n,r,o)=>BS(a=>{const{prefixCls:l,style:c}=a,u=s.useRef(null),[d,f]=s.useState(0),[m,p]=s.useState(0),[g,h]=an(!1,{value:a.open}),{getPrefixCls:v}=s.useContext(Xe),y=v(r||"select",l);s.useEffect(()=>{if(h(!0),typeof ResizeObserver!="undefined"){const E=new ResizeObserver($=>{const O=$[0].target;f(O.offsetHeight+8),p(O.offsetWidth)}),S=setInterval(()=>{var $;const O=o?`.${o(y)}`:`.${y}-dropdown`,I=($=u.current)===null||$===void 0?void 0:$.querySelector(O);I&&(clearInterval(S),E.observe(I))},10);return()=>{clearInterval(S),E.disconnect()}}},[]);let C=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});n&&(C=n(C)),t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:d,position:"relative",minWidth:m};return s.createElement("div",{ref:u,style:x},s.createElement(e,Object.assign({},C)))}),Nm=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var mc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:U(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},iz=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=b.useMemo(function(){if(He(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=b.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,a,r.length,l,c]);return{allowClear:d,clearIcon:b.createElement(mc,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},FS=s.createContext(null);function az(){return s.useContext(FS)}function lz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=ae(t,2),r=n[0],o=n[1],i=s.useRef(null),a=function(){window.clearTimeout(i.current)};s.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function HS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function sz(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function cz(e){return e&&![ye.ESC,ye.SHIFT,ye.BACKSPACE,ye.TAB,ye.WIN_KEY,ye.ALT,ye.META,ye.WIN_KEY_RIGHT,ye.CTRL,ye.SEMICOLON,ye.EQUALS,ye.CAPS_LOCK,ye.CONTEXT_MENU,ye.F1,ye.F2,ye.F3,ye.F4,ye.F5,ye.F6,ye.F7,ye.F8,ye.F9,ye.F10,ye.F11,ye.F12].includes(e)}var uz=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Xi=void 0;function dz(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,p=e.display,g=e.order,h=e.component,v=h===void 0?"div":h,y=tt(e,uz),C=a&&!p;function x(I){c(u,I)}s.useEffect(function(){return function(){x(null)}},[]);var E=i&&o!==Xi?i(o,{index:g}):m,S;r||(S={opacity:C?0:1,height:C?0:Xi,overflowY:C?"hidden":Xi,order:a?g:Xi,pointerEvents:C?"none":Xi,position:C?"absolute":Xi});var $={};C&&($["aria-hidden"]=!0);var O=s.createElement(v,de({className:U(!r&&n,d),style:q(q({},S),f)},$,y,{ref:t}),E);return a&&(O=s.createElement(Wn,{onResize:function(w){var N=w.offsetWidth;x(N)},disabled:l},O)),O}var cl=s.forwardRef(dz);cl.displayName="Item";function fz(e){if(typeof MessageChannel=="undefined")At(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function mz(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],fz(function(){tr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ul(e,t){var n=s.useState(t),r=ae(n,2),o=r[0],i=r[1],a=qt(function(l){e(function(){i(l)})});return[o,a]}var pc=b.createContext(null),pz=["component"],vz=["className"],gz=["className"],hz=function(t,n){var r=s.useContext(pc);if(!r){var o=t.component,i=o===void 0?"div":o,a=tt(t,pz);return s.createElement(i,de({},a,{ref:n}))}var l=r.className,c=tt(r,vz),u=t.className,d=tt(t,gz);return s.createElement(pc.Provider,{value:null},s.createElement(cl,de({ref:n,className:U(l,u)},c,d)))},VS=s.forwardRef(hz);VS.displayName="RawItem";var bz=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],WS="responsive",KS="invalidate";function yz(e){return"+ ".concat(e.length," ...")}function Cz(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,p=e.className,g=e.maxCount,h=e.renderRest,v=e.renderRawRest,y=e.suffix,C=e.component,x=C===void 0?"div":C,E=e.itemComponent,S=e.onVisibleChange,$=tt(e,bz),O=f==="full",I=mz(),w=ul(I,null),N=ae(w,2),_=N[0],T=N[1],M=_||0,D=ul(I,new Map),P=ae(D,2),A=P[0],R=P[1],L=ul(I,0),j=ae(L,2),z=j[0],B=j[1],K=ul(I,0),W=ae(K,2),k=W[0],V=W[1],Q=ul(I,0),J=ae(Q,2),Y=J[0],te=J[1],oe=b.useState(null),X=ae(oe,2),F=X[0],ee=X[1],Z=b.useState(null),ne=ae(Z,2),re=ne[0],se=ne[1],le=s.useMemo(function(){return re===null&&O?Number.MAX_SAFE_INTEGER:re||0},[re,_]),he=b.useState(!1),fe=ae(he,2),ie=fe[0],ce=fe[1],ue="".concat(r,"-item"),me=Math.max(z,k),Ce=g===WS,Oe=i.length&&Ce,Pe=g===KS,je=Oe||typeof g=="number"&&i.length>g,Ne=b.useMemo(function(){var ke=i;return Oe?_===null&&O?ke=i:ke=i.slice(0,Math.min(i.length,M/d)):typeof g=="number"&&(ke=i.slice(0,g)),ke},[i,d,_,g,Oe]),Ie=b.useMemo(function(){return Oe?i.slice(le+1):i.slice(Ne.length)},[i,Ne,Oe,le]),xe=b.useCallback(function(ke,Me){var Te;return typeof c=="function"?c(ke):(Te=c&&(ke==null?void 0:ke[c]))!==null&&Te!==void 0?Te:Me},[c]),be=b.useCallback(a||function(ke){return ke},[a]);function Ee(ke,Me,Te){re===ke&&(Me===void 0||Me===F)||(se(ke),Te||(ce(ke<i.length-1),S==null||S(ke)),Me!==void 0&&ee(Me))}function $e(ke,Me){T(Me.clientWidth)}function _e(ke,Me){R(function(Te){var at=new Map(Te);return Me===null?at.delete(ke):at.set(ke,Me),at})}function ve(ke,Me){V(Me),B(k)}function Se(ke,Me){te(Me)}function Je(ke){return A.get(xe(Ne[ke],ke))}Et(function(){if(M&&typeof me=="number"&&Ne){var ke=Y,Me=Ne.length,Te=Me-1;if(!Me){Ee(0,null);return}for(var at=0;at<Me;at+=1){var ct=Je(at);if(O&&(ct=ct||0),ct===void 0){Ee(at-1,void 0,!0);break}if(ke+=ct,Te===0&&ke<=M||at===Te-1&&ke+Je(Te)<=M){Ee(Te,null);break}else if(ke+me>M){Ee(at-1,ke-ct-Y+k);break}}y&&Je(0)+Y>M&&ee(null)}},[M,A,k,Y,xe,Ne]);var it=ie&&!!Ie.length,Ot={};F!==null&&Oe&&(Ot={position:"absolute",left:F,top:0});var _t={prefixCls:ue,responsive:Oe,component:E,invalidate:Pe},Ut=l?function(ke,Me){var Te=xe(ke,Me);return s.createElement(pc.Provider,{key:Te,value:q(q({},_t),{},{order:Me,item:ke,itemKey:Te,registerSize:_e,display:Me<=le})},l(ke,Me))}:function(ke,Me){var Te=xe(ke,Me);return s.createElement(cl,de({},_t,{order:Me,key:Te,item:ke,renderItem:be,itemKey:Te,registerSize:_e,display:Me<=le}))},st={order:it?le:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:ve,display:it},Pt=h||yz,mt=v?s.createElement(pc.Provider,{value:q(q({},_t),st)},v(Ie)):s.createElement(cl,de({},_t,st),typeof Pt=="function"?Pt(Ie):Pt),et=s.createElement(x,de({className:U(!Pe&&r,p),style:m,ref:t},$),Ne.map(Ut),je?mt:null,y&&s.createElement(cl,de({},_t,{responsive:Ce,responsiveDisabled:!Oe,order:le,className:"".concat(ue,"-suffix"),registerSize:Se,display:!0,style:Ot}),y));return Ce?s.createElement(Wn,{onResize:$e,disabled:!Oe},et):et}var ao=s.forwardRef(Cz);ao.displayName="Overflow",ao.Item=VS,ao.RESPONSIVE=WS,ao.INVALIDATE=KS;function Sz(e,t,n){var r=q(q({},e),n?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var a,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return i.apply(void 0,c),(a=e[o])===null||a===void 0?void 0:a.call.apply(a,[e].concat(c))})}),r}var xz=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ez=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,l=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,p=tt(t,xz),g=i||s.createElement("input",null),h=g,v=h.ref,y=h.props;return ho(!("maxLength"in g.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),g=s.cloneElement(g,q(q(q({type:"search"},Sz(p,y,!0)),{},{id:o,ref:Vn(n,v),autoComplete:l||"off",autoFocus:a,className:U("".concat(r,"-selection-search-input"),y==null?void 0:y.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:q(q({},y.style),{},{opacity:c?null:0})})),g},Im=s.forwardRef(Ez);process.env.NODE_ENV!=="production"&&(Im.displayName="Input");function _m(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var $z=typeof window!="undefined"&&window.document&&window.document.documentElement,wz=process.env.NODE_ENV!=="test"&&$z;function Oz(e){return e!=null}function Nz(e){return!e&&e!==0}function qS(e){return["string","number"].includes(He(e))}function GS(e){var t=void 0;return e&&(qS(e.title)?t=e.title.toString():qS(e.label)&&(t=e.label.toString())),t}function Iz(e,t){wz?s.useLayoutEffect(e,t):s.useEffect(e,t)}function _z(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var US=function(t){t.preventDefault(),t.stopPropagation()},Pz=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,p=t.autoFocus,g=t.autoComplete,h=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,C=t.maxTagCount,x=t.maxTagTextLength,E=t.maxTagPlaceholder,S=E===void 0?function(Z){return"+ ".concat(Z.length," ...")}:E,$=t.tagRender,O=t.onToggleOpen,I=t.onRemove,w=t.onInputChange,N=t.onInputPaste,_=t.onInputKeyDown,T=t.onInputMouseDown,M=t.onInputCompositionStart,D=t.onInputCompositionEnd,P=t.onInputBlur,A=s.useRef(null),R=b.useState(0),L=ae(R,2),j=L[0],z=L[1],B=b.useState(!1),K=ae(B,2),W=K[0],k=K[1],V="".concat(r,"-selection"),Q=i||f==="multiple"&&l===!1||f==="tags"?a:"",J=f==="tags"||f==="multiple"&&l===!1||m&&(i||W);Iz(function(){z(A.current.scrollWidth)},[Q]);var Y=function(ne,re,se,le,he){return s.createElement("span",{title:GS(ne),className:U("".concat(V,"-item"),H({},"".concat(V,"-item-disabled"),se))},s.createElement("span",{className:"".concat(V,"-item-content")},re),le&&s.createElement(mc,{className:"".concat(V,"-item-remove"),onMouseDown:US,onClick:he,customizeIcon:y},"×"))},te=function(ne,re,se,le,he,fe){var ie=function(ue){US(ue),O(!i)};return s.createElement("span",{onMouseDown:ie},$({label:re,value:ne,disabled:se,closable:le,onClose:he,isMaxTag:!!fe}))},oe=function(ne){var re=ne.disabled,se=ne.label,le=ne.value,he=!d&&!re,fe=se;if(typeof x=="number"&&(typeof se=="string"||typeof se=="number")){var ie=String(fe);ie.length>x&&(fe="".concat(ie.slice(0,x),"..."))}var ce=function(me){me&&me.stopPropagation(),I(ne)};return typeof $=="function"?te(le,fe,re,he,ce):Y(ne,fe,re,he,ce)},X=function(ne){if(!o.length)return null;var re=typeof S=="function"?S(ne):S;return typeof $=="function"?te(void 0,re,!1,!1,void 0,!0):Y({title:re},re,!1)},F=s.createElement("div",{className:"".concat(V,"-search"),style:{width:j},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},s.createElement(Im,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:g,editable:J,activeDescendantId:h,value:Q,onKeyDown:_,onMouseDown:T,onChange:w,onPaste:N,onCompositionStart:M,onCompositionEnd:D,onBlur:P,tabIndex:v,attrs:An(t,!0)}),s.createElement("span",{ref:A,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},Q," ")),ee=s.createElement(ao,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:oe,renderRest:X,suffix:F,itemKey:_z,maxCount:C});return s.createElement("span",{className:"".concat(V,"-wrap")},ee,!o.length&&!Q&&s.createElement("span",{className:"".concat(V,"-placeholder")},u))},Tz=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,p=t.placeholder,g=t.tabIndex,h=t.showSearch,v=t.searchValue,y=t.activeValue,C=t.maxLength,x=t.onInputKeyDown,E=t.onInputMouseDown,S=t.onInputChange,$=t.onInputPaste,O=t.onInputCompositionStart,I=t.onInputCompositionEnd,w=t.onInputBlur,N=t.title,_=s.useState(!1),T=ae(_,2),M=T[0],D=T[1],P=d==="combobox",A=P||h,R=m[0],L=v||"";P&&y&&!M&&(L=y),s.useEffect(function(){P&&D(!1)},[P,y]);var j=d!=="combobox"&&!f&&!h?!1:!!L,z=N===void 0?GS(R):N,B=s.useMemo(function(){return R?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)},[R,j,p,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(Im,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:A,activeDescendantId:u,value:L,onKeyDown:x,onMouseDown:E,onChange:function(W){D(!0),S(W)},onPaste:$,onCompositionStart:O,onCompositionEnd:I,onBlur:w,tabIndex:g,attrs:An(t,!0),maxLength:P?C:void 0})),!P&&R?s.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:j?{visibility:"hidden"}:void 0},R.label):null,B)},Mz=function(t,n){var r=b.useRef(null),o=b.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,C=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(z){r.current.focus(z)},blur:function(){r.current.blur()}}});var x=HS(0),E=ae(x,2),S=E[0],$=E[1],O=function(z){var B=z.which,K=r.current instanceof HTMLTextAreaElement;!K&&a&&(B===ye.UP||B===ye.DOWN)&&z.preventDefault(),v&&v(z),B===ye.ENTER&&l==="tags"&&!o.current&&!a&&(g==null||g(z.target.value)),!(K&&!a&&~[ye.UP,ye.DOWN,ye.LEFT,ye.RIGHT].indexOf(B))&&cz(B)&&h(!0)},I=function(){$(!0)},w=b.useRef(null),N=function(z){p(z,!0,o.current)!==!1&&h(!0)},_=function(){o.current=!0},T=function(z){o.current=!1,l!=="combobox"&&N(z.target.value)},M=function(z){var B=z.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var K=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(K,w.current)}w.current=null,N(B)},D=function(z){var B=z.clipboardData,K=B==null?void 0:B.getData("text");w.current=K||""},P=function(z){var B=z.target;if(B!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(z){var B=S();z.target!==r.current&&!B&&!(l==="combobox"&&d)&&z.preventDefault(),(l!=="combobox"&&(!c||!B)||!a)&&(a&&m!==!1&&p("",!0,!1),h())},R={inputRef:r,onInputKeyDown:O,onInputMouseDown:I,onInputChange:M,onInputPaste:D,onInputCompositionStart:_,onInputCompositionEnd:T,onInputBlur:y},L=l==="multiple"||l==="tags"?s.createElement(Pz,de({},t,R)):s.createElement(Tz,de({},t,R));return s.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:P,onMouseDown:A},f&&s.createElement("div",{className:"".concat(i,"-prefix")},f),L)},XS=s.forwardRef(Mz);process.env.NODE_ENV!=="production"&&(XS.displayName="Selector");function Dz(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],h=n.points[1],v=g[0],y=g[1],C=h[0],x=h[1];v===C||!["t","b"].includes(v)?p.top=f:v==="t"?p.top=0:p.bottom=0,y===x||!["l","r"].includes(y)?p.left=u:y==="l"?p.left=0:p.right=0}return s.createElement("div",{ref:m,className:U("".concat(t,"-arrow"),a),style:p},l)}function Az(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(lr,de({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:U("".concat(t,"-mask"),l)})}):null}var QS=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(QS.displayName="PopupContent");var YS=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,p=e.arrow,g=e.arrowPos,h=e.align,v=e.motion,y=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,E=e.autoDestroy,S=e.portal,$=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,w=e.onPointerEnter,N=e.onPointerDownCapture,_=e.ready,T=e.offsetX,M=e.offsetY,D=e.offsetR,P=e.offsetB,A=e.onAlign,R=e.onPrepare,L=e.stretch,j=e.targetWidth,z=e.targetHeight,B=typeof n=="function"?n():n,K=c||u,W=(x==null?void 0:x.length)>0,k=s.useState(!x||!W),V=ae(k,2),Q=V[0],J=V[1];if(Et(function(){!Q&&W&&a&&J(!0)},[Q,W,a]),!Q)return null;var Y="auto",te={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(_||!c){var oe,X=h.points,F=h.dynamicInset||((oe=h._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ee=F&&X[0][1]==="r",Z=F&&X[0][0]==="b";ee?(te.right=D,te.left=Y):(te.left=T,te.right=Y),Z?(te.bottom=P,te.top=Y):(te.top=M,te.bottom=Y)}var ne={};return L&&(L.includes("height")&&z?ne.height=z:L.includes("minHeight")&&z&&(ne.minHeight=z),L.includes("width")&&j?ne.width=j:L.includes("minWidth")&&j&&(ne.minWidth=j)),c||(ne.pointerEvents="none"),s.createElement(S,{open:C||K,getContainer:x&&function(){return x(a)},autoDestroy:E},s.createElement(Az,{prefixCls:o,open:c,zIndex:$,mask:m,motion:y}),s.createElement(Wn,{onResize:A,disabled:!c},function(re){return s.createElement(lr,de({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(le){var he;v==null||(he=v.onVisibleChanged)===null||he===void 0||he.call(v,le),l(le)}}),function(se,le){var he=se.className,fe=se.style,ie=U(o,he,r);return s.createElement("div",{ref:Vn(re,t,le),className:ie,style:q(q(q(q({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},te),ne),fe),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:O,onMouseLeave:I,onPointerEnter:w,onClick:f,onPointerDownCapture:N},p&&s.createElement(Dz,{prefixCls:o,arrow:p,arrowPos:g,align:h}),s.createElement(QS,{cache:!c&&!d},B))})}))});process.env.NODE_ENV!=="production"&&(YS.displayName="Popup");var JS=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ar(n),i=s.useCallback(function(l){Ra(t,r?r(l):l)},[r]),a=Qr(i,Do(n));return o?s.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(JS.displayName="TriggerWrapper");var ZS=s.createContext(null);function ex(e){return e?Array.isArray(e)?e:[e]:[]}function Rz(e,t,n,r){return s.useMemo(function(){var o=ex(n!=null?n:t),i=ex(r!=null?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function jz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Lz(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(jz((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function tx(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function dl(e){return e.ownerDocument.defaultView}function Pm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=dl(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function fl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ml(e){return fl(parseFloat(e),0)}function nx(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=dl(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,g=r.offsetWidth,h=r.clientWidth,v=ml(l),y=ml(c),C=ml(u),x=ml(d),E=fl(Math.round(f.width/g*1e3)/1e3),S=fl(Math.round(f.height/m*1e3)/1e3),$=(g-h-C-x)*E,O=(m-p-v-y)*S,I=v*S,w=y*S,N=C*E,_=x*E,T=0,M=0;if(i==="clip"){var D=ml(a);T=D*E,M=D*S}var P=f.x+N-T,A=f.y+I-M,R=P+f.width+2*T-N-_-$,L=A+f.height+2*M-I-w-O;n.left=Math.max(n.left,P),n.top=Math.max(n.top,A),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,L)}}),n}function rx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ox(e,t){var n=t||[],r=ae(n,2),o=r[0],i=r[1];return[rx(e.width,o),rx(e.height,i)]}function ix(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Qi(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Fo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function zz(e,t,n,r,o,i,a){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=ae(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Pm(t):[]},[t]),p=s.useRef({}),g=function(){p.current={}};e||g();var h=qt(function(){if(t&&n&&e){let sn=function(Sr,Zn){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,Wr=k.x+Sr,Uo=k.y+Zn,Wv=Wr+ee,Kv=Uo+F,qv=Math.max(Wr,er.left),rt=Math.max(Uo,er.top),Ct=Math.min(Wv,er.right),mn=Math.min(Kv,er.bottom);return Math.max(0,(Ct-qv)*(mn-rt))},xn=function(){ot=k.y+Te,ht=ot+F,Rt=k.x+Me,Wt=Rt+ee};var C,x,E,S,$=t,O=$.ownerDocument,I=dl($),w=I.getComputedStyle($),N=w.width,_=w.height,T=w.position,M=$.style.left,D=$.style.top,P=$.style.right,A=$.style.bottom,R=$.style.overflow,L=q(q({},o[r]),i),j=O.createElement("div");(C=$.parentElement)===null||C===void 0||C.appendChild(j),j.style.left="".concat($.offsetLeft,"px"),j.style.top="".concat($.offsetTop,"px"),j.style.position=T,j.style.height="".concat($.offsetHeight,"px"),j.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var B,K,W=n.getBoundingClientRect();W.x=(B=W.x)!==null&&B!==void 0?B:W.left,W.y=(K=W.y)!==null&&K!==void 0?K:W.top,z={x:W.x,y:W.y,width:W.width,height:W.height}}var k=$.getBoundingClientRect();k.x=(x=k.x)!==null&&x!==void 0?x:k.left,k.y=(E=k.y)!==null&&E!==void 0?E:k.top;var V=O.documentElement,Q=V.clientWidth,J=V.clientHeight,Y=V.scrollWidth,te=V.scrollHeight,oe=V.scrollTop,X=V.scrollLeft,F=k.height,ee=k.width,Z=z.height,ne=z.width,re={left:0,top:0,right:Q,bottom:J},se={left:-X,top:-oe,right:Y-X,bottom:te-oe},le=L.htmlRegion,he="visible",fe="visibleFirst";le!=="scroll"&&le!==fe&&(le=he);var ie=le===fe,ce=nx(se,m),ue=nx(re,m),me=le===he?ue:ce,Ce=ie?ue:me;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Oe=$.getBoundingClientRect();$.style.left=M,$.style.top=D,$.style.right=P,$.style.bottom=A,$.style.overflow=R,(S=$.parentElement)===null||S===void 0||S.removeChild(j);var Pe=fl(Math.round(ee/parseFloat(N)*1e3)/1e3),je=fl(Math.round(F/parseFloat(_)*1e3)/1e3);if(Pe===0||je===0||La(n)&&!Za(n))return;var Ne=L.offset,Ie=L.targetOffset,xe=ox(k,Ne),be=ae(xe,2),Ee=be[0],$e=be[1],_e=ox(z,Ie),ve=ae(_e,2),Se=ve[0],Je=ve[1];z.x-=Se,z.y-=Je;var it=L.points||[],Ot=ae(it,2),_t=Ot[0],Ut=Ot[1],st=ix(Ut),Pt=ix(_t),mt=Qi(z,st),et=Qi(k,Pt),ke=q({},L),Me=mt.x-et.x+Ee,Te=mt.y-et.y+$e,at=sn(Me,Te),ct=sn(Me,Te,ue),Le=Qi(z,["t","l"]),we=Qi(k,["t","l"]),ze=Qi(z,["b","r"]),Fe=Qi(k,["b","r"]),Ve=L.overflow||{},Ze=Ve.adjustX,$t=Ve.adjustY,Ae=Ve.shiftX,Qe=Ve.shiftY,nt=function(Zn){return typeof Zn=="boolean"?Zn:Zn>=0},ot,ht,Rt,Wt;xn();var yt=nt($t),en=Pt[0]===st[0];if(yt&&Pt[0]==="t"&&(ht>Ce.bottom||p.current.bt)){var De=Te;en?De-=F-Z:De=Le.y-Fe.y-$e;var Ke=sn(Me,De),Be=sn(Me,De,ue);Ke>at||Ke===at&&(!ie||Be>=ct)?(p.current.bt=!0,Te=De,$e=-$e,ke.points=[Fo(Pt,0),Fo(st,0)]):p.current.bt=!1}if(yt&&Pt[0]==="b"&&(ot<Ce.top||p.current.tb)){var Re=Te;en?Re+=F-Z:Re=ze.y-we.y-$e;var lt=sn(Me,Re),Tt=sn(Me,Re,ue);lt>at||lt===at&&(!ie||Tt>=ct)?(p.current.tb=!0,Te=Re,$e=-$e,ke.points=[Fo(Pt,0),Fo(st,0)]):p.current.tb=!1}var Dt=nt(Ze),Kt=Pt[1]===st[1];if(Dt&&Pt[1]==="l"&&(Wt>Ce.right||p.current.rl)){var on=Me;Kt?on-=ee-ne:on=Le.x-Fe.x-Ee;var Gt=sn(on,Te),Ye=sn(on,Te,ue);Gt>at||Gt===at&&(!ie||Ye>=ct)?(p.current.rl=!0,Me=on,Ee=-Ee,ke.points=[Fo(Pt,1),Fo(st,1)]):p.current.rl=!1}if(Dt&&Pt[1]==="r"&&(Rt<Ce.left||p.current.lr)){var ft=Me;Kt?ft+=ee-ne:ft=ze.x-we.x-Ee;var jt=sn(ft,Te),Cn=sn(ft,Te,ue);jt>at||jt===at&&(!ie||Cn>=ct)?(p.current.lr=!0,Me=ft,Ee=-Ee,ke.points=[Fo(Pt,1),Fo(st,1)]):p.current.lr=!1}xn();var fn=Ae===!0?0:Ae;typeof fn=="number"&&(Rt<ue.left&&(Me-=Rt-ue.left-Ee,z.x+ne<ue.left+fn&&(Me+=z.x-ue.left+ne-fn)),Wt>ue.right&&(Me-=Wt-ue.right-Ee,z.x>ue.right-fn&&(Me+=z.x-ue.right+fn)));var Ln=Qe===!0?0:Qe;typeof Ln=="number"&&(ot<ue.top&&(Te-=ot-ue.top-$e,z.y+Z<ue.top+Ln&&(Te+=z.y-ue.top+Z-Ln)),ht>ue.bottom&&(Te-=ht-ue.bottom-$e,z.y>ue.bottom-Ln&&(Te+=z.y-ue.bottom+Ln)));var yr=k.x+Me,Cr=yr+ee,zn=k.y+Te,Dr=zn+F,cr=z.x,Nt=cr+ne,Ge=z.y,bt=Ge+Z,xt=Math.max(yr,cr),Lt=Math.min(Cr,Nt),zt=(xt+Lt)/2,Sn=zt-yr,Nn=Math.max(zn,Ge),Hn=Math.min(Dr,bt),Yn=(Nn+Hn)/2,Jn=Yn-zn;a==null||a(t,ke);var ut=Oe.right-k.x-(Me+k.width),dt=Oe.bottom-k.y-(Te+k.height);Pe===1&&(Me=Math.round(Me),ut=Math.round(ut)),je===1&&(Te=Math.round(Te),dt=Math.round(dt));var vn={ready:!0,offsetX:Me/Pe,offsetY:Te/je,offsetR:ut/Pe,offsetB:dt/je,arrowX:Sn/Pe,arrowY:Jn/je,scaleX:Pe,scaleY:je,align:ke};d(vn)}}),v=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&h()})},y=function(){d(function(x){return q(q({},x),{},{ready:!1})})};return Et(y,[r]),Et(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function Bz(e,t,n,r,o){Et(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=Pm(i),c=Pm(a),u=dl(a),d=new Set([u].concat(ge(l),ge(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function kz(e,t,n,r,o,i,a,l){var c=s.useRef(e);c.current=e;var u=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){u.current=!1},m=function(E){var S;c.current&&!a(((S=E.composedPath)===null||S===void 0||(S=S.call(E))===null||S===void 0?void 0:S[0])||E.target)&&!u.current&&l(!1)},p=dl(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var g=cs(n);if(g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),process.env.NODE_ENV!=="production"){var h,v,y=n==null||(h=n.getRootNode)===null||h===void 0?void 0:h.call(n),C=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);ho(y===C,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i]);function d(){u.current=!0}return d}var Fz=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Hz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rl,t=s.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,h=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,C=n.focusDelay,x=n.blurDelay,E=n.mask,S=n.maskClosable,$=S===void 0?!0:S,O=n.getPopupContainer,I=n.forceRender,w=n.autoDestroy,N=n.destroyPopupOnHide,_=n.popup,T=n.popupClassName,M=n.popupStyle,D=n.popupPlacement,P=n.builtinPlacements,A=P===void 0?{}:P,R=n.popupAlign,L=n.zIndex,j=n.stretch,z=n.getPopupClassNameFromAlign,B=n.fresh,K=n.alignPoint,W=n.onPopupClick,k=n.onPopupAlign,V=n.arrow,Q=n.popupMotion,J=n.maskMotion,Y=n.popupTransitionName,te=n.popupAnimation,oe=n.maskTransitionName,X=n.maskAnimation,F=n.className,ee=n.getTriggerDOMNode,Z=tt(n,Fz),ne=w||N||!1,re=s.useState(!1),se=ae(re,2),le=se[0],he=se[1];Et(function(){he(Nm())},[]);var fe=s.useRef({}),ie=s.useContext(ZS),ce=s.useMemo(function(){return{registerSubPopup:function(Ct,mn){fe.current[Ct]=mn,ie==null||ie.registerSubPopup(Ct,mn)}}},[ie]),ue=sc(),me=s.useState(null),Ce=ae(me,2),Oe=Ce[0],Pe=Ce[1],je=s.useRef(null),Ne=qt(function(rt){je.current=rt,La(rt)&&Oe!==rt&&Pe(rt),ie==null||ie.registerSubPopup(ue,rt)}),Ie=s.useState(null),xe=ae(Ie,2),be=xe[0],Ee=xe[1],$e=s.useRef(null),_e=qt(function(rt){La(rt)&&be!==rt&&(Ee(rt),$e.current=rt)}),ve=s.Children.only(a),Se=(ve==null?void 0:ve.props)||{},Je={},it=qt(function(rt){var Ct,mn,Bn=be;return(Bn==null?void 0:Bn.contains(rt))||((Ct=cs(Bn))===null||Ct===void 0?void 0:Ct.host)===rt||rt===Bn||(Oe==null?void 0:Oe.contains(rt))||((mn=cs(Oe))===null||mn===void 0?void 0:mn.host)===rt||rt===Oe||Object.values(fe.current).some(function(En){return(En==null?void 0:En.contains(rt))||rt===En})}),Ot=tx(i,Q,te,Y),_t=tx(i,J,X,oe),Ut=s.useState(m||!1),st=ae(Ut,2),Pt=st[0],mt=st[1],et=f!=null?f:Pt,ke=qt(function(rt){f===void 0&&mt(rt)});Et(function(){mt(f||!1)},[f]);var Me=s.useRef(et);Me.current=et;var Te=s.useRef([]);Te.current=[];var at=qt(function(rt){var Ct;ke(rt),((Ct=Te.current[Te.current.length-1])!==null&&Ct!==void 0?Ct:et)!==rt&&(Te.current.push(rt),p==null||p(rt))}),ct=s.useRef(),Le=function(){clearTimeout(ct.current)},we=function(Ct){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),mn===0?at(Ct):ct.current=setTimeout(function(){at(Ct)},mn*1e3)};s.useEffect(function(){return Le},[]);var ze=s.useState(!1),Fe=ae(ze,2),Ve=Fe[0],Ze=Fe[1];Et(function(rt){(!rt||et)&&Ze(!0)},[et]);var $t=s.useState(null),Ae=ae($t,2),Qe=Ae[0],nt=Ae[1],ot=s.useState(null),ht=ae(ot,2),Rt=ht[0],Wt=ht[1],yt=function(Ct){Wt([Ct.clientX,Ct.clientY])},en=zz(et,Oe,K&&Rt!==null?Rt:be,D,A,R,k),De=ae(en,11),Ke=De[0],Be=De[1],Re=De[2],lt=De[3],Tt=De[4],Dt=De[5],Kt=De[6],on=De[7],Gt=De[8],Ye=De[9],ft=De[10],jt=Rz(le,c,u,d),Cn=ae(jt,2),fn=Cn[0],Ln=Cn[1],yr=fn.has("click"),Cr=Ln.has("click")||Ln.has("contextMenu"),zn=qt(function(){Ve||ft()}),Dr=function(){Me.current&&K&&Cr&&we(!1)};Bz(et,be,Oe,zn,Dr),Et(function(){zn()},[Rt,D]),Et(function(){et&&!(A!=null&&A[D])&&zn()},[JSON.stringify(R)]);var cr=s.useMemo(function(){var rt=Lz(A,i,Ye,K);return U(rt,z==null?void 0:z(Ye))},[Ye,z,A,i,K]);s.useImperativeHandle(r,function(){return{nativeElement:$e.current,popupElement:je.current,forceAlign:zn}});var Nt=s.useState(0),Ge=ae(Nt,2),bt=Ge[0],xt=Ge[1],Lt=s.useState(0),zt=ae(Lt,2),Sn=zt[0],Nn=zt[1],Hn=function(){if(j&&be){var Ct=be.getBoundingClientRect();xt(Ct.width),Nn(Ct.height)}},Yn=function(){Hn(),zn()},Jn=function(Ct){Ze(!1),ft(),g==null||g(Ct)},ut=function(){return new Promise(function(Ct){Hn(),nt(function(){return Ct})})};Et(function(){Qe&&(ft(),Qe(),nt(null))},[Qe]);function dt(rt,Ct,mn,Bn){Je[rt]=function(En){var Ou;Bn==null||Bn(En),we(Ct,mn);for(var Gv=arguments.length,nN=new Array(Gv>1?Gv-1:0),Nu=1;Nu<Gv;Nu++)nN[Nu-1]=arguments[Nu];(Ou=Se[rt])===null||Ou===void 0||Ou.call.apply(Ou,[Se,En].concat(nN))}}(yr||Cr)&&(Je.onClick=function(rt){var Ct;Me.current&&Cr?we(!1):!Me.current&&yr&&(yt(rt),we(!0));for(var mn=arguments.length,Bn=new Array(mn>1?mn-1:0),En=1;En<mn;En++)Bn[En-1]=arguments[En];(Ct=Se.onClick)===null||Ct===void 0||Ct.call.apply(Ct,[Se,rt].concat(Bn))});var vn=kz(et,Cr,be,Oe,E,$,it,we),sn=fn.has("hover"),xn=Ln.has("hover"),Sr,Zn;sn&&(dt("onMouseEnter",!0,h,function(rt){yt(rt)}),dt("onPointerEnter",!0,h,function(rt){yt(rt)}),Sr=function(Ct){(et||Ve)&&Oe!==null&&Oe!==void 0&&Oe.contains(Ct.target)&&we(!0,h)},K&&(Je.onMouseMove=function(rt){var Ct;(Ct=Se.onMouseMove)===null||Ct===void 0||Ct.call(Se,rt)})),xn&&(dt("onMouseLeave",!1,y),dt("onPointerLeave",!1,y),Zn=function(){we(!1,y)}),fn.has("focus")&&dt("onFocus",!0,C),Ln.has("focus")&&dt("onBlur",!1,x),fn.has("contextMenu")&&(Je.onContextMenu=function(rt){var Ct;Me.current&&Ln.has("contextMenu")?we(!1):(yt(rt),we(!0)),rt.preventDefault();for(var mn=arguments.length,Bn=new Array(mn>1?mn-1:0),En=1;En<mn;En++)Bn[En-1]=arguments[En];(Ct=Se.onContextMenu)===null||Ct===void 0||Ct.call.apply(Ct,[Se,rt].concat(Bn))}),F&&(Je.className=U(Se.className,F));var er=q(q({},Se),Je),Wr={},Uo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Uo.forEach(function(rt){Z[rt]&&(Wr[rt]=function(){for(var Ct,mn=arguments.length,Bn=new Array(mn),En=0;En<mn;En++)Bn[En]=arguments[En];(Ct=er[rt])===null||Ct===void 0||Ct.call.apply(Ct,[er].concat(Bn)),Z[rt].apply(Z,Bn)})});var Wv=s.cloneElement(ve,q(q({},er),Wr)),Kv={x:Dt,y:Kt},qv=V?q({},V!==!0?V:{}):null;return s.createElement(s.Fragment,null,s.createElement(Wn,{disabled:!et,ref:_e,onResize:Yn},s.createElement(JS,{getTriggerDOMNode:ee},Wv)),s.createElement(ZS.Provider,{value:ce},s.createElement(YS,{portal:e,ref:Ne,prefixCls:i,popup:_,className:U(T,cr),style:M,target:be,onMouseEnter:Sr,onMouseLeave:Zn,onPointerEnter:Sr,zIndex:L,open:et,keepDom:Ve,fresh:B,onClick:W,onPointerDownCapture:vn,mask:E,motion:Ot,maskMotion:_t,onVisibleChanged:Jn,onPrepare:ut,forceRender:I,autoDestroy:ne,getPopupContainer:O,align:Ye,arrow:qv,arrowPos:Kv,ready:Ke,offsetX:Be,offsetY:Re,offsetR:lt,offsetB:Tt,onAlign:zn,stretch:j,targetWidth:bt/on,targetHeight:Sn/Gt})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const vc=Hz(rl);var Vz=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Wz=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Kz=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,p=t.placement,g=t.builtinPlacements,h=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,C=t.getPopupContainer,x=t.empty,E=t.getTriggerDOMNode,S=t.onPopupVisibleChange,$=t.onPopupMouseEnter,O=tt(t,Vz),I="".concat(r,"-dropdown"),w=a;v&&(w=v(a));var N=s.useMemo(function(){return g||Wz(h)},[g,h]),_=l?"".concat(I,"-").concat(l):c,T=typeof h=="number",M=s.useMemo(function(){return T?null:h===!1?"minWidth":"width"},[h,T]),D=u;T&&(D=q(q({},D),{},{width:h}));var P=s.useRef(null);return s.useImperativeHandle(n,function(){return{getPopupElement:function(){var R;return(R=P.current)===null||R===void 0?void 0:R.popupElement}}}),s.createElement(vc,de({},O,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:p||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:I,popupTransitionName:_,popup:s.createElement("div",{onMouseEnter:$},w),ref:P,stretch:M,popupAlign:y,popupVisible:o,getPopupContainer:C,popupClassName:U(d,H({},"".concat(I,"-empty"),x)),popupStyle:D,getTriggerDOMNode:E,onPopupVisibleChange:S}),i)},ax=s.forwardRef(Kz);process.env.NODE_ENV!=="production"&&(ax.displayName="SelectTrigger");function lx(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n!=null?n:r!==void 0?r:"rc-index-key-".concat(t)}function Tm(e){return typeof e!="undefined"&&!Number.isNaN(e)}function sx(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function qz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=sx(n,!1),a=i.label,l=i.value,c=i.options,u=i.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(p){if(m||!(c in p)){var g=p[l];o.push({key:lx(p,o.length),groupOption:m,data:p,label:p[a],value:g})}else{var h=p[u];h===void 0&&r&&(h=p.label),o.push({key:lx(p,o.length),group:!0,data:p,label:h}),d(p[c],!0)}})}return d(e,!1),o}function Mm(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ue(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Gz=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(c,u){var d=Ny(u),f=d[0],m=d.slice(1);if(!f)return[c];var p=c.split(f);return o=o||p.length>1,p.reduce(function(g,h){return[].concat(ge(g),ge(l(h,m)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r!="undefined"?a.slice(0,r):a:null},Dm=s.createContext(null);function Uz(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(He(i))?i:a}).join(", ")),n.length>r?", ...":null)}var Xz=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Qz=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],gc=function(t){return t==="tags"||t==="multiple"},cx=s.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,p=e.notFoundContent,g=p===void 0?"Not Found":p,h=e.onClear,v=e.mode,y=e.disabled,C=e.loading,x=e.getInputElement,E=e.getRawInputElement,S=e.open,$=e.defaultOpen,O=e.onDropdownVisibleChange,I=e.activeValue,w=e.onActiveValueChange,N=e.activeDescendantId,_=e.searchValue,T=e.autoClearSearchValue,M=e.onSearch,D=e.onSearchSplit,P=e.tokenSeparators,A=e.allowClear,R=e.prefix,L=e.suffixIcon,j=e.clearIcon,z=e.OptionList,B=e.animation,K=e.transitionName,W=e.dropdownStyle,k=e.dropdownClassName,V=e.dropdownMatchSelectWidth,Q=e.dropdownRender,J=e.dropdownAlign,Y=e.placement,te=e.builtinPlacements,oe=e.getPopupContainer,X=e.showAction,F=X===void 0?[]:X,ee=e.onFocus,Z=e.onBlur,ne=e.onKeyUp,re=e.onKeyDown,se=e.onMouseDown,le=tt(e,Xz),he=gc(v),fe=(a!==void 0?a:he)||v==="combobox",ie=q({},le);Qz.forEach(function(Nt){delete ie[Nt]}),u==null||u.forEach(function(Nt){delete ie[Nt]});var ce=s.useState(!1),ue=ae(ce,2),me=ue[0],Ce=ue[1];s.useEffect(function(){Ce(Nm())},[]);var Oe=s.useRef(null),Pe=s.useRef(null),je=s.useRef(null),Ne=s.useRef(null),Ie=s.useRef(null),xe=s.useRef(!1),be=lz(),Ee=ae(be,3),$e=Ee[0],_e=Ee[1],ve=Ee[2];s.useImperativeHandle(t,function(){var Nt,Ge;return{focus:(Nt=Ne.current)===null||Nt===void 0?void 0:Nt.focus,blur:(Ge=Ne.current)===null||Ge===void 0?void 0:Ge.blur,scrollTo:function(xt){var Lt;return(Lt=Ie.current)===null||Lt===void 0?void 0:Lt.scrollTo(xt)},nativeElement:Oe.current||Pe.current}});var Se=s.useMemo(function(){var Nt;if(v!=="combobox")return _;var Ge=(Nt=d[0])===null||Nt===void 0?void 0:Nt.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[_,v,d]),Je=v==="combobox"&&typeof x=="function"&&x()||null,it=typeof E=="function"&&E(),Ot=Qr(Pe,it==null||(n=it.props)===null||n===void 0?void 0:n.ref),_t=s.useState(!1),Ut=ae(_t,2),st=Ut[0],Pt=Ut[1];Et(function(){Pt(!0)},[]);var mt=an(!1,{defaultValue:$,value:S}),et=ae(mt,2),ke=et[0],Me=et[1],Te=st?ke:!1,at=!g&&m;(y||at&&Te&&v==="combobox")&&(Te=!1);var ct=at?!1:Te,Le=s.useCallback(function(Nt){var Ge=Nt!==void 0?Nt:!Te;y||(Me(Ge),Te!==Ge&&(O==null||O(Ge)))},[y,Te,Me,O]),we=s.useMemo(function(){return(P||[]).some(function(Nt){return[`
|
|
213
|
+
`,`\r
|
|
214
|
+
`].includes(Nt)})},[P]),ze=s.useContext(Dm)||{},Fe=ze.maxCount,Ve=ze.rawValues,Ze=function(Ge,bt,xt){if(!(he&&Tm(Fe)&&(Ve==null?void 0:Ve.size)>=Fe)){var Lt=!0,zt=Ge;w==null||w(null);var Sn=Gz(Ge,P,Tm(Fe)?Fe-Ve.size:void 0),Nn=xt?null:Sn;return v!=="combobox"&&Nn&&(zt="",D==null||D(Nn),Le(!1),Lt=!1),M&&Se!==zt&&M(zt,{source:bt?"typing":"effect"}),Lt}},$t=function(Ge){!Ge||!Ge.trim()||M(Ge,{source:"submit"})};s.useEffect(function(){!Te&&!he&&v!=="combobox"&&Ze("",!1,!1)},[Te]),s.useEffect(function(){ke&&y&&Me(!1),y&&!xe.current&&_e(!1)},[y]);var Ae=HS(),Qe=ae(Ae,2),nt=Qe[0],ot=Qe[1],ht=s.useRef(!1),Rt=function(Ge){var bt=nt(),xt=Ge.key,Lt=xt==="Enter";if(Lt&&(v!=="combobox"&&Ge.preventDefault(),Te||Le(!0)),ot(!!Se),xt==="Backspace"&&!bt&&he&&!Se&&d.length){for(var zt=ge(d),Sn=null,Nn=zt.length-1;Nn>=0;Nn-=1){var Hn=zt[Nn];if(!Hn.disabled){zt.splice(Nn,1),Sn=Hn;break}}Sn&&f(zt,{type:"remove",values:[Sn]})}for(var Yn=arguments.length,Jn=new Array(Yn>1?Yn-1:0),ut=1;ut<Yn;ut++)Jn[ut-1]=arguments[ut];if(Te&&(!Lt||!ht.current)){var dt;Lt&&(ht.current=!0),(dt=Ie.current)===null||dt===void 0||dt.onKeyDown.apply(dt,[Ge].concat(Jn))}re==null||re.apply(void 0,[Ge].concat(Jn))},Wt=function(Ge){for(var bt=arguments.length,xt=new Array(bt>1?bt-1:0),Lt=1;Lt<bt;Lt++)xt[Lt-1]=arguments[Lt];if(Te){var zt;(zt=Ie.current)===null||zt===void 0||zt.onKeyUp.apply(zt,[Ge].concat(xt))}Ge.key==="Enter"&&(ht.current=!1),ne==null||ne.apply(void 0,[Ge].concat(xt))},yt=function(Ge){var bt=d.filter(function(xt){return xt!==Ge});f(bt,{type:"remove",values:[Ge]})},en=function(){ht.current=!1},De=s.useRef(!1),Ke=function(){_e(!0),y||(ee&&!De.current&&ee.apply(void 0,arguments),F.includes("focus")&&Le(!0)),De.current=!0},Be=function(){xe.current=!0,_e(!1,function(){De.current=!1,xe.current=!1,Le(!1)}),!y&&(Se&&(v==="tags"?M(Se,{source:"submit"}):v==="multiple"&&M("",{source:"blur"})),Z&&Z.apply(void 0,arguments))},Re=[];s.useEffect(function(){return function(){Re.forEach(function(Nt){return clearTimeout(Nt)}),Re.splice(0,Re.length)}},[]);var lt=function(Ge){var bt,xt=Ge.target,Lt=(bt=je.current)===null||bt===void 0?void 0:bt.getPopupElement();if(Lt&&Lt.contains(xt)){var zt=setTimeout(function(){var Yn=Re.indexOf(zt);if(Yn!==-1&&Re.splice(Yn,1),ve(),!me&&!Lt.contains(document.activeElement)){var Jn;(Jn=Ne.current)===null||Jn===void 0||Jn.focus()}});Re.push(zt)}for(var Sn=arguments.length,Nn=new Array(Sn>1?Sn-1:0),Hn=1;Hn<Sn;Hn++)Nn[Hn-1]=arguments[Hn];se==null||se.apply(void 0,[Ge].concat(Nn))},Tt=s.useState({}),Dt=ae(Tt,2),Kt=Dt[1];function on(){Kt({})}var Gt;it&&(Gt=function(Ge){Le(Ge)}),sz(function(){var Nt;return[Oe.current,(Nt=je.current)===null||Nt===void 0?void 0:Nt.getPopupElement()]},ct,Le,!!it);var Ye=s.useMemo(function(){return q(q({},e),{},{notFoundContent:g,open:Te,triggerOpen:ct,id:r,showSearch:fe,multiple:he,toggleOpen:Le})},[e,g,ct,Te,r,fe,he,Le]),ft=!!L||C,jt;ft&&(jt=s.createElement(mc,{className:U("".concat(o,"-arrow"),H({},"".concat(o,"-arrow-loading"),C)),customizeIcon:L,customizeIconProps:{loading:C,searchValue:Se,open:Te,focused:$e,showSearch:fe}}));var Cn=function(){var Ge;h==null||h(),(Ge=Ne.current)===null||Ge===void 0||Ge.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},fn=iz(o,Cn,d,A,j,y,Se,v),Ln=fn.allowClear,yr=fn.clearIcon,Cr=s.createElement(z,{ref:Ie}),zn=U(o,i,H(H(H(H(H(H(H(H(H(H({},"".concat(o,"-focused"),$e),"".concat(o,"-multiple"),he),"".concat(o,"-single"),!he),"".concat(o,"-allow-clear"),A),"".concat(o,"-show-arrow"),ft),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),C),"".concat(o,"-open"),Te),"".concat(o,"-customize-input"),Je),"".concat(o,"-show-search"),fe)),Dr=s.createElement(ax,{ref:je,disabled:y,prefixCls:o,visible:ct,popupElement:Cr,animation:B,transitionName:K,dropdownStyle:W,dropdownClassName:k,direction:c,dropdownMatchSelectWidth:V,dropdownRender:Q,dropdownAlign:J,placement:Y,builtinPlacements:te,getPopupContainer:oe,empty:m,getTriggerDOMNode:function(Ge){return Pe.current||Ge},onPopupVisibleChange:Gt,onPopupMouseEnter:on},it?s.cloneElement(it,{ref:Ot}):s.createElement(XS,de({},e,{domRef:Pe,prefixCls:o,inputElement:Je,ref:Ne,id:r,prefix:R,showSearch:fe,autoClearSearchValue:T,mode:v,activeDescendantId:N,tagRender:l,values:d,open:Te,onToggleOpen:Le,activeValue:I,searchValue:Se,onSearch:Ze,onSearchSubmit:$t,onRemove:yt,tokenWithEnter:we,onInputBlur:en}))),cr;return it?cr=Dr:cr=s.createElement("div",de({className:zn},ie,{ref:Oe,onMouseDown:lt,onKeyDown:Rt,onKeyUp:Wt,onFocus:Ke,onBlur:Be}),s.createElement(Uz,{visible:$e&&!Te,values:d}),Dr,jt,Ln&&yr),s.createElement(FS.Provider,{value:Ye},cr)});process.env.NODE_ENV!=="production"&&(cx.displayName="BaseSelect");var Am=function(){return null};Am.isSelectOptGroup=!0;var Rm=function(){return null};Rm.isSelectOption=!0;var ux=s.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=q(q({},m),{},H(H(H(H(H({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),s.createElement("div",{style:f},s.createElement(Wn,{onResize:function(g){var h=g.offsetHeight;h&&l&&l()}},s.createElement("div",de({style:m,className:U(H({},"".concat(a,"-holder-inner"),a)),ref:t},c),i,d)))});ux.displayName="Filler";function Yz(e){var t=e.children,n=e.setRef,r=s.useCallback(function(o){n(o)},[]);return s.cloneElement(t,{ref:r})}function Jz(e,t,n,r,o,i,a,l){var c=l.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=a(u,f,{style:{width:r},offsetX:o}),p=c(u);return s.createElement(Yz,{key:p,setRef:function(h){return i(u,h)}},m)})}function Zz(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function c(g){return g!==void 0?n(g):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=c(i[f]),p=c(a[f]);if(m!==p){u=f,d=d||m!==c(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function e6(e,t,n){var r=s.useState(e),o=ae(r,2),i=o[0],a=o[1],l=s.useState(null),c=ae(l,2),u=c[0],d=c[1];return s.useEffect(function(){var f=Zz(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e)},[e]),[u]}var dx=(typeof navigator=="undefined"?"undefined":He(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const fx=function(e,t,n,r){var o=b.useRef(!1),i=b.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var l=b.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function t6(e,t,n,r,o,i,a){var l=b.useRef(0),c=b.useRef(null),u=b.useRef(null),d=b.useRef(!1),f=fx(t,n,r,o);function m(C,x){if(At.cancel(c.current),!f(!1,x)){var E=C;if(!E._virtualHandled)E._virtualHandled=!0;else return;l.current+=x,u.current=x,dx||E.preventDefault(),c.current=At(function(){var S=d.current?10:1;a(l.current*S,!1),l.current=0})}}function p(C,x){a(x,!0),dx||C.preventDefault()}var g=b.useRef(null),h=b.useRef(null);function v(C){if(e){At.cancel(h.current),h.current=At(function(){g.current=null},2);var x=C.deltaX,E=C.deltaY,S=C.shiftKey,$=x,O=E;(g.current==="sx"||!g.current&&S&&E&&!x)&&($=E,O=0,g.current="sx");var I=Math.abs($),w=Math.abs(O);g.current===null&&(g.current=i&&I>w?"x":"y"),g.current==="y"?m(C,O):p(C,$)}}function y(C){e&&(d.current=C.detail===u.current)}return[v,y]}function n6(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=ae(o,2),a=i[0],l=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=a.get(d),p=a.get(f);if(m===void 0||p===void 0)for(var g=e.length,h=l.length;h<g;h+=1){var v,y=e[h],C=t(y);a.set(C,h);var x=(v=n.get(C))!==null&&v!==void 0?v:r;if(l[h]=(l[h-1]||0)+x,C===d&&(m=h),C===f&&(p=h),m!==void 0&&p!==void 0)break}return{top:l[m-1]||0,bottom:l[p]}};return c}var r6=function(){function e(){hn(this,e),H(this,"maps",void 0),H(this,"id",0),H(this,"diffRecords",new Map),this.maps=Object.create(null)}return bn(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function mx(e){var t=parseFloat(e);return isNaN(t)?0:t}function o6(e,t,n){var r=s.useState(0),o=ae(r,2),i=o[0],a=o[1],l=b.useRef(new Map),c=b.useRef(new r6),u=b.useRef(0);function d(){u.current+=1}function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){var y=!1;l.current.forEach(function(C,x){if(C&&C.offsetParent){var E=C.offsetHeight,S=getComputedStyle(C),$=S.marginTop,O=S.marginBottom,I=mx($),w=mx(O),N=E+I+w;c.current.get(x)!==N&&(c.current.set(x,N),y=!0)}}),y&&a(function(C){return C+1})};if(p)g();else{u.current+=1;var h=u.current;Promise.resolve().then(function(){h===u.current&&g()})}}function m(p,g){var h=e(p),v=l.current.get(h);g?(l.current.set(h,g),f()):l.current.delete(h),!v!=!g&&(g?t==null||t(p):n==null||n(p))}return b.useEffect(function(){return d},[]),[m,f,c.current,i]}var px=14/15;function i6(e,t,n){var r=b.useRef(!1),o=b.useRef(0),i=b.useRef(0),a=b.useRef(null),l=b.useRef(null),c,u=function(p){if(r.current){var g=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),v=o.current-g,y=i.current-h,C=Math.abs(v)>Math.abs(y);C?o.current=g:i.current=h;var x=n(C,C?v:y,!1,p);x&&p.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){C?v*=px:y*=px;var E=Math.floor(C?v:y);(!n(C,E,!0)||Math.abs(E)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,c()},f=function(p){c(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};c=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",d))},Et(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}function vx(e){return Math.floor(Math.pow(e,.5))}function jm(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function a6(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,l=function(){At.cancel(i)},c=function m(){l(),i=At(function(){n(a),m()})},u=function(p){if(!(p.target.draggable||p.button!==0)){var g=p;g._virtualHandled||(g._virtualHandled=!0,o=!0)}},d=function(){o=!1,l()},f=function(p){if(o){var g=jm(p,!1),h=r.getBoundingClientRect(),v=h.top,y=h.bottom;if(g<=v){var C=v-g;a=-vx(C),c()}else if(g>=y){var x=g-y;a=vx(x),c()}else l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",f),l()}}},[e])}var gx=10;function l6(e,t,n,r,o,i,a,l){var c=s.useRef(),u=s.useState(null),d=ae(u,2),f=d[0],m=d[1];return Et(function(){if(f&&f.times<gx){if(!e.current){m(function(j){return q({},j)});return}i();var p=f.targetAlign,g=f.originAlign,h=f.index,v=f.offset,y=e.current.clientHeight,C=!1,x=p,E=null;if(y){for(var S=p||g,$=0,O=0,I=0,w=Math.min(t.length-1,h),N=0;N<=w;N+=1){var _=o(t[N]);O=$;var T=n.get(_);I=O+(T===void 0?r:T),$=I}for(var M=S==="top"?v:y-v,D=w;D>=0;D-=1){var P=o(t[D]),A=n.get(P);if(A===void 0){C=!0;break}if(M-=A,M<=0)break}switch(S){case"top":E=O-v;break;case"bottom":E=I-y+v;break;default:{var R=e.current.scrollTop,L=R+y;O<R?x="top":I>L&&(x="bottom")}}E!==null&&a(E),E!==f.lastTop&&(C=!0)}C&&m(q(q({},f),{},{times:f.times+1,targetAlign:x,lastTop:E}))}else process.env.NODE_ENV!=="production"&&(f==null?void 0:f.times)===gx&&Ue(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(p){if(p==null){l();return}if(At.cancel(c.current),typeof p=="number")a(p);else if(p&&He(p)==="object"){var g,h=p.align;"index"in p?g=p.index:g=t.findIndex(function(C){return o(C)===p.key});var v=p.offset,y=v===void 0?0:v;m({times:0,index:g,offset:y,originAlign:h})}}}var Lm=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,p=e.thumbStyle,g=e.showScrollBar,h=s.useState(!1),v=ae(h,2),y=v[0],C=v[1],x=s.useState(null),E=ae(x,2),S=E[0],$=E[1],O=s.useState(null),I=ae(O,2),w=I[0],N=I[1],_=!r,T=s.useRef(),M=s.useRef(),D=s.useState(g),P=ae(D,2),A=P[0],R=P[1],L=s.useRef(),j=function(){g===!0||g===!1||(clearTimeout(L.current),R(!0),L.current=setTimeout(function(){R(!1)},3e3))},z=i-f||0,B=f-d||0,K=s.useMemo(function(){if(o===0||z===0)return 0;var X=o/z;return X*B},[o,z,B]),W=function(F){F.stopPropagation(),F.preventDefault()},k=s.useRef({top:K,dragging:y,pageY:S,startTop:w});k.current={top:K,dragging:y,pageY:S,startTop:w};var V=function(F){C(!0),$(jm(F,u)),N(k.current.top),a(),F.stopPropagation(),F.preventDefault()};s.useEffect(function(){var X=function(ne){ne.preventDefault()},F=T.current,ee=M.current;return F.addEventListener("touchstart",X,{passive:!1}),ee.addEventListener("touchstart",V,{passive:!1}),function(){F.removeEventListener("touchstart",X),ee.removeEventListener("touchstart",V)}},[]);var Q=s.useRef();Q.current=z;var J=s.useRef();J.current=B,s.useEffect(function(){if(y){var X,F=function(ne){var re=k.current,se=re.dragging,le=re.pageY,he=re.startTop;At.cancel(X);var fe=T.current.getBoundingClientRect(),ie=f/(u?fe.width:fe.height);if(se){var ce=(jm(ne,u)-le)*ie,ue=he;!_&&u?ue-=ce:ue+=ce;var me=Q.current,Ce=J.current,Oe=Ce?ue/Ce:0,Pe=Math.ceil(Oe*me);Pe=Math.max(Pe,0),Pe=Math.min(Pe,me),X=At(function(){c(Pe,u)})}},ee=function(){C(!1),l()};return window.addEventListener("mousemove",F,{passive:!0}),window.addEventListener("touchmove",F,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),At.cancel(X)}}},[y]),s.useEffect(function(){return j(),function(){clearTimeout(L.current)}},[o]),s.useImperativeHandle(t,function(){return{delayHidden:j}});var Y="".concat(n,"-scrollbar"),te={position:"absolute",visibility:A?null:"hidden"},oe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(te.height=8,te.left=0,te.right=0,te.bottom=0,oe.height="100%",oe.width=d,_?oe.left=K:oe.right=K):(te.width=8,te.top=0,te.bottom=0,_?te.right=0:te.left=0,oe.width="100%",oe.height=d,oe.top=K),s.createElement("div",{ref:T,className:U(Y,H(H(H({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),A)),style:q(q({},te),m),onMouseDown:W,onMouseMove:j},s.createElement("div",{ref:M,className:U("".concat(Y,"-thumb"),H({},"".concat(Y,"-thumb-moving"),y)),style:q(q({},oe),p),onMouseDown:V}))});process.env.NODE_ENV!=="production"&&(Lm.displayName="ScrollBar");var s6=20;function hx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,s6),Math.floor(n)}var c6=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],u6=[],d6={overflowY:"auto",overflowAnchor:"none"};function f6(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,p=e.virtual,g=e.direction,h=e.scrollWidth,v=e.component,y=v===void 0?"div":v,C=e.onScroll,x=e.onVirtualScroll,E=e.onVisibleChange,S=e.innerProps,$=e.extraRender,O=e.styles,I=e.showScrollBar,w=I===void 0?"optional":I,N=tt(e,c6),_=s.useCallback(function(De){return typeof m=="function"?m(De):De==null?void 0:De[m]},[m]),T=o6(_,null,null),M=ae(T,4),D=M[0],P=M[1],A=M[2],R=M[3],L=!!(p!==!1&&i&&a),j=s.useMemo(function(){return Object.values(A.maps).reduce(function(De,Ke){return De+Ke},0)},[A.id,A.maps]),z=L&&d&&(Math.max(a*d.length,j)>i||!!h),B=g==="rtl",K=U(r,H({},"".concat(r,"-rtl"),B),o),W=d||u6,k=b.useRef(),V=b.useRef(),Q=b.useRef(),J=b.useState(0),Y=ae(J,2),te=Y[0],oe=Y[1],X=b.useState(0),F=ae(X,2),ee=F[0],Z=F[1],ne=b.useState(!1),re=ae(ne,2),se=re[0],le=re[1],he=function(){le(!0)},fe=function(){le(!1)},ie={getKey:_};function ce(De){oe(function(Ke){var Be;typeof De=="function"?Be=De(Ke):Be=De;var Re=Pt(Be);return k.current.scrollTop=Re,Re})}var ue=b.useRef({start:0,end:W.length}),me=b.useRef(),Ce=e6(W,_),Oe=ae(Ce,1),Pe=Oe[0];me.current=Pe;var je=s.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!z){var De;return{scrollHeight:((De=V.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Ke=0,Be,Re,lt,Tt=W.length,Dt=0;Dt<Tt;Dt+=1){var Kt=W[Dt],on=_(Kt),Gt=A.get(on),Ye=Ke+(Gt===void 0?a:Gt);Ye>=te&&Be===void 0&&(Be=Dt,Re=Ke),Ye>te+i&<===void 0&&(lt=Dt),Ke=Ye}return Be===void 0&&(Be=0,Re=0,lt=Math.ceil(i/a)),lt===void 0&&(lt=W.length-1),lt=Math.min(lt+1,W.length-1),{scrollHeight:Ke,start:Be,end:lt,offset:Re}},[z,L,te,W,R,i]),Ne=je.scrollHeight,Ie=je.start,xe=je.end,be=je.offset;ue.current.start=Ie,ue.current.end=xe,s.useLayoutEffect(function(){var De=A.getRecord();if(De.size===1){var Ke=Array.from(De.keys())[0],Be=De.get(Ke),Re=W[Ie];if(Re&&Be===void 0){var lt=_(Re);if(lt===Ke){var Tt=A.get(Ke),Dt=Tt-a;ce(function(Kt){return Kt+Dt})}}}A.resetRecord()},[Ne]);var Ee=s.useState({width:0,height:i}),$e=ae(Ee,2),_e=$e[0],ve=$e[1],Se=function(Ke){ve({width:Ke.offsetWidth,height:Ke.offsetHeight})},Je=b.useRef(),it=b.useRef(),Ot=s.useMemo(function(){return hx(_e.width,h)},[_e.width,h]),_t=s.useMemo(function(){return hx(_e.height,Ne)},[_e.height,Ne]),Ut=Ne-i,st=b.useRef(Ut);st.current=Ut;function Pt(De){var Ke=De;return Number.isNaN(st.current)||(Ke=Math.min(Ke,st.current)),Ke=Math.max(Ke,0),Ke}var mt=te<=0,et=te>=Ut,ke=ee<=0,Me=ee>=h,Te=fx(mt,et,ke,Me),at=function(){return{x:B?-ee:ee,y:te}},ct=b.useRef(at()),Le=qt(function(De){if(x){var Ke=q(q({},at()),De);(ct.current.x!==Ke.x||ct.current.y!==Ke.y)&&(x(Ke),ct.current=Ke)}});function we(De,Ke){var Be=De;Ke?(tr.flushSync(function(){Z(Be)}),Le()):ce(Be)}function ze(De){var Ke=De.currentTarget.scrollTop;Ke!==te&&ce(Ke),C==null||C(De),Le()}var Fe=function(Ke){var Be=Ke,Re=h?h-_e.width:0;return Be=Math.max(Be,0),Be=Math.min(Be,Re),Be},Ve=qt(function(De,Ke){Ke?(tr.flushSync(function(){Z(function(Be){var Re=Be+(B?-De:De);return Fe(Re)})}),Le()):ce(function(Be){var Re=Be+De;return Re})}),Ze=t6(L,mt,et,ke,Me,!!h,Ve),$t=ae(Ze,2),Ae=$t[0],Qe=$t[1];i6(L,k,function(De,Ke,Be,Re){var lt=Re;return Te(De,Ke,Be)?!1:!lt||!lt._virtualHandled?(lt&&(lt._virtualHandled=!0),Ae({preventDefault:function(){},deltaX:De?Ke:0,deltaY:De?0:Ke}),!0):!1}),a6(z,k,function(De){ce(function(Ke){return Ke+De})}),Et(function(){function De(Be){var Re=mt&&Be.detail<0,lt=et&&Be.detail>0;L&&!Re&&!lt&&Be.preventDefault()}var Ke=k.current;return Ke.addEventListener("wheel",Ae,{passive:!1}),Ke.addEventListener("DOMMouseScroll",Qe,{passive:!0}),Ke.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ke.removeEventListener("wheel",Ae),Ke.removeEventListener("DOMMouseScroll",Qe),Ke.removeEventListener("MozMousePixelScroll",De)}},[L,mt,et]),Et(function(){if(h){var De=Fe(ee);Z(De),Le({x:De})}},[_e.width,h]);var nt=function(){var Ke,Be;(Ke=Je.current)===null||Ke===void 0||Ke.delayHidden(),(Be=it.current)===null||Be===void 0||Be.delayHidden()},ot=l6(k,W,A,a,_,function(){return P(!0)},ce,nt);s.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:at,scrollTo:function(Ke){function Be(Re){return Re&&He(Re)==="object"&&("left"in Re||"top"in Re)}Be(Ke)?(Ke.left!==void 0&&Z(Fe(Ke.left)),ot(Ke.top)):ot(Ke)}}}),Et(function(){if(E){var De=W.slice(Ie,xe+1);E(De,W)}},[Ie,xe,W]);var ht=n6(W,_,A,a),Rt=$==null?void 0:$({start:Ie,end:xe,virtual:z,offsetX:ee,offsetY:be,rtl:B,getSize:ht}),Wt=Jz(W,Ie,xe,h,ee,D,f,ie),yt=null;i&&(yt=q(H({},c?"height":"maxHeight",i),d6),L&&(yt.overflowY="hidden",h&&(yt.overflowX="hidden"),se&&(yt.pointerEvents="none")));var en={};return B&&(en.dir="rtl"),s.createElement("div",de({ref:Q,style:q(q({},u),{},{position:"relative"}),className:K},en,N),s.createElement(Wn,{onResize:Se},s.createElement(y,{className:"".concat(r,"-holder"),style:yt,ref:k,onScroll:ze,onMouseEnter:nt},s.createElement(ux,{prefixCls:r,height:Ne,offsetX:ee,offsetY:be,scrollWidth:h,onInnerResize:P,ref:V,innerProps:S,rtl:B,extra:Rt},Wt))),z&&Ne>i&&s.createElement(Lm,{ref:Je,prefixCls:r,scrollOffset:te,scrollRange:Ne,rtl:B,onScroll:we,onStartMove:he,onStopMove:fe,spinSize:_t,containerSize:_e.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:w}),z&&h>_e.width&&s.createElement(Lm,{ref:it,prefixCls:r,scrollOffset:ee,scrollRange:h,rtl:B,onScroll:we,onStartMove:he,onStopMove:fe,spinSize:Ot,containerSize:_e.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:w}))}var hc=s.forwardRef(f6);hc.displayName="List";function m6(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var p6=["disabled","title","children","style","className"];function bx(e){return typeof e=="string"||typeof e=="number"}var v6=function(t,n){var r=az(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,p=s.useContext(Dm),g=p.maxCount,h=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,C=p.onSelect,x=p.menuItemSelectedIcon,E=p.rawValues,S=p.fieldNames,$=p.virtual,O=p.direction,I=p.listHeight,w=p.listItemHeight,N=p.optionRender,_="".concat(o,"-item"),T=ei(function(){return h},[a,h],function(X,F){return F[0]&&X[1]!==F[1]}),M=s.useRef(null),D=s.useMemo(function(){return l&&Tm(g)&&(E==null?void 0:E.size)>=g},[l,g,E==null?void 0:E.size]),P=function(F){F.preventDefault()},A=function(F){var ee;(ee=M.current)===null||ee===void 0||ee.scrollTo(typeof F=="number"?{index:F}:F)},R=s.useCallback(function(X){return c==="combobox"?!1:E.has(X)},[c,ge(E).toString(),E.size]),L=function(F){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=T.length,ne=0;ne<Z;ne+=1){var re=(F+ne*ee+Z)%Z,se=T[re]||{},le=se.group,he=se.data;if(!le&&!(he!=null&&he.disabled)&&(R(he.value)||!D))return re}return-1},j=s.useState(function(){return L(0)}),z=ae(j,2),B=z[0],K=z[1],W=function(F){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(F);var Z={source:ee?"keyboard":"mouse"},ne=T[F];if(!ne){v(null,-1,Z);return}v(ne.value,F,Z)};b.useEffect(function(){W(y!==!1?L(0):-1)},[T.length,u]);var k=s.useCallback(function(X){return c==="combobox"?String(X).toLowerCase()===u.toLowerCase():E.has(X)},[c,u,ge(E).toString(),E.size]);b.useEffect(function(){var X=setTimeout(function(){if(!l&&a&&E.size===1){var ee=Array.from(E)[0],Z=T.findIndex(function(ne){var re=ne.data;return u?String(re.value).startsWith(u):re.value===ee});Z!==-1&&(W(Z),A(Z))}});if(a){var F;(F=M.current)===null||F===void 0||F.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,u]);var V=function(F){F!==void 0&&C(F,{selected:!E.has(F)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(F){var ee=F.which,Z=F.ctrlKey;switch(ee){case ye.N:case ye.P:case ye.UP:case ye.DOWN:{var ne=0;if(ee===ye.UP?ne=-1:ee===ye.DOWN?ne=1:m6()&&Z&&(ee===ye.N?ne=1:ee===ye.P&&(ne=-1)),ne!==0){var re=L(B+ne,ne);A(re),W(re,!0)}break}case ye.TAB:case ye.ENTER:{var se,le=T[B];le&&!(le!=null&&(se=le.data)!==null&&se!==void 0&&se.disabled)&&!D?V(le.value):V(void 0),a&&F.preventDefault();break}case ye.ESC:d(!1),a&&F.stopPropagation()}},onKeyUp:function(){},scrollTo:function(F){A(F)}}}),T.length===0)return s.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:P},f);var Q=Object.keys(S).map(function(X){return S[X]}),J=function(F){return F.label};function Y(X,F){var ee=X.group;return{role:ee?"presentation":"option",id:"".concat(i,"_list_").concat(F)}}var te=function(F){var ee=T[F];if(!ee)return null;var Z=ee.data||{},ne=Z.value,re=ee.group,se=An(Z,!0),le=J(ee);return ee?s.createElement("div",de({"aria-label":typeof le=="string"&&!re?le:null},se,{key:F},Y(ee,F),{"aria-selected":k(ne)}),ne):null},oe={role:"listbox",id:"".concat(i,"_list")};return s.createElement(s.Fragment,null,$&&s.createElement("div",de({},oe,{style:{height:0,width:0,overflow:"hidden"}}),te(B-1),te(B),te(B+1)),s.createElement(hc,{itemKey:"key",ref:M,data:T,height:I,itemHeight:w,fullHeight:!1,onMouseDown:P,onScroll:m,virtual:$,direction:O,innerProps:$?null:oe},function(X,F){var ee=X.group,Z=X.groupOption,ne=X.data,re=X.label,se=X.value,le=ne.key;if(ee){var he,fe=(he=ne.title)!==null&&he!==void 0?he:bx(re)?re.toString():void 0;return s.createElement("div",{className:U(_,"".concat(_,"-group"),ne.className),title:fe},re!==void 0?re:le)}var ie=ne.disabled,ce=ne.title;ne.children;var ue=ne.style,me=ne.className,Ce=tt(ne,p6),Oe=tn(Ce,Q),Pe=R(se),je=ie||!Pe&&D,Ne="".concat(_,"-option"),Ie=U(_,Ne,me,H(H(H(H({},"".concat(Ne,"-grouped"),Z),"".concat(Ne,"-active"),B===F&&!je),"".concat(Ne,"-disabled"),je),"".concat(Ne,"-selected"),Pe)),xe=J(X),be=!x||typeof x=="function"||Pe,Ee=typeof xe=="number"?xe:xe||se,$e=bx(Ee)?Ee.toString():void 0;return ce!==void 0&&($e=ce),s.createElement("div",de({},An(Oe),$?{}:Y(X,F),{"aria-selected":k(se),className:Ie,title:$e,onMouseMove:function(){B===F||je||W(F)},onClick:function(){je||V(se)},style:ue}),s.createElement("div",{className:"".concat(Ne,"-content")},typeof N=="function"?N(X,{index:F}):Ee),s.isValidElement(x)||Pe,be&&s.createElement(mc,{className:"".concat(_,"-option-state"),customizeIcon:x,customizeIconProps:{value:se,disabled:je,isSelected:Pe}},Pe?"✓":null))}))},yx=s.forwardRef(v6);process.env.NODE_ENV!=="production"&&(yx.displayName="OptionList");const g6=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var i=n.current,a=i.values,l=i.options,c=e.map(function(f){if(f.label===void 0){var m;return q(q({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=s.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function zm(e,t){return _m(e).join("").toUpperCase().includes(t)}const h6=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(p,g){return o?zm(g[o],d):g[i]?zm(g[a!=="children"?a:"label"],d):zm(g[l],d)},m=u?function(p){return Mm(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var g=f(n,m(p));if(g)c.push(p);else{var h=p[i].filter(function(v){return f(n,m(v))});h.length&&c.push(q(q({},p),{},H({},i,h)))}return}f(n,m(p))&&c.push(p)}),c},[e,r,o,n,t])};var Cx=0,b6=process.env.NODE_ENV!=="test"&&In();function y6(){var e;return b6?(e=Cx,Cx+=1):e="TEST_OR_SSR",e}function C6(e){var t=s.useState(),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(y6()))},[]),e||r}var S6=["children","value"],x6=["children"];function E6(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=tt(r,S6);return q({key:n,value:i!==void 0?i:n,children:o},a)}function Bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,u=tt(l,x6);return t||!i?E6(n):q(q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:Bm(c)})}).filter(function(n){return n})}var $6=function(t,n,r,o,i){return s.useMemo(function(){var a=t,l=!t;l&&(a=Bm(n));var c=new Map,u=new Map,d=function(p,g,h){h&&typeof h=="string"&&p.set(g[h],g)},f=function m(p){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var v=p[h];!v[r.options]||g?(c.set(v[r.value],v),d(u,v,r.label),d(u,v,o),d(u,v,i)):m(v[r.options],!0)}};return f(a),{options:a,valueOptions:c,labelOptions:u}},[t,n,r,o,i])};function Sx(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function w6(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,l=e.getInputElement,c=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,m=e.labelInValue,p=e.value,g=e.inputValue,h=e.optionLabelProp,v=gc(t),y=c!==void 0?c:v||t==="combobox",C=n||Bm(r);if(Ue(t!=="tags"||C.every(function($){return!$.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var x=C.some(function($){return $.options?$.options.some(function(O){return typeof("value"in O?O.value:O.key)=="number"}):typeof("value"in $?$.value:$.key)=="number"});Ue(!x,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Ue(t!=="combobox"||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Ue(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),Ue(t==="combobox"||!l,"`getInputElement` only work with `combobox` mode."),Id(t!=="combobox"||!l||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&t!=="combobox"&&t!=="tags"&&Ue(!1,"`onSearch` should work with `showSearch` instead of use alone."),Id(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var E=_m(p);Ue(!m||E.every(function($){return He($)==="object"&&("key"in $||"value"in $)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Ue(!v||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var S=null;_n(r).some(function($){if(!s.isValidElement($)||!$.type)return!1;var O=$,I=O.type;if(I.isSelectOption)return!1;if(I.isSelectOptGroup){var w=_n($.props.children).every(function(N){return!s.isValidElement(N)||!$.type||N.type.isSelectOption?!0:(S=N.type,!1)});return!w}return S=I,!0}),S&&Ue(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(S.displayName||S.name||S,"`.")),Ue(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function O6(e,t){if(e){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var l=o[a];if(l[t==null?void 0:t.value]===null)return Ue(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(l[t==null?void 0:t.options])&&r(l[t==null?void 0:t.options],!0))break}};n(e)}}var N6=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],I6=["inputValue"];function _6(e){return!e||He(e)!=="object"}var xx=s.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,p=e.onSelect,g=e.onDeselect,h=e.dropdownMatchSelectWidth,v=h===void 0?!0:h,y=e.filterOption,C=e.filterSort,x=e.optionFilterProp,E=e.optionLabelProp,S=e.options,$=e.optionRender,O=e.children,I=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,N=e.virtual,_=e.direction,T=e.listHeight,M=T===void 0?200:T,D=e.listItemHeight,P=D===void 0?20:D,A=e.labelRender,R=e.value,L=e.defaultValue,j=e.labelInValue,z=e.onChange,B=e.maxCount,K=tt(e,N6),W=C6(n),k=gc(r),V=!!(!S&&O),Q=s.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),J=s.useMemo(function(){return sx(l,V)},[JSON.stringify(l),V]),Y=an("",{value:u!==void 0?u:c,postState:function(we){return we||""}}),te=ae(Y,2),oe=te[0],X=te[1],F=$6(S,O,J,x,E),ee=F.valueOptions,Z=F.labelOptions,ne=F.options,re=s.useCallback(function(Le){var we=_m(Le);return we.map(function(ze){var Fe,Ve,Ze,$t,Ae;if(_6(ze))Fe=ze;else{var Qe;Ze=ze.key,Ve=ze.label,Fe=(Qe=ze.value)!==null&&Qe!==void 0?Qe:Ze}var nt=ee.get(Fe);if(nt){var ot;if(Ve===void 0&&(Ve=nt==null?void 0:nt[E||J.label]),Ze===void 0&&(Ze=(ot=nt==null?void 0:nt.key)!==null&&ot!==void 0?ot:Fe),$t=nt==null?void 0:nt.disabled,Ae=nt==null?void 0:nt.title,process.env.NODE_ENV!=="production"&&!E){var ht=nt==null?void 0:nt[J.label];ht!==void 0&&!s.isValidElement(ht)&&!s.isValidElement(Ve)&&ht!==Ve&&Ue(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Ve,value:Fe,key:Ze,disabled:$t,title:Ae}})},[J,E,ee]),se=an(L,{value:R}),le=ae(se,2),he=le[0],fe=le[1],ie=s.useMemo(function(){var Le,we=k&&he===null?[]:he,ze=re(we);return r==="combobox"&&Nz((Le=ze[0])===null||Le===void 0?void 0:Le.value)?[]:ze},[he,re,r,k]),ce=g6(ie,ee),ue=ae(ce,2),me=ue[0],Ce=ue[1],Oe=s.useMemo(function(){if(!r&&me.length===1){var Le=me[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return me.map(function(we){var ze;return q(q({},we),{},{label:(ze=typeof A=="function"?A(we):we.label)!==null&&ze!==void 0?ze:we.value})})},[r,me,A]),Pe=s.useMemo(function(){return new Set(me.map(function(Le){return Le.value}))},[me]);s.useEffect(function(){if(r==="combobox"){var Le,we=(Le=me[0])===null||Le===void 0?void 0:Le.value;X(Oz(we)?String(we):"")}},[me]);var je=Sx(function(Le,we){var ze=we!=null?we:Le;return H(H({},J.value,Le),J.label,ze)}),Ne=s.useMemo(function(){if(r!=="tags")return ne;var Le=ge(ne),we=function(Fe){return ee.has(Fe)};return ge(me).sort(function(ze,Fe){return ze.value<Fe.value?-1:1}).forEach(function(ze){var Fe=ze.value;we(Fe)||Le.push(je(Fe,ze.label))}),Le},[je,ne,ee,me,r]),Ie=h6(Ne,J,oe,Q,x),xe=s.useMemo(function(){return r!=="tags"||!oe||Ie.some(function(Le){return Le[x||"value"]===oe})||Ie.some(function(Le){return Le[J.value]===oe})?Ie:[je(oe)].concat(ge(Ie))},[je,x,r,Ie,oe,J]),be=function Le(we){var ze=ge(we).sort(function(Fe,Ve){return C(Fe,Ve,{searchValue:oe})});return ze.map(function(Fe){return Array.isArray(Fe.options)?q(q({},Fe),{},{options:Fe.options.length>0?Le(Fe.options):Fe.options}):Fe})},Ee=s.useMemo(function(){return C?be(xe):xe},[xe,C,oe]),$e=s.useMemo(function(){return qz(Ee,{fieldNames:J,childrenAsData:V})},[Ee,J,V]),_e=function(we){var ze=re(we);if(fe(ze),z&&(ze.length!==me.length||ze.some(function(Ze,$t){var Ae;return((Ae=me[$t])===null||Ae===void 0?void 0:Ae.value)!==(Ze==null?void 0:Ze.value)}))){var Fe=j?ze:ze.map(function(Ze){return Ze.value}),Ve=ze.map(function(Ze){return Mm(Ce(Ze.value))});z(k?Fe:Fe[0],k?Ve:Ve[0])}},ve=s.useState(null),Se=ae(ve,2),Je=Se[0],it=Se[1],Ot=s.useState(0),_t=ae(Ot,2),Ut=_t[0],st=_t[1],Pt=I!==void 0?I:r!=="combobox",mt=s.useCallback(function(Le,we){var ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fe=ze.source,Ve=Fe===void 0?"keyboard":Fe;st(we),a&&r==="combobox"&&Le!==null&&Ve==="keyboard"&&it(String(Le))},[a,r]),et=function(we,ze,Fe){var Ve=function(){var yt,en=Ce(we);return[j?{label:en==null?void 0:en[J.label],value:we,key:(yt=en==null?void 0:en.key)!==null&&yt!==void 0?yt:we}:we,Mm(en)]};if(ze&&p){var Ze=Ve(),$t=ae(Ze,2),Ae=$t[0],Qe=$t[1];p(Ae,Qe)}else if(!ze&&g&&Fe!=="clear"){var nt=Ve(),ot=ae(nt,2),ht=ot[0],Rt=ot[1];g(ht,Rt)}},ke=Sx(function(Le,we){var ze,Fe=k?we.selected:!0;Fe?ze=k?[].concat(ge(me),[Le]):[Le]:ze=me.filter(function(Ve){return Ve.value!==Le}),_e(ze),et(Le,Fe),r==="combobox"?it(""):(!gc||m)&&(X(""),it(""))}),Me=function(we,ze){_e(we);var Fe=ze.type,Ve=ze.values;(Fe==="remove"||Fe==="clear")&&Ve.forEach(function(Ze){et(Ze.value,!1,Fe)})},Te=function(we,ze){if(X(we),it(null),ze.source==="submit"){var Fe=(we||"").trim();if(Fe){var Ve=Array.from(new Set([].concat(ge(Pe),[Fe])));_e(Ve),et(Fe,!0),X("")}return}ze.source!=="blur"&&(r==="combobox"&&_e(we),d==null||d(we))},at=function(we){var ze=we;r!=="tags"&&(ze=we.map(function(Ve){var Ze=Z.get(Ve);return Ze==null?void 0:Ze.value}).filter(function(Ve){return Ve!==void 0}));var Fe=Array.from(new Set([].concat(ge(Pe),ge(ze))));_e(Fe),Fe.forEach(function(Ve){et(Ve,!0)})},ct=s.useMemo(function(){var Le=N!==!1&&v!==!1;return q(q({},F),{},{flattenOptions:$e,onActiveValue:mt,defaultActiveFirstOption:Pt,onSelect:ke,menuItemSelectedIcon:w,rawValues:Pe,fieldNames:J,virtual:Le,direction:_,listHeight:M,listItemHeight:P,childrenAsData:V,maxCount:B,optionRender:$})},[B,F,$e,mt,Pt,ke,w,Pe,J,N,v,_,M,P,V,$]);return process.env.NODE_ENV!=="production"&&(w6(e),O6(ne,J)),s.createElement(Dm.Provider,{value:ct},s.createElement(cx,de({},K,{id:W,prefixCls:i,ref:t,omitDomProps:I6,mode:r,displayValues:Oe,onDisplayValuesChange:Me,direction:_,searchValue:oe,onSearch:Te,autoClearSearchValue:m,onSearchSplit:at,dropdownMatchSelectWidth:v,OptionList:yx,emptyOptions:!$e.length,activeValue:Je,activeDescendantId:"".concat(W,"_list_").concat(Ut)})))});process.env.NODE_ENV!=="production"&&(xx.displayName="Select");var km=xx;km.Option=Rm,km.OptGroup=Am;function bc(e,t,n){return U({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const yc=(e,t)=>t||e,Ex=()=>{const[,e]=Fn(),[t]=to("Empty"),r=new Bt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Ex.displayName="EmptyImage");const P6=Ex,$x=()=>{const[,e]=Fn(),[t]=to("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=b.useMemo(()=>({borderColor:new Bt(n).onBackground(i).toHexString(),shadowColor:new Bt(r).onBackground(i).toHexString(),contentColor:new Bt(o).onBackground(i).toHexString()}),[n,r,o,i]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:a},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};process.env.NODE_ENV!=="production"&&($x.displayName="SimpleImage");const T6=$x,M6=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},D6=Mt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=St(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[M6(o)]});var A6=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wx=s.createElement(P6,null),Ox=s.createElement(T6,null),Cc=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=wx,description:i,children:a,imageStyle:l,style:c,classNames:u,styles:d}=e,f=A6(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:p,className:g,style:h,classNames:v,styles:y}=Dn("empty"),C=m("empty",r),[x,E,S]=D6(C),[$]=to("Empty"),O=typeof i!="undefined"?i:$==null?void 0:$.description,I=typeof O=="string"?O:"empty";let w=null;if(typeof o=="string"?w=s.createElement("img",{alt:I,src:o}):w=o,process.env.NODE_ENV!=="production"){const N=vt("Empty");[["imageStyle","styles: { image: {} }"]].forEach(_=>{let[T,M]=_;N.deprecated(!(T in e),T,M)})}return x(s.createElement("div",Object.assign({className:U(E,S,C,g,{[`${C}-normal`]:o===Ox,[`${C}-rtl`]:p==="rtl"},t,n,v.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),h),d==null?void 0:d.root),c)},f),s.createElement("div",{className:U(`${C}-image`,v.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),d==null?void 0:d.image)},w),O&&s.createElement("div",{className:U(`${C}-description`,v.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),d==null?void 0:d.description)},O),a&&s.createElement("div",{className:U(`${C}-footer`,v.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),d==null?void 0:d.footer)},a)))};Cc.PRESENTED_IMAGE_DEFAULT=wx,Cc.PRESENTED_IMAGE_SIMPLE=Ox,process.env.NODE_ENV!=="production"&&(Cc.displayName="Empty");const fi=Cc,Nx=e=>{const{componentName:t}=e,{getPrefixCls:n}=b.useContext(Xe),r=n("empty");switch(t){case"Table":case"List":return b.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return b.createElement(fi,null)}},Sc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=s.useContext(Xe),l=s.useContext(aS),c=a==null?void 0:a.variant;let u;typeof t!="undefined"?u=t:n===!1?u="borderless":u=(o=(r=l!=null?l:c)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=XD.includes(u);return[u,d]},R6=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function j6(e,t){return e||R6(t)}const Ix=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},L6=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ht(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
215
|
+
${o}${l}bottomLeft,
|
|
216
|
+
${i}${l}bottomLeft
|
|
217
|
+
`]:{animationName:Hf},[`
|
|
218
|
+
${o}${l}topLeft,
|
|
219
|
+
${i}${l}topLeft,
|
|
220
|
+
${o}${l}topRight,
|
|
221
|
+
${i}${l}topRight
|
|
222
|
+
`]:{animationName:Wf},[`${a}${l}bottomLeft`]:{animationName:Vf},[`
|
|
223
|
+
${a}${l}topLeft,
|
|
224
|
+
${a}${l}topRight
|
|
225
|
+
`]:{animationName:Kf},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Ix(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Co),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ix(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ko(e,"slide-up"),ko(e,"slide-down"),ec(e,"move-up"),ec(e,"move-down")]},z6=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},B6=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},k6=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Qa()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},F6=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=B6(e),l=t?`${n}-${t}`:"",c=z6(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},k6(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:G(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
226
|
+
${n}-prefix + ${n}-selection-wrap
|
|
227
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:G(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Fm(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
228
|
+
&${n}-show-arrow ${n}-selector,
|
|
229
|
+
&${n}-allow-clear ${n}-selector
|
|
230
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[F6(e,t),o]}const H6=e=>{const{componentCls:t}=e,n=St(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=St(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Fm(e),Fm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Fm(r,"lg")]};function Hm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ht(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:G(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
231
|
+
${n}-selection-item,
|
|
232
|
+
${n}-selection-placeholder
|
|
233
|
+
`]:{display:"block",padding:0,lineHeight:G(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
234
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
235
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
236
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
237
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:G(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${G(r)}`,"&:after":{display:"none"}}}}}}}function V6(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Hm(e),Hm(St(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
238
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
239
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
240
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Hm(St(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const W6=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:h,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:C,colorPrimary:x,controlOutline:E}=e,S=l*2,$=r*2,O=Math.min(o-S,o-$),I=Math.min(i-S,i-$),w=Math.min(a-S,a-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:I,multipleItemHeightLG:w,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:x,activeOutlineColor:E,selectAffixPadding:l}},_x=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Px=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},_x(e,t))}),K6=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},_x(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Px(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Px(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Tx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Mx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Tx(e,t))}),q6=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Tx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Mx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Mx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),G6=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Dx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${G(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},Ax=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Dx(e,t))}),U6=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Dx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Ax(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Ax(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),X6=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},K6(e)),q6(e)),G6(e)),U6(e))}),Q6=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Y6=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},J6=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Q6(e)),Y6(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Co),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Co),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Qa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Z6=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},J6(e),V6(e),H6(e),L6(e),{[`${t}-rtl`]:{direction:"rtl"}},Uf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},eB=Mt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=St(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Z6(r),X6(r)]},W6,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function tB(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&vt(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const p=n!=null?n:s.createElement(Mo,null),g=C=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&C,l&&d);let h=null;if(t!==void 0)h=g(t);else if(i)h=g(s.createElement(Zo,{spin:!0}));else{const C=`${c}-suffix`;h=x=>{let{open:E,showSearch:S}=x;return g(E&&S?s.createElement(Aa,{className:C}):s.createElement(ms,{className:C}))}}let v=null;r!==void 0?v=r:a?v=s.createElement(fs,null):v=null;let y=null;return o!==void 0?y=o:y=s.createElement(xr,null),{clearIcon:p,suffixIcon:h,itemIcon:v,removeIcon:y}}function nB(e,t){return t!==void 0?t:e!==null}var rB=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Rx="SECRET_COMBOBOX_MODE_DO_NOT_USE",jx=(e,t)=>{var n,r,o,i,a;const{prefixCls:l,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:p,listHeight:g=256,placement:h,listItemHeight:v,size:y,disabled:C,notFoundContent:x,status:E,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:O,direction:I,style:w,allowClear:N,variant:_,dropdownStyle:T,transitionName:M,tagRender:D,maxCount:P,prefix:A,dropdownRender:R,popupRender:L,onDropdownVisibleChange:j,onOpenChange:z,styles:B,classNames:K}=e,W=rB(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:k,getPrefixCls:V,renderEmpty:Q,direction:J,virtual:Y,popupMatchSelectWidth:te,popupOverflow:oe}=s.useContext(Xe),{showSearch:X,style:F,styles:ee,className:Z,classNames:ne}=Dn("select"),[,re]=Fn(),se=v!=null?v:re==null?void 0:re.controlHeight,le=V("select",l),he=V(),fe=I!=null?I:J,{compactSize:ie,compactItemClassnames:ce}=Bi(le,fe),[ue,me]=Sc("select",_,c),Ce=wn(le),[Oe,Pe,je]=eB(le,Ce),Ne=s.useMemo(()=>{const{mode:Fe}=e;if(Fe!=="combobox")return Fe===Rx?"combobox":Fe},[e.mode]),Ie=Ne==="multiple"||Ne==="tags",xe=nB(e.suffixIcon,e.showArrow),be=(n=O!=null?O:$)!==null&&n!==void 0?n:te,Ee=((r=B==null?void 0:B.popup)===null||r===void 0?void 0:r.root)||((o=ee.popup)===null||o===void 0?void 0:o.root)||T,$e=L||R,_e=z||j,{status:ve,hasFeedback:Se,isFormItemInput:Je,feedbackIcon:it}=s.useContext(Un),Ot=yc(ve,E);let _t;x!==void 0?_t=x:Ne==="combobox"?_t=null:_t=(Q==null?void 0:Q("Select"))||s.createElement(Nx,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:st,removeIcon:Pt,clearIcon:mt}=tB(Object.assign(Object.assign({},W),{multiple:Ie,hasFeedback:Se,feedbackIcon:it,showSuffixIcon:xe,prefixCls:le,componentName:"Select"})),et=N===!0?{clearIcon:mt}:N,ke=tn(W,["suffixIcon","itemIcon"]),Me=U(((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||((a=ne==null?void 0:ne.popup)===null||a===void 0?void 0:a.root)||m||p,{[`${le}-dropdown-${fe}`]:fe==="rtl"},d,ne.root,K==null?void 0:K.root,je,Ce,Pe),Te=Kn(Fe=>{var Ve;return(Ve=y!=null?y:ie)!==null&&Ve!==void 0?Ve:Fe}),at=s.useContext(no),ct=C!=null?C:at,Le=U({[`${le}-lg`]:Te==="large",[`${le}-sm`]:Te==="small",[`${le}-rtl`]:fe==="rtl",[`${le}-${ue}`]:me,[`${le}-in-form-item`]:Je},bc(le,Ot,Se),ce,Z,u,ne.root,K==null?void 0:K.root,d,je,Ce,Pe),we=s.useMemo(()=>h!==void 0?h:fe==="rtl"?"bottomRight":"bottomLeft",[h,fe]);if(process.env.NODE_ENV!=="production"){const Fe=vt("Select");Object.entries({dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"}).forEach(Ze=>{let[$t,Ae]=Ze;Fe.deprecated(!($t in e),$t,Ae)}),process.env.NODE_ENV!=="production"&&Fe(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),process.env.NODE_ENV!=="production"&&Fe(!(typeof P!="undefined"&&!Ie),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[ze]=zi("SelectLike",Ee==null?void 0:Ee.zIndex);return Oe(s.createElement(km,Object.assign({ref:t,virtual:Y,showSearch:X},ke,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee.root),B==null?void 0:B.root),F),w),dropdownMatchSelectWidth:be,transitionName:oo(he,"slide-up",M),builtinPlacements:j6(S,oe),listHeight:g,listItemHeight:se,mode:Ne,prefixCls:le,placement:we,direction:fe,prefix:A,suffixIcon:Ut,menuItemSelectedIcon:st,removeIcon:Pt,allowClear:et,notFoundContent:_t,className:Le,getPopupContainer:f||k,dropdownClassName:Me,disabled:ct,dropdownStyle:Object.assign(Object.assign({},Ee),{zIndex:ze}),maxCount:Ie?P:void 0,tagRender:Ie?D:void 0,dropdownRender:$e,onDropdownVisibleChange:_e})))};process.env.NODE_ENV!=="production"&&(jx.displayName="Select");const mi=s.forwardRef(jx),oB=kS(mi,"dropdownAlign");mi.SECRET_COMBOBOX_MODE_DO_NOT_USE=Rx,mi.Option=Rm,mi.OptGroup=Am,mi._InternalPanelDoNotUseOrYouWillBeFired=oB,process.env.NODE_ENV!=="production"&&(mi.displayName="Select");const yn=mi,Lx=(e,t)=>{typeof(e==null?void 0:e.addEventListener)!="undefined"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)!="undefined"&&e.addListener(t)},zx=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)!="undefined"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)!="undefined"&&e.removeListener(t)},Yi=["xxl","xl","lg","md","sm","xs"],iB=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),aB=e=>{const t=e,n=[].concat(Yi).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const c=`screen${i}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},lB=()=>{const[,e]=Fn(),t=iB(aB(e));return b.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(i=>{let[a,l]=i;const c=d=>{let{matches:f}=d;this.dispatch(Object.assign(Object.assign({},o),{[a]:f}))},u=window.matchMedia(l);Lx(u,c),this.matchHandlers[l]={mql:u,listener:c},c(u)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];zx(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function Bx(){const[,e]=s.useReducer(t=>t+1,0);return e}function pl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=b.useRef(t),r=Bx(),o=lB();return Et(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const Vm=s.createContext({}),sB=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:p,borderRadiusSM:g,lineWidth:h,lineType:v}=e,y=(C,x,E)=>({width:C,height:C,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`&${n}-icon`]:{fontSize:x,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${G(h)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,u,m)),{"&-lg":Object.assign({},y(l,d,p)),"&-sm":Object.assign({},y(c,f,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},cB=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},kx=Mt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=St(e,{avatarBg:n,avatarColor:t});return[sB(r),cB(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}});var uB=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fx=s.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:l,className:c,rootClassName:u,style:d,alt:f,draggable:m,children:p,crossOrigin:g,gap:h=4,onError:v}=e,y=uB(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[C,x]=s.useState(1),[E,S]=s.useState(!1),[$,O]=s.useState(!0),I=s.useRef(null),w=s.useRef(null),N=Vn(t,I),{getPrefixCls:_,avatar:T}=s.useContext(Xe),M=s.useContext(Vm),D=()=>{if(!w.current||!I.current)return;const X=w.current.offsetWidth,F=I.current.offsetWidth;X!==0&&F!==0&&h*2<F&&x(F-h*2<X?(F-h*2)/X:1)};s.useEffect(()=>{S(!0)},[]),s.useEffect(()=>{O(!0),x(1)},[i]),s.useEffect(D,[h]);const P=()=>{(v==null?void 0:v())!==!1&&O(!1)},A=Kn(X=>{var F,ee;return(ee=(F=o!=null?o:M==null?void 0:M.size)!==null&&F!==void 0?F:X)!==null&&ee!==void 0?ee:"default"}),R=Object.keys(typeof A=="object"?A||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),L=pl(R),j=s.useMemo(()=>{if(typeof A!="object")return{};const X=Yi.find(ee=>L[ee]),F=A[X];return F?{width:F,height:F,fontSize:F&&(l||p)?F/2:18}:{}},[L,A]);if(process.env.NODE_ENV!=="production"){const X=vt("Avatar");process.env.NODE_ENV!=="production"&&X(!(typeof l=="string"&&l.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${l}\` at https://ant.design/components/icon`)}const z=_("avatar",n),B=wn(z),[K,W,k]=kx(z,B),V=U({[`${z}-lg`]:A==="large",[`${z}-sm`]:A==="small"}),Q=s.isValidElement(i),J=r||(M==null?void 0:M.shape)||"circle",Y=U(z,V,T==null?void 0:T.className,`${z}-${J}`,{[`${z}-image`]:Q||i&&$,[`${z}-icon`]:!!l},k,B,c,u,W),te=typeof A=="number"?{width:A,height:A,fontSize:l?A/2:18}:{};let oe;if(typeof i=="string"&&$)oe=s.createElement("img",{src:i,draggable:m,srcSet:a,onError:P,alt:f,crossOrigin:g});else if(Q)oe=i;else if(l)oe=l;else if(E||C!==1){const X=`scale(${C})`,F={msTransform:X,WebkitTransform:X,transform:X};oe=s.createElement(Wn,{onResize:D},s.createElement("span",{className:`${z}-string`,ref:w,style:Object.assign({},F)},p))}else oe=s.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:w},p);return K(s.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},te),j),T==null?void 0:T.style),d),className:Y,ref:N}),oe))});process.env.NODE_ENV!=="production"&&(Fx.displayName="Avatar");const Hx=Fx,xc=e=>e?typeof e=="function"?e():e:null;function Wm(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return s.createElement("div",{className:U("".concat(n,"-content"),a),style:l},s.createElement("div",{className:U("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ji={shiftX:64,adjustY:1},Zi={adjustX:1,shiftY:!0},Ir=[0,0],dB={left:{points:["cr","cl"],overflow:Zi,offset:[-4,0],targetOffset:Ir},right:{points:["cl","cr"],overflow:Zi,offset:[4,0],targetOffset:Ir},top:{points:["bc","tc"],overflow:Ji,offset:[0,-4],targetOffset:Ir},bottom:{points:["tc","bc"],overflow:Ji,offset:[0,4],targetOffset:Ir},topLeft:{points:["bl","tl"],overflow:Ji,offset:[0,-4],targetOffset:Ir},leftTop:{points:["tr","tl"],overflow:Zi,offset:[-4,0],targetOffset:Ir},topRight:{points:["br","tr"],overflow:Ji,offset:[0,-4],targetOffset:Ir},rightTop:{points:["tl","tr"],overflow:Zi,offset:[4,0],targetOffset:Ir},bottomRight:{points:["tr","br"],overflow:Ji,offset:[0,4],targetOffset:Ir},rightBottom:{points:["bl","br"],overflow:Zi,offset:[4,0],targetOffset:Ir},bottomLeft:{points:["tl","bl"],overflow:Ji,offset:[0,4],targetOffset:Ir},leftBottom:{points:["br","bl"],overflow:Zi,offset:[-4,0],targetOffset:Ir}},fB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],mB=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,p=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,v=t.transitionName,y=t.animation,C=t.motion,x=t.placement,E=x===void 0?"right":x,S=t.align,$=S===void 0?{}:S,O=t.destroyTooltipOnHide,I=O===void 0?!1:O,w=t.defaultVisible,N=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,M=t.id,D=t.showArrow,P=D===void 0?!0:D,A=t.classNames,R=t.styles,L=tt(t,fB),j=sc(M),z=b.useRef(null);b.useImperativeHandle(n,function(){return z.current});var B=q({},L);"visible"in t&&(B.popupVisible=t.visible);var K=function(){return s.createElement(Wm,{key:"content",prefixCls:m,id:j,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:q(q({},_),R==null?void 0:R.body)},T)},W=function(){var V=s.Children.only(p),Q=(V==null?void 0:V.props)||{},J=q(q({},Q),{},{"aria-describedby":T?j:null});return s.cloneElement(p,J)};return s.createElement(vc,de({popupClassName:U(r,A==null?void 0:A.root),prefixCls:m,popup:K,action:i,builtinPlacements:dB,popupPlacement:E,ref:z,popupAlign:$,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:y,popupMotion:C,defaultPopupVisible:w,autoDestroy:I,mouseLeaveDelay:u,popupStyle:q(q({},d),R==null?void 0:R.root),mouseEnterDelay:l,arrow:P},B),W())};const pB=b.forwardRef(mB);function Km(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,p=2*o-l,g=c,h=2*o-i,v=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),x=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,E=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${g} A ${r} ${r} 0 0 0 ${h} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:E,arrowPolygon:x}}const vB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Vx=8;function Ec(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Vx:r}}function $c(e,t){return e?t:{}}function qm(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},vB(e,t,o)),{"&:before":{background:t}})]},$c(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),$c(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),$c(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),$c(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function gB(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Wx={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},hB={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},bB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Kx(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Wx).forEach(u=>{const d=r&&hB[u]||Wx[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,bB.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Ec({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-l;break}f.overflow=gB(u,m,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const yB=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p}=e,g=t(a).add(p).add(m).equal(),h=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:h,minHeight:c,padding:`${G(e.calc(d).div(2).equal())} ${G(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,Vx)}},[`${n}-content`]:{position:"relative"}}),r0(e,(v,y)=>{let{darkColor:C}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:C},[`${n}-arrow`]:{"--antd-arrow-background-color":C}}}})),{"&-rtl":{direction:"rtl"}})},qm(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},CB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ec({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Km(St(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),qx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Mt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=St(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[yB(l),tl(r,"zoom-big-fast")]},CB,{resetStyle:!1,injectStyle:t})(e)},SB=zo.map(e=>`${e}-inverse`),xB=["success","processing","error","default","warning"];function Gx(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(SB),ge(zo)).includes(e):zo.includes(e)}function EB(e){return xB.includes(e)}function Ux(e,t){const n=Gx(t),r=U({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const $B=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("tooltip",t),[u,d,f]=qx(c),m=Ux(c,i),p=m.arrowStyle,g=Object.assign(Object.assign({},a),m.overlayStyle),h=U(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:h,style:p},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Wm,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var wB=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gm=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:g=!0,title:h,overlay:v,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:E,getPopupContainer:S,placement:$="top",mouseEnterDelay:O=.1,mouseLeaveDelay:I=.1,overlayStyle:w,rootClassName:N,overlayClassName:_,styles:T,classNames:M}=e,D=wB(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),P=!!g,[,A]=Fn(),{getPopupContainer:R,getPrefixCls:L,direction:j,className:z,style:B,classNames:K,styles:W}=Dn("tooltip"),k=vt("Tooltip"),V=s.useRef(null),Q=()=>{var xe;(xe=V.current)===null||xe===void 0||xe.forceAlign()};s.useImperativeHandle(t,()=>{var xe,be;return{forceAlign:Q,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(xe=V.current)===null||xe===void 0?void 0:xe.nativeElement,popupElement:(be=V.current)===null||be===void 0?void 0:be.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(xe=>{let[be,Ee]=xe;k.deprecated(!(be in e),be,Ee)}),process.env.NODE_ENV!=="production"&&k(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&k(!g||typeof g=="boolean"||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[J,Y]=an(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),te=!h&&!v&&h!==0,oe=xe=>{var be,Ee;Y(te?!1:xe),te||((be=e.onOpenChange)===null||be===void 0||be.call(e,xe),(Ee=e.onVisibleChange)===null||Ee===void 0||Ee.call(e,xe))},X=s.useMemo(()=>{var xe,be;let Ee=C;return typeof g=="object"&&(Ee=(be=(xe=g.pointAtCenter)!==null&&xe!==void 0?xe:g.arrowPointAtCenter)!==null&&be!==void 0?be:C),y||Kx({arrowPointAtCenter:Ee,autoAdjustOverflow:x,arrowWidth:P?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[C,g,y,A]),F=s.useMemo(()=>h===0?h:v||h||"",[v,h]),ee=s.createElement(Ki,{space:!0},typeof F=="function"?F():F),Z=L("tooltip",o),ne=L(),re=e["data-popover-inject"];let se=J;!("open"in e)&&!("visible"in e)&&te&&(se=!1);const le=s.isValidElement(u)&&!N0(u)?u:s.createElement("span",null,u),he=le.props,fe=!he.className||typeof he.className=="string"?U(he.className,i||`${Z}-open`):he.className,[ie,ce,ue]=qx(Z,!re),me=Ux(Z,l),Ce=me.arrowStyle,Oe=U(_,{[`${Z}-rtl`]:j==="rtl"},me.className,N,ce,ue,z,K.root,M==null?void 0:M.root),Pe=U(K.body,M==null?void 0:M.body),[je,Ne]=zi("Tooltip",D.zIndex),Ie=s.createElement(pB,Object.assign({},D,{zIndex:je,showArrow:P,placement:$,mouseEnterDelay:O,mouseLeaveDelay:I,prefixCls:Z,classNames:{root:Oe,body:Pe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),W.root),B),w),T==null?void 0:T.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),c),T==null?void 0:T.body),me.overlayStyle)},getTooltipContainer:S||a||R,ref:V,builtinPlacements:X,overlay:ee,visible:se,onVisibleChange:oe,afterVisibleChange:d!=null?d:f,arrowContent:s.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:oo(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p!=null?p:!!m}),se?Gn(le,{className:fe}):le);return ie(s.createElement(Ya.Provider,{value:Ne},Ie))});process.env.NODE_ENV!=="production"&&(Gm.displayName="Tooltip"),Gm._InternalPanelDoNotUseOrYouWillBeFired=$B;const lo=Gm,OB=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:g,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Ht(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:p,padding:h},[`${t}-inner-content`]:{color:n,padding:g}})},qm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},NB=e=>{const{componentCls:t}=e;return{[t]:zo.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Xx=Mt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=St(e,{popoverBg:t,popoverColor:n});return[OB(r),NB(r),tl(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,g=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Km(e)),Ec({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${h}px ${g}px`:0,titleBorderBottom:i?`${t}px ${u} ${d}`:"none",innerContentPadding:i?`${f}px ${h}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var IB=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qx=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${r}-title`},t),n&&s.createElement("div",{className:`${r}-inner-content`},n))},_B=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:c}=e,u=xc(a),d=xc(l),f=U(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return s.createElement("div",{className:f,style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(Wm,Object.assign({},e,{className:t,prefixCls:n}),c||s.createElement(Qx,{prefixCls:n,title:u,content:d})))},PB=e=>{const{prefixCls:t,className:n}=e,r=IB(e,["prefixCls","className"]),{getPrefixCls:o}=s.useContext(Xe),i=o("popover",t),[a,l,c]=Xx(i);return a(s.createElement(_B,Object.assign({},r,{prefixCls:i,hashId:l,className:U(n,c)})))};var TB=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Um=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:p,overlayStyle:g={},styles:h,classNames:v}=e,y=TB(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:E,classNames:S,styles:$}=Dn("popover"),O=C("popover",o),[I,w,N]=Xx(O),_=C(),T=U(l,w,N,x,S.root,v==null?void 0:v.root),M=U(S.body,v==null?void 0:v.body),[D,P]=an(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=(B,K)=>{P(B,!0),p==null||p(B,K)},R=B=>{B.keyCode===ye.ESC&&A(!1,B)},L=B=>{A(B)},j=xc(i),z=xc(a);return I(s.createElement(lo,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:O,classNames:{root:T,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),E),g),h==null?void 0:h.root),body:Object.assign(Object.assign({},$.body),h==null?void 0:h.body)},ref:t,open:D,onOpenChange:L,overlay:j||z?s.createElement(Qx,{prefixCls:O,title:j,content:z}):null,transitionName:oo(_,"zoom-big",y.transitionName),"data-popover-inject":!0}),Gn(d,{onKeyDown:B=>{var K,W;s.isValidElement(d)&&((W=d==null?void 0:(K=d.props).onKeyDown)===null||W===void 0||W.call(K,B)),R(B)}})))});Um._InternalPanelDoNotUseOrYouWillBeFired=PB,process.env.NODE_ENV!=="production"&&(Um.displayName="Popover");const MB=Um,Yx=e=>{const{size:t,shape:n}=s.useContext(Vm),r=s.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return s.createElement(Vm.Provider,{value:r},e.children)},DB=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=s.useContext(Xe),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:p,shape:g,maxPopoverPlacement:h,maxPopoverTrigger:v,children:y,max:C}=e;if(process.env.NODE_ENV!=="production"){const M=vt("Avatar.Group");[["maxCount","max={{ count: number }}"],["maxStyle","max={{ style: CSSProperties }}"],["maxPopoverPlacement","max={{ popover: PopoverProps }}"],["maxPopoverTrigger","max={{ popover: PopoverProps }}"]].forEach(D=>{let[P,A]=D;M.deprecated(!(P in e),P,A)})}const x=i("avatar",l),E=`${x}-group`,S=wn(x),[$,O,I]=kx(x,S),w=U(E,{[`${E}-rtl`]:a==="rtl"},I,S,c,u,O),N=_n(y).map((M,D)=>Gn(M,{key:`avatar-key-${D}`})),_=(C==null?void 0:C.count)||f,T=N.length;if(_&&_<T){const M=N.slice(0,_),D=N.slice(_,T),P=(C==null?void 0:C.style)||m,A=((t=C==null?void 0:C.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",R=((n=C==null?void 0:C.popover)===null||n===void 0?void 0:n.placement)||h||"top",L=Object.assign(Object.assign({content:D},C==null?void 0:C.popover),{classNames:{root:U(`${E}-popover`,(o=(r=C==null?void 0:C.popover)===null||r===void 0?void 0:r.classNames)===null||o===void 0?void 0:o.root)},placement:R,trigger:A});return M.push(s.createElement(MB,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},L),s.createElement(Hx,{style:P},`+${T-_}`))),$(s.createElement(Yx,{shape:g,size:p},s.createElement("div",{className:w,style:d},M)))}return $(s.createElement(Yx,{shape:g,size:p},s.createElement("div",{className:w,style:d},N)))},Jx=Hx;Jx.Group=DB;const Zx=Jx;var AB=ye.ESC,RB=ye.TAB;function jB(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case AB:l();break;case RB:{var m=!1;a.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&At(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var LB=b.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=b.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Vn(t,Do(i));return b.createElement(b.Fragment,null,r&&b.createElement("div",{className:"".concat(o,"-arrow")}),b.cloneElement(i,{ref:Ar(i)?a:void 0}))}),ea={adjustX:1,adjustY:1},ta=[0,0],zB={topLeft:{points:["bl","tl"],overflow:ea,offset:[0,-4],targetOffset:ta},top:{points:["bc","tc"],overflow:ea,offset:[0,-4],targetOffset:ta},topRight:{points:["br","tr"],overflow:ea,offset:[0,-4],targetOffset:ta},bottomLeft:{points:["tl","bl"],overflow:ea,offset:[0,4],targetOffset:ta},bottom:{points:["tc","bc"],overflow:ea,offset:[0,4],targetOffset:ta},bottomRight:{points:["tr","br"],overflow:ea,offset:[0,4],targetOffset:ta}},BB=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function kB(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,p=m===void 0?zB:m,g=e.getPopupContainer,h=e.showAction,v=e.hideAction,y=e.overlayClassName,C=e.overlayStyle,x=e.visible,E=e.trigger,S=E===void 0?["hover"]:E,$=e.autoFocus,O=e.overlay,I=e.children,w=e.onVisibleChange,N=tt(e,BB),_=b.useState(),T=ae(_,2),M=T[0],D=T[1],P="visible"in e?x:M,A=b.useRef(null),R=b.useRef(null),L=b.useRef(null);b.useImperativeHandle(t,function(){return A.current});var j=function(Y){D(Y),w==null||w(Y)};jB({visible:P,triggerRef:L,onVisibleChange:j,autoFocus:$,overlayRef:R});var z=function(Y){var te=e.onOverlayClick;D(!1),te&&te(Y)},B=function(){return b.createElement(LB,{ref:R,overlay:O,prefixCls:a,arrow:o})},K=function(){return typeof O=="function"?B:B()},W=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!te},k=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},V=b.cloneElement(I,{className:U((n=I.props)===null||n===void 0?void 0:n.className,P&&k()),ref:Ar(I)?Vn(L,Do(I)):void 0}),Q=v;return!Q&&S.indexOf("contextMenu")!==-1&&(Q=["click"]),b.createElement(vc,de({builtinPlacements:p},N,{prefixCls:a,ref:A,popupClassName:U(y,H({},"".concat(a,"-show-arrow"),o)),popupStyle:C,action:S,showAction:h,hideAction:Q,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:P,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:j,onPopupClick:z,getPopupContainer:g}),V)}const eE=b.forwardRef(kB),FB=e=>typeof e!="object"&&typeof e!="function"||e===null;var tE=s.createContext(null);function nE(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function rE(e){var t=s.useContext(tE);return nE(t,e)}var HB=["children","locked"],kr=s.createContext(null);function VB(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function vl(e){var t=e.children,n=e.locked,r=tt(e,HB),o=s.useContext(kr),i=ei(function(){return VB(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Jr(a[1],l[1],!0))});return s.createElement(kr.Provider,{value:i},t)}var WB=[],oE=s.createContext(null);function wc(){return s.useContext(oE)}var iE=s.createContext(WB);function na(e){var t=s.useContext(iE);return s.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var aE=s.createContext(null),Xm=s.createContext({});function lE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Za(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function KB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return lE(r,t)});return lE(e,t)&&n.unshift(e),n}var Qm=ye.LEFT,Ym=ye.RIGHT,Jm=ye.UP,Oc=ye.DOWN,Nc=ye.ENTER,sE=ye.ESC,gl=ye.HOME,hl=ye.END,cE=[Jm,Oc,Qm,Ym];function qB(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if(e==="inline"&&r===Nc)return{inlineTrigger:!0};var u=H(H({},Jm,i),Oc,a),d=H(H(H(H({},Qm,n?a:i),Ym,n?i:a),Oc,l),Nc,l),f=H(H(H(H(H(H({},Jm,i),Oc,a),Nc,l),sE,c),Qm,n?l:c),Ym,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},p=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function GB(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function UB(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Zm(e,t){var n=KB(e,!0);return n.filter(function(r){return t.has(r)})}function uE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Zm(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var ep=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(nE(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function XB(e,t,n,r,o,i,a,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){At.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(p){var g=p.which;if([].concat(cE,[Nc,sE,gl,hl]).includes(g)){var h=i(),v=ep(h,r),y=v,C=y.elements,x=y.key2element,E=y.element2key,S=x.get(t),$=UB(S,C),O=E.get($),I=qB(e,a(O,!0).length===1,n,g);if(!I&&g!==gl&&g!==hl)return;(cE.includes(g)||[gl,hl].includes(g))&&p.preventDefault();var w=function(R){if(R){var L=R,j=R.querySelector("a");j!=null&&j.getAttribute("href")&&(L=j);var z=E.get(R);l(z),m(),d.current=At(function(){f.current===z&&L.focus()})}};if([gl,hl].includes(g)||I.sibling||!$){var N;!$||e==="inline"?N=o.current:N=GB($);var _,T=Zm(N,C);g===gl?_=T[0]:g===hl?_=T[T.length-1]:_=uE(N,C,$,I.offset),w(_)}else if(I.inlineTrigger)c(O);else if(I.offset>0)c(O,!0),m(),d.current=At(function(){v=ep(h,r);var A=$.getAttribute("aria-controls"),R=document.getElementById(A),L=uE(R,v.elements);w(L)},5);else if(I.offset<0){var M=a(O,!0),D=M[M.length-2],P=x.get(D);c(D,!1),w(P)}}u==null||u(p)}}function QB(e){Promise.resolve().then(e)}var tp="__RC_UTIL_PATH_SPLIT__",dE=function(t){return t.join(tp)},YB=function(t){return t.split(tp)},np="rc-menu-more";function JB(){var e=s.useState({}),t=ae(e,2),n=t[1],r=b.useRef(new Map),o=b.useRef(new Map),i=s.useState([]),a=ae(i,2),l=a[0],c=a[1],u=b.useRef(0),d=b.useRef(!1),f=function(){d.current||n({})},m=b.useCallback(function(x,E){process.env.NODE_ENV!=="production"&&Ue(!r.current.has(x),"Duplicated key '".concat(x,"' used in Menu by path [").concat(E.join(" > "),"]"));var S=dE(E);o.current.set(S,x),r.current.set(x,S),u.current+=1;var $=u.current;QB(function(){$===u.current&&f()})},[]),p=b.useCallback(function(x,E){var S=dE(E);o.current.delete(S),r.current.delete(x)},[]),g=b.useCallback(function(x){c(x)},[]),h=b.useCallback(function(x,E){var S=r.current.get(x)||"",$=YB(S);return E&&l.includes($[0])&&$.unshift(np),$},[l]),v=b.useCallback(function(x,E){return x.filter(function(S){return S!==void 0}).some(function(S){var $=h(S,!0);return $.includes(E)})},[h]),y=function(){var E=ge(r.current.keys());return l.length&&E.push(np),E},C=b.useCallback(function(x){var E="".concat(r.current.get(x)).concat(tp),S=new Set;return ge(o.current.keys()).forEach(function($){$.startsWith(E)&&S.add(o.current.get($))}),S},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:v,getKeyPath:h,getKeys:y,getSubPathKeys:C}}function bl(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var ZB=Math.random().toFixed(5).toString().slice(2),fE=0;function ek(e){var t=an(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){fE+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(ZB,"-").concat(fE);o("rc-menu-uuid-".concat(i))},[]),r}function mE(e,t,n,r){var o=s.useContext(kr),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function pE(e){var t=s.useContext(kr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function vE(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=s.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var tk=["item"];function Ic(e){var t=e.item,n=tt(e,tk);return Object.defineProperty(n,"item",{get:function(){return Ue(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var nk=["title","attribute","elementRef"],rk=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ok=["active"],ik=function(e){Rr(n,e);var t=Yr(n);function n(){return hn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,c=tt(o,nk),u=tn(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ue(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(ao.Item,de({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(s.Component),ak=s.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=e.warnKey,a=e.disabled,l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,p=e.onKeyDown,g=e.onFocus,h=tt(e,rk),v=rE(o),y=s.useContext(kr),C=y.prefixCls,x=y.onItemClick,E=y.disabled,S=y.overflowDisabled,$=y.itemIcon,O=y.selectedKeys,I=y.onActive,w=s.useContext(Xm),N=w._internalRenderMenuItem,_="".concat(C,"-item"),T=s.useRef(),M=s.useRef(),D=E||a,P=Qr(t,M),A=na(o);process.env.NODE_ENV!=="production"&&i&&Ue(!1,"MenuItem should not leave undefined `key`.");var R=function(oe){return{key:o,keyPath:ge(A).reverse(),item:T.current,domEvent:oe}},L=l||$,j=mE(o,D,d,f),z=j.active,B=tt(j,ok),K=O.includes(o),W=pE(A.length),k=function(oe){if(!D){var X=R(oe);m==null||m(Ic(X)),x(X)}},V=function(oe){if(p==null||p(oe),oe.which===ye.ENTER){var X=R(oe);m==null||m(Ic(X)),x(X)}},Q=function(oe){I(o),g==null||g(oe)},J={};e.role==="option"&&(J["aria-selected"]=K);var Y=s.createElement(ik,de({ref:T,elementRef:P,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&v?null:v},tn(h,["extra"]),B,J,{component:"li","aria-disabled":a,style:q(q({},W),n),className:U(_,H(H(H({},"".concat(_,"-active"),z),"".concat(_,"-selected"),K),"".concat(_,"-disabled"),D),r),onClick:k,onKeyDown:V,onFocus:Q}),c,s.createElement(vE,{props:q(q({},e),{},{isSelected:K}),icon:L}));return N&&(Y=N(Y,e,{selected:K})),Y});function lk(e,t){var n=e.eventKey,r=wc(),o=na(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(ak,de({},e,{ref:t}))}const yl=s.forwardRef(lk);var sk=["className","children"],ck=function(t,n){var r=t.className,o=t.children,i=tt(t,sk),a=s.useContext(kr),l=a.prefixCls,c=a.mode,u=a.rtl;return s.createElement("ul",de({className:U(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},rp=s.forwardRef(ck);rp.displayName="SubMenuList";function op(e,t){return _n(e).map(function(n,r){if(s.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,c=l==null;c&&(l="tmp_key-".concat([].concat(ge(t),[r]).join("-")));var u={key:l,eventKey:l};return process.env.NODE_ENV!=="production"&&c&&(u.warnKey=!0),s.cloneElement(n,u)}return n})}var Xn={adjustX:1,adjustY:1},uk={topLeft:{points:["bl","tl"],overflow:Xn},topRight:{points:["br","tr"],overflow:Xn},bottomLeft:{points:["tl","bl"],overflow:Xn},bottomRight:{points:["tr","br"],overflow:Xn},leftTop:{points:["tr","tl"],overflow:Xn},leftBottom:{points:["br","bl"],overflow:Xn},rightTop:{points:["tl","tr"],overflow:Xn},rightBottom:{points:["bl","br"],overflow:Xn}},dk={topLeft:{points:["bl","tl"],overflow:Xn},topRight:{points:["br","tr"],overflow:Xn},bottomLeft:{points:["tl","bl"],overflow:Xn},bottomRight:{points:["tr","br"],overflow:Xn},rightTop:{points:["tr","tl"],overflow:Xn},rightBottom:{points:["br","bl"],overflow:Xn},leftTop:{points:["tl","tr"],overflow:Xn},leftBottom:{points:["bl","br"],overflow:Xn}};function gE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var fk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mk(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=s.useContext(kr),m=f.getPopupContainer,p=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,v=f.builtinPlacements,y=f.triggerSubMenuAction,C=f.forceSubMenuRender,x=f.rootClassName,E=f.motion,S=f.defaultMotions,$=s.useState(!1),O=ae($,2),I=O[0],w=O[1],N=q(p?q({},dk):q({},uk),v),_=fk[u],T=gE(u,E,S),M=s.useRef(T);u!=="inline"&&(M.current=T);var D=q(q({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=s.useRef();return s.useEffect(function(){return P.current=At(function(){w(n)}),function(){At.cancel(P.current)}},[n]),s.createElement(vc,{prefixCls:t,popupClassName:U("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),p),a,x),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:_,popupVisible:I,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:C,popupMotion:D,fresh:!0},r)}function pk(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=s.useContext(kr),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,m=s.useRef(!1);m.current=f===i;var p=s.useState(!m.current),g=ae(p,2),h=g[0],v=g[1],y=m.current?n:!1;s.useEffect(function(){m.current&&v(!1)},[f]);var C=q({},gE(i,u,d));r.length>1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(E){return!m.current&&!E&&v(!0),x==null?void 0:x(E)},h?null:s.createElement(vl,{mode:i,locked:!m.current},s.createElement(lr,de({visible:y},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var S=E.className,$=E.style;return s.createElement(rp,{id:t,className:S,style:$},o)}))}var vk=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gk=["active"],hk=s.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey,a=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,p=e.popupOffset,g=e.popupStyle,h=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,C=e.onTitleClick,x=e.onTitleMouseEnter,E=e.onTitleMouseLeave,S=tt(e,vk),$=rE(i),O=s.useContext(kr),I=O.prefixCls,w=O.mode,N=O.openKeys,_=O.disabled,T=O.overflowDisabled,M=O.activeKey,D=O.selectedKeys,P=O.itemIcon,A=O.expandIcon,R=O.onItemClick,L=O.onOpenChange,j=O.onActive,z=s.useContext(Xm),B=z._internalRenderSubMenuItem,K=s.useContext(aE),W=K.isSubPathKey,k=na(),V="".concat(I,"-submenu"),Q=_||l,J=s.useRef(),Y=s.useRef();process.env.NODE_ENV!=="production"&&a&&Ue(!1,"SubMenu should not leave undefined `key`.");var te=d!=null?d:P,oe=f!=null?f:A,X=N.includes(i),F=!T&&X,ee=W(D,i),Z=mE(i,Q,x,E),ne=Z.active,re=tt(Z,gk),se=s.useState(!1),le=ae(se,2),he=le[0],fe=le[1],ie=function(Se){Q||fe(Se)},ce=function(Se){ie(!0),v==null||v({key:i,domEvent:Se})},ue=function(Se){ie(!1),y==null||y({key:i,domEvent:Se})},me=s.useMemo(function(){return ne||(w!=="inline"?he||W([M],i):!1)},[w,ne,M,he,i,W]),Ce=pE(k.length),Oe=function(Se){Q||(C==null||C({key:i,domEvent:Se}),w==="inline"&&L(i,!X))},Pe=bl(function(ve){h==null||h(Ic(ve)),R(ve)}),je=function(Se){w!=="inline"&&L(i,Se)},Ne=function(){j(i)},Ie=$&&"".concat($,"-popup"),xe=s.useMemo(function(){return s.createElement(vE,{icon:w!=="horizontal"?oe:void 0,props:q(q({},e),{},{isOpen:F,isSubMenu:!0})},s.createElement("i",{className:"".concat(V,"-arrow")}))},[w,oe,e,F,V]),be=s.createElement("div",de({role:"menuitem",style:Ce,className:"".concat(V,"-title"),tabIndex:Q?null:-1,ref:J,title:typeof o=="string"?o:null,"data-menu-id":T&&$?null:$,"aria-expanded":F,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":Q,onClick:Oe,onFocus:Ne},re),o,xe),Ee=s.useRef(w);if(w!=="inline"&&k.length>1?Ee.current="vertical":Ee.current=w,!T){var $e=Ee.current;be=s.createElement(mk,{mode:$e,prefixCls:V,visible:!c&&F&&w!=="inline",popupClassName:m,popupOffset:p,popupStyle:g,popup:s.createElement(vl,{mode:$e==="horizontal"?"vertical":$e},s.createElement(rp,{id:Ie,ref:Y},u)),disabled:Q,onVisibleChange:je},be)}var _e=s.createElement(ao.Item,de({ref:t,role:"none"},S,{component:"li",style:n,className:U(V,"".concat(V,"-").concat(w),r,H(H(H(H({},"".concat(V,"-open"),F),"".concat(V,"-active"),me),"".concat(V,"-selected"),ee),"".concat(V,"-disabled"),Q)),onMouseEnter:ce,onMouseLeave:ue}),be,!T&&s.createElement(pk,{id:Ie,open:F,keyPath:k},u));return B&&(_e=B(_e,e,{selected:ee,active:me,open:F,disabled:Q})),s.createElement(vl,{onItemClick:Pe,mode:w==="horizontal"?"vertical":w,itemIcon:te,expandIcon:oe},_e)}),Cl=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=na(n),i=op(r,o),a=wc();s.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=s.createElement(hk,de({ref:t},e),i),s.createElement(iE.Provider,{value:o},l)});process.env.NODE_ENV!=="production"&&(Cl.displayName="SubMenu");function ip(e){var t=e.className,n=e.style,r=s.useContext(kr),o=r.prefixCls,i=wc();return i?null:s.createElement("li",{role:"separator",className:U("".concat(o,"-item-divider"),t),style:n})}var bk=["className","title","eventKey","children"],yk=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=tt(e,bk),a=s.useContext(kr),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",de({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:U(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),_c=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=na(n),i=op(r,o),a=wc();return a?i:s.createElement(yk,de({ref:t},tn(e,["warnKey"])),i)});process.env.NODE_ENV!=="production"&&(_c.displayName="MenuItemGroup");var Ck=["label","children","key","type","extra"];function ap(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(l,c){if(l&&He(l)==="object"){var u=l,d=u.label,f=u.children,m=u.key,p=u.type,g=u.extra,h=tt(u,Ck),v=m!=null?m:"tmp-".concat(c);return f||p==="group"?p==="group"?s.createElement(o,de({key:v},h,{title:d}),ap(f,t,n)):s.createElement(i,de({key:v},h,{title:d}),ap(f,t,n)):p==="divider"?s.createElement(a,de({key:v},h)):s.createElement(r,de({key:v},h,{extra:g}),d,(!!g||g===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null}).filter(function(l){return l})}function hE(e,t,n,r,o){var i=e,a=q({divider:ip,item:yl,group:_c,submenu:Cl},r);return t&&(i=ap(t,a,o)),op(i,n)}var Sk=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],pi=[],xk=s.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,p=r.direction,g=r.id,h=r.mode,v=h===void 0?"vertical":h,y=r.inlineCollapsed,C=r.disabled,x=r.disabledOverflow,E=r.subMenuOpenDelay,S=E===void 0?.1:E,$=r.subMenuCloseDelay,O=$===void 0?.1:$,I=r.forceSubMenuRender,w=r.defaultOpenKeys,N=r.openKeys,_=r.activeKey,T=r.defaultActiveFirst,M=r.selectable,D=M===void 0?!0:M,P=r.multiple,A=P===void 0?!1:P,R=r.defaultSelectedKeys,L=r.selectedKeys,j=r.onSelect,z=r.onDeselect,B=r.inlineIndent,K=B===void 0?24:B,W=r.motion,k=r.defaultMotions,V=r.triggerSubMenuAction,Q=V===void 0?"hover":V,J=r.builtinPlacements,Y=r.itemIcon,te=r.expandIcon,oe=r.overflowedIndicator,X=oe===void 0?"...":oe,F=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,Z=r.onClick,ne=r.onOpenChange,re=r.onKeyDown,se=r.openAnimation,le=r.openTransitionName,he=r._internalRenderMenuItem,fe=r._internalRenderSubMenuItem,ie=r._internalComponents,ce=tt(r,Sk),ue=s.useMemo(function(){return[hE(m,f,pi,ie,i),hE(m,f,pi,{},i)]},[m,f,ie]),me=ae(ue,2),Ce=me[0],Oe=me[1],Pe=s.useState(!1),je=ae(Pe,2),Ne=je[0],Ie=je[1],xe=s.useRef(),be=ek(g),Ee=p==="rtl";process.env.NODE_ENV!=="production"&&Ue(!se&&!le,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var $e=an(w,{value:N,postState:function(bt){return bt||pi}}),_e=ae($e,2),ve=_e[0],Se=_e[1],Je=function(bt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Lt(){Se(bt),ne==null||ne(bt)}xt?tr.flushSync(Lt):Lt()},it=s.useState(ve),Ot=ae(it,2),_t=Ot[0],Ut=Ot[1],st=s.useRef(!1),Pt=s.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),mt=ae(Pt,2),et=mt[0],ke=mt[1],Me=et==="inline",Te=s.useState(et),at=ae(Te,2),ct=at[0],Le=at[1],we=s.useState(ke),ze=ae(we,2),Fe=ze[0],Ve=ze[1];s.useEffect(function(){Le(et),Ve(ke),st.current&&(Me?Se(_t):Je(pi))},[et,ke]);var Ze=s.useState(0),$t=ae(Ze,2),Ae=$t[0],Qe=$t[1],nt=Ae>=Ce.length-1||ct!=="horizontal"||x;s.useEffect(function(){Me&&Ut(ve)},[ve]),s.useEffect(function(){return st.current=!0,function(){st.current=!1}},[]);var ot=JB(),ht=ot.registerPath,Rt=ot.unregisterPath,Wt=ot.refreshOverflowKeys,yt=ot.isSubPathKey,en=ot.getKeyPath,De=ot.getKeys,Ke=ot.getSubPathKeys,Be=s.useMemo(function(){return{registerPath:ht,unregisterPath:Rt}},[ht,Rt]),Re=s.useMemo(function(){return{isSubPathKey:yt}},[yt]);s.useEffect(function(){Wt(nt?pi:Ce.slice(Ae+1).map(function(Ge){return Ge.key}))},[Ae,nt]);var lt=an(_||T&&((n=Ce[0])===null||n===void 0?void 0:n.key),{value:_}),Tt=ae(lt,2),Dt=Tt[0],Kt=Tt[1],on=bl(function(Ge){Kt(Ge)}),Gt=bl(function(){Kt(void 0)});b.useImperativeHandle(t,function(){return{list:xe.current,focus:function(bt){var xt,Lt=De(),zt=ep(Lt,be),Sn=zt.elements,Nn=zt.key2element,Hn=zt.element2key,Yn=Zm(xe.current,Sn),Jn=Dt!=null?Dt:Yn[0]?Hn.get(Yn[0]):(xt=Ce.find(function(vn){return!vn.props.disabled}))===null||xt===void 0?void 0:xt.key,ut=Nn.get(Jn);if(Jn&&ut){var dt;ut==null||(dt=ut.focus)===null||dt===void 0||dt.call(ut,bt)}}}});var Ye=an(R||[],{value:L,postState:function(bt){return Array.isArray(bt)?bt:bt==null?pi:[bt]}}),ft=ae(Ye,2),jt=ft[0],Cn=ft[1],fn=function(bt){if(D){var xt=bt.key,Lt=jt.includes(xt),zt;A?Lt?zt=jt.filter(function(Nn){return Nn!==xt}):zt=[].concat(ge(jt),[xt]):zt=[xt],Cn(zt);var Sn=q(q({},bt),{},{selectedKeys:zt});Lt?z==null||z(Sn):j==null||j(Sn)}!A&&ve.length&&ct!=="inline"&&Je(pi)},Ln=bl(function(Ge){Z==null||Z(Ic(Ge)),fn(Ge)}),yr=bl(function(Ge,bt){var xt=ve.filter(function(zt){return zt!==Ge});if(bt)xt.push(Ge);else if(ct!=="inline"){var Lt=Ke(Ge);xt=xt.filter(function(zt){return!Lt.has(zt)})}Jr(ve,xt,!0)||Je(xt,!0)}),Cr=function(bt,xt){var Lt=xt!=null?xt:!ve.includes(bt);yr(bt,Lt)},zn=XB(ct,Dt,Ee,be,xe,De,en,Kt,Cr,re);s.useEffect(function(){Ie(!0)},[]);var Dr=s.useMemo(function(){return{_internalRenderMenuItem:he,_internalRenderSubMenuItem:fe}},[he,fe]),cr=ct!=="horizontal"||x?Ce:Ce.map(function(Ge,bt){return s.createElement(vl,{key:Ge.key,overflowDisabled:bt>Ae},Ge)}),Nt=s.createElement(ao,de({id:g,ref:xe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:yl,className:U(i,"".concat(i,"-root"),"".concat(i,"-").concat(ct),c,H(H({},"".concat(i,"-inline-collapsed"),Fe),"".concat(i,"-rtl"),Ee),a),dir:p,style:l,role:"menu",tabIndex:d,data:cr,renderRawItem:function(bt){return bt},renderRawRest:function(bt){var xt=bt.length,Lt=xt?Ce.slice(-xt):null;return s.createElement(Cl,{eventKey:np,title:X,disabled:nt,internalPopupClose:xt===0,popupClassName:F},Lt)},maxCount:ct!=="horizontal"||x?ao.INVALIDATE:ao.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(bt){Qe(bt)},onKeyDown:zn},ce));return s.createElement(Xm.Provider,{value:Dr},s.createElement(tE.Provider,{value:be},s.createElement(vl,{prefixCls:i,rootClassName:a,mode:ct,openKeys:ve,rtl:Ee,disabled:C,motion:Ne?W:null,defaultMotions:Ne?k:null,activeKey:Dt,onActive:on,onInactive:Gt,selectedKeys:jt,inlineIndent:K,subMenuOpenDelay:S,subMenuCloseDelay:O,forceSubMenuRender:I,builtinPlacements:J,triggerSubMenuAction:Q,getPopupContainer:ee,itemIcon:Y,expandIcon:te,onItemClick:Ln,onOpenChange:yr},s.createElement(aE.Provider,{value:Re},Nt),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(oE.Provider,{value:Be},Oe)))))}),ra=xk;ra.Item=yl,ra.SubMenu=Cl,ra.ItemGroup=_c,ra.Divider=ip;const bE=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Ek=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:G(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},yE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},CE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],SE=Mt("Layout",e=>[Ek(e)],yE,{deprecatedTokens:CE}),$k=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:p,lightTriggerColor:g,lightTriggerBg:h,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:G(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${G(m)} ${G(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${G(m)} 0 0 ${G(m)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:g,background:h},[`${t}-zero-width-trigger`]:{color:g,background:h,border:`1px solid ${v}`,borderInlineStart:0}}}}},wk=Mt(["Layout","Sider"],e=>[$k(e)],yE,{deprecatedTokens:CE});var Ok=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Nk=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),Pc=s.createContext({}),Ik=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),EE=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:p,breakpoint:g,onCollapse:h,onBreakpoint:v}=e,y=Ok(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=b.useContext(bE),[x,E]=b.useState("collapsed"in e?e.collapsed:a),[S,$]=b.useState(!1);b.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const O=(Y,te)=>{"collapsed"in e||E(Y),h==null||h(Y,te)},{getPrefixCls:I,direction:w}=b.useContext(Xe),N=I("layout-sider",n),[_,T,M]=wk(N),D=b.useRef(null);D.current=Y=>{$(Y.matches),v==null||v(Y.matches),x!==Y.matches&&O(Y.matches,"responsive")},b.useEffect(()=>{function Y(oe){var X;return(X=D.current)===null||X===void 0?void 0:X.call(D,oe)}let te;return typeof(window==null?void 0:window.matchMedia)!="undefined"&&g&&g in xE&&(te=window.matchMedia(`screen and (max-width: ${xE[g]})`),Lx(te,Y),Y(te)),()=>{zx(te,Y)}},[g]),b.useEffect(()=>{const Y=Ik("ant-sider-");return C.addSider(Y),()=>C.removeSider(Y)},[]);const P=()=>{O(!x,"clickTrigger")},A=tn(y,["collapsed"]),R=x?m:f,L=Nk(R)?`${R}px`:String(R),j=parseFloat(String(m||0))===0?s.createElement("span",{onClick:P,className:U(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${d?"right":"left"}`),style:p},o||s.createElement(v_,null)):null,z=w==="rtl"==!d,W={expanded:z?s.createElement(Da,null):s.createElement(Ma,null),collapsed:z?s.createElement(Ma,null):s.createElement(Da,null)}[x?"collapsed":"expanded"],k=o!==null?j||s.createElement("div",{className:`${N}-trigger`,onClick:P,style:{width:L}},o||W):null,V=Object.assign(Object.assign({},c),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),Q=U(N,`${N}-${l}`,{[`${N}-collapsed`]:!!x,[`${N}-has-trigger`]:u&&o!==null&&!j,[`${N}-below`]:!!S,[`${N}-zero-width`]:parseFloat(L)===0},r,T,M),J=s.useMemo(()=>({siderCollapsed:x}),[x]);return _(s.createElement(Pc.Provider,{value:J},s.createElement("aside",Object.assign({className:Q},A,{style:V,ref:t}),s.createElement("div",{className:`${N}-children`},i),u||S&&j?k:null)))});process.env.NODE_ENV!=="production"&&(EE.displayName="Sider");const $E=EE,Tc=b.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var _k=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wE=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=_k(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(Xe),a=i("menu",t),l=U({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(ip,Object.assign({className:l},o))},OE=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=s.useContext(Tc),p=x=>{const E=r==null?void 0:r[0],S=s.createElement("span",{className:U(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!o||s.isValidElement(r)&&r.type==="span")&&r&&x&&u&&typeof E=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},E.charAt(0)):S},{siderCollapsed:g}=s.useContext(Pc);let h=i;typeof i=="undefined"?h=u?r:"":i===!1&&(h="");const v={title:h};!g&&!m&&(v.title=null,v.open=!1);const y=_n(r).length;let C=s.createElement(yl,Object.assign({},tn(e,["title","icon","danger"]),{className:U({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(o?y+1:y)===1},n),title:typeof i=="string"?i:void 0}),Gn(o,{className:U(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),p(m));return f||(C=s.createElement(lo,Object.assign({},v,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Pk=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mc=s.createContext(null),NE=s.forwardRef((e,t)=>{const{children:n}=e,r=Pk(e,["children"]),o=s.useContext(Mc),i=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=D2(n),l=Qr(t,a?Do(n):null);return s.createElement(Mc.Provider,{value:i},s.createElement(Ki,{space:!0},a?s.cloneElement(n,{ref:l}):n))}),Tk=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
241
|
+
> ${t}-item-active,
|
|
242
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Mk=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
|
|
243
|
+
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},IE=e=>Object.assign({},zr(e)),_E=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:C,lineType:x,colorSplit:E,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:O,dangerItemSelectedColor:I,dangerItemActiveBg:w,dangerItemSelectedBg:N,popupBg:_,itemHoverBg:T,itemActiveBg:M,menuSubMenuBg:D,horizontalItemSelectedColor:P,horizontalItemSelectedBg:A,horizontalItemBorderRadius:R,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},IE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},IE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:N}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${G(d)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:d,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:d,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(m)} ${x} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(",")}}}}}},PE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
|
|
244
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:G(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
245
|
+
${t}-submenu-title`]:{paddingInlineEnd:d}}},Dk=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:h,collapsedIconSize:v}=e,y={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},PE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},PE(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${G(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
246
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
247
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
248
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G(e.calc(v).div(2).equal())} - ${G(u)})`,textOverflow:"clip",[`
|
|
249
|
+
${t}-submenu-arrow,
|
|
250
|
+
${t}-submenu-expand-icon
|
|
251
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Co),{paddingInline:p})}}]},TE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Qa()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ME=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(a)})`}}}}},Ak=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:h,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},So()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),So()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(l)} ${G(c)}`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),TE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},TE(e)),ME(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),ME(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
252
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(h)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Rk=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:p,lineWidthBold:g,controlItemBgActive:h,colorBgTextHover:v,controlHeightLG:y,lineHeight:C,colorBgElevated:x,marginXXS:E,padding:S,fontSize:$,controlHeightSM:O,fontSizeLG:I,colorTextLightSolid:w,colorErrorHover:N}=e,_=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,T=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Bt(w).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:T,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:C,collapsedWidth:y*2,popupBg:x,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${y*1.15}px`,iconSize:$,iconMarginInlineEnd:O-$,collapsedIconSize:I,groupTitleFontSize:$,darkItemDisabledColor:new Bt(w).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:w,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${T}px)`:`calc(100% - ${M*2}px)`}},jk=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Mt("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:h,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:S,popupBg:$,darkPopupBg:O}=o,I=o.calc(l).div(7).mul(5).equal(),w=St(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:$}),N=St(w,{itemColor:c,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:O,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[Ak(w),Tk(w),Dk(w),_E(w,"light"),_E(N,"dark"),Mk(w),Ff(w),ko(w,"slide-up"),ko(w,"slide-down"),tl(w,"zoom-big")]},Rk,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},DE=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(Tc),{prefixCls:l,inlineCollapsed:c,theme:u}=a,d=na();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const g=s.isValidElement(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Gn(r,{className:U(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=zi("Menu");return s.createElement(Tc.Provider,{value:m},s.createElement(Cl,Object.assign({},tn(e,["icon"]),{title:f,popupClassName:U(l,n,`${l}-${i||u}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var Lk=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lp(e){return e===null||e===!1}const zk={item:OE,submenu:DE,divider:wE},Bk=b.forwardRef((e,t)=>{var n;const r=s.useContext(Mc),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:c}=s.useContext(Xe),u=i(),{prefixCls:d,className:f,style:m,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:y,rootClassName:C,mode:x,selectable:E,onClick:S,overflowedIndicatorPopupClassName:$}=e,O=Lk(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=tn(O,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const K=vt("Menu");process.env.NODE_ENV!=="production"&&K(!("inlineCollapsed"in e&&x!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),K.deprecated("items"in e&&!e.children,"children","items")}(n=o.validator)===null||n===void 0||n.call(o,{mode:x});const w=qt(function(){var K;S==null||S.apply(void 0,arguments),(K=o.onClick)===null||K===void 0||K.call(o)}),N=o.mode||x,_=E!=null?E:o.selectable,T=v!=null?v:y,M={horizontal:{motionName:`${u}-slide-up`},inline:Xs(u),other:{motionName:`${u}-zoom-big`}},D=i("menu",d||o.prefixCls),P=wn(D),[A,R,L]=jk(D,P,!r),j=U(`${D}-${p}`,c==null?void 0:c.className,f),z=s.useMemo(()=>{var K,W;if(typeof g=="function"||lp(g))return g||null;if(typeof o.expandIcon=="function"||lp(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||lp(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const k=(K=g!=null?g:o==null?void 0:o.expandIcon)!==null&&K!==void 0?K:c==null?void 0:c.expandIcon;return Gn(k,{className:U(`${D}-submenu-expand-icon`,s.isValidElement(k)?(W=k.props)===null||W===void 0?void 0:W.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,D]),B=s.useMemo(()=>({prefixCls:D,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:p,mode:N,disableMenuItemTitleTooltip:h}),[D,T,l,h,p]);return A(s.createElement(Mc.Provider,{value:null},s.createElement(Tc.Provider,{value:B},s.createElement(ra,Object.assign({getPopupContainer:a,overflowedIndicator:s.createElement(Ad,null),overflowedIndicatorPopupClassName:U(D,`${D}-${p}`,$),mode:N,selectable:_,onClick:w},I,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:j,prefixCls:D,direction:l,defaultMotions:M,expandIcon:z,ref:t,rootClassName:U(C,R,o.rootClassName,L,P),_internalComponents:zk})))))}),oa=b.forwardRef((e,t)=>{const n=b.useRef(null),r=s.useContext(Pc);return b.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(Bk,Object.assign({ref:n},e,r))});oa.Item=OE,oa.SubMenu=DE,oa.Divider=wE,oa.ItemGroup=_c,process.env.NODE_ENV!=="production"&&(oa.displayName="Menu");const AE=oa,kk=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Fk=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
253
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
254
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
255
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
256
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
257
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Hf},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
258
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
259
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
260
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
261
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
262
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Wf},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
263
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
264
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vf},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
265
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
266
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Kf}}},qm(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Ht(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Or(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${G(u)} ${G(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Or(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ko(e,"slide-up"),ko(e,"slide-down"),ec(e,"move-up"),ec(e,"move-down"),tl(e,"zoom-big")]]},Hk=Mt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=St(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Fk(i),kk(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Ec({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Km(e)),{resetStyle:!1}),Dc=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:p,open:g,onOpenChange:h,visible:v,onVisibleChange:y,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:E=!0,placement:S="",overlay:$,transitionName:O,destroyOnHidden:I,destroyPopupOnHide:w}=e,{getPopupContainer:N,getPrefixCls:_,direction:T,dropdown:M}=s.useContext(Xe),D=u||c,P=vt("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({visible:"open",onVisibleChange:"onOpenChange",overlay:"menu",dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden"}).forEach(he=>{let[fe,ie]=he;P.deprecated(!(fe in e),fe,ie)}),S.includes("Center")&&P.deprecated(!S.includes("Center"),`placement: ${S}`,`placement: ${S.slice(0,S.indexOf("Center"))}`));const A=s.useMemo(()=>{const le=_();return O!==void 0?O:S.includes("top")?`${le}-slide-down`:`${le}-slide-up`},[_,S,O]),R=s.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:T==="rtl"?"bottomRight":"bottomLeft",[S,T]),L=_("dropdown",o),j=wn(L),[z,B,K]=Hk(L,j),[,W]=Fn(),k=s.Children.only(FB(i)?s.createElement("span",null,i):i),V=Gn(k,{className:U(`${L}-trigger`,{[`${L}-rtl`]:T==="rtl"},k.props.className),disabled:(t=k.props.disabled)!==null&&t!==void 0?t:l}),Q=l?[]:a,J=!!(Q!=null&&Q.includes("contextMenu")),[Y,te]=an(!1,{value:g!=null?g:v}),oe=qt(le=>{h==null||h(le,{source:"trigger"}),y==null||y(le),te(le)}),X=U(f,m,B,K,j,M==null?void 0:M.className,{[`${L}-rtl`]:T==="rtl"}),F=Kx({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:W.marginXXS,arrowWidth:r?W.sizePopupArrow:0,borderRadius:W.borderRadius}),ee=s.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),te(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),Z=()=>{let le;return n!=null&&n.items?le=s.createElement(AE,Object.assign({},n)):typeof $=="function"?le=$():le=$,D&&(le=D(le)),le=s.Children.only(typeof le=="string"?s.createElement("span",null,le):le),s.createElement(NE,{prefixCls:`${L}-menu`,rootClassName:U(K,j),expandIcon:s.createElement("span",{className:`${L}-menu-submenu-arrow`},T==="rtl"?s.createElement(Ma,{className:`${L}-menu-submenu-arrow-icon`}):s.createElement(Da,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:he=>{let{mode:fe}=he;process.env.NODE_ENV!=="production"&&P(!fe||fe==="vertical","usage",`mode="${fe}" is not supported for Dropdown's Menu.`)}},le)},[ne,re]=zi("Dropdown",p==null?void 0:p.zIndex);let se=s.createElement(eE,Object.assign({alignPoint:J},tn(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:Y,builtinPlacements:F,arrow:!!r,overlayClassName:X,prefixCls:L,getPopupContainer:d||N,transitionName:A,trigger:Q,overlay:Z,placement:R,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:ne}),autoDestroy:I!=null?I:w}),V);return ne&&(se=s.createElement(Ya.Provider,{value:re},se)),z(se)},Vk=kS(Dc,"align",void 0,"dropdown",e=>e),Wk=e=>s.createElement(Vk,Object.assign({},e),s.createElement("span",null));Dc._InternalPanelDoNotUseOrYouWillBeFired=Wk,process.env.NODE_ENV!=="production"&&(Dc.displayName="Dropdown");const RE=Dc,jE=s.createContext(null),Kk=jE.Provider,LE=s.createContext(null),qk=LE.Provider;var Gk=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],zE=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,p=e.onChange,g=tt(e,Gk),h=b.useRef(null),v=b.useRef(null),y=an(u,{value:a}),C=ae(y,2),x=C[0],E=C[1];b.useImperativeHandle(t,function(){return{focus:function(I){var w;(w=h.current)===null||w===void 0||w.focus(I)},blur:function(){var I;(I=h.current)===null||I===void 0||I.blur()},input:h.current,nativeElement:v.current}});var S=U(r,o,H(H({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),$=function(I){l||("checked"in e||E(I.target.checked),p==null||p({target:q(q({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return s.createElement("span",{className:S,title:m,style:i,ref:v},s.createElement("input",de({},g,{className:"".concat(r,"-input"),ref:h,onChange:$,disabled:l,checked:!!x,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});function BE(e){const t=b.useRef(null),n=()=>{At.cancel(t.current),t.current=null};return[()=>{n(),t.current=At(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const Uk=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ht(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Xk=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:p,dotColorDisabled:g,lineType:h,radioColor:v,radioBgColor:y,calc:C}=e,x=`${t}-inner`,E=4,S=C(o).sub(C(E).mul(2)),$=C(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ht(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
267
|
+
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},zr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:C(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${C(S).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},Qk=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:p,controlHeightSM:g,paddingXS:h,borderRadius:v,borderRadiusSM:y,borderRadiusLG:C,buttonCheckedBg:x,buttonSolidCheckedColor:E,colorTextDisabled:S,colorBgContainerDisabled:$,buttonCheckedBgDisabled:O,buttonCheckedColorDisabled:I,colorPrimary:w,colorPrimaryHover:N,colorPrimaryActive:_,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:D,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(P(n).sub(P(o).mul(2)).equal()),background:f,border:`${G(o)} ${i} ${a}`,borderBlockStartWidth:P(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(o).mul(-1).equal(),insetInlineStart:P(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:m,lineHeight:G(P(p).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${r}-group-small &`]:{height:g,paddingInline:P(h).sub(o).equal(),paddingBlock:0,lineHeight:G(P(g).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},zr(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:x,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:T,borderColor:T,"&:hover":{color:E,background:M,borderColor:M},"&:active":{color:E,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:O,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},kE=Mt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,i=St(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Uk(i),Xk(i),Qk(i)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:p,colorWhite:g}=e,h=4,v=i,y=t?v-h*2:v-(h+o)*2;return{radioSize:v,dotSize:y,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?l:f}},{unitless:{radioSize:!0,dotSize:!0}});var Yk=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jk=(e,t)=>{var n,r;const o=s.useContext(jE),i=s.useContext(LE),{getPrefixCls:a,direction:l,radio:c}=s.useContext(Xe),u=s.useRef(null),d=Vn(t,u),{isFormItemInput:f}=s.useContext(Un);if(process.env.NODE_ENV!=="production"){const A=vt("Radio");process.env.NODE_ENV!=="production"&&A(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const m=A=>{var R,L;(R=e.onChange)===null||R===void 0||R.call(e,A),(L=o==null?void 0:o.onChange)===null||L===void 0||L.call(o,A)},{prefixCls:p,className:g,rootClassName:h,children:v,style:y,title:C}=e,x=Yk(e,["prefixCls","className","rootClassName","children","style","title"]),E=a("radio",p),S=((o==null?void 0:o.optionType)||i)==="button",$=S?`${E}-button`:E,O=wn(E),[I,w,N]=kE(E,O),_=Object.assign({},x),T=s.useContext(no);o&&(_.name=o.name,_.onChange=m,_.checked=e.value===o.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:o.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:T;const M=U(`${$}-wrapper`,{[`${$}-wrapper-checked`]:_.checked,[`${$}-wrapper-disabled`]:_.disabled,[`${$}-wrapper-rtl`]:l==="rtl",[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,g,h,w,N,O),[D,P]=BE(_.onClick);return I(s.createElement(el,{component:"Radio",disabled:_.disabled},s.createElement("label",{className:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:D},s.createElement(zE,Object.assign({},_,{className:U(_.className,{[Qs]:!S}),type:"radio",prefixCls:$,ref:d,onClick:P})),v!==void 0?s.createElement("span",{className:`${$}-label`},v):null)))},FE=s.forwardRef(Jk);process.env.NODE_ENV!=="production"&&(FE.displayName="Radio");const Ac=FE,Zk=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Xe),o=sc(),{prefixCls:i,className:a,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:m,style:p,id:g,optionType:h,name:v=o,defaultValue:y,value:C,block:x=!1,onChange:E,onMouseEnter:S,onMouseLeave:$,onFocus:O,onBlur:I}=e,[w,N]=an(y,{value:C}),_=s.useCallback(K=>{const W=w,k=K.target.value;"value"in e||N(k),k!==W&&(E==null||E(K))},[w,N,E]),T=n("radio",i),M=`${T}-group`,D=wn(T),[P,A,R]=kE(T,D);let L=f;c&&c.length>0&&(L=c.map(K=>typeof K=="string"||typeof K=="number"?s.createElement(Ac,{key:K.toString(),prefixCls:T,disabled:d,value:K,checked:w===K},K):s.createElement(Ac,{key:`radio-group-value-options-${K.value}`,prefixCls:T,disabled:K.disabled||d,value:K.value,checked:w===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const j=Kn(m),z=U(M,`${M}-${u}`,{[`${M}-${j}`]:j,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:x},a,l,A,R,D),B=s.useMemo(()=>({onChange:_,value:w,disabled:d,name:v,optionType:h,block:x}),[_,w,d,v,h,x]);return P(s.createElement("div",Object.assign({},An(e,{aria:!0,data:!0}),{className:z,style:p,onMouseEnter:S,onMouseLeave:$,onFocus:O,onBlur:I,id:g,ref:t}),s.createElement(Kk,{value:B},L)))}),e5=s.memo(Zk);var t5=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n5=(e,t)=>{const{getPrefixCls:n}=s.useContext(Xe),{prefixCls:r}=e,o=t5(e,["prefixCls"]),i=n("radio",r);return s.createElement(qk,{value:"button"},s.createElement(Ac,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},r5=s.forwardRef(n5),Rc=Ac;Rc.Button=r5,Rc.Group=e5,Rc.__ANT_RADIO=!0;const gr=Rc;function Sl(e){return St(e,{inputAffixPadding:e.paddingXXS})}const xl=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:g,controlOutlineWidth:h,controlOutline:v,colorErrorOutline:y,colorWarningOutline:C,colorBgContainer:x,inputFontSize:E,inputFontSizeLG:S,inputFontSizeSM:$}=e,O=E||n,I=$||O,w=S||l,N=Math.round((t-O*r)/2*10)/10-o,_=Math.round((i-I*r)/2*10)/10-o,T=Math.ceil((a-w*c)/2*10)/10-o;return{paddingBlock:Math.max(N,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(T,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${v}`,errorActiveShadow:`0 0 0 ${h}px ${y}`,warningActiveShadow:`0 0 0 ${h}px ${C}`,hoverBg:x,activeBg:x,inputFontSize:O,inputFontSizeLG:w,inputFontSizeSM:I}},o5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),jc=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o5(St(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),sp=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),HE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),i5=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jc(e))}),HE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),HE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),VE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),a5=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},VE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),VE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},jc(e))}})}),l5=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},WE=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},KE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},WE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),s5=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jc(e))}),KE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),KE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),qE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),c5=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},qE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),qE(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),GE=(e,t)=>({background:e.colorBgContainer,borderWidth:`${G(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),UE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},GE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),u5=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),UE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),UE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),d5=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),XE=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${G(t)} ${G(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},cp=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),up=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},d5(e.colorTextPlaceholder)),{"&-lg":Object.assign({},XE(e)),"&-sm":Object.assign({},cp(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),f5=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},XE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cp(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},So()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
268
|
+
& > ${t}-affix-wrapper,
|
|
269
|
+
& > ${t}-number-affix-wrapper,
|
|
270
|
+
& > ${n}-picker-range
|
|
271
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
272
|
+
& > ${n}-select-auto-complete ${t},
|
|
273
|
+
& > ${n}-cascader-picker ${t},
|
|
274
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
275
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
276
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
277
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
278
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
279
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
280
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},m5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=16,a=o(n).sub(o(r).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),up(e)),i5(e)),s5(e)),l5(e)),u5(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},p5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},v5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},up(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),p5(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},g5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ht(e)),f5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},a5(e)),c5(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},h5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
281
|
+
> ${t},
|
|
282
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},b5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},QE=Mt(["Input","Shared"],e=>{const t=St(e,Sl(e));return[m5(t),v5(t)]},xl,{resetFont:!1}),YE=Mt(["Input","Component"],e=>{const t=St(e,Sl(e));return[g5(t),h5(t),b5(t),Uf(t)]},xl,{resetFont:!1}),Lc=b.createContext(null);var y5=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,c=a.align,u=c===void 0?"center":c,d=b.useState(),f=ae(d,2),m=f[0],p=f[1],g=b.useRef(),h=b.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function v(){At.cancel(g.current)}return b.useEffect(function(){var y={};if(n)if(r){y.width=h(n.width);var C=o?"right":"left";u==="start"&&(y[C]=n[C]),u==="center"&&(y[C]=n[C]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[C]=n[C]+n.width,y.transform="translateX(-100%)")}else y.height=h(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),g.current=At(function(){var x=m&&y&&Object.keys(y).every(function(E){var S=y[E],$=m[E];return typeof S=="number"&&typeof $=="number"?Math.round(S)===Math.round($):S===$});x||p(y)}),v},[JSON.stringify(n),r,o,u,h]),{style:m}},JE={width:0,height:0,left:0,top:0};function C5(e,t,n){return b.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||JE,a=i.left+i.width,l=0;l<e.length;l+=1){var c=e[l].key,u=t.get(c);if(!u){var d;u=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||JE}var f=o.get(c)||q({},u);f.right=a-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function ZE(e,t){var n=s.useRef(e),r=s.useState({}),o=ae(r,2),i=o[1];function a(l){var c=typeof l=="function"?l(n.current):l;c!==n.current&&t(c,n.current),n.current=c,i({})}return[n.current,a]}var S5=.1,e$=.01,zc=20,t$=Math.pow(.995,zc);function x5(e,t){var n=b.useState(),r=ae(n,2),o=r[0],i=r[1],a=b.useState(0),l=ae(a,2),c=l[0],u=l[1],d=b.useState(0),f=ae(d,2),m=f[0],p=f[1],g=b.useState(),h=ae(g,2),v=h[0],y=h[1],C=b.useRef();function x(w){var N=w.touches[0],_=N.screenX,T=N.screenY;i({x:_,y:T}),window.clearInterval(C.current)}function E(w){if(o){var N=w.touches[0],_=N.screenX,T=N.screenY;i({x:_,y:T});var M=_-o.x,D=T-o.y;t(M,D);var P=Date.now();u(P),p(P-c),y({x:M,y:D})}}function S(){if(o&&(i(null),y(null),v)){var w=v.x/m,N=v.y/m,_=Math.abs(w),T=Math.abs(N);if(Math.max(_,T)<S5)return;var M=w,D=N;C.current=window.setInterval(function(){if(Math.abs(M)<e$&&Math.abs(D)<e$){window.clearInterval(C.current);return}M*=t$,D*=t$,t(M*zc,D*zc)},zc)}}var $=b.useRef();function O(w){var N=w.deltaX,_=w.deltaY,T=0,M=Math.abs(N),D=Math.abs(_);M===D?T=$.current==="x"?N:_:M>D?(T=N,$.current="x"):(T=_,$.current="y"),t(-T,-T)&&w.preventDefault()}var I=b.useRef(null);I.current={onTouchStart:x,onTouchMove:E,onTouchEnd:S,onWheel:O},s.useEffect(function(){function w(M){I.current.onTouchStart(M)}function N(M){I.current.onTouchMove(M)}function _(M){I.current.onTouchEnd(M)}function T(M){I.current.onWheel(M)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",_,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",_)}},[])}function n$(e){var t=b.useState(0),n=ae(t,2),r=n[0],o=n[1],i=b.useRef(0),a=b.useRef();return a.current=e,Xd(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function E5(e){var t=b.useRef([]),n=b.useState({}),r=ae(n,2),o=r[1],i=b.useRef(typeof e=="function"?e():e),a=n$(function(){var c=i.current;t.current.forEach(function(u){c=u(c)}),t.current=[],i.current=c,o({})});function l(c){t.current.push(c),a()}return[i.current,l]}var r$={width:0,height:0,left:0,top:0,right:0};function $5(e,t,n,r,o,i,a){var l=a.tabs,c=a.tabPosition,u=a.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),b.useMemo(function(){if(!l.length)return[0,0];for(var p=l.length,g=p,h=0;h<p;h+=1){var v=e.get(l[h].key)||r$;if(Math.floor(v[f]+v[d])>Math.floor(m+t)){g=h-1;break}}for(var y=0,C=p-1;C>=0;C-=1){var x=e.get(l[C].key)||r$;if(x[f]<m){y=C+1;break}}return y>=g?[0,0]:[y,g]},[e,t,r,o,i,m,c,l.map(function(p){return p.key}).join("_"),u])}function o$(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var w5="TABS_DQ";function i$(e){return String(e).replace(/"/g,w5)}function dp(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var a$=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),fp=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return He(o)==="object"&&!s.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});process.env.NODE_ENV!=="production"&&(fp.displayName="ExtraContent");var O5=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,p=e.rtl,g=e.removeAriaLabel,h=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,C=b.useState(!1),x=ae(C,2),E=x[0],S=x[1],$=b.useState(null),O=ae($,2),I=O[0],w=O[1],N=c.icon,_=N===void 0?"More":N,T="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),D=I!==null?"".concat(T,"-").concat(I):null,P=i==null?void 0:i.dropdownAriaLabel;function A(W,k){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:k,event:W})}var R=s.createElement(ra,{onClick:function(k){var V=k.key,Q=k.domEvent;h(V,Q),S(!1)},prefixCls:"".concat(M,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[I],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(W){var k=W.closable,V=W.disabled,Q=W.closeIcon,J=W.key,Y=W.label,te=dp(k,Q,f,V);return s.createElement(yl,{key:J,id:"".concat(T,"-").concat(J),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(J),disabled:V},s.createElement("span",null,Y),te&&s.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(X){X.stopPropagation(),A(X,J)}},Q||f.removeIcon||"×"))}));function L(W){for(var k=o.filter(function(te){return!te.disabled}),V=k.findIndex(function(te){return te.key===I})||0,Q=k.length,J=0;J<Q;J+=1){V=(V+W+Q)%Q;var Y=k[V];if(!Y.disabled){w(Y.key);return}}}function j(W){var k=W.which;if(!E){[ye.DOWN,ye.SPACE,ye.ENTER].includes(k)&&(S(!0),W.preventDefault());return}switch(k){case ye.UP:L(-1),W.preventDefault();break;case ye.DOWN:L(1),W.preventDefault();break;case ye.ESC:S(!1);break;case ye.SPACE:case ye.ENTER:I!==null&&h(I,W);break}}b.useEffect(function(){var W=document.getElementById(D);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[I]),b.useEffect(function(){E||w(null)},[E]);var z=H({},p?"marginRight":"marginLeft",m);o.length||(z.visibility="hidden",z.order=1);var B=U(H({},"".concat(M,"-rtl"),p)),K=a?null:s.createElement(eE,de({prefixCls:M,overlay:R,visible:o.length?E:!1,onVisibleChange:S,overlayClassName:U(B,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},c),s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,"aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:j},_));return s.createElement("div",{className:U("".concat(n,"-nav-operations"),d),style:u,ref:t},K,s.createElement(a$,{prefixCls:n,locale:i,editable:f}))});const N5=s.memo(O5,function(e,t){return t.tabMoving});var I5=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,a=t.tab,l=a.key,c=a.label,u=a.disabled,d=a.closeIcon,f=a.icon,m=t.closable,p=t.renderWrapper,g=t.removeAriaLabel,h=t.editable,v=t.onClick,y=t.onFocus,C=t.onBlur,x=t.onKeyDown,E=t.onMouseDown,S=t.onMouseUp,$=t.style,O=t.tabCount,I=t.currentPosition,w="".concat(n,"-tab"),N=dp(m,d,h,u);function _(A){u||v(A)}function T(A){A.preventDefault(),A.stopPropagation(),h.onEdit("remove",{key:l,event:A})}var M=s.useMemo(function(){return f&&typeof c=="string"?s.createElement("span",null,c):c},[c,f]),D=s.useRef(null);s.useEffect(function(){i&&D.current&&D.current.focus()},[i]);var P=s.createElement("div",{key:l,"data-node-key":i$(l),className:U(w,H(H(H(H({},"".concat(w,"-with-remove"),N),"".concat(w,"-active"),o),"".concat(w,"-disabled"),u),"".concat(w,"-focus"),i)),style:$,onClick:_},s.createElement("div",{ref:D,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(w,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(R){R.stopPropagation(),_(R)},onKeyDown:x,onMouseDown:E,onMouseUp:S,onFocus:y,onBlur:C},i&&s.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(I," of ").concat(O)),f&&s.createElement("span",{className:"".concat(w,"-icon")},f),c&&M),N&&s.createElement("button",{type:"button",role:"tab","aria-label":g||"remove",tabIndex:o?0:-1,className:"".concat(w,"-remove"),onClick:function(R){R.stopPropagation(),T(R)}},d||h.removeIcon||"×"));return p?p(P):P},_5=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),c=l.width,u=l.height,d=l.left,f=l.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,a,i]},ia=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var l=t.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-o)<1)return[c,u]}return[o,a]},Bc=function(t,n){return t[n?0:1]},l$=s.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,p=e.children,g=e.onTabClick,h=e.onTabScroll,v=e.indicator,y=s.useContext(Lc),C=y.prefixCls,x=y.tabs,E=b.useRef(null),S=b.useRef(null),$=b.useRef(null),O=b.useRef(null),I=b.useRef(null),w=b.useRef(null),N=b.useRef(null),_=f==="top"||f==="bottom",T=ZE(0,function(Be,Re){_&&h&&h({direction:Be>Re?"left":"right"})}),M=ae(T,2),D=M[0],P=M[1],A=ZE(0,function(Be,Re){!_&&h&&h({direction:Be>Re?"top":"bottom"})}),R=ae(A,2),L=R[0],j=R[1],z=b.useState([0,0]),B=ae(z,2),K=B[0],W=B[1],k=b.useState([0,0]),V=ae(k,2),Q=V[0],J=V[1],Y=b.useState([0,0]),te=ae(Y,2),oe=te[0],X=te[1],F=b.useState([0,0]),ee=ae(F,2),Z=ee[0],ne=ee[1],re=E5(new Map),se=ae(re,2),le=se[0],he=se[1],fe=C5(x,le,Q[0]),ie=Bc(K,_),ce=Bc(Q,_),ue=Bc(oe,_),me=Bc(Z,_),Ce=Math.floor(ie)<Math.floor(ce+ue),Oe=Ce?ie-me:ie-ue,Pe="".concat(C,"-nav-operations-hidden"),je=0,Ne=0;_&&l?(je=0,Ne=Math.max(0,ce-Oe)):(je=Math.min(0,Oe-ce),Ne=0);function Ie(Be){return Be<je?je:Be>Ne?Ne:Be}var xe=b.useRef(null),be=b.useState(),Ee=ae(be,2),$e=Ee[0],_e=Ee[1];function ve(){_e(Date.now())}function Se(){xe.current&&clearTimeout(xe.current)}x5(O,function(Be,Re){function lt(Tt,Dt){Tt(function(Kt){var on=Ie(Kt+Dt);return on})}return Ce?(_?lt(P,Be):lt(j,Re),Se(),ve(),!0):!1}),b.useEffect(function(){return Se(),$e&&(xe.current=setTimeout(function(){_e(0)},100)),Se},[$e]);var Je=$5(fe,Oe,_?D:L,ce,ue,me,q(q({},e),{},{tabs:x})),it=ae(Je,2),Ot=it[0],_t=it[1],Ut=qt(function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Re=fe.get(Be)||{width:0,height:0,left:0,right:0,top:0};if(_){var lt=D;l?Re.right<D?lt=Re.right:Re.right+Re.width>D+Oe&&(lt=Re.right+Re.width-Oe):Re.left<-D?lt=-Re.left:Re.left+Re.width>-D+Oe&&(lt=-(Re.left+Re.width-Oe)),j(0),P(Ie(lt))}else{var Tt=L;Re.top<-L?Tt=-Re.top:Re.top+Re.height>-L+Oe&&(Tt=-(Re.top+Re.height-Oe)),P(0),j(Ie(Tt))}}),st=b.useState(),Pt=ae(st,2),mt=Pt[0],et=Pt[1],ke=b.useState(!1),Me=ae(ke,2),Te=Me[0],at=Me[1],ct=x.filter(function(Be){return!Be.disabled}).map(function(Be){return Be.key}),Le=function(Re){var lt=ct.indexOf(mt||a),Tt=ct.length,Dt=(lt+Re+Tt)%Tt,Kt=ct[Dt];et(Kt)},we=function(Re){var lt=Re.code,Tt=l&&_,Dt=ct[0],Kt=ct[ct.length-1];switch(lt){case"ArrowLeft":{_&&Le(Tt?1:-1);break}case"ArrowRight":{_&&Le(Tt?-1:1);break}case"ArrowUp":{Re.preventDefault(),_||Le(-1);break}case"ArrowDown":{Re.preventDefault(),_||Le(1);break}case"Home":{Re.preventDefault(),et(Dt);break}case"End":{Re.preventDefault(),et(Kt);break}case"Enter":case"Space":{Re.preventDefault(),g(mt!=null?mt:a,Re);break}case"Backspace":case"Delete":{var on=ct.indexOf(mt),Gt=x.find(function(ft){return ft.key===mt}),Ye=dp(Gt==null?void 0:Gt.closable,Gt==null?void 0:Gt.closeIcon,u,Gt==null?void 0:Gt.disabled);Ye&&(Re.preventDefault(),Re.stopPropagation(),u.onEdit("remove",{key:mt,event:Re}),on===ct.length-1?Le(-1):Le(1));break}}},ze={};_?ze[l?"marginRight":"marginLeft"]=m:ze.marginTop=m;var Fe=x.map(function(Be,Re){var lt=Be.key;return s.createElement(I5,{id:o,prefixCls:C,key:lt,tab:Be,style:Re===0?void 0:ze,closable:Be.closable,editable:u,active:lt===a,focus:lt===mt,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ct.length,currentPosition:Re+1,onClick:function(Dt){g(lt,Dt)},onKeyDown:we,onFocus:function(){Te||et(lt),Ut(lt),ve(),O.current&&(l||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){at(!0)},onMouseUp:function(){at(!1)}})}),Ve=function(){return he(function(){var Re,lt=new Map,Tt=(Re=I.current)===null||Re===void 0?void 0:Re.getBoundingClientRect();return x.forEach(function(Dt){var Kt,on=Dt.key,Gt=(Kt=I.current)===null||Kt===void 0?void 0:Kt.querySelector('[data-node-key="'.concat(i$(on),'"]'));if(Gt){var Ye=_5(Gt,Tt),ft=ae(Ye,4),jt=ft[0],Cn=ft[1],fn=ft[2],Ln=ft[3];lt.set(on,{width:jt,height:Cn,left:fn,top:Ln})}}),lt})};b.useEffect(function(){Ve()},[x.map(function(Be){return Be.key}).join("_")]);var Ze=n$(function(){var Be=ia(E),Re=ia(S),lt=ia($);W([Be[0]-Re[0]-lt[0],Be[1]-Re[1]-lt[1]]);var Tt=ia(N);X(Tt);var Dt=ia(w);ne(Dt);var Kt=ia(I);J([Kt[0]-Tt[0],Kt[1]-Tt[1]]),Ve()}),$t=x.slice(0,Ot),Ae=x.slice(_t+1),Qe=[].concat(ge($t),ge(Ae)),nt=fe.get(a),ot=y5({activeTabOffset:nt,horizontal:_,indicator:v,rtl:l}),ht=ot.style;b.useEffect(function(){Ut()},[a,je,Ne,o$(nt),o$(fe),_]),b.useEffect(function(){Ze()},[l]);var Rt=!!Qe.length,Wt="".concat(C,"-nav-wrap"),yt,en,De,Ke;return _?l?(en=D>0,yt=D!==Ne):(yt=D<0,en=D!==je):(De=L<0,Ke=L!==je),s.createElement(Wn,{onResize:Ze},s.createElement("div",{ref:Qr(t,E),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:U("".concat(C,"-nav"),n),style:r,onKeyDown:function(){ve()}},s.createElement(fp,{ref:S,position:"left",extra:c,prefixCls:C}),s.createElement(Wn,{onResize:Ze},s.createElement("div",{className:U(Wt,H(H(H(H({},"".concat(Wt,"-ping-left"),yt),"".concat(Wt,"-ping-right"),en),"".concat(Wt,"-ping-top"),De),"".concat(Wt,"-ping-bottom"),Ke)),ref:O},s.createElement(Wn,{onResize:Ze},s.createElement("div",{ref:I,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(L,"px)"),transition:$e?"none":void 0}},Fe,s.createElement(a$,{ref:N,prefixCls:C,locale:d,editable:u,style:q(q({},Fe.length===0?void 0:ze),{},{visibility:Rt?"hidden":null})}),s.createElement("div",{className:U("".concat(C,"-ink-bar"),H({},"".concat(C,"-ink-bar-animated"),i.inkBar)),style:ht}))))),s.createElement(N5,de({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:w,prefixCls:C,tabs:Qe,className:!Rt&&Pe,tabMoving:!!$e})),s.createElement(fp,{ref:$,position:"right",extra:c,prefixCls:C})))}),mp=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:U(n,a&&"".concat(n,"-active"),r),ref:t},c)});process.env.NODE_ENV!=="production"&&(mp.displayName="TabPane");var P5=["renderTabBar"],T5=["label","key"],s$=function(t){var n=t.renderTabBar,r=tt(t,P5),o=s.useContext(Lc),i=o.tabs;if(n){var a=q(q({},r),{},{panes:i.map(function(l){var c=l.label,u=l.key,d=tt(l,T5);return s.createElement(mp,de({tab:c,key:u,tabKey:u},d))})});return n(a,l$)}return s.createElement(l$,r)};process.env.NODE_ENV!=="production"&&(s$.displayName="TabNavListWrapper");var M5=["key","forceRender","style","className","destroyInactiveTabPane"],D5=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=s.useContext(Lc),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:U("".concat(c,"-content-holder"))},s.createElement("div",{className:U("".concat(c,"-content"),"".concat(c,"-content-").concat(i),H({},"".concat(c,"-content-animated"),d))},u.map(function(m){var p=m.key,g=m.forceRender,h=m.style,v=m.className,y=m.destroyInactiveTabPane,C=tt(m,M5),x=p===r;return s.createElement(lr,de({key:p,visible:x,forceRender:g,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(E,S){var $=E.style,O=E.className;return s.createElement(mp,de({},C,{prefixCls:f,id:n,tabKey:p,animated:d,active:x,style:q(q({},h),$),className:U(v,O),ref:S}))})})))};function A5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},He(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&Ue(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var R5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],c$=0,u$=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,p=m===void 0?"top":m,g=e.tabBarGutter,h=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,C=e.more,x=e.destroyInactiveTabPane,E=e.renderTabBar,S=e.onChange,$=e.onTabClick,O=e.onTabScroll,I=e.getPopupContainer,w=e.popupClassName,N=e.indicator,_=tt(e,R5),T=s.useMemo(function(){return(a||[]).filter(function(Z){return Z&&He(Z)==="object"&&"key"in Z})},[a]),M=l==="rtl",D=A5(f),P=b.useState(!1),A=ae(P,2),R=A[0],L=A[1];b.useEffect(function(){L(Nm())},[]);var j=an(function(){var Z;return(Z=T[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),z=ae(j,2),B=z[0],K=z[1],W=b.useState(function(){return T.findIndex(function(Z){return Z.key===B})}),k=ae(W,2),V=k[0],Q=k[1];b.useEffect(function(){var Z=T.findIndex(function(re){return re.key===B});if(Z===-1){var ne;Z=Math.max(0,Math.min(V,T.length-1)),K((ne=T[Z])===null||ne===void 0?void 0:ne.key)}Q(Z)},[T.map(function(Z){return Z.key}).join("_"),B,V]);var J=an(null,{value:n}),Y=ae(J,2),te=Y[0],oe=Y[1];b.useEffect(function(){n||(oe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":c$)),c$+=1)},[]);function X(Z,ne){$==null||$(Z,ne);var re=Z!==B;K(Z),re&&(S==null||S(Z))}var F={id:te,activeKey:B,animated:D,tabPosition:p,rtl:M,mobile:R},ee=q(q({},F),{},{editable:d,locale:y,more:C,tabBarGutter:g,onTabClick:X,onTabScroll:O,extra:v,style:h,panes:null,getPopupContainer:I,popupClassName:w,indicator:N});return s.createElement(Lc.Provider,{value:{tabs:T,prefixCls:o}},s.createElement("div",de({ref:t,id:n,className:U(o,"".concat(o,"-").concat(p),H(H(H({},"".concat(o,"-mobile"),R),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),i)},_),s.createElement(s$,de({},ee,{renderTabBar:E})),s.createElement(D5,de({destroyInactiveTabPane:x},F,{animated:D}))))});process.env.NODE_ENV!=="production"&&(u$.displayName="Tabs");const j5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function L5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},j5),{motionName:oo(e,"switch")})),n}var z5=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function B5(e){return e.filter(t=>t)}function k5(e,t){if(process.env.NODE_ENV!=="production"&&vt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=_n(t).map(r=>{if(s.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,c=z5(a,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return B5(n)}const F5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ko(e,"slide-up"),ko(e,"slide-down")]]},H5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},zr(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:G(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},V5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ht(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Co),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},W5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
283
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
284
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:G(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},K5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},q5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Or(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},zr(e)),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:i}}}},G5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:G(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:G(e.marginXS)},marginLeft:{_skip_check_:!0,value:G(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},U5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Or(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),q5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Or(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},X5=Mt("Tabs",e=>{const t=St(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[K5(t),G5(t),W5(t),V5(t),H5(t),U5(t),F5(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,c=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),d$=()=>null;process.env.NODE_ENV!=="production"&&(d$.displayName="DeprecatedTabPane");const Q5=d$;var Y5=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pp=e=>{var t,n,r,o,i,a,l,c,u,d,f;const{type:m,className:p,rootClassName:g,size:h,onEdit:v,hideAdd:y,centered:C,addIcon:x,removeIcon:E,moreIcon:S,more:$,popupClassName:O,children:I,items:w,animated:N,style:_,indicatorSize:T,indicator:M,destroyInactiveTabPane:D,destroyOnHidden:P}=e,A=Y5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:R}=A,{direction:L,tabs:j,getPrefixCls:z,getPopupContainer:B}=s.useContext(Xe),K=z("tabs",R),W=wn(K),[k,V,Q]=X5(K,W);let J;m==="editable-card"&&(J={onEdit:(Z,ne)=>{let{key:re,event:se}=ne;v==null||v(Z==="add"?se:re,Z)},removeIcon:(t=E!=null?E:j==null?void 0:j.removeIcon)!==null&&t!==void 0?t:s.createElement(xr,null),addIcon:(x!=null?x:j==null?void 0:j.addIcon)||s.createElement(fb,null),showAdd:y!==!0});const Y=z();if(process.env.NODE_ENV!=="production"){const Z=vt("Tabs");process.env.NODE_ENV!=="production"&&Z(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&Z(!(T||j!=null&&j.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead."),Z.deprecated(!("destroyInactiveTabPane"in e||w!=null&&w.some(ne=>"destroyInactiveTabPane"in ne)),"destroyInactiveTabPane","destroyOnHidden")}const te=Kn(h),oe=k5(w,I),X=L5(K,N),F=Object.assign(Object.assign({},j==null?void 0:j.style),_),ee={align:(n=M==null?void 0:M.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=M==null?void 0:M.size)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:(a=j==null?void 0:j.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return k(s.createElement(u$,Object.assign({direction:L,getPopupContainer:B},A,{items:oe,className:U({[`${K}-${te}`]:te,[`${K}-card`]:["card","editable-card"].includes(m),[`${K}-editable-card`]:m==="editable-card",[`${K}-centered`]:C},j==null?void 0:j.className,p,g,V,Q,W),popupClassName:U(O,V,Q,W),style:F,editable:J,more:Object.assign({icon:(f=(d=(u=(c=j==null?void 0:j.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:j==null?void 0:j.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:s.createElement(Ad,null),transitionName:`${Y}-slide-up`},$),prefixCls:K,animated:X,indicator:ee,destroyInactiveTabPane:P!=null?P:D})))};pp.TabPane=Q5,process.env.NODE_ENV!=="production"&&(pp.displayName="Tabs");const vp=pp;var J5=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f$=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=J5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=s.useContext(Xe),a=i("card",t),l=U(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},o,{className:l}))},Z5=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},So()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Co),{[`
|
|
285
|
+
> ${n}-typography,
|
|
286
|
+
> ${n}-typography-edit-content
|
|
287
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},eF=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
288
|
+
${G(o)} 0 0 0 ${n},
|
|
289
|
+
0 ${G(o)} 0 0 ${n},
|
|
290
|
+
${G(o)} ${G(o)} 0 0 ${n},
|
|
291
|
+
${G(o)} 0 0 0 ${n} inset,
|
|
292
|
+
0 ${G(o)} 0 0 ${n} inset;
|
|
293
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},tF=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${G(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},So()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:G(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${i}`}}})},nF=e=>Object.assign(Object.assign({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},So()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Co),"&-description":{color:e.colorTextDescription}}),rF=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${G(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(o)}`}}},oF=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},iF=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Z5(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},So()),[`${t}-grid`]:eF(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:tF(e),[`${t}-meta`]:nF(e)}),[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:rF(e),[`${t}-loading`]:oF(e),[`${t}-rtl`]:{direction:"rtl"}}},aF=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${G(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},lF=Mt("Card",e=>{const t=St(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[iF(t),aF(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}});var m$=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sF=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:a},s.createElement("span",null,o))}))},cF=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:p,type:g,cover:h,actions:v,tabList:y,children:C,activeTabKey:x,defaultActiveTabKey:E,tabBarExtraContent:S,hoverable:$,tabProps:O={},classNames:I,styles:w}=e,N=m$(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:T,card:M}=s.useContext(Xe),[D]=Sc("card",m,f);if(process.env.NODE_ENV!=="production"){const fe=vt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"],["bordered","variant"]].forEach(ie=>{let[ce,ue]=ie;fe.deprecated(!(ce in e),ce,ue)})}const P=fe=>{var ie;(ie=e.onTabChange)===null||ie===void 0||ie.call(e,fe)},A=fe=>{var ie;return U((ie=M==null?void 0:M.classNames)===null||ie===void 0?void 0:ie[fe],I==null?void 0:I[fe])},R=fe=>{var ie;return Object.assign(Object.assign({},(ie=M==null?void 0:M.styles)===null||ie===void 0?void 0:ie[fe]),w==null?void 0:w[fe])},L=s.useMemo(()=>{let fe=!1;return s.Children.forEach(C,ie=>{(ie==null?void 0:ie.type)===f$&&(fe=!0)}),fe},[C]),j=_("card",n),[z,B,K]=lF(j),W=s.createElement(xm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),k=x!==void 0,V=Object.assign(Object.assign({},O),{[k?"activeKey":"defaultActiveKey"]:k?x:E,tabBarExtraContent:S});let Q;const J=Kn(p),Y=!J||J==="default"?"large":J,te=y?s.createElement(vp,Object.assign({size:Y},V,{className:`${j}-head-tabs`,onChange:P,items:y.map(fe=>{var{tab:ie}=fe,ce=m$(fe,["tab"]);return Object.assign({label:ie},ce)})})):null;if(u||a||te){const fe=U(`${j}-head`,A("header")),ie=U(`${j}-head-title`,A("title")),ce=U(`${j}-extra`,A("extra")),ue=Object.assign(Object.assign({},l),R("header"));Q=s.createElement("div",{className:fe,style:ue},s.createElement("div",{className:`${j}-head-wrapper`},u&&s.createElement("div",{className:ie,style:R("title")},u),a&&s.createElement("div",{className:ce,style:R("extra")},a)),te)}const oe=U(`${j}-cover`,A("cover")),X=h?s.createElement("div",{className:oe,style:R("cover")},h):null,F=U(`${j}-body`,A("body")),ee=Object.assign(Object.assign({},c),R("body")),Z=s.createElement("div",{className:F,style:ee},d?W:C),ne=U(`${j}-actions`,A("actions")),re=v!=null&&v.length?s.createElement(sF,{actionClasses:ne,actionStyle:R("actions"),actions:v}):null,se=tn(N,["onTabChange"]),le=U(j,M==null?void 0:M.className,{[`${j}-loading`]:d,[`${j}-bordered`]:D!=="borderless",[`${j}-hoverable`]:$,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:y==null?void 0:y.length,[`${j}-${J}`]:J,[`${j}-type-${g}`]:!!g,[`${j}-rtl`]:T==="rtl"},r,o,B,K),he=Object.assign(Object.assign({},M==null?void 0:M.style),i);return z(s.createElement("div",Object.assign({ref:t},se,{className:le,style:he}),Q,X,Z,re))});var uF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dF=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=uF(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(Xe),c=l("card",t),u=U(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?s.createElement("div",{className:`${c}-meta-title`},o):null,m=i?s.createElement("div",{className:`${c}-meta-description`},i):null,p=f||m?s.createElement("div",{className:`${c}-meta-detail`},f,m):null;return s.createElement("div",Object.assign({},a,{className:u}),d,p)},kc=cF;kc.Grid=f$,kc.Meta=dF,process.env.NODE_ENV!=="production"&&(kc.displayName="Card");const Fc=kc;function fF(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function p(){d&&clearTimeout(d)}function g(v){var y=v||{},C=y.upcomingOnly,x=C===void 0?!1:C;p(),f=!x}function h(){for(var v=arguments.length,y=new Array(v),C=0;C<v;C++)y[C]=arguments[C];var x=this,E=Date.now()-m;if(f)return;function S(){m=Date.now(),t.apply(x,y)}function $(){d=void 0}!l&&u&&!d&&S(),p(),u===void 0&&E>e?l?(m=Date.now(),i||(d=setTimeout(u?$:S,e))):S():i!==!0&&(d=setTimeout(u?$:S,u===void 0?e-E:e))}return h.cancel=g,h}function mF(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return fF(e,t,{debounceMode:i!==!1})}function sr(e,t){return e[t]}var pF=["children"];function p$(e,t){return"".concat(e,"-").concat(t)}function vF(e){return e&&e.type&&e.type.isTreeNode}function El(e,t){return e!=null?e:t}function aa(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function gF(e,t){var n=new Map;function r(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(a){var l=a[t.key],c=a[t.children];Ue(l!=null,"Tree node must have a certain key: [".concat(i).concat(l,"]"));var u=String(l);Ue(!n.has(u)||l===null||l===void 0,"Same 'key' exist in the Tree: ".concat(u)),n.set(u,!0),r(c,"".concat(i).concat(u," > "))})}r(e)}function v$(e){function t(n){var r=_n(n);return r.map(function(o){if(!vF(o))return Ue(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,c=tt(a,pF),u=q({key:i},c),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function gp(e,t,n){var r=aa(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,p){for(var g=p$(f?f.pos:"0",p),h=El(m[i],g),v,y=0;y<o.length;y+=1){var C=o[y];if(m[C]!==void 0){v=m[C];break}}var x=Object.assign(tn(m,[].concat(ge(o),[i,a])),{title:v,key:h,parent:f,pos:g,children:null,data:m,isStart:[].concat(ge(f?f.isStart:[]),[p===0]),isEnd:[].concat(ge(f?f.isEnd:[]),[p===d.length-1])});return c.push(x),t===!0||l.has(h)?x.children=u(m[a]||[],x):x.children=[],x})}return u(e),c}function hF(e,t,n){var r={};He(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,l=o.fieldNames,c=aa(l),u=c.key,d=c.children,f=i||d,m;a?typeof a=="string"?m=function(h){return h[a]}:typeof a=="function"&&(m=function(h){return a(h)}):m=function(h,v){return El(h[u],v)};function p(g,h,v,y){var C=g?g[f]:e,x=g?p$(v.pos,h):"0",E=g?[].concat(ge(y),[g]):[];if(g){var S=m(g,x),$={node:g,index:h,pos:x,key:S,parentPos:v.node?v.pos:null,level:v.level+1,nodes:E};t($)}C&&C.forEach(function(O,I){p(O,I,{node:g,pos:x,level:v?v.level+1:-1},E)})}p(null)}function hp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),hF(e,function(p){var g=p.node,h=p.index,v=p.pos,y=p.key,C=p.parentPos,x=p.level,E=p.nodes,S={node:g,nodes:E,index:h,key:y,pos:v,level:x},$=El(y,v);d[v]=S,f[$]=S,S.parent=d[C],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,m)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),o&&o(m),m}function $l(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=sr(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Tn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,p=e.eventKey,g=q(q({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:p});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Ue(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function g$(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function bF(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function yF(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(f){var m=f.key,p=f.node,g=f.children,h=g===void 0?[]:g;o.has(m)&&!r(p)&&h.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,p=f.node;if(!(r(p)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var g=!0,h=!1;(m.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,C=o.has(y);g&&!C&&(g=!1),!h&&(C||i.has(y))&&(h=!0)}),g&&o.add(m.key),h&&i.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(g$(i,o))}}function CF(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var p=m.key,g=m.node,h=m.children,v=h===void 0?[]:h;!i.has(p)&&!a.has(p)&&!o(g)&&v.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var p=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(p.key);return}var h=!0,v=!1;(p.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var C=y.key,x=i.has(C);h&&!x&&(h=!1),!v&&(x||a.has(C))&&(v=!0)}),h||i.delete(p.key),v&&a.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(g$(a,i))}}function la(e,t,n,r){var o=[],i;r?i=r:i=bF;var a=new Set(e.filter(function(d){var f=!!sr(n,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,p=l.get(m);p||(p=new Set,l.set(m,p)),p.add(f),c=Math.max(c,m)}),Ue(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=yF(a,l,c,i):u=CF(a,t.halfCheckedKeys,l,c,i),u}const SF=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ht(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ht(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},zr(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${G(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
294
|
+
${n}:not(${n}-disabled),
|
|
295
|
+
${t}:not(${t}-disabled)
|
|
296
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
297
|
+
${n}-checked:not(${n}-disabled),
|
|
298
|
+
${t}-checked:not(${t}-disabled)
|
|
299
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function h$(e,t){const n=St(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[SF(n)]}const b$=Mt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[h$(n,e)]}),y$=b.createContext(null);var xF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EF=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,p=xF(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:h,checkbox:v}=s.useContext(Xe),y=s.useContext(y$),{isFormItemInput:C}=s.useContext(Un),x=s.useContext(no),E=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:x,S=s.useRef(p.value),$=s.useRef(null),O=Vn(t,$);if(process.env.NODE_ENV!=="production"){const L=vt("Checkbox");process.env.NODE_ENV!=="production"&&L("checked"in p||!!y||!("value"in p),"usage","`value` is not a valid prop, do you mean `checked`?")}s.useEffect(()=>{y==null||y.registerValue(p.value)},[]),s.useEffect(()=>{if(!f)return p.value!==S.current&&(y==null||y.cancelValue(S.current),y==null||y.registerValue(p.value),S.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]),s.useEffect(()=>{var L;!((L=$.current)===null||L===void 0)&&L.input&&($.current.input.indeterminate=l)},[l]);const I=g("checkbox",r),w=wn(I),[N,_,T]=b$(I,w),M=Object.assign({},p);y&&!f&&(M.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),y.toggleOption&&y.toggleOption({label:a,value:p.value})},M.name=y.name,M.checked=y.value.includes(p.value));const D=U(`${I}-wrapper`,{[`${I}-rtl`]:h==="rtl",[`${I}-wrapper-checked`]:M.checked,[`${I}-wrapper-disabled`]:E,[`${I}-wrapper-in-form-item`]:C},v==null?void 0:v.className,o,i,T,w,_),P=U({[`${I}-indeterminate`]:l},Qs,_),[A,R]=BE(M.onClick);return N(s.createElement(el,{component:"Checkbox",disabled:E},s.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d,onClick:A},s.createElement(zE,Object.assign({},M,{onClick:R,prefixCls:I,className:P,disabled:E,ref:O})),a!=null&&s.createElement("span",{className:`${I}-label`},a))))},C$=s.forwardRef(EF);process.env.NODE_ENV!=="production"&&(C$.displayName="Checkbox");const S$=C$;var $F=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wF=s.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:c,onChange:u}=e,d=$F(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(Xe),[p,g]=s.useState(d.value||n||[]),[h,v]=s.useState([]);s.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const y=s.useMemo(()=>o.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[o]),C=P=>{v(A=>A.filter(R=>R!==P))},x=P=>{v(A=>[].concat(ge(A),[P]))},E=P=>{const A=p.indexOf(P.value),R=ge(p);A===-1?R.push(P.value):R.splice(A,1),"value"in d||g(R),u==null||u(R.filter(L=>h.includes(L)).sort((L,j)=>{const z=y.findIndex(K=>K.value===L),B=y.findIndex(K=>K.value===j);return z-B}))},S=f("checkbox",i),$=`${S}-group`,O=wn(S),[I,w,N]=b$(S,O),_=tn(d,["value","disabled"]),T=o.length?y.map(P=>s.createElement(S$,{prefixCls:S,key:P.value.toString(),disabled:"disabled"in P?P.disabled:d.disabled,value:P.value,checked:p.includes(P.value),onChange:P.onChange,className:U(`${$}-item`,P.className),style:P.style,title:P.title,id:P.id,required:P.required},P.label)):r,M=s.useMemo(()=>({toggleOption:E,value:p,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:C}),[E,p,d.disabled,d.name,x,C]),D=U($,{[`${$}-rtl`]:m==="rtl"},a,l,N,O,w);return I(s.createElement("div",Object.assign({className:D,style:c},_,{ref:t}),s.createElement(y$.Provider,{value:M},T)))}),Hc=S$;Hc.Group=wF,Hc.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Hc.displayName="Checkbox");const Vc=Hc,x$=b.createContext({});var OF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function E$(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const NF=["xs","sm","md","lg","xl","xxl"],$$=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Xe),{gutter:o,wrap:i}=s.useContext(x$),{prefixCls:a,span:l,order:c,offset:u,push:d,pull:f,className:m,children:p,flex:g,style:h}=e,v=OF(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[C,x,E]=vL(y),S={};let $={};NF.forEach(w=>{let N={};const _=e[w];typeof _=="number"?N.span=_:typeof _=="object"&&(N=_||{}),delete v[w],$=Object.assign(Object.assign({},$),{[`${y}-${w}-${N.span}`]:N.span!==void 0,[`${y}-${w}-order-${N.order}`]:N.order||N.order===0,[`${y}-${w}-offset-${N.offset}`]:N.offset||N.offset===0,[`${y}-${w}-push-${N.push}`]:N.push||N.push===0,[`${y}-${w}-pull-${N.pull}`]:N.pull||N.pull===0,[`${y}-rtl`]:r==="rtl"}),N.flex&&($[`${y}-${w}-flex`]=!0,S[`--${y}-${w}-flex`]=E$(N.flex))});const O=U(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,$,x,E),I={};if(o&&o[0]>0){const w=o[0]/2;I.paddingLeft=w,I.paddingRight=w}return g&&(I.flex=E$(g),i===!1&&!I.minWidth&&(I.minWidth=0)),C(s.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},I),h),S),className:O,ref:t}),p))});process.env.NODE_ENV!=="production"&&($$.displayName="Col");const jn=$$;function IF(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,a)=>{if(typeof i=="object"&&i!==null)for(let l=0;l<Yi.length;l++){const c=Yi[l];if(o[c]&&i[c]!==void 0){n[a]=i[c];break}}else n[a]=i}),n}var _F=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function w$(e,t){const[n,r]=s.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Yi.length;i++){const a=Yi[i];if(!t||!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return s.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const O$=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:u}=e,d=_F(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(Xe),p=pl(!0,null),g=w$(o,p),h=w$(r,p),v=f("row",n),[y,C,x]=pL(v),E=IF(c,p),S=U(v,{[`${v}-no-wrap`]:u===!1,[`${v}-${h}`]:h,[`${v}-${g}`]:g,[`${v}-rtl`]:m==="rtl"},i,C,x),$={},O=E[0]!=null&&E[0]>0?E[0]/-2:void 0;O&&($.marginLeft=O,$.marginRight=O);const[I,w]=E;$.rowGap=w;const N=s.useMemo(()=>({gutter:[I,w],wrap:u}),[I,w,u]);return y(s.createElement(x$.Provider,{value:N},s.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},$),a),ref:t}),l)))});process.env.NODE_ENV!=="production"&&(O$.displayName="Row");const wo=O$,PF=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},TF=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{borderBlockStart:`${G(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${G(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},MF=Mt("Divider",e=>{const t=St(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[TF(t),PF(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var DF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AF={small:"sm",middle:"md"},N$=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Dn("divider"),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:p="solid",plain:g,style:h,size:v}=e,y=DF(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",i),[x,E,S]=MF(C),$=Kn(v),O=AF[$],I=!!f,w=s.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),N=w==="start"&&c!=null,_=w==="end"&&c!=null,T=U(C,r,E,S,`${C}-${a}`,{[`${C}-with-text`]:I,[`${C}-with-text-${w}`]:I,[`${C}-dashed`]:!!m,[`${C}-${p}`]:p!=="solid",[`${C}-plain`]:!!g,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:N,[`${C}-no-default-orientation-margin-end`]:_,[`${C}-${O}`]:!!O},u,d),M=s.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),D={marginInlineStart:N?M:void 0,marginInlineEnd:_?M:void 0};if(process.env.NODE_ENV!=="production"){const P=vt("Divider");process.env.NODE_ENV!=="production"&&P(!f||a!=="vertical","usage","`children` not working in `vertical` mode.")}return x(s.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},o),h)},y,{role:"separator"}),f&&a!=="vertical"&&s.createElement("span",{className:`${C}-inner-text`,style:D},f)))};process.env.NODE_ENV!=="production"&&(N$.displayName="Divider");const I$=N$;function RF(e){return!!(e.addonBefore||e.addonAfter)}function jF(e){return!!(e.prefix||e.suffix||e.allowClear)}function _$(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Wc(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=_$(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=_$(t,e,r),n(o);return}n(o)}}function P$(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var T$=b.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,p=e.style,g=e.disabled,h=e.readOnly,v=e.focused,y=e.triggerFocus,C=e.allowClear,x=e.value,E=e.handleReset,S=e.hidden,$=e.classes,O=e.classNames,I=e.dataAttrs,w=e.styles,N=e.components,_=e.onClear,T=a!=null?a:i,M=(N==null?void 0:N.affixWrapper)||"span",D=(N==null?void 0:N.groupWrapper)||"span",P=(N==null?void 0:N.wrapper)||"span",A=(N==null?void 0:N.groupAddon)||"span",R=b.useRef(null),L=function(ne){var re;(re=R.current)!==null&&re!==void 0&&re.contains(ne.target)&&(y==null||y())},j=jF(e),z=b.cloneElement(T,{value:x,className:U((n=T.props)===null||n===void 0?void 0:n.className,!j&&(O==null?void 0:O.variant))||null}),B=b.useRef(null);if(b.useImperativeHandle(t,function(){return{nativeElement:B.current||R.current}}),j){var K=null;if(C){var W=!g&&!h&&x,k="".concat(l,"-clear-icon"),V=He(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";K=b.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){E==null||E(ne),_==null||_()},onMouseDown:function(ne){return ne.preventDefault()},className:U(k,H(H({},"".concat(k,"-hidden"),!W),"".concat(k,"-has-suffix"),!!u))},V)}var Q="".concat(l,"-affix-wrapper"),J=U(Q,H(H(H(H(H({},"".concat(l,"-disabled"),g),"".concat(Q,"-disabled"),g),"".concat(Q,"-focused"),v),"".concat(Q,"-readonly"),h),"".concat(Q,"-input-with-clear-btn"),u&&C&&x),$==null?void 0:$.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),Y=(u||C)&&b.createElement("span",{className:U("".concat(l,"-suffix"),O==null?void 0:O.suffix),style:w==null?void 0:w.suffix},K,u);z=b.createElement(M,de({className:J,style:w==null?void 0:w.affixWrapper,onClick:L},I==null?void 0:I.affixWrapper,{ref:R}),c&&b.createElement("span",{className:U("".concat(l,"-prefix"),O==null?void 0:O.prefix),style:w==null?void 0:w.prefix},c),z,Y)}if(RF(e)){var te="".concat(l,"-group"),oe="".concat(te,"-addon"),X="".concat(te,"-wrapper"),F=U("".concat(l,"-wrapper"),te,$==null?void 0:$.wrapper,O==null?void 0:O.wrapper),ee=U(X,H({},"".concat(X,"-disabled"),g),$==null?void 0:$.group,O==null?void 0:O.groupWrapper);z=b.createElement(D,{className:ee,ref:B},b.createElement(P,{className:F},d&&b.createElement(A,{className:oe},d),z,f&&b.createElement(A,{className:oe},f)))}return b.cloneElement(z,{className:U((r=z.props)===null||r===void 0?void 0:r.className,m)||null,style:q(q({},(o=z.props)===null||o===void 0?void 0:o.style),p),hidden:S})}),LF=["show"];function M$(e,t){return s.useMemo(function(){var n={};t&&(n.show=He(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,o=r.show,i=tt(r,LF);return q(q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var zF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],BF=b.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,p=e.className,g=e.maxLength,h=e.suffix,v=e.showCount,y=e.count,C=e.type,x=C===void 0?"text":C,E=e.classes,S=e.classNames,$=e.styles,O=e.onCompositionStart,I=e.onCompositionEnd,w=tt(e,zF),N=b.useState(!1),_=ae(N,2),T=_[0],M=_[1],D=b.useRef(!1),P=b.useRef(!1),A=b.useRef(null),R=b.useRef(null),L=function(me){A.current&&P$(A.current,me)},j=an(e.defaultValue,{value:e.value}),z=ae(j,2),B=z[0],K=z[1],W=B==null?"":String(B),k=b.useState(null),V=ae(k,2),Q=V[0],J=V[1],Y=M$(y,v),te=Y.max||g,oe=Y.strategy(W),X=!!te&&oe>te;b.useImperativeHandle(t,function(){var ue;return{focus:L,blur:function(){var Ce;(Ce=A.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Oe,Pe){var je;(je=A.current)===null||je===void 0||je.setSelectionRange(Ce,Oe,Pe)},select:function(){var Ce;(Ce=A.current)===null||Ce===void 0||Ce.select()},input:A.current,nativeElement:((ue=R.current)===null||ue===void 0?void 0:ue.nativeElement)||A.current}}),b.useEffect(function(){P.current&&(P.current=!1),M(function(ue){return ue&&f?!1:ue})},[f]);var F=function(me,Ce,Oe){var Pe=Ce;if(!D.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ce)>Y.max){if(Pe=Y.exceedFormatter(Ce,{max:Y.max}),Ce!==Pe){var je,Ne;J([((je=A.current)===null||je===void 0?void 0:je.selectionStart)||0,((Ne=A.current)===null||Ne===void 0?void 0:Ne.selectionEnd)||0])}}else if(Oe.source==="compositionEnd")return;K(Pe),A.current&&Wc(A.current,me,r,Pe)};b.useEffect(function(){if(Q){var ue;(ue=A.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,ge(Q))}},[Q]);var ee=function(me){F(me,me.target.value,{source:"change"})},Z=function(me){D.current=!1,F(me,me.currentTarget.value,{source:"compositionEnd"}),I==null||I(me)},ne=function(me){a&&me.key==="Enter"&&!P.current&&(P.current=!0,a(me)),l==null||l(me)},re=function(me){me.key==="Enter"&&(P.current=!1),c==null||c(me)},se=function(me){M(!0),o==null||o(me)},le=function(me){P.current&&(P.current=!1),M(!1),i==null||i(me)},he=function(me){K(""),L(),A.current&&Wc(A.current,me,r)},fe=X&&"".concat(d,"-out-of-range"),ie=function(){var me=tn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return b.createElement("input",de({autoComplete:n},me,{onChange:ee,onFocus:se,onBlur:le,onKeyDown:ne,onKeyUp:re,className:U(d,H({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:A,size:m,type:x,onCompositionStart:function(Oe){D.current=!0,O==null||O(Oe)},onCompositionEnd:Z}))},ce=function(){var me=Number(te)>0;if(h||Y.show){var Ce=Y.showFormatter?Y.showFormatter({value:W,count:oe,maxLength:te}):"".concat(oe).concat(me?" / ".concat(te):"");return b.createElement(b.Fragment,null,Y.show&&b.createElement("span",{className:U("".concat(d,"-show-count-suffix"),H({},"".concat(d,"-show-count-has-suffix"),!!h),S==null?void 0:S.count),style:q({},$==null?void 0:$.count)},Ce),h)}return null};return b.createElement(T$,de({},w,{prefixCls:d,className:U(p,fe),handleReset:he,value:W,focused:T,triggerFocus:L,suffix:ce(),disabled:f,classes:E,classNames:S,styles:$,ref:R}),ie())});const D$=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:b.createElement(Mo,null)}),t};function A$(e,t){const n=b.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return b.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function kF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var FF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const R$=b.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:p,style:g,styles:h,rootClassName:v,onChange:y,classNames:C,variant:x}=e,E=FF(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:he}=vt("Input");he(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:$,allowClear:O,autoComplete:I,className:w,style:N,classNames:_,styles:T}=Dn("input"),M=S("input",n),D=b.useRef(null),P=wn(M),[A,R,L]=QE(M,v),[j]=YE(M,P),{compactSize:z,compactItemClassnames:B}=Bi(M,$),K=Kn(he=>{var fe;return(fe=i!=null?i:z)!==null&&fe!==void 0?fe:he}),W=b.useContext(no),k=a!=null?a:W,{status:V,hasFeedback:Q,feedbackIcon:J}=b.useContext(Un),Y=yc(V,o),te=kF(e)||!!Q,oe=b.useRef(te);if(process.env.NODE_ENV!=="production"){const he=vt("Input");b.useEffect(()=>{var fe;te&&!oe.current&&process.env.NODE_ENV!=="production"&&he(document.activeElement===((fe=D.current)===null||fe===void 0?void 0:fe.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),oe.current=te},[te])}const X=A$(D,!0),F=he=>{X(),l==null||l(he)},ee=he=>{X(),c==null||c(he)},Z=he=>{X(),y==null||y(he)},ne=(Q||u)&&b.createElement(b.Fragment,null,u,Q&&J),re=D$(d!=null?d:O),[se,le]=Sc("input",x,r);return A(j(b.createElement(BF,Object.assign({ref:Vn(t,D),prefixCls:M,autoComplete:I},E,{disabled:k,onBlur:F,onFocus:ee,style:Object.assign(Object.assign({},N),g),styles:Object.assign(Object.assign({},T),h),suffix:ne,allowClear:re,className:U(p,v,L,P,B,w),onChange:Z,addonBefore:m&&b.createElement(Ki,{form:!0,space:!0},m),addonAfter:f&&b.createElement(Ki,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),_),{input:U({[`${M}-sm`]:K==="small",[`${M}-lg`]:K==="large",[`${M}-rtl`]:$==="rtl"},C==null?void 0:C.input,_.input,R),variant:U({[`${M}-${se}`]:le},bc(M,Y)),affixWrapper:U({[`${M}-affix-wrapper-sm`]:K==="small",[`${M}-affix-wrapper-lg`]:K==="large",[`${M}-affix-wrapper-rtl`]:$==="rtl"},R),wrapper:U({[`${M}-group-rtl`]:$==="rtl"},R),groupWrapper:U({[`${M}-group-wrapper-sm`]:K==="small",[`${M}-group-wrapper-lg`]:K==="large",[`${M}-group-wrapper-rtl`]:$==="rtl",[`${M}-group-wrapper-${se}`]:le},bc(`${M}-group-wrapper`,Y,Q),R)})}))))});process.env.NODE_ENV!=="production"&&(R$.displayName="Input");const wl=R$;var j$=s.createContext(null),L$=s.createContext({}),HF=["prefixCls","className","containerRef"],z$=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=tt(t,HF),a=s.useContext(L$),l=a.panel,c=Qr(l,o);return s.createElement("div",de({className:U("".concat(n,"-content"),r),role:"dialog",ref:c},An(t,{aria:!0}),{"aria-modal":"true"},i))};process.env.NODE_ENV!=="production"&&(z$.displayName="DrawerPanel");function B$(e){return typeof e=="string"&&String(Number(e))===e?(Ue(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function VF(e){Ue(!("wrapperClassName"in e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),Ue(In()||!e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var k$={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function WF(e,t){var n,r,o,i=e.prefixCls,a=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,p=e.classNames,g=e.rootClassName,h=e.rootStyle,v=e.zIndex,y=e.className,C=e.id,x=e.style,E=e.motion,S=e.width,$=e.height,O=e.children,I=e.mask,w=e.maskClosable,N=e.maskMotion,_=e.maskClassName,T=e.maskStyle,M=e.afterOpenChange,D=e.onClose,P=e.onMouseEnter,A=e.onMouseOver,R=e.onMouseLeave,L=e.onClick,j=e.onKeyDown,z=e.onKeyUp,B=e.styles,K=e.drawerRender,W=s.useRef(),k=s.useRef(),V=s.useRef();s.useImperativeHandle(t,function(){return W.current});var Q=function(ce){var ue=ce.keyCode,me=ce.shiftKey;switch(ue){case ye.TAB:{if(ue===ye.TAB){if(!me&&document.activeElement===V.current){var Ce;(Ce=k.current)===null||Ce===void 0||Ce.focus({preventScroll:!0})}else if(me&&document.activeElement===k.current){var Oe;(Oe=V.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}}break}case ye.ESC:{D&&m&&(ce.stopPropagation(),D(ce));break}}};s.useEffect(function(){if(a&&f){var ie;(ie=W.current)===null||ie===void 0||ie.focus({preventScroll:!0})}},[a]);var J=s.useState(!1),Y=ae(J,2),te=Y[0],oe=Y[1],X=s.useContext(j$),F;typeof u=="boolean"?F=u?{}:{distance:0}:F=u||{};var ee=(n=(r=(o=F)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:X==null?void 0:X.pushDistance)!==null&&n!==void 0?n:180,Z=s.useMemo(function(){return{pushDistance:ee,push:function(){oe(!0)},pull:function(){oe(!1)}}},[ee]);s.useEffect(function(){if(a){var ie;X==null||(ie=X.push)===null||ie===void 0||ie.call(X)}else{var ce;X==null||(ce=X.pull)===null||ce===void 0||ce.call(X)}},[a]),s.useEffect(function(){return function(){var ie;X==null||(ie=X.pull)===null||ie===void 0||ie.call(X)}},[]);var ne=I&&s.createElement(lr,de({key:"mask"},N,{visible:a}),function(ie,ce){var ue=ie.className,me=ie.style;return s.createElement("div",{className:U("".concat(i,"-mask"),ue,p==null?void 0:p.mask,_),style:q(q(q({},me),T),B==null?void 0:B.mask),onClick:w&&a?D:void 0,ref:ce})}),re=typeof E=="function"?E(l):E,se={};if(te&&ee)switch(l){case"top":se.transform="translateY(".concat(ee,"px)");break;case"bottom":se.transform="translateY(".concat(-ee,"px)");break;case"left":se.transform="translateX(".concat(ee,"px)");break;default:se.transform="translateX(".concat(-ee,"px)");break}l==="left"||l==="right"?se.width=B$(S):se.height=B$($);var le={onMouseEnter:P,onMouseOver:A,onMouseLeave:R,onClick:L,onKeyDown:j,onKeyUp:z},he=s.createElement(lr,de({key:"panel"},re,{visible:a,forceRender:d,onVisibleChanged:function(ce){M==null||M(ce)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(ie,ce){var ue=ie.className,me=ie.style,Ce=s.createElement(z$,de({id:C,containerRef:ce,prefixCls:i,className:U(y,p==null?void 0:p.content),style:q(q({},x),B==null?void 0:B.content)},An(e,{aria:!0}),le),O);return s.createElement("div",de({className:U("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,ue),style:q(q(q({},se),me),B==null?void 0:B.wrapper)},An(e,{data:!0})),K?K(Ce):Ce)}),fe=q({},h);return v&&(fe.zIndex=v),s.createElement(j$.Provider,{value:Z},s.createElement("div",{className:U(i,"".concat(i,"-").concat(l),g,H(H({},"".concat(i,"-open"),a),"".concat(i,"-inline"),c)),style:fe,tabIndex:-1,ref:W,onKeyDown:Q},ne,s.createElement("div",{tabIndex:0,ref:k,style:k$,"aria-hidden":"true","data-sentinel":"start"}),he,s.createElement("div",{tabIndex:0,ref:V,style:k$,"aria-hidden":"true","data-sentinel":"end"})))}var F$=s.forwardRef(WF);process.env.NODE_ENV!=="production"&&(F$.displayName="DrawerPopup");var H$=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,l=a===void 0?"right":a,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,p=m===void 0?378:m,g=t.mask,h=g===void 0?!0:g,v=t.maskClosable,y=v===void 0?!0:v,C=t.getContainer,x=t.forceRender,E=t.afterOpenChange,S=t.destroyOnClose,$=t.onMouseEnter,O=t.onMouseOver,I=t.onMouseLeave,w=t.onClick,N=t.onKeyDown,_=t.onKeyUp,T=t.panelRef,M=s.useState(!1),D=ae(M,2),P=D[0],A=D[1];process.env.NODE_ENV!=="production"&&VF(t);var R=s.useState(!1),L=ae(R,2),j=L[0],z=L[1];Et(function(){z(!0)},[]);var B=j?r:!1,K=s.useRef(),W=s.useRef();Et(function(){B&&(W.current=document.activeElement)},[B]);var k=function(te){var oe;if(A(te),E==null||E(te),!te&&W.current&&!((oe=K.current)!==null&&oe!==void 0&&oe.contains(W.current))){var X;(X=W.current)===null||X===void 0||X.focus({preventScroll:!0})}},V=s.useMemo(function(){return{panel:T}},[T]);if(!x&&!P&&!B&&S)return null;var Q={onMouseEnter:$,onMouseOver:O,onMouseLeave:I,onClick:w,onKeyDown:N,onKeyUp:_},J=q(q({},t),{},{open:B,prefixCls:i,placement:l,autoFocus:u,keyboard:f,width:p,mask:h,maskClosable:y,inline:C===!1,afterOpenChange:k,ref:K},Q);return s.createElement(L$.Provider,{value:V},s.createElement(rl,{open:B||x||P,autoDestroy:!1,getContainer:C,autoLock:h&&(B||P)},s.createElement(F$,J)))};process.env.NODE_ENV!=="production"&&(H$.displayName="Drawer");const V$=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:l,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:m,classNames:p,styles:g}=e,h=Dn("drawer"),v=s.useCallback(S=>s.createElement("button",{type:"button",onClick:c,className:`${r}-close`},S),[c]),[y,C]=gm(qi(e),qi(h),{closable:!0,closeIconRender:v}),x=s.useMemo(()=>{var S,$;return!o&&!y?null:s.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(S=h.styles)===null||S===void 0?void 0:S.header),u),g==null?void 0:g.header),className:U(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!a},($=h.classNames)===null||$===void 0?void 0:$.header,p==null?void 0:p.header)},s.createElement("div",{className:`${r}-header-title`},C,o&&s.createElement("div",{className:`${r}-title`},o)),a&&s.createElement("div",{className:`${r}-extra`},a))},[y,C,a,u,r,o]),E=s.useMemo(()=>{var S,$;if(!i)return null;const O=`${r}-footer`;return s.createElement("div",{className:U(O,(S=h.classNames)===null||S===void 0?void 0:S.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},($=h.styles)===null||$===void 0?void 0:$.footer),f),g==null?void 0:g.footer)},i)},[i,f,r]);return s.createElement(s.Fragment,null,x,s.createElement("div",{className:U(`${r}-body`,p==null?void 0:p.body,(t=h.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=h.styles)===null||n===void 0?void 0:n.body),d),g==null?void 0:g.body)},l?s.createElement(xm,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):m),E)},KF=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},W$=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),K$=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},W$({opacity:e},{opacity:1})),qF=(e,t)=>[K$(.7,t),W$({transform:KF(e)},{transform:"none"})],GF=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:K$(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:qF(o,n)}),{})}}},UF=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:p,lineType:g,colorSplit:h,marginXS:v,colorIcon:y,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:E,colorText:S,fontWeightStrong:$,footerPaddingBlock:O,footerPaddingInline:I,calc:w}=e,N=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:S,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[N]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${N}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${N}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${N}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${N}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${G(u)} ${G(d)}`,fontSize:f,lineHeight:m,borderBottom:`${G(p)} ${g} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:w(f).add(c).equal(),height:w(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:$,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:C,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:E}},Or(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${G(O)} ${G(I)}`,borderTop:`${G(p)} ${g} ${h}`},"&-rtl":{direction:"rtl"}}}},q$=Mt("Drawer",e=>{const t=St(e,{});return[UF(t),GF(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}));var G$=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XF={distance:180},bp=e=>{var t;const{rootClassName:n,width:r,height:o,size:i="default",mask:a=!0,push:l=XF,open:c,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:m,style:p,className:g,visible:h,afterVisibleChange:v,maskStyle:y,drawerStyle:C,contentWrapperStyle:x,destroyOnClose:E,destroyOnHidden:S}=e,$=G$(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:O,getPrefixCls:I,direction:w,className:N,style:_,classNames:T,styles:M}=Dn("drawer"),D=I("drawer",f),[P,A,R]=q$(D),L=m===void 0&&O?()=>O(document.body):m,j=U({"no-mask":!a,[`${D}-rtl`]:w==="rtl"},n,A,R);if(process.env.NODE_ENV!=="production"){const te=vt("Drawer");[["visible","open"],["afterVisibleChange","afterOpenChange"],["headerStyle","styles.header"],["bodyStyle","styles.body"],["footerStyle","styles.footer"],["contentWrapperStyle","styles.wrapper"],["maskStyle","styles.mask"],["drawerStyle","styles.content"],["destroyInactivePanel","destroyOnHidden"]].forEach(oe=>{let[X,F]=oe;te.deprecated(!(X in e),X,F)}),L!==void 0&&((t=e.style)===null||t===void 0?void 0:t.position)==="absolute"&&process.env.NODE_ENV!=="production"&&te(!1,"breaking","`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.")}const z=s.useMemo(()=>r!=null?r:i==="large"?736:378,[r,i]),B=s.useMemo(()=>o!=null?o:i==="large"?736:378,[o,i]),K={motionName:oo(D,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},W=te=>({motionName:oo(D,`panel-motion-${te}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),k=dS(),[V,Q]=zi("Drawer",$.zIndex),{classNames:J={},styles:Y={}}=$;return P(s.createElement(Ki,{form:!0,space:!0},s.createElement(Ya.Provider,{value:Q},s.createElement(H$,Object.assign({prefixCls:D,onClose:d,maskMotion:K,motion:W},$,{classNames:{mask:U(J.mask,T.mask),content:U(J.content,T.content),wrapper:U(J.wrapper,T.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Y.mask),y),M.mask),content:Object.assign(Object.assign(Object.assign({},Y.content),C),M.content),wrapper:Object.assign(Object.assign(Object.assign({},Y.wrapper),x),M.wrapper)},open:c!=null?c:h,mask:a,push:l,width:z,height:B,style:Object.assign(Object.assign({},_),p),className:U(N,g),rootClassName:j,getContainer:L,afterOpenChange:u!=null?u:v,panelRef:k,zIndex:V,destroyOnClose:S!=null?S:E}),s.createElement(V$,Object.assign({prefixCls:D},$,{onClose:d}))))))},QF=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=G$(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=s.useContext(Xe),l=a("drawer",t),[c,u,d]=q$(l),f=U(l,`${l}-pure`,`${l}-${o}`,u,d,r);return c(s.createElement("div",{className:f,style:n},s.createElement(V$,Object.assign({prefixCls:l},i))))};bp._InternalPanelDoNotUseOrYouWillBeFired=QF,process.env.NODE_ENV!=="production"&&(bp.displayName="Drawer");const U$=bp;function Kc(e){return["small","middle","large"].includes(e)}function X$(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Q$=b.createContext({latestIndex:0}),YF=Q$.Provider,JF=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=s.useContext(Q$);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:i},r),n<a&&o&&s.createElement("span",{className:`${t}-split`},o))};var ZF=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yp=s.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:l,classNames:c,styles:u}=Dn("space"),{size:d=i!=null?i:"small",align:f,className:m,rootClassName:p,children:g,direction:h="horizontal",prefixCls:v,split:y,style:C,wrap:x=!1,classNames:E,styles:S}=e,$=ZF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,I]=Array.isArray(d)?d:[d,d],w=Kc(I),N=Kc(O),_=X$(I),T=X$(O),M=_n(g,{keepEmpty:!0}),D=f===void 0&&h==="horizontal"?"center":f,P=r("space",v),[A,R,L]=rC(P),j=U(P,a,R,`${P}-${h}`,{[`${P}-rtl`]:o==="rtl",[`${P}-align-${D}`]:D,[`${P}-gap-row-${I}`]:w,[`${P}-gap-col-${O}`]:N},m,p,L),z=U(`${P}-item`,(n=E==null?void 0:E.item)!==null&&n!==void 0?n:c.item);let B=0;const K=M.map((V,Q)=>{var J;V!=null&&(B=Q);const Y=(V==null?void 0:V.key)||`${z}-${Q}`;return s.createElement(JF,{className:z,key:Y,index:Q,split:y,style:(J=S==null?void 0:S.item)!==null&&J!==void 0?J:u.item},V)}),W=s.useMemo(()=>({latestIndex:B}),[B]);if(M.length===0)return null;const k={};return x&&(k.flexWrap="wrap"),!N&&T&&(k.columnGap=O),!w&&_&&(k.rowGap=I),A(s.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},k),l),C)},$),s.createElement(YF,{value:W},K)))});yp.Compact=l4,process.env.NODE_ENV!=="production"&&(yp.displayName="Space");const Zt=yp;var e8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y$=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Xe),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:p,arrow:g,autoFocus:h,overlay:v,trigger:y,align:C,open:x,onOpenChange:E,placement:S,getPopupContainer:$,href:O,icon:I=s.createElement(Ad,null),title:w,buttonsRender:N=X=>X,mouseEnterDelay:_,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:D,destroyOnHidden:P,destroyPopupOnHide:A,dropdownRender:R,popupRender:L}=e,j=e8(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),z=n("dropdown",o),B=`${z}-button`,W={menu:p,arrow:g,autoFocus:h,align:C,disabled:l,trigger:l?[]:y,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:_,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:D,destroyOnHidden:P,popupRender:L||R},{compactSize:k,compactItemClassnames:V}=Bi(z,r),Q=U(B,V,m);"destroyPopupOnHide"in e&&(W.destroyPopupOnHide=A),"overlay"in e&&(W.overlay=v),"open"in e&&(W.open=x),"placement"in e?W.placement=S:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=s.createElement(rn,{type:i,danger:a,disabled:l,loading:c,onClick:u,htmlType:d,href:O,title:w},f),Y=s.createElement(rn,{type:i,danger:a,icon:I}),[te,oe]=N([J,Y]);return s.createElement(Zt.Compact,Object.assign({className:Q,size:k,block:!0},j),te,s.createElement(RE,Object.assign({},W),oe))};Y$.__ANT_BUTTON=!0;const t8=Y$,J$=RE;J$.Button=t8;const Z$=J$,e1=["wrap","nowrap","wrap-reverse"],t1=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],n1=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],n8=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&e1.includes(n)}},r8=(e,t)=>{const n={};return n1.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},o8=(e,t)=>{const n={};return t1.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function i8(e,t){return U(Object.assign(Object.assign(Object.assign({},n8(e,t)),r8(e,t)),o8(e,t)))}const a8=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},l8=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},s8=e=>{const{componentCls:t}=e,n={};return e1.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},c8=e=>{const{componentCls:t}=e,n={};return n1.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},u8=e=>{const{componentCls:t}=e,n={};return t1.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},d8=Mt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=St(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[a8(o),l8(o),s8(o),c8(o),u8(o)]},()=>({}),{resetStyle:!1});var f8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const r1=b.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:l,children:c,vertical:u=!1,component:d="div"}=e,f=f8(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:p,getPrefixCls:g}=b.useContext(Xe),h=g("flex",n),[v,y,C]=d8(h),x=u!=null?u:m==null?void 0:m.vertical,E=U(o,r,m==null?void 0:m.className,h,y,C,i8(h,e),{[`${h}-rtl`]:p==="rtl",[`${h}-gap-${l}`]:Kc(l),[`${h}-vertical`]:x}),S=Object.assign(Object.assign({},m==null?void 0:m.style),i);return a&&(S.flex=a),l&&!Kc(l)&&(S.gap=l),v(b.createElement(d,Object.assign({ref:t,className:E,style:S},tn(f,["justify","wrap","align"])),c))});process.env.NODE_ENV!=="production"&&(r1.displayName="Flex");const _r=r1;function m8(e){return e==null?null:typeof e=="object"&&!b.isValidElement(e)?e:{title:e}}function qc(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const p8=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
300
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
301
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},v8=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),o1=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},g8=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ht(e)),v8(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},o1(e,e.controlHeightSM)),"&-large":Object.assign({},o1(e,e.controlHeightLG))})}},h8=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
302
|
+
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:qf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},i1=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},b8=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
303
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Fr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),a1=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Fr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},y8=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
304
|
+
${r}-col-24${n}-label,
|
|
305
|
+
${r}-col-xl-24${n}-label`]:Fr(e)}},[`@media (max-width: ${G(e.screenXSMax)})`]:[a1(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Fr(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Fr(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Fr(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Fr(e)}}}}},C8=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
|
306
|
+
${n}-col-24${t}-label,
|
|
307
|
+
${n}-col-xl-24${t}-label`]:Fr(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[a1(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Fr(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Fr(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Fr(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Fr(e)}}}},S8=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),l1=(e,t)=>St(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Cp=Mt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=l1(e,n);return[g8(r),h8(r),p8(r),i1(r,r.componentCls),i1(r,r.formItemCls),b8(r),y8(r),C8(r),Ff(r),qf]},S8,{order:-1e3}),s1=[];function Sp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const c1=e=>{let{help:t,helpStatus:n,errors:r=s1,warnings:o=s1,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(vm),u=`${c}-item-explain`,d=wn(c),[f,m,p]=Cp(c,d),g=s.useMemo(()=>Xs(c),[c]),h=qc(r),v=qc(o),y=s.useMemo(()=>t!=null?[Sp(t,"help",n)]:[].concat(ge(h.map((E,S)=>Sp(E,"error","error",S))),ge(v.map((E,S)=>Sp(E,"warning","warning",S)))),[t,n,h,v]),C=s.useMemo(()=>{const E={};return y.forEach(S=>{let{key:$}=S;E[$]=(E[$]||0)+1}),y.map((S,$)=>Object.assign(Object.assign({},S),{key:E[S.key]>1?`${S.key}-fallback-${$}`:S.key}))},[y]),x={};return a&&(x.id=`${a}_help`),f(s.createElement(lr,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:l},E=>{const{className:S,style:$}=E;return s.createElement("div",Object.assign({},x,{className:U(u,S,p,d,i,m),style:$}),s.createElement(C0,Object.assign({keys:C},Xs(c),{motionName:`${c}-show-help-item`,component:!1}),O=>{const{key:I,error:w,errorStatus:N,className:_,style:T}=O;return s.createElement("div",{key:I,className:U(_,{[`${u}-${N}`]:N}),style:T},w)}))}))},x8=["parentNode"],E8="form_item";function Ol(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function u1(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:x8.includes(n)?`${E8}_${n}`:n}function d1(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var $8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function f1(e){return Ol(e).join("_")}function m1(e,t){const n=t.getFieldInstance(e),r=za(n);if(r)return r;const o=u1(Ol(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function p1(e){const[t]=mm(),n=s.useRef({}),r=s.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=f1(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:a}=i,l=$8(i,["focus"]),c=m1(o,r);c&&(gR(c,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),a&&r.focusField(o))},focusField:o=>{var i,a;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(a=(i=m1(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=f1(o);return n.current[i]}}),[e,t]);return[r]}const Gc={};function w8(e){let{name:t}=e;const n=vt("Form");s.useEffect(()=>{if(t)return Gc[t]=(Gc[t]||0)+1,process.env.NODE_ENV!=="production"&&n(Gc[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{Gc[t]-=1}},[t])}var O8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const N8=(e,t)=>{const n=s.useContext(no),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:l,className:c,style:u}=Dn("form"),{prefixCls:d,className:f,rootClassName:m,size:p,disabled:g=n,form:h,colon:v,labelAlign:y,labelWrap:C,labelCol:x,wrapperCol:E,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:O,requiredMark:I,onFinishFailed:w,name:N,style:_,feedbackIcons:T,variant:M}=e,D=O8(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Kn(p),A=s.useContext(My);process.env.NODE_ENV!=="production"&&w8(e);const R=s.useMemo(()=>I!==void 0?I:S?!1:i!==void 0?i:!0,[S,I,i]),L=v!=null?v:a,j=r("form",d),z=wn(j),[B,K,W]=Cp(j,z),k=U(j,`${j}-${$}`,{[`${j}-hide-required-mark`]:R===!1,[`${j}-rtl`]:o==="rtl",[`${j}-${P}`]:P},W,z,K,c,f,m),[V]=p1(h),{__INTERNAL__:Q}=V;Q.name=N;const J=s.useMemo(()=>({name:N,labelAlign:y,labelCol:x,labelWrap:C,wrapperCol:E,vertical:$==="vertical",colon:L,requiredMark:R,itemRef:Q.itemRef,form:V,feedbackIcons:T}),[N,y,x,E,$,L,R,V,T]),Y=s.useRef(null);s.useImperativeHandle(t,()=>{var X;return Object.assign(Object.assign({},V),{nativeElement:(X=Y.current)===null||X===void 0?void 0:X.nativeElement})});const te=(X,F)=>{if(X){let ee={block:"nearest"};typeof X=="object"&&(ee=Object.assign(Object.assign({},ee),X)),V.scrollToField(F,ee)}},oe=X=>{if(w==null||w(X),X.errorFields.length){const F=X.errorFields[0].name;if(O!==void 0){te(O,F);return}l!==void 0&&te(l,F)}};return B(s.createElement(aS.Provider,{value:M},s.createElement(cf,{disabled:g},s.createElement(Ua.Provider,{value:P},s.createElement(iS,{validateMessages:A},s.createElement($o.Provider,{value:J},s.createElement(Wi,Object.assign({id:N},D,{name:N,onFinishFailed:oe,form:V,ref:Y,style:Object.assign(Object.assign({},u),_),className:k}))))))))},v1=s.forwardRef(N8);process.env.NODE_ENV!=="production"&&(v1.displayName="Form");const I8=v1;function _8(e){if(typeof e=="function")return e;const t=_n(e);return t.length<=1?t[0]:t}const g1=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Un);if(process.env.NODE_ENV!=="production"){const r=vt("Form.Item");process.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};g1.Context=Un;const P8=g1;function T8(e){const[t,n]=s.useState(e),r=s.useRef(null),o=s.useRef([]),i=s.useRef(!1);s.useEffect(()=>(i.current=!1,()=>{i.current=!0,At.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=At(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,a]}function M8(){const{itemRef:e}=s.useContext($o),t=s.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Do(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Vn(e(r),i)),t.current.ref}return n}const D8=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},A8=Ri(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=l1(e,n);return[D8(r)]});var R8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j8=24,L8=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:p,label:g}=e,h=`${t}-item`,v=s.useContext($o),y=s.useMemo(()=>{let D=Object.assign({},o||v.wrapperCol||{});return g===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const R=A?[A]:[],L=rr(v.labelCol,R),j=typeof L=="object"?L:{},z=rr(D,R),B=typeof z=="object"?z:{};"span"in j&&!("offset"in B)&&j.span<j8&&(D=$r(D,[].concat(R,["offset"]),j.span))}),D},[o,v]),C=U(`${h}-control`,y.className),x=s.useMemo(()=>R8(v,["labelCol","wrapperCol"]),[v]),E=s.useRef(null),[S,$]=s.useState(0);Et(()=>{u&&E.current?$(E.current.clientHeight):$(0)},[u]);const O=s.createElement("div",{className:`${h}-control-input`},s.createElement("div",{className:`${h}-control-input-content`},i)),I=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),w=m!==null||a.length||l.length?s.createElement(vm.Provider,{value:I},s.createElement(c1,{fieldId:f,errors:a,warnings:l,help:d,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,N={};f&&(N.id=`${f}_extra`);const _=u?s.createElement("div",Object.assign({},N,{className:`${h}-extra`,ref:E}),u):null,T=w||_?s.createElement("div",{className:`${h}-additional`,style:m?{minHeight:m+S}:{}},w,_):null,M=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:O,errorList:w,extra:_}):s.createElement(s.Fragment,null,O,T);return s.createElement($o.Provider,{value:x},s.createElement(jn,Object.assign({},y,{className:C}),M),s.createElement(A8,{prefixCls:t}))};var z8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B8=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[m]=to("Form"),{labelAlign:p,labelCol:g,labelWrap:h,colon:v}=s.useContext($o);if(!n)return null;const y=o||g||{},C=i||p,x=`${t}-item-label`,E=U(x,C==="left"&&`${x}-left`,y.className,{[`${x}-wrap`]:!!h});let S=n;const $=a===!0||v!==!1&&a!==!1;$&&!d&&typeof n=="string"&&n.trim()&&(S=n.replace(/[:|:]\s*$/,""));const I=m8(u);if(I){const{icon:D=s.createElement(UT,null)}=I,P=z8(I,["icon"]),A=s.createElement(lo,Object.assign({},P),s.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));S=s.createElement(s.Fragment,null,S,A)}const w=c==="optional",N=typeof c=="function",_=c===!1;N?S=c(S,{required:!!l}):w&&!l&&(S=s.createElement(s.Fragment,null,S,s.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=eo.Form)===null||f===void 0?void 0:f.optional))));let T;_?T="hidden":(w||N)&&(T="optional");const M=U({[`${t}-item-required`]:l,[`${t}-item-required-mark-${T}`]:T,[`${t}-item-no-colon`]:!$});return s.createElement(jn,Object.assign({},y,{className:E}),s.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},S))},k8={success:To,warning:Pa,error:Mo,validating:Zo};function h1(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:d}=s.useContext($o),f=d1(n,r,l,null,!!o,i),{isFormItemInput:m,status:p,hasFeedback:g,feedbackIcon:h}=s.useContext(Un),v=s.useMemo(()=>{var y;let C;if(o){const E=o!==!0&&o.icons||d,S=f&&((y=E==null?void 0:E({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),$=f&&k8[f];C=S!==!1&&$?s.createElement("span",{className:U(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},S||s.createElement($,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:C,isFormItemInput:!0};return c&&(x.status=(f!=null?f:p)||"",x.isFormItemInput=m,x.hasFeedback=!!(o!=null?o:g),x.feedbackIcon=o!==void 0?x.feedbackIcon:h),x},[f,o,c,m,p]);return s.createElement(Un.Provider,{value:v},t)}var F8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function H8(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:p,required:g,isRequired:h,onSubItemMetaChange:v,layout:y}=e,C=F8(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),x=`${t}-item`,{requiredMark:E,vertical:S}=s.useContext($o),$=S||y==="vertical",O=s.useRef(null),I=qc(a),w=qc(l),N=i!=null,_=!!(N||a.length||l.length),T=!!O.current&&Za(O.current),[M,D]=s.useState(null);Et(()=>{if(_&&O.current){const j=getComputedStyle(O.current);D(parseInt(j.marginBottom,10))}},[_,T]);const P=j=>{j||D(null)},R=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=j?I:u.errors,B=j?w:u.warnings;return d1(z,B,u,"",!!d,c)}(),L=U(x,n,r,{[`${x}-with-help`]:N||I.length||w.length,[`${x}-has-feedback`]:R&&d,[`${x}-has-success`]:R==="success",[`${x}-has-warning`]:R==="warning",[`${x}-has-error`]:R==="error",[`${x}-is-validating`]:R==="validating",[`${x}-hidden`]:f,[`${x}-${y}`]:y});return s.createElement("div",{className:L,style:o,ref:O},s.createElement(wo,Object.assign({className:`${x}-row`},tn(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(B8,Object.assign({htmlFor:p},e,{requiredMark:E,required:g!=null?g:h,prefixCls:t,vertical:$})),s.createElement(L8,Object.assign({},e,u,{errors:I,warnings:w,prefixCls:t,status:R,help:i,marginBottom:M,onErrorVisibleChanged:P}),s.createElement(oS.Provider,{value:v},s.createElement(h1,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:R},m)))),!!M&&s.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-M}}))}const V8="__SPLIT__";function W8(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const K8=s.memo(e=>{let{children:t}=e;return t},(e,t)=>W8(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function b1(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function q8(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:p,hidden:g,help:h,layout:v}=e,{getPrefixCls:y}=s.useContext(Xe),{name:C}=s.useContext($o),x=_8(c),E=typeof x=="function",S=s.useContext(oS),{validateTrigger:$}=s.useContext(ci),O=p!==void 0?p:$,I=t!=null,w=y("form",i),N=wn(w),[_,T,M]=Cp(w,N),D=vt("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&D(t!==null,"usage","`null` is passed as `name` property");const P=s.useContext(ol),A=s.useRef(null),[R,L]=T8({}),[j,z]=ai(()=>b1()),B=Y=>{const te=P==null?void 0:P.getKey(Y.name);if(z(Y.destroy?b1():Y,!0),n&&h!==!1&&S){let oe=Y.name;if(Y.destroy)oe=A.current||oe;else if(te!==void 0){const[X,F]=te;oe=[X].concat(ge(F)),A.current=oe}S(Y,oe)}},K=(Y,te)=>{L(oe=>{const X=Object.assign({},oe),ee=[].concat(ge(Y.name.slice(0,-1)),ge(te)).join(V8);return Y.destroy?delete X[ee]:X[ee]=Y,X})},[W,k]=s.useMemo(()=>{const Y=ge(j.errors),te=ge(j.warnings);return Object.values(R).forEach(oe=>{Y.push.apply(Y,ge(oe.errors||[])),te.push.apply(te,ge(oe.warnings||[]))}),[Y,te]},[R,j.errors,j.warnings]),V=M8();function Q(Y,te,oe){return n&&!g?s.createElement(h1,{prefixCls:w,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:W,warnings:k,noStyle:!0},Y):s.createElement(H8,Object.assign({key:"row"},e,{className:U(r,M,N,T),prefixCls:w,fieldId:te,isRequired:oe,errors:W,warnings:k,meta:j,onSubItemMetaChange:K,layout:v}),Y)}if(!I&&!E&&!o)return _(Q(x));let J={};return typeof d=="string"?J.label=d:t&&(J.label=String(t)),f&&(J=Object.assign(Object.assign({},J),f)),_(s.createElement(dm,Object.assign({},e,{messageVariables:J,trigger:m,validateTrigger:O,onMetaChange:B}),(Y,te,oe)=>{const X=Ol(t).length&&te?te.name:[],F=u1(X,C),ee=u!==void 0?u:!!(l!=null&&l.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const se=re(oe);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),Z=Object.assign({},Y);let ne=null;if(process.env.NODE_ENV!=="production"&&D(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(x)&&I)process.env.NODE_ENV!=="production"&&D(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ne=x;else if(E&&(!(a||o)||I))process.env.NODE_ENV!=="production"&&D(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&D(!I,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!E&&!I)process.env.NODE_ENV!=="production"&&D(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(s.isValidElement(x)){process.env.NODE_ENV!=="production"&&D(x.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const re=Object.assign(Object.assign({},x.props),Z);if(re.id||(re.id=F),h||W.length>0||k.length>0||e.extra){const he=[];(h||W.length>0)&&he.push(`${F}_help`),e.extra&&he.push(`${F}_extra`),re["aria-describedby"]=he.join(" ")}W.length>0&&(re["aria-invalid"]="true"),ee&&(re["aria-required"]="true"),Ar(x)&&(re.ref=V(X,x)),new Set([].concat(ge(Ol(m)),ge(Ol(O)))).forEach(he=>{re[he]=function(){for(var fe,ie,ce,ue,me,Ce=arguments.length,Oe=new Array(Ce),Pe=0;Pe<Ce;Pe++)Oe[Pe]=arguments[Pe];(ce=Z[he])===null||ce===void 0||(fe=ce).call.apply(fe,[Z].concat(Oe)),(me=(ue=x.props)[he])===null||me===void 0||(ie=me).call.apply(ie,[ue].concat(Oe))}});const le=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];ne=s.createElement(K8,{control:Z,update:x,childProps:le},Gn(x,re))}else E&&(a||o)&&!I?ne=x(oe):(process.env.NODE_ENV!=="production"&&D(!X.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ne=x);return Q(ne,F,ee)}))}const y1=q8;y1.useStatus=P8;const G8=y1;var U8=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X8=e=>{var{prefixCls:t,children:n}=e,r=U8(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const l=vt("Form.List");process.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=s.useContext(Xe),i=o("form",t),a=s.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return s.createElement(ZC,Object.assign({},r),(l,c,u)=>s.createElement(vm.Provider,{value:a},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function Q8(){const{form:e}=s.useContext($o);return e}const Oo=I8;Oo.Item=G8,Oo.List=X8,Oo.ErrorList=c1,Oo.useForm=p1,Oo.useFormInstance=Q8,Oo.useWatch=rS,Oo.Provider=iS,Oo.create=()=>{process.env.NODE_ENV!=="production"&&Lo(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};const Vt=Oo;function C1(e,t,n,r){var o=tr.unstable_batchedUpdates?function(a){tr.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const Y8=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Xe),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c,u]=YE(a),d=U(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),f=b.useContext(Un),m=b.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return process.env.NODE_ENV!=="production"&&vt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(s.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Un.Provider,{value:m},e.children)))},J8=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Z8=Mt(["Input","OTP"],e=>{const t=St(e,Sl(e));return[J8(t)]},xl);var eH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tH=s.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=eH(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=s.useContext(Xe),d=u("otp"),f=typeof l=="string"?l:r,m=s.useRef(null);s.useImperativeHandle(t,()=>m.current);const p=y=>{o(a,y.target.value)},g=()=>{At(()=>{var y;const C=(y=m.current)===null||y===void 0?void 0:y.input;document.activeElement===C&&C&&C.select()})},h=y=>{const{key:C,ctrlKey:x,metaKey:E}=y;C==="ArrowLeft"?i(a-1):C==="ArrowRight"?i(a+1):C==="z"&&(x||E)&&y.preventDefault(),g()},v=y=>{y.key==="Backspace"&&!r&&i(a-1),g()};return s.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&s.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),s.createElement(wl,Object.assign({"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text"},c,{ref:m,value:r,onInput:p,onFocus:g,onKeyDown:h,onKeyUp:v,onMouseDown:g,onMouseUp:g,className:U(n,{[`${d}-mask-input`]:l})})))});var nH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Uc(e){return(e||"").split("")}const rH=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?s.createElement("span",{className:`${n}-separator`},o):null},oH=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:p,mask:g,type:h,onInput:v,inputMode:y}=e,C=nH(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const k=vt("Input.OTP");process.env.NODE_ENV!=="production"&&k(!(typeof g=="string"&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:x,direction:E}=s.useContext(Xe),S=x("otp",n),$=An(C,{aria:!0,data:!0,attr:!0}),[O,I,w]=Z8(S),N=Kn(k=>o!=null?o:k),_=s.useContext(Un),T=yc(_.status,m),M=s.useMemo(()=>Object.assign(Object.assign({},_),{status:T,hasFeedback:!1,feedbackIcon:null}),[_,T]),D=s.useRef(null),P=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var k;(k=P.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let V=0;V<r;V+=1)(k=P.current[V])===null||k===void 0||k.blur()},nativeElement:D.current}));const A=k=>c?c(k):k,[R,L]=s.useState(()=>Uc(A(i||"")));s.useEffect(()=>{a!==void 0&&L(Uc(a))},[a]);const j=qt(k=>{L(k),v&&v(k),l&&k.length===r&&k.every(V=>V)&&k.some((V,Q)=>R[Q]!==V)&&l(k.join(""))}),z=qt((k,V)=>{let Q=ge(R);for(let Y=0;Y<k;Y+=1)Q[Y]||(Q[Y]="");V.length<=1?Q[k]=V:Q=Q.slice(0,k).concat(Uc(V)),Q=Q.slice(0,r);for(let Y=Q.length-1;Y>=0&&!Q[Y];Y-=1)Q.pop();const J=A(Q.map(Y=>Y||" ").join(""));return Q=Uc(J).map((Y,te)=>Y===" "&&!Q[te]?Q[te]:Y),Q}),B=(k,V)=>{var Q;const J=z(k,V),Y=Math.min(k+V.length,r-1);Y!==k&&J[k]!==void 0&&((Q=P.current[Y])===null||Q===void 0||Q.focus()),j(J)},K=k=>{var V;(V=P.current[k])===null||V===void 0||V.focus()},W={variant:d,disabled:f,status:T,mask:g,type:h,inputMode:y};return O(s.createElement("div",Object.assign({},$,{ref:D,className:U(S,{[`${S}-sm`]:N==="small",[`${S}-lg`]:N==="large",[`${S}-rtl`]:E==="rtl"},w,I),role:"group"}),s.createElement(Un.Provider,{value:M},Array.from({length:r}).map((k,V)=>{const Q=`otp-${V}`,J=R[V]||"";return s.createElement(s.Fragment,{key:Q},s.createElement(tH,Object.assign({ref:Y=>{P.current[V]=Y},index:V,size:N,htmlSize:1,className:`${S}-input`,onChange:B,value:J,onActiveChange:K,autoFocus:V===0&&p},W)),V<r-1&&s.createElement(rH,{separator:u,index:V,prefixCls:S}))}))))});var iH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aH=e=>e?s.createElement(UP,null):s.createElement(WP,null),lH={click:"onClick",hover:"onMouseOver"},S1=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=aH}=e,a=s.useContext(no),l=n!=null?n:a,c=typeof o=="object"&&o.visible!==void 0,[u,d]=b.useState(()=>c?o.visible:!1),f=b.useRef(null);s.useEffect(()=>{c&&d(o.visible)},[c,o]);const m=A$(f),p=()=>{var N;if(l)return;u&&m();const _=!u;d(_),typeof o=="object"&&((N=o.onVisibleChange)===null||N===void 0||N.call(o,_))},g=N=>{const _=lH[r]||"",T=i(u),M={[_]:p,className:`${N}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return s.cloneElement(s.isValidElement(T)?T:s.createElement("span",null,T),M)},{className:h,prefixCls:v,inputPrefixCls:y,size:C}=e,x=iH(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=s.useContext(Xe),S=E("input",y),$=E("input-password",v),O=o&&g($),I=U($,h,{[`${$}-${C}`]:!!C}),w=Object.assign(Object.assign({},tn(x,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:I,prefixCls:S,suffix:O});return C&&(w.size=C),s.createElement(wl,Object.assign({ref:Vn(t,f)},w))});process.env.NODE_ENV!=="production"&&(S1.displayName="Input.Password");const sH=S1;var cH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const x1=s.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:g}=e,h=cH(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=s.useContext(Xe),C=s.useRef(!1),x=v("input-search",n),E=v("input",r),{compactSize:S}=Bi(x,y),$=Kn(B=>{var K;return(K=i!=null?i:S)!==null&&K!==void 0?K:B}),O=s.useRef(null),I=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},w=B=>{var K;document.activeElement===((K=O.current)===null||K===void 0?void 0:K.input)&&B.preventDefault()},N=B=>{var K,W;f&&f((W=(K=O.current)===null||K===void 0?void 0:K.input)===null||W===void 0?void 0:W.value,B,{source:"input"})},_=B=>{C.current||u||N(B)},T=typeof l=="boolean"?s.createElement(Aa,null):null,M=`${x}-button`;let D;const P=l||{},A=P.type&&P.type.__ANT_BUTTON===!0;A||P.type==="button"?D=Gn(P,Object.assign({onMouseDown:w,onClick:B=>{var K,W;(W=(K=P==null?void 0:P.props)===null||K===void 0?void 0:K.onClick)===null||W===void 0||W.call(K,B),N(B)},key:"enterButton"},A?{className:M,size:$}:{})):D=s.createElement(rn,{className:M,type:l?"primary":void 0,size:$,disabled:d,key:"enterButton",onMouseDown:w,onClick:N,loading:u,icon:T},l),c&&(D=[D,Gn(c,{key:"addonAfter"})]);const R=U(x,{[`${x}-rtl`]:y==="rtl",[`${x}-${$}`]:!!$,[`${x}-with-button`]:!!l},o),L=Object.assign(Object.assign({},h),{className:R,prefixCls:E,type:"search"}),j=B=>{C.current=!0,p==null||p(B)},z=B=>{C.current=!1,g==null||g(B)};return s.createElement(wl,Object.assign({ref:Vn(O,t),onPressEnter:_},L,{size:$,onCompositionStart:j,onCompositionEnd:z,addonAfter:D,suffix:a,onChange:I,disabled:d}))});process.env.NODE_ENV!=="production"&&(x1.displayName="Search");const uH=x1;var dH=`
|
|
308
|
+
min-height:0 !important;
|
|
309
|
+
max-height:none !important;
|
|
310
|
+
height:0 !important;
|
|
311
|
+
visibility:hidden !important;
|
|
312
|
+
overflow:hidden !important;
|
|
313
|
+
position:absolute !important;
|
|
314
|
+
z-index:-1000 !important;
|
|
315
|
+
top:0 !important;
|
|
316
|
+
right:0 !important;
|
|
317
|
+
pointer-events: none !important;
|
|
318
|
+
`,fH=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xp={},hr;function mH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xp[n])return xp[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=fH.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(xp[n]=c),c}function pH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hr||(hr=document.createElement("textarea"),hr.setAttribute("tab-index","-1"),hr.setAttribute("aria-hidden","true"),hr.setAttribute("name","hiddenTextarea"),document.body.appendChild(hr)),e.getAttribute("wrap")?hr.setAttribute("wrap",e.getAttribute("wrap")):hr.removeAttribute("wrap");var o=mH(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;hr.setAttribute("style","".concat(c,";").concat(dH)),hr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=hr.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){hr.value=" ";var p=hr.scrollHeight-i;n!==null&&(u=p*n,l==="border-box"&&(u=u+i+a),m=Math.max(u,m)),r!==null&&(d=p*r,l==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m))}var g={height:m,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var vH=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ep=0,$p=1,wp=2,gH=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange,m=n.onInternalAutoSize,p=tt(n,vH),g=an(o,{value:i,postState:function(V){return V!=null?V:""}}),h=ae(g,2),v=h[0],y=h[1],C=function(V){y(V.target.value),f==null||f(V)},x=s.useRef();s.useImperativeHandle(t,function(){return{textArea:x.current}});var E=s.useMemo(function(){return a&&He(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=ae(E,2),$=S[0],O=S[1],I=!!a,w=function(){try{if(document.activeElement===x.current){var V=x.current,Q=V.selectionStart,J=V.selectionEnd,Y=V.scrollTop;x.current.setSelectionRange(Q,J),x.current.scrollTop=Y}}catch(te){}},N=s.useState(wp),_=ae(N,2),T=_[0],M=_[1],D=s.useState(),P=ae(D,2),A=P[0],R=P[1],L=function(){M(Ep),process.env.NODE_ENV==="test"&&(m==null||m())};Et(function(){I&&L()},[i,$,O,I]),Et(function(){if(T===Ep)M($p);else if(T===$p){var k=pH(x.current,!1,$,O);M(wp),R(k)}else w()},[T]);var j=s.useRef(),z=function(){At.cancel(j.current)},B=function(V){T===wp&&(l==null||l(V),a&&(z(),j.current=At(function(){L()})))};s.useEffect(function(){return z},[]);var K=I?A:null,W=q(q({},u),K);return(T===Ep||T===$p)&&(W.overflowY="hidden",W.overflowX="hidden"),s.createElement(Wn,{onResize:B,disabled:!(a||l)},s.createElement("textarea",de({},p,{ref:x,style:W,className:U(r,c,H({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:C})))}),hH=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],bH=b.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,p=e.prefixCls,g=p===void 0?"rc-textarea":p,h=e.showCount,v=e.count,y=e.className,C=e.style,x=e.disabled,E=e.hidden,S=e.classNames,$=e.styles,O=e.onResize,I=e.onClear,w=e.onPressEnter,N=e.readOnly,_=e.autoSize,T=e.onKeyDown,M=tt(e,hH),D=an(r,{value:o,defaultValue:r}),P=ae(D,2),A=P[0],R=P[1],L=A==null?"":String(A),j=b.useState(!1),z=ae(j,2),B=z[0],K=z[1],W=b.useRef(!1),k=b.useState(null),V=ae(k,2),Q=V[0],J=V[1],Y=b.useRef(null),te=b.useRef(null),oe=function(){var $e;return($e=te.current)===null||$e===void 0?void 0:$e.textArea},X=function(){oe().focus()};b.useImperativeHandle(t,function(){var Ee;return{resizableTextArea:te.current,focus:X,blur:function(){oe().blur()},nativeElement:((Ee=Y.current)===null||Ee===void 0?void 0:Ee.nativeElement)||oe()}}),b.useEffect(function(){K(function(Ee){return!x&&Ee})},[x]);var F=b.useState(null),ee=ae(F,2),Z=ee[0],ne=ee[1];b.useEffect(function(){if(Z){var Ee;(Ee=oe()).setSelectionRange.apply(Ee,ge(Z))}},[Z]);var re=M$(v,h),se=(n=re.max)!==null&&n!==void 0?n:u,le=Number(se)>0,he=re.strategy(L),fe=!!se&&he>se,ie=function($e,_e){var ve=_e;!W.current&&re.exceedFormatter&&re.max&&re.strategy(_e)>re.max&&(ve=re.exceedFormatter(_e,{max:re.max}),_e!==ve&&ne([oe().selectionStart||0,oe().selectionEnd||0])),R(ve),Wc($e.currentTarget,$e,l,ve)},ce=function($e){W.current=!0,d==null||d($e)},ue=function($e){W.current=!1,ie($e,$e.currentTarget.value),f==null||f($e)},me=function($e){ie($e,$e.target.value)},Ce=function($e){$e.key==="Enter"&&w&&w($e),T==null||T($e)},Oe=function($e){K(!0),i==null||i($e)},Pe=function($e){K(!1),a==null||a($e)},je=function($e){R(""),X(),Wc(oe(),$e,l)},Ne=m,Ie;re.show&&(re.showFormatter?Ie=re.showFormatter({value:L,count:he,maxLength:se}):Ie="".concat(he).concat(le?" / ".concat(se):""),Ne=b.createElement(b.Fragment,null,Ne,b.createElement("span",{className:U("".concat(g,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},Ie)));var xe=function($e){var _e;O==null||O($e),(_e=oe())!==null&&_e!==void 0&&_e.style.height&&J(!0)},be=!_&&!h&&!c;return b.createElement(T$,{ref:Y,value:L,allowClear:c,handleReset:je,suffix:Ne,prefixCls:g,classNames:q(q({},S),{},{affixWrapper:U(S==null?void 0:S.affixWrapper,H(H({},"".concat(g,"-show-count"),h),"".concat(g,"-textarea-allow-clear"),c))}),disabled:x,focused:B,className:U(y,fe&&"".concat(g,"-out-of-range")),style:q(q({},C),Q&&!be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ie=="string"?Ie:void 0}},hidden:E,readOnly:N,onClear:I},b.createElement(gH,de({},M,{autoSize:_,maxLength:u,onKeyDown:Ce,onChange:me,onFocus:Oe,onBlur:Pe,onCompositionStart:ce,onCompositionEnd:ue,className:U(S==null?void 0:S.textarea),style:q(q({},$==null?void 0:$.textarea),{},{resize:C==null?void 0:C.resize}),disabled:x,prefixCls:g,onResize:xe,ref:te,readOnly:N})))});const yH=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
319
|
+
&-allow-clear > ${t},
|
|
320
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
321
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},CH=Mt(["Input","TextArea"],e=>{const t=St(e,Sl(e));return[yH(t)]},xl,{resetFont:!1});var SH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E1=b.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:p,variant:g,showCount:h,onMouseDown:v,onResize:y}=e,C=SH(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:re}=vt("TextArea");re(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:E,allowClear:S,autoComplete:$,className:O,style:I,classNames:w,styles:N}=Dn("textArea"),_=s.useContext(no),T=a!=null?a:_,{status:M,hasFeedback:D,feedbackIcon:P}=s.useContext(Un),A=yc(M,l),R=s.useRef(null);s.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=R.current)===null||re===void 0?void 0:re.resizableTextArea,focus:se=>{var le,he;P$((he=(le=R.current)===null||le===void 0?void 0:le.resizableTextArea)===null||he===void 0?void 0:he.textArea,se)},blur:()=>{var se;return(se=R.current)===null||se===void 0?void 0:se.blur()}}});const L=x("input",r),j=wn(L),[z,B,K]=QE(L,d),[W]=CH(L,j),{compactSize:k,compactItemClassnames:V}=Bi(L,E),Q=Kn(re=>{var se;return(se=i!=null?i:k)!==null&&se!==void 0?se:re}),[J,Y]=Sc("textArea",g,o),te=D$(c!=null?c:S),[oe,X]=s.useState(!1),[F,ee]=s.useState(!1),Z=re=>{X(!0),v==null||v(re);const se=()=>{X(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},ne=re=>{var se,le;if(y==null||y(re),oe&&typeof getComputedStyle=="function"){const he=(le=(se=R.current)===null||se===void 0?void 0:se.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&ee(!0)}};return z(W(s.createElement(bH,Object.assign({autoComplete:$},C,{style:Object.assign(Object.assign({},I),m),styles:Object.assign(Object.assign({},N),p),disabled:T,allowClear:te,className:U(K,j,f,d,V,O,F&&`${L}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),w),{textarea:U({[`${L}-sm`]:Q==="small",[`${L}-lg`]:Q==="large"},B,u==null?void 0:u.textarea,w.textarea,oe&&`${L}-mouse-active`),variant:U({[`${L}-${J}`]:Y},bc(L,A)),affixWrapper:U(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:E==="rtl",[`${L}-affix-wrapper-sm`]:Q==="small",[`${L}-affix-wrapper-lg`]:Q==="large",[`${L}-textarea-show-count`]:h||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:L,suffix:D&&s.createElement("span",{className:`${L}-textarea-suffix`},P),showCount:h,ref:R,onResize:ne,onMouseDown:Z}))))}),sa=wl;sa.Group=Y8,sa.Search=uH,sa.TextArea=E1,sa.Password=sH,sa.OTP=oH;const vi=sa;function xH(e,t,n){return typeof n=="boolean"?n:e.length?!0:_n(t).some(o=>o.type===$E)}var $1=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xc(e){let{suffixCls:t,tagName:n,displayName:r}=e;return o=>{const i=s.forwardRef((a,l)=>s.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},a)));return process.env.NODE_ENV!=="production"&&(i.displayName=r),i}}const Op=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=$1(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(Xe),c=l("layout",n),[u,d,f]=SE(c),m=r?`${c}-${r}`:c;return u(s.createElement(i,Object.assign({className:U(n||m,o,d,f),ref:t},a)))}),EH=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(Xe),[r,o]=s.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=$1(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=tn(m,["suffixCls"]),{getPrefixCls:g,className:h,style:v}=Dn("layout"),y=g("layout",i),C=xH(r,c,u),[x,E,S]=SE(y),$=U(y,{[`${y}-has-sider`]:C,[`${y}-rtl`]:n==="rtl"},h,a,l,E,S),O=s.useMemo(()=>({siderHook:{addSider:I=>{o(w=>[].concat(ge(w),[I]))},removeSider:I=>{o(w=>w.filter(N=>N!==I))}}}),[]);return x(s.createElement(bE.Provider,{value:O},s.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v),f)},p),c)))}),$H=Xc({tagName:"div",displayName:"Layout"})(EH),wH=Xc({suffixCls:"header",tagName:"header",displayName:"Header"})(Op),OH=Xc({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Op),NH=Xc({suffixCls:"content",tagName:"main",displayName:"Content"})(Op),ca=$H;ca.Header=wH,ca.Footer=OH,ca.Content=NH,ca.Sider=$E,ca._InternalSiderContext=Pc;const Np=ca;var IH={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},_H=[10,20,50,100],w1=function(t){var n=t.pageSizeOptions,r=n===void 0?_H:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,p=t.sizeChangerRender,g=b.useState(""),h=ae(g,2),v=h[0],y=h[1],C=function(){return!v||Number.isNaN(v)?void 0:Number(v)},x=typeof f=="function"?f:function(T){return"".concat(T," ").concat(o.items_per_page)},E=function(M){y(M.target.value)},S=function(M){l||v===""||(y(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},$=function(M){v!==""&&(M.keyCode===ye.ENTER||M.type==="click")&&(y(""),c==null||c(C()))},O=function(){return r.some(function(M){return M.toString()===a.toString()})?r:r.concat([a]).sort(function(M,D){var P=Number.isNaN(Number(M))?0:Number(M),A=Number.isNaN(Number(D))?0:Number(D);return P-A})},I="".concat(u,"-options");if(!m&&!c)return null;var w=null,N=null,_=null;return m&&p&&(w=p({disabled:d,size:a,onSizeChange:function(M){i==null||i(Number(M))},"aria-label":o.page_size,className:"".concat(I,"-size-changer"),options:O().map(function(T){return{label:x(T),value:T}})})),c&&(l&&(_=typeof l=="boolean"?b.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:d,className:"".concat(I,"-quick-jumper-button")},o.jump_to_confirm):b.createElement("span",{onClick:$,onKeyUp:$},l)),N=b.createElement("div",{className:"".concat(I,"-quick-jumper")},o.jump_to,b.createElement("input",{disabled:d,type:"text",value:v,onChange:E,onKeyUp:$,onBlur:S,"aria-label":o.page}),o.page,_)),b.createElement("li",{className:I},w,N)};process.env.NODE_ENV!=="production"&&(w1.displayName="Options");var ua=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,i=t.className,a=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=U(d,"".concat(d,"-").concat(r),H(H({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),i),m=function(){l(r)},p=function(v){c(v,l,r)},g=u(r,"page",b.createElement("a",{rel:"nofollow"},r));return g?b.createElement("li",{title:a?String(r):null,className:f,onClick:m,onKeyDown:p,tabIndex:0},g):null};process.env.NODE_ENV!=="production"&&(ua.displayName="Pager");var PH=function(t,n,r){return r};function Ip(){}function O1(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function gi(e,t,n){var r=typeof e=="undefined"?t:e;return Math.floor((n-1)/r)+1}var N1=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,a=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,p=t.defaultPageSize,g=p===void 0?10:p,h=t.onChange,v=h===void 0?Ip:h,y=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,E=x===void 0?!0:x,S=t.showQuickJumper,$=t.showLessItems,O=t.showTitle,I=O===void 0?!0:O,w=t.onShowSizeChange,N=w===void 0?Ip:w,_=t.locale,T=_===void 0?IH:_,M=t.style,D=t.totalBoundaryShowSizeChanger,P=D===void 0?50:D,A=t.disabled,R=t.simple,L=t.showTotal,j=t.showSizeChanger,z=j===void 0?f>P:j,B=t.sizeChangerRender,K=t.pageSizeOptions,W=t.itemRender,k=W===void 0?PH:W,V=t.jumpPrevIcon,Q=t.jumpNextIcon,J=t.prevIcon,Y=t.nextIcon,te=b.useRef(null),oe=an(10,{value:m,defaultValue:g}),X=ae(oe,2),F=X[0],ee=X[1],Z=an(1,{value:l,defaultValue:u,postState:function(ft){return Math.max(1,Math.min(ft,gi(void 0,F,f)))}}),ne=ae(Z,2),re=ne[0],se=ne[1],le=b.useState(re),he=ae(le,2),fe=he[0],ie=he[1];b.useEffect(function(){ie(re)},[re]);var ce=v!==Ip,ue="current"in t;process.env.NODE_ENV!=="production"&&Ue(ue?ce:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var me=Math.max(1,re-($?3:5)),Ce=Math.min(gi(void 0,F,f),re+($?3:5));function Oe(Ye,ft){var jt=Ye||b.createElement("button",{type:"button","aria-label":ft,className:"".concat(r,"-item-link")});return typeof Ye=="function"&&(jt=b.createElement(Ye,q({},t))),jt}function Pe(Ye){var ft=Ye.target.value,jt=gi(void 0,F,f),Cn;return ft===""?Cn=ft:Number.isNaN(Number(ft))?Cn=fe:ft>=jt?Cn=jt:Cn=Number(ft),Cn}function je(Ye){return O1(Ye)&&Ye!==re&&O1(f)&&f>0}var Ne=f>F?S:!1;function Ie(Ye){(Ye.keyCode===ye.UP||Ye.keyCode===ye.DOWN)&&Ye.preventDefault()}function xe(Ye){var ft=Pe(Ye);switch(ft!==fe&&ie(ft),Ye.keyCode){case ye.ENTER:$e(ft);break;case ye.UP:$e(ft-1);break;case ye.DOWN:$e(ft+1);break}}function be(Ye){$e(Pe(Ye))}function Ee(Ye){var ft=gi(Ye,F,f),jt=re>ft&&ft!==0?ft:re;ee(Ye),ie(jt),N==null||N(re,Ye),se(jt),v==null||v(jt,Ye)}function $e(Ye){if(je(Ye)&&!A){var ft=gi(void 0,F,f),jt=Ye;return Ye>ft?jt=ft:Ye<1&&(jt=1),jt!==fe&&ie(jt),se(jt),v==null||v(jt,F),jt}return re}var _e=re>1,ve=re<gi(void 0,F,f);function Se(){_e&&$e(re-1)}function Je(){ve&&$e(re+1)}function it(){$e(me)}function Ot(){$e(Ce)}function _t(Ye,ft){if(Ye.key==="Enter"||Ye.charCode===ye.ENTER||Ye.keyCode===ye.ENTER){for(var jt=arguments.length,Cn=new Array(jt>2?jt-2:0),fn=2;fn<jt;fn++)Cn[fn-2]=arguments[fn];ft.apply(void 0,Cn)}}function Ut(Ye){_t(Ye,Se)}function st(Ye){_t(Ye,Je)}function Pt(Ye){_t(Ye,it)}function mt(Ye){_t(Ye,Ot)}function et(Ye){var ft=k(Ye,"prev",Oe(J,"prev page"));return b.isValidElement(ft)?b.cloneElement(ft,{disabled:!_e}):ft}function ke(Ye){var ft=k(Ye,"next",Oe(Y,"next page"));return b.isValidElement(ft)?b.cloneElement(ft,{disabled:!ve}):ft}function Me(Ye){(Ye.type==="click"||Ye.keyCode===ye.ENTER)&&$e(fe)}var Te=null,at=An(t,{aria:!0,data:!0}),ct=L&&b.createElement("li",{className:"".concat(r,"-total-text")},L(f,[f===0?0:(re-1)*F+1,re*F>f?f:re*F])),Le=null,we=gi(void 0,F,f);if(y&&f<=F)return null;var ze=[],Fe={rootPrefixCls:r,onClick:$e,onKeyPress:_t,showTitle:I,itemRender:k,page:-1},Ve=re-1>0?re-1:0,Ze=re+1<we?re+1:we,$t=S&&S.goButton,Ae=He(R)==="object"?R.readOnly:!R,Qe=$t,nt=null;R&&($t&&(typeof $t=="boolean"?Qe=b.createElement("button",{type:"button",onClick:Me,onKeyUp:Me},T.jump_to_confirm):Qe=b.createElement("span",{onClick:Me,onKeyUp:Me},$t),Qe=b.createElement("li",{title:I?"".concat(T.jump_to).concat(re,"/").concat(we):null,className:"".concat(r,"-simple-pager")},Qe)),nt=b.createElement("li",{title:I?"".concat(re,"/").concat(we):null,className:"".concat(r,"-simple-pager")},Ae?fe:b.createElement("input",{type:"text","aria-label":T.jump_to,value:fe,disabled:A,onKeyDown:Ie,onKeyUp:xe,onChange:xe,onBlur:be,size:3}),b.createElement("span",{className:"".concat(r,"-slash")},"/"),we));var ot=$?1:2;if(we<=3+ot*2){we||ze.push(b.createElement(ua,de({},Fe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ht=1;ht<=we;ht+=1)ze.push(b.createElement(ua,de({},Fe,{key:ht,page:ht,active:re===ht})))}else{var Rt=$?T.prev_3:T.prev_5,Wt=$?T.next_3:T.next_5,yt=k(me,"jump-prev",Oe(V,"prev page")),en=k(Ce,"jump-next",Oe(Q,"next page"));E&&(Te=yt?b.createElement("li",{title:I?Rt:null,key:"prev",onClick:it,tabIndex:0,onKeyDown:Pt,className:U("".concat(r,"-jump-prev"),H({},"".concat(r,"-jump-prev-custom-icon"),!!V))},yt):null,Le=en?b.createElement("li",{title:I?Wt:null,key:"next",onClick:Ot,tabIndex:0,onKeyDown:mt,className:U("".concat(r,"-jump-next"),H({},"".concat(r,"-jump-next-custom-icon"),!!Q))},en):null);var De=Math.max(1,re-ot),Ke=Math.min(re+ot,we);re-1<=ot&&(Ke=1+ot*2),we-re<=ot&&(De=we-ot*2);for(var Be=De;Be<=Ke;Be+=1)ze.push(b.createElement(ua,de({},Fe,{key:Be,page:Be,active:re===Be})));if(re-1>=ot*2&&re!==1+2&&(ze[0]=b.cloneElement(ze[0],{className:U("".concat(r,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(Te)),we-re>=ot*2&&re!==we-2){var Re=ze[ze.length-1];ze[ze.length-1]=b.cloneElement(Re,{className:U("".concat(r,"-item-before-jump-next"),Re.props.className)}),ze.push(Le)}De!==1&&ze.unshift(b.createElement(ua,de({},Fe,{key:1,page:1}))),Ke!==we&&ze.push(b.createElement(ua,de({},Fe,{key:we,page:we})))}var lt=et(Ve);if(lt){var Tt=!_e||!we;lt=b.createElement("li",{title:I?T.prev_page:null,onClick:Se,tabIndex:Tt?null:0,onKeyDown:Ut,className:U("".concat(r,"-prev"),H({},"".concat(r,"-disabled"),Tt)),"aria-disabled":Tt},lt)}var Dt=ke(Ze);if(Dt){var Kt,on;R?(Kt=!ve,on=_e?0:null):(Kt=!ve||!we,on=Kt?null:0),Dt=b.createElement("li",{title:I?T.next_page:null,onClick:Je,tabIndex:on,onKeyDown:st,className:U("".concat(r,"-next"),H({},"".concat(r,"-disabled"),Kt)),"aria-disabled":Kt},Dt)}var Gt=U(r,a,H(H(H(H(H({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),R),"".concat(r,"-disabled"),A));return b.createElement("ul",de({className:Gt,style:M,ref:te},at),ct,lt,R?nt:ze,Dt,b.createElement(w1,{locale:T,rootPrefixCls:r,disabled:A,selectPrefixCls:i,changeSize:Ee,pageSize:F,pageSizeOptions:K,quickGo:Ne?$e:null,goButton:Qe,showSizeChanger:z,sizeChangerRender:B}))};process.env.NODE_ENV!=="production"&&(N1.displayName="Pagination");const TH=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},MH=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
322
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
323
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
324
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},cp(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},DH=e=>{const{componentCls:t}=e;return{[`
|
|
325
|
+
&${t}-simple ${t}-prev,
|
|
326
|
+
&${t}-simple ${t}-next
|
|
327
|
+
`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${G(e.inputOutlineOffset)} 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},AH=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
328
|
+
${t}-prev,
|
|
329
|
+
${t}-jump-prev,
|
|
330
|
+
${t}-jump-next
|
|
331
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
332
|
+
${t}-prev,
|
|
333
|
+
${t}-next,
|
|
334
|
+
${t}-jump-prev,
|
|
335
|
+
${t}-jump-next
|
|
336
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},up(e)),sp(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},jc(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},RH=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},jH=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),RH(e)),AH(e)),DH(e)),MH(e)),TH(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},LH=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Or(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},zr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},zr(e))}}}},I1=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},xl(e)),_1=e=>St(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Sl(e)),zH=Mt("Pagination",e=>{const t=_1(e);return[jH(t),LH(t)]},I1),BH=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},kH=Ri(["Pagination","bordered"],e=>{const t=_1(e);return[BH(t)]},I1);function P1(e){return b.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var FH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const T1=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,p=FH(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:g}=pl(u),[,h]=Fn(),{getPrefixCls:v,direction:y,showSizeChanger:C,className:x,style:E}=Dn("pagination"),S=v("pagination",n),[$,O,I]=zH(S),w=Kn(l),N=w==="small"||!!(g&&!w&&u),[_]=to("Pagination",Dy),T=Object.assign(Object.assign({},_),c),[M,D]=P1(d),[P,A]=P1(C),R=M!=null?M:P,L=D!=null?D:A,j=f||yn,z=s.useMemo(()=>m?m.map(Q=>Number(Q)):void 0,[m]),B=Q=>{var J;const{disabled:Y,size:te,onSizeChange:oe,"aria-label":X,className:F,options:ee}=Q,{className:Z,onChange:ne}=L||{},re=(J=ee.find(se=>String(se.value)===String(te)))===null||J===void 0?void 0:J.value;return s.createElement(j,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:se=>se.parentNode,"aria-label":X,options:ee},L,{value:re,onChange:(se,le)=>{oe==null||oe(se),ne==null||ne(se,le)},size:N?"small":"middle",className:U(F,Z)}))};if(process.env.NODE_ENV!=="production"){const Q=vt("Pagination");process.env.NODE_ENV!=="production"&&Q(!f,"usage","`selectComponentClass` is not official api which will be removed.")}const K=s.useMemo(()=>{const Q=s.createElement("span",{className:`${S}-item-ellipsis`},"•••"),J=s.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?s.createElement(Da,null):s.createElement(Ma,null)),Y=s.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?s.createElement(Ma,null):s.createElement(Da,null)),te=s.createElement("a",{className:`${S}-item-link`},s.createElement("div",{className:`${S}-item-container`},y==="rtl"?s.createElement(Md,{className:`${S}-item-link-icon`}):s.createElement(kh,{className:`${S}-item-link-icon`}),Q)),oe=s.createElement("a",{className:`${S}-item-link`},s.createElement("div",{className:`${S}-item-container`},y==="rtl"?s.createElement(kh,{className:`${S}-item-link-icon`}):s.createElement(Md,{className:`${S}-item-link-icon`}),Q));return{prevIcon:J,nextIcon:Y,jumpPrevIcon:te,jumpNextIcon:oe}},[y,S]),W=v("select",r),k=U({[`${S}-${t}`]:!!t,[`${S}-mini`]:N,[`${S}-rtl`]:y==="rtl",[`${S}-bordered`]:h.wireframe},x,o,i,O,I),V=Object.assign(Object.assign({},E),a);return $(s.createElement(s.Fragment,null,h.wireframe&&s.createElement(kH,{prefixCls:S}),s.createElement(N1,Object.assign({},K,p,{style:V,prefixCls:S,selectPrefixCls:W,className:k,locale:T,pageSizeOptions:z,showSizeChanger:R,sizeChangerRender:B}))))};process.env.NODE_ENV!=="production"&&(T1.displayName="Pagination");const HH=T1,Qc=100,M1=Qc/5,D1=Qc/2-M1/2,_p=D1*2*Math.PI,A1=50,R1=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:U(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:D1,cx:A1,cy:A1,strokeWidth:M1,style:n})},VH=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=s.useState(!1);Et(()=>{t!==0&&l(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!a)return null;const u={strokeDashoffset:`${_p/4}`,strokeDasharray:`${_p*c/100} ${_p*(100-c)/100}`};return s.createElement("span",{className:U(o,`${r}-progress`,c<=0&&i)},s.createElement("svg",{viewBox:`0 0 ${Qc} ${Qc}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},s.createElement(R1,{dotClassName:r,hasCircleCls:!0}),s.createElement(R1,{dotClassName:r,style:u})))};function WH(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:U(o,n>0&&i)},s.createElement("span",{className:U(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>s.createElement("i",{className:`${t}-dot-item`,key:a})))),s.createElement(VH,{prefixCls:t,percent:n}))}function KH(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&s.isValidElement(n)?Gn(n,{className:U(n.props.className,o),percent:r}):s.createElement(WH,{prefixCls:t,percent:r})}const qH=new It("antSpinMove",{to:{opacity:1}}),GH=new It("antRotate",{to:{transform:"rotate(405deg)"}}),UH=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:qH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:GH,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},XH=Mt("Spin",e=>{const t=St(e,{spinDotDefault:e.colorTextDescription});return[UH(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),QH=200,j1=[[30,.05],[70,.03],[96,.01]];function YH(e,t){const[n,r]=s.useState(0),o=s.useRef(null),i=t==="auto";return s.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c<j1.length;c+=1){const[u,d]=j1[c];if(a<=u)return a+l*d}return a})},QH)),()=>{clearInterval(o.current)}),[i,e]),i?n:t}var JH=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let L1;function ZH(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Pp=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:p,percent:g}=e,h=JH(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:C,style:x,indicator:E}=Dn("spin"),S=v("spin",n),[$,O,I]=XH(S),[w,N]=s.useState(()=>r&&!ZH(r,o)),_=YH(w,g);s.useEffect(()=>{if(r){const L=mF(o,()=>{N(!0)});return L(),()=>{var j;(j=L==null?void 0:L.cancel)===null||j===void 0||j.call(L)}}N(!1)},[o,r]);const T=s.useMemo(()=>typeof f!="undefined"&&!m,[f,m]);if(process.env.NODE_ENV!=="production"){const L=vt("Spin");process.env.NODE_ENV!=="production"&&L(!c||T||m,"usage","`tip` only work in nest or fullscreen pattern.")}const M=U(S,C,{[`${S}-sm`]:l==="small",[`${S}-lg`]:l==="large",[`${S}-spinning`]:w,[`${S}-show-text`]:!!c,[`${S}-rtl`]:y==="rtl"},i,!m&&a,O,I),D=U(`${S}-container`,{[`${S}-blur`]:w}),P=(t=p!=null?p:E)!==null&&t!==void 0?t:L1,A=Object.assign(Object.assign({},x),d),R=s.createElement("div",Object.assign({},h,{style:A,className:M,"aria-live":"polite","aria-busy":w}),s.createElement(KH,{prefixCls:S,indicator:P,percent:_}),c&&(T||m)?s.createElement("div",{className:`${S}-text`},c):null);return $(T?s.createElement("div",Object.assign({},h,{className:U(`${S}-nested-loading`,u,O,I)}),w&&s.createElement("div",{key:"loading"},R),s.createElement("div",{className:D,key:"container"},f)):m?s.createElement("div",{className:U(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:w},a,O,I)},R):R)};Pp.setDefaultIndicator=e=>{L1=e},process.env.NODE_ENV!=="production"&&(Pp.displayName="Spin");const Yc=Pp,eV=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let Pr=null,hi=e=>e(),Nl=[],Il={};function z1(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Il,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const tV=b.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=b.useContext(Xe),i=Il.prefixCls||o("message"),a=b.useContext(Om),[l,c]=Q0(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return b.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),nV=b.forwardRef((e,t)=>{const[n,r]=b.useState(z1),o=()=>{r(z1)};b.useEffect(o,[]);const i=Ef(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=b.createElement(tV,{ref:t,sync:o,messageConfig:n});return b.createElement(ro,{prefixCls:a,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(u):u)});function Jc(){if(!Pr){const e=document.createDocumentFragment(),t={fragment:e};Pr=t,hi(()=>{Tf()(b.createElement(nV,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,Jc())})}}),e)});return}Pr.instance&&(Nl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{hi(()=>{const r=Pr.instance.open(Object.assign(Object.assign({},Il),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":hi(()=>{Pr==null||Pr.instance.destroy(e.key)});break;default:hi(()=>{var r;const o=(r=Pr.instance)[t].apply(r,ge(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Nl=[])}function rV(e){Il=Object.assign(Object.assign({},Il),e),hi(()=>{var t;(t=Pr==null?void 0:Pr.sync)===null||t===void 0||t.call(Pr)})}function oV(e){const t=Nf(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Nl.push(o),()=>{r?hi(()=>{r()}):o.skipped=!0}});return Jc(),t}function iV(e,t){const n=Ef();process.env.NODE_ENV!=="production"&&!n.holderRender&&x0("message");const r=Nf(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Nl.push(a),()=>{i?hi(()=>{i()}):a.skipped=!0}});return Jc(),r}const aV=e=>{Nl.push({type:"destroy",key:e}),Jc()},lV=["success","info","warning","error","loading"],B1={open:oV,destroy:aV,config:rV,useMessage:Y0,_InternalPanelDoNotUseOrYouWillBeFired:TR};lV.forEach(e=>{B1[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return iV(e,n)}}),process.env.NODE_ENV,process.env.NODE_ENV;const Hr=B1;var sV=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cV=BS(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:c}=e,u=sV(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(Xe),f=d(),m=t||d("modal"),p=wn(f),[g,h,v]=CS(m,p),y=`${m}-confirm`;let C={};return i?C={closable:o!=null?o:!1,title:"",footer:"",children:s.createElement(xS,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:l}))}:C={closable:o!=null?o:!0,title:a,footer:c!==null&&s.createElement(vS,Object.assign({},e)),children:l},g(s.createElement(Jf,Object.assign({prefixCls:m,className:U(h,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,p)},u,{closeIcon:pS(m,r),closable:o},C)))});function k1(e){return sl(OS(e))}const Tr=SS;Tr.useModal=MS,Tr.info=function(t){return sl(NS(t))},Tr.success=function(t){return sl(IS(t))},Tr.error=function(t){return sl(_S(t))},Tr.warning=k1,Tr.warn=k1,Tr.confirm=function(t){return sl(PS(t))},Tr.destroyAll=function(){for(;di.length;){const t=di.pop();t&&t()}},Tr.config=OL,Tr._InternalPanelDoNotUseOrYouWillBeFired=cV,process.env.NODE_ENV!=="production"&&(Tr.displayName="Modal");const F1=Tr;var uV={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},dV=function(){var t=b.useRef([]),n=b.useRef(null);return b.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current};process.env.NODE_ENV;var H1=0,fV=process.env.NODE_ENV!=="test"&&In();function mV(){var e;return fV?(e=H1,H1+=1):e="TEST_OR_SSR",e}const pV=function(e){var t=s.useState(),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_progress_".concat(mV()))},[]),e||r};var V1=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function W1(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var K1=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&He(r)==="object",p=m?"#FFF":void 0,g=d/2,h=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:g,cy:g,stroke:p,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!m)return h;var v="".concat(o,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",C=W1(r,(360-f)/360),x=W1(r,1),E="conic-gradient(from ".concat(y,", ").concat(C.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:v},h),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},s.createElement(V1,{bg:S},s.createElement(V1,{bg:E}))))});process.env.NODE_ENV!=="production"&&(K1.displayName="PtgCircle");var _l=100,Tp=function(t,n,r,o,i,a,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*n;u==="round"&&o!==100&&(g+=d/2,g>=n&&(g=n-.01));var h=_l/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(i+m+p,"deg)"),transformOrigin:"".concat(h,"px ").concat(h,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},vV=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q1(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var G1=function(t){var n=q(q({},uV),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,p=n.style,g=n.className,h=n.strokeColor,v=n.percent,y=tt(n,vV),C=_l/2,x=pV(r),E="".concat(x,"-gradient"),S=C-a/2,$=Math.PI*2*S,O=u>0?90+u/2:-90,I=$*((360-u)/360),w=He(i)==="object"?i:{count:i,gap:2},N=w.count,_=w.gap,T=q1(v),M=q1(h),D=M.find(function(B){return B&&He(B)==="object"}),P=D&&He(D)==="object",A=P?"butt":m,R=Tp($,I,0,100,O,u,d,f,A,a),L=dV(),j=function(){var K=0;return T.map(function(W,k){var V=M[k]||M[M.length-1],Q=Tp($,I,K,W,O,u,d,V,A,a);return K+=W,s.createElement(K1,{key:k,color:V,ptg:W,radius:S,prefixCls:o,gradientId:E,style:Q,strokeLinecap:A,strokeWidth:a,gapDegree:u,ref:function(Y){L[k]=Y},size:_l})}).reverse()},z=function(){var K=Math.round(N*(T[0]/100)),W=100/N,k=0;return new Array(N).fill(null).map(function(V,Q){var J=Q<=K-1?M[0]:f,Y=J&&He(J)==="object"?"url(#".concat(E,")"):void 0,te=Tp($,I,k,W,O,u,d,J,"butt",a,_);return k+=(I-te.strokeDashoffset+_)*100/I,s.createElement("circle",{key:Q,className:"".concat(o,"-circle-path"),r:S,cx:C,cy:C,stroke:Y,strokeWidth:a,opacity:1,style:te,ref:function(X){L[Q]=X}})})};return s.createElement("svg",de({className:U("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(_l," ").concat(_l),style:p,id:r,role:"presentation"},y),!N&&s.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:C,cy:C,stroke:f,strokeLinecap:A,strokeWidth:l||a,style:R}),N?z():j())};process.env.NODE_ENV!=="production"&&(G1.displayName="Circle");function Ho(e){return!e||e<0?0:e>100?100:e}function Zc(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const gV=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Ho(Zc({success:n,successPercent:r}));return[o,Ho(Ho(t)-o)]},hV=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||wi.green,n||null]},eu=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e=="undefined"?(l=e==="small"?2:14,c=d!=null?d:8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e=="undefined"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,c=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,c]},bV=3,yV=e=>bV/e*100,CV=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:c,success:u,size:d=a,steps:f}=e,[m,p]=eu(d,"circle");let{strokeWidth:g}=e;g===void 0&&(g=Math.max(yV(m),6));const h={width:m,height:p,fontSize:m*.15+6},v=s.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),y=gV(e),C=o||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=hV({success:u,strokeColor:e.strokeColor}),S=U(`${t}-inner`,{[`${t}-circle-gradient`]:x}),$=s.createElement(G1,{steps:f,percent:f?y[1]:y,strokeWidth:g,trailWidth:g,strokeColor:f?E[1]:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:C}),O=m<=20,I=s.createElement("div",{className:S,style:h},$,!O&&c);return O?s.createElement(lo,{title:c},I):I},tu="--progress-line-stroke-color",U1="--progress-percent",X1=e=>{const t=e?"100%":"-100%";return new It(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},SV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${tu})`]},height:"100%",width:`calc(1 / var(${U1}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${G(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:X1(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:X1(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},xV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},EV=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},$V=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wV=Mt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=St(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[SV(n),xV(n),EV(n),$V(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var OV=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NV=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},IV=(e,t)=>{const{from:n=wi.blue,to:r=wi.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=OV(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=NV(i),c=`linear-gradient(${o}, ${l})`;return{background:c,[tu]:c}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[tu]:a}},_V=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:p}=d,g=a&&typeof a!="string"?IV(a,n):{[tu]:a,background:a},h=l==="square"||l==="butt"?0:void 0,v=o!=null?o:[-1,i||(o==="small"?6:8)],[y,C]=eu(v,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&vt("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const x={backgroundColor:u||void 0,borderRadius:h},E=Object.assign(Object.assign({width:`${Ho(r)}%`,height:C,borderRadius:h},g),{[U1]:Ho(r)/100}),S=Zc(e),$={width:`${Ho(S)}%`,height:C,borderRadius:h,backgroundColor:f==null?void 0:f.strokeColor},O={width:y<0?"100%":y},I=s.createElement("div",{className:`${t}-inner`,style:x},s.createElement("div",{className:U(`${t}-bg`,`${t}-bg-${p}`),style:E},p==="inner"&&c),S!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:$})),w=p==="outer"&&m==="start",N=p==="outer"&&m==="end";return p==="outer"&&m==="center"?s.createElement("div",{className:`${t}-layout-bottom`},I,c):s.createElement("div",{className:`${t}-outer`,style:O},w&&c,I,N&&c)},PV=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:c,children:u}=e,d=r(n*(o/100)),f=t==="small"?2:14,m=t!=null?t:[f,i],[p,g]=eu(m,"step",{steps:n,strokeWidth:i}),h=p/n,v=Array.from({length:n});for(let y=0;y<n;y++){const C=Array.isArray(a)?a[y]:a;v[y]=s.createElement("div",{key:y,className:U(`${c}-steps-item`,{[`${c}-steps-item-active`]:y<=d-1}),style:{backgroundColor:y<=d-1?C:l,width:h,height:g}})}return s.createElement("div",{className:`${c}-steps-outer`},v,u)};var TV=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const MV=["normal","exception","active","success"],Q1=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:p,percentPosition:g={}}=e,h=TV(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=g,C=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,E=s.useMemo(()=>{if(C){const j=typeof C=="string"?C:Object.values(C)[0];return new Bt(j).isLight()}return!1},[a]),S=s.useMemo(()=>{var j,z;const B=Zc(e);return parseInt(B!==void 0?(j=B!=null?B:0)===null||j===void 0?void 0:j.toString():(z=l!=null?l:0)===null||z===void 0?void 0:z.toString(),10)},[l,e.success,e.successPercent]),$=s.useMemo(()=>!MV.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:O,direction:I,progress:w}=s.useContext(Xe),N=O("progress",n),[_,T,M]=wV(N),D=d==="line",P=D&&!i,A=s.useMemo(()=>{if(!u)return null;const j=Zc(e);let z;const B=m||(W=>`${W}%`),K=D&&E&&y==="inner";return y==="inner"||m||$!=="exception"&&$!=="success"?z=B(Ho(l),Ho(j)):$==="exception"?z=D?s.createElement(Mo,null):s.createElement(xr,null):$==="success"&&(z=D?s.createElement(To,null):s.createElement(fs,null)),s.createElement("span",{className:U(`${N}-text`,{[`${N}-text-bright`]:K,[`${N}-text-${v}`]:P,[`${N}-text-${y}`]:P}),title:typeof z=="string"?z:void 0},z)},[u,l,S,$,d,N,m]);if(process.env.NODE_ENV!=="production"){const j=vt("Progress");j.deprecated(!("successPercent"in e),"successPercent","success.percent"),j.deprecated(!("width"in e),"width","size"),(d==="circle"||d==="dashboard")&&(Array.isArray(c)?process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof c=="object"&&process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&j.deprecated(!1,"success.progress","success.percent")}let R;d==="line"?R=i?s.createElement(PV,Object.assign({},e,{strokeColor:x,prefixCls:N,steps:typeof i=="object"?i.count:i}),A):s.createElement(_V,Object.assign({},e,{strokeColor:C,prefixCls:N,direction:I,percentPosition:{align:v,type:y}}),A):(d==="circle"||d==="dashboard")&&(R=s.createElement(CV,Object.assign({},e,{strokeColor:C,prefixCls:N,progressStatus:$}),A));const L=U(N,`${N}-status-${$}`,{[`${N}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${N}-inline-circle`]:d==="circle"&&eu(c,"circle")[0]<=20,[`${N}-line`]:P,[`${N}-line-align-${v}`]:P,[`${N}-line-position-${y}`]:P,[`${N}-steps`]:i,[`${N}-show-info`]:u,[`${N}-${c}`]:typeof c=="string",[`${N}-rtl`]:I==="rtl"},w==null?void 0:w.className,r,o,T,M);return _(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),className:L,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},tn(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))});process.env.NODE_ENV!=="production"&&(Q1.displayName="Progress");const DV=Q1;var AV=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Y1(e){return typeof e=="string"}function J1(e){var t,n=e.className,r=e.prefixCls,o=e.style,i=e.active,a=e.status,l=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,p=e.subTitle,g=e.progressDot,h=e.stepIcon,v=e.tailContent,y=e.icons,C=e.stepIndex,x=e.onStepClick,E=e.onClick,S=e.render,$=tt(e,AV),O=!!x&&!d,I={};O&&(I.role="button",I.tabIndex=0,I.onClick=function(D){E==null||E(D),x(C)},I.onKeyDown=function(D){var P=D.which;(P===ye.ENTER||P===ye.SPACE)&&x(C)});var w=function(){var P,A,R=U("".concat(r,"-icon"),"".concat(l,"icon"),(P={},H(P,"".concat(l,"icon-").concat(c),c&&Y1(c)),H(P,"".concat(l,"icon-check"),!c&&a==="finish"&&(y&&!y.finish||!y)),H(P,"".concat(l,"icon-cross"),!c&&a==="error"&&(y&&!y.error||!y)),P)),L=s.createElement("span",{className:"".concat(r,"-icon-dot")});return g?typeof g=="function"?A=s.createElement("span",{className:"".concat(r,"-icon")},g(L,{index:u-1,status:a,title:m,description:f})):A=s.createElement("span",{className:"".concat(r,"-icon")},L):c&&!Y1(c)?A=s.createElement("span",{className:"".concat(r,"-icon")},c):y&&y.finish&&a==="finish"?A=s.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&a==="error"?A=s.createElement("span",{className:"".concat(r,"-icon")},y.error):c||a==="finish"||a==="error"?A=s.createElement("span",{className:R}):A=s.createElement("span",{className:"".concat(r,"-icon")},u),h&&(A=h({index:u-1,status:a,title:m,description:f,node:A})),A},N=a||"wait",_=U("".concat(r,"-item"),"".concat(r,"-item-").concat(N),n,(t={},H(t,"".concat(r,"-item-custom"),c),H(t,"".concat(r,"-item-active"),i),H(t,"".concat(r,"-item-disabled"),d===!0),t)),T=q({},o),M=s.createElement("div",de({},$,{className:_,style:T}),s.createElement("div",de({onClick:E},I,{className:"".concat(r,"-item-container")}),s.createElement("div",{className:"".concat(r,"-item-tail")},v),s.createElement("div",{className:"".concat(r,"-item-icon")},w()),s.createElement("div",{className:"".concat(r,"-item-content")},s.createElement("div",{className:"".concat(r,"-item-title")},m,p&&s.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(r,"-item-subtitle")},p)),f&&s.createElement("div",{className:"".concat(r,"-item-description")},f))));return S&&(M=S(M)||null),M}var RV=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function Mp(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,o=e.style,i=o===void 0?{}:o,a=e.className;e.children;var l=e.direction,c=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,p=e.iconPrefix,g=p===void 0?"rc":p,h=e.status,v=h===void 0?"process":h,y=e.size,C=e.current,x=C===void 0?0:C,E=e.progressDot,S=E===void 0?!1:E,$=e.stepIcon,O=e.initial,I=O===void 0?0:O,w=e.icons,N=e.onChange,_=e.itemRender,T=e.items,M=T===void 0?[]:T,D=tt(e,RV),P=d==="navigation",A=d==="inline",R=A||S,L=A?"horizontal":c,j=A?void 0:y,z=R?"vertical":m,B=U(r,"".concat(r,"-").concat(L),a,(t={},H(t,"".concat(r,"-").concat(j),j),H(t,"".concat(r,"-label-").concat(z),L==="horizontal"),H(t,"".concat(r,"-dot"),!!R),H(t,"".concat(r,"-navigation"),P),H(t,"".concat(r,"-inline"),A),t)),K=function(V){N&&x!==V&&N(V)},W=function(V,Q){var J=q({},V),Y=I+Q;return v==="error"&&Q===x-1&&(J.className="".concat(r,"-next-error")),J.status||(Y===x?J.status=v:Y<x?J.status="finish":J.status="wait"),A&&(J.icon=void 0,J.subTitle=void 0),!J.render&&_&&(J.render=function(te){return _(J,te)}),b.createElement(J1,de({},J,{active:Y===x,stepNumber:Y+1,stepIndex:Y,key:Y,prefixCls:r,iconPrefix:g,wrapperStyle:i,progressDot:R,stepIcon:$,icons:w,onStepClick:N&&K}))};return b.createElement("div",de({className:B,style:i},D),M.filter(function(k){return k}).map(W))}Mp.Step=J1;const jV=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:G(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},LV=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},zV=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${G(i)} ${G(e.paddingXXS)} 0`,margin:`0 ${G(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${G(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${G(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},BV=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${G(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},kV=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Co),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${G(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${G(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${G(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},FV=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${G(d)} !important`,height:`${G(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${G(f)} !important`,height:`${G(f)} !important`}}}}},HV=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${G(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${G(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:G(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:G(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${G(e.calc(i).add(e.paddingXS).equal())} 0 ${G(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},VV=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},WV=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${G(e.marginXS)}`,fontSize:r,lineHeight:G(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:G(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:G(n),transform:"none"}}}}},KV=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:G(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${G(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${G(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:G(n)}}}}},qV="wait",GV="process",UV="finish",XV="error",nu=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},QV=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},zr(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:G(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${G(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:G(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},nu(qV,e)),nu(GV,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),nu(UV,e)),nu(XV,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},YV=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},JV=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),QV(e)),YV(e)),jV(e)),WV(e)),KV(e)),LV(e)),BV(e)),HV(e)),kV(e)),VV(e)),FV(e)),zV(e))}},ZV=Mt("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=St(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return[JV(f)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));function e7(e){return e.filter(t=>t)}function t7(e,t){if(process.env.NODE_ENV==="test"&&vt("Menu").deprecated(!t,"Step","items"),e)return e;const n=_n(t).map(r=>{if(s.isValidElement(r)){const{props:o}=r;return Object.assign({},o)}return null});return e7(n)}var n7=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dp=e=>{const{percent:t,size:n,className:r,rootClassName:o,direction:i,items:a,responsive:l=!0,current:c=0,children:u,style:d}=e,f=n7(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=pl(l),{getPrefixCls:p,direction:g,className:h,style:v}=Dn("steps"),y=s.useMemo(()=>l&&m?"vertical":i,[m,i]),C=Kn(n),x=p("steps",e.prefixCls),[E,S,$]=ZV(x),O=e.type==="inline",I=p("",e.iconPrefix),w=t7(a,u),N=O?void 0:t,_=Object.assign(Object.assign({},v),d),T=U(h,{[`${x}-rtl`]:g==="rtl",[`${x}-with-progress`]:N!==void 0},r,o,S,$),M={finish:s.createElement(fs,{className:`${x}-finish-icon`}),error:s.createElement(xr,{className:`${x}-error-icon`})},D=A=>{let{node:R,status:L}=A;if(L==="process"&&N!==void 0){const j=C==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(DV,{type:"circle",percent:N,size:j,strokeWidth:4,format:()=>null}),R)}return R},P=(A,R)=>A.description?s.createElement(lo,{title:A.description},R):R;return E(s.createElement(Mp,Object.assign({icons:M},f,{style:_,current:c,size:C,items:w,itemRender:O?P:void 0,stepIcon:D,direction:y,prefixCls:x,iconPrefix:I,className:T})))};Dp.Step=Mp.Step,process.env.NODE_ENV!=="production"&&(Dp.displayName="Steps");const Z1=Dp;var r7=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ew=s.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,p=e.onChange,g=e.onKeyDown,h=tt(e,r7),v=an(!1,{value:a,defaultValue:l}),y=ae(v,2),C=y[0],x=y[1];function E(I,w){var N=C;return c||(N=I,x(N),p==null||p(N,w)),N}function S(I){I.which===ye.LEFT?E(!1,I):I.which===ye.RIGHT&&E(!0,I),g==null||g(I)}function $(I){var w=E(!C,I);m==null||m(w,I)}var O=U(o,i,(n={},H(n,"".concat(o,"-checked"),C),H(n,"".concat(o,"-disabled"),c),n));return s.createElement("button",de({},h,{type:"button",role:"switch","aria-checked":C,disabled:c,className:O,ref:t,onKeyDown:S,onClick:$}),u,s.createElement("span",{className:"".concat(o,"-inner")},s.createElement("span",{className:"".concat(o,"-inner-checked")},d),s.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});ew.displayName="Switch";const o7=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=G(c(l).add(c(r).mul(2)).equal()),f=G(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:G(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${G(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},i7=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},a7=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${G(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},l7=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,u=G(l(a).add(l(r).mul(2)).equal()),d=G(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},s7=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:G(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Or(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},c7=Mt("Switch",e=>{const t=St(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[s7(t),l7(t),a7(t),i7(t),o7(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,c=i-l*2,u=a-l*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}});var u7=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ap=s.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:p}=e,g=u7(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,v]=an(!1,{value:u!=null?u:d,defaultValue:f!=null?f:m}),{getPrefixCls:y,direction:C,switch:x}=s.useContext(Xe),E=s.useContext(no),S=(o!=null?o:E)||i,$=y("switch",n),O=s.createElement("div",{className:`${$}-handle`},i&&s.createElement(Zo,{className:`${$}-loading-icon`})),[I,w,N]=c7($),_=Kn(r),T=U(x==null?void 0:x.className,{[`${$}-small`]:_==="small",[`${$}-loading`]:i,[`${$}-rtl`]:C==="rtl"},a,l,w,N),M=Object.assign(Object.assign({},x==null?void 0:x.style),c),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return I(s.createElement(el,{component:"Switch"},s.createElement(ew,Object.assign({},g,{checked:h,onChange:D,prefixCls:$,className:T,style:M,disabled:S,ref:t,loadingIcon:O}))))});Ap.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(Ap.displayName="Switch");const d7=Ap;var Vr={},Pl="rc-table-internal-hook";function Rp(e){var t=s.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=s.useRef(i);l.current=i;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=ae(c,1),d=u[0];return Et(function(){tr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),s.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function qn(e,t){var n=qt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(p){m[p]=f[p]}),m}),r=s.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=s.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var c=s.useState({}),u=ae(c,2),d=u[1];return Et(function(){if(!r)return;function f(m){var p=n(m);Jr(l.current,p,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),l.current}function f7(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(o,i){var a=Ar(o),l=function(u,d){var f=a?{ref:d}:{},m=s.useRef(0),p=s.useRef(u),g=t();return g!==null?s.createElement(o,de({},u,f)):((!i||i(p.current,u))&&(m.current+=1),p.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(o,de({},u,f))))};return process.env.NODE_ENV!=="production"&&(l.displayName="ImmutableRoot(".concat(o.displayName||o.name,")")),a?s.forwardRef(l):l}function r(o,i){var a=Ar(o),l=function(u,d){var f=a?{ref:d}:{};return t(),s.createElement(o,de({},u,f))};return process.env.NODE_ENV!=="production"&&(l.displayName="ImmutableResponse(".concat(o.displayName||o.name,")")),a?s.memo(s.forwardRef(l),i):s.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var jp=f7(),tw=jp.makeImmutable,da=jp.responseImmutable,m7=jp.useImmutableMark,ir=Rp();function nw(e,t){var n=s.useRef(0);n.current+=1;var r=s.useRef(e),o=[];Object.keys(e||{}).map(function(a){var l;(e==null?void 0:e[a])!==((l=r.current)===null||l===void 0?void 0:l[a])&&o.push(a)}),r.current=e;var i=s.useRef([]);return o.length&&(i.current=o),s.useDebugValue(n.current),s.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}const Vo=process.env.NODE_ENV!=="production"?nw:function(){};var p7=s.memo(function(){var e=nw();return s.createElement("h1",null,"Render Times: ",e)});process.env.NODE_ENV!=="production"&&(p7.displayName="RenderBlock");var rw=s.createContext({renderWithProps:!1}),v7="RC_TABLE_KEY";function g7(e){return e==null?[]:Array.isArray(e)?e:[e]}function ru(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||g7(a).join("-")||v7;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Lp(e){return e!=null}function h7(e){return typeof e=="number"&&!Number.isNaN(e)}function b7(e){return e&&He(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function y7(e,t,n,r,o,i){var a=s.useContext(rw),l=m7(),c=ei(function(){if(Lp(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=rr(e,u),f=d,m=void 0;if(o){var p=o(d,e,n);b7(p)?(process.env.NODE_ENV!=="production"&&Ue(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),f=p.children,m=p.props,a.renderWithProps=!0):f=p}return[f,m]},[l,e,r,t,o,n],function(u,d){if(i){var f=ae(u,2),m=f[1],p=ae(d,2),g=p[1];return i(g,m)}return a.renderWithProps?!0:!Jr(u,d,!0)});return c}function C7(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function S7(e,t){return qn(ir,function(n){var r=C7(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var x7=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function E7(e){var t,n,r,o,i,a,l,c;process.env.NODE_ENV!=="production"&&Vo(e);var u=e.component,d=e.children,f=e.ellipsis,m=e.scope,p=e.prefixCls,g=e.className,h=e.align,v=e.record,y=e.render,C=e.dataIndex,x=e.renderIndex,E=e.shouldCellUpdate,S=e.index,$=e.rowType,O=e.colSpan,I=e.rowSpan,w=e.fixLeft,N=e.fixRight,_=e.firstFixLeft,T=e.lastFixLeft,M=e.firstFixRight,D=e.lastFixRight,P=e.appendNode,A=e.additionalProps,R=A===void 0?{}:A,L=e.isSticky,j="".concat(p,"-cell"),z=qn(ir,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=z.supportSticky,K=z.allColumnsFixedLeft,W=z.rowHoverable,k=y7(v,C,x,d,y,E),V=ae(k,2),Q=V[0],J=V[1],Y={},te=typeof w=="number"&&B,oe=typeof N=="number"&&B;te&&(Y.position="sticky",Y.left=w),oe&&(Y.position="sticky",Y.right=N);var X=(t=(n=(r=J==null?void 0:J.colSpan)!==null&&r!==void 0?r:R.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,F=(o=(i=(a=J==null?void 0:J.rowSpan)!==null&&a!==void 0?a:R.rowSpan)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:1,ee=S7(S,F),Z=ae(ee,2),ne=Z[0],re=Z[1],se=qt(function(me){var Ce;v&&re(S,S+F-1),R==null||(Ce=R.onMouseEnter)===null||Ce===void 0||Ce.call(R,me)}),le=qt(function(me){var Ce;v&&re(-1,-1),R==null||(Ce=R.onMouseLeave)===null||Ce===void 0||Ce.call(R,me)});if(X===0||F===0)return null;var he=(l=R.title)!==null&&l!==void 0?l:x7({rowType:$,ellipsis:f,children:Q}),fe=U(j,g,(c={},H(H(H(H(H(H(H(H(H(H(c,"".concat(j,"-fix-left"),te&&B),"".concat(j,"-fix-left-first"),_&&B),"".concat(j,"-fix-left-last"),T&&B),"".concat(j,"-fix-left-all"),T&&K&&B),"".concat(j,"-fix-right"),oe&&B),"".concat(j,"-fix-right-first"),M&&B),"".concat(j,"-fix-right-last"),D&&B),"".concat(j,"-ellipsis"),f),"".concat(j,"-with-append"),P),"".concat(j,"-fix-sticky"),(te||oe)&&L&&B),H(c,"".concat(j,"-row-hover"),!J&&ne)),R.className,J==null?void 0:J.className),ie={};h&&(ie.textAlign=h);var ce=q(q(q(q({},J==null?void 0:J.style),Y),ie),R.style),ue=Q;return He(ue)==="object"&&!Array.isArray(ue)&&!s.isValidElement(ue)&&(ue=null),f&&(T||M)&&(ue=s.createElement("span",{className:"".concat(j,"-content")},ue)),s.createElement(u,de({},J,R,{className:fe,style:ce,title:he,scope:m,onMouseEnter:W?se:void 0,onMouseLeave:W?le:void 0,colSpan:X!==1?X:null,rowSpan:F!==1?F:null}),P,ue)}const fa=s.memo(E7);function zp(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},l,c;i.fixed==="left"?l=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,p=n[t+1],g=n[e-1],h=p&&!p.fixed||g&&!g.fixed||n.every(function(E){return E.fixed==="left"});if(o==="rtl"){if(l!==void 0){var v=g&&g.fixed==="left";m=!v&&h}else if(c!==void 0){var y=p&&p.fixed==="right";f=!y&&h}}else if(l!==void 0){var C=p&&p.fixed==="left";u=!C&&h}else if(c!==void 0){var x=g&&g.fixed==="right";d=!x&&h}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var ow=s.createContext({});function $7(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,c=qn(ir,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(ow),m=f.scrollColumnIndex,p=f.stickyOffsets,g=f.flattenColumns,h=n+i-1,v=h+1===m?i+1:i,y=zp(n,n+v-1,g,p,d);return s.createElement(fa,de({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:a,render:function(){return r}},y))}var w7=["children"];function O7(e){var t=e.children,n=tt(e,w7);return s.createElement("tr",n,t)}function ou(e){var t=e.children;return t}ou.Row=O7,ou.Cell=$7;function N7(e){process.env.NODE_ENV!=="production"&&Vo(e);var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=qn(ir,"prefixCls"),i=r.length-1,a=r[i],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return s.createElement(ow.Provider,{value:l},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const iu=da(N7);var iw=ou;function I7(e){return null}function _7(e){return null}function aw(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)aw(e,t[r][u],n+1,r,o,i,u)}function lw(e,t,n,r){var o=s.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];aw(i,l,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u}})},[e,t,n,r]);return o}function sw(e,t,n,r){var o=qn(ir,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,l=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,p=o.rowClassName,g=a==="nest",h=a==="row"&&(!d||d(e)),v=h||g,y=l&&l.has(t),C=c&&e&&e[c],x=qt(u),E=f==null?void 0:f(e,n),S=E==null?void 0:E.onClick,$=function(N){m&&v&&u(e,N);for(var _=arguments.length,T=new Array(_>1?_-1:0),M=1;M<_;M++)T[M-1]=arguments[M];S==null||S.apply(void 0,[N].concat(T))},O;typeof p=="string"?O=p:typeof p=="function"&&(O=p(e,n,r));var I=ru(i);return q(q({},o),{},{columnsKey:I,nestExpandable:g,expanded:y,hasNestChildren:C,record:e,onTriggerExpand:x,rowSupportExpand:h,expandable:v,rowProps:q(q({},E),{},{className:U(O,E==null?void 0:E.className),onClick:$})})}function cw(e){process.env.NODE_ENV!=="production"&&Vo(e);var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=qn(ir,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,m=u.fixColumn,p=u.componentWidth,g=u.horizonScroll,h=n;return(c?g&&p:m)&&(h=s.createElement("div",{style:{width:p-(f&&!c?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h)),s.createElement(r,{className:i,style:{display:a?null:"none"}},s.createElement(fa,{component:o,prefixCls:t,colSpan:l},h))}function P7(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return s.createElement("span",{className:U(a,"".concat(t,"-row-spaced"))});var l=function(u){r(n,u),u.stopPropagation()};return s.createElement("span",{className:U(a,H(H({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:l})}function T7(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function uw(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function dw(e,t,n,r,o){var i=e.record,a=e.prefixCls,l=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,m=e.expandIcon,p=e.expanded,g=e.hasNestChildren,h=e.onTriggerExpand,v=l[n],y=c[n],C;n===(u||0)&&d&&(C=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),m({prefixCls:a,expanded:p,expandable:g,record:i,onExpand:h})));var x;return t.onCell&&(x=t.onCell(i,o)),{key:v,fixedInfo:y,appendCellNode:C,additionalCellProps:x||{}}}function fw(e){process.env.NODE_ENV!=="production"&&Vo(e);var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.indent,c=l===void 0?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,m=sw(r,a,o,c),p=m.prefixCls,g=m.flattenColumns,h=m.expandedRowClassName,v=m.expandedRowRender,y=m.rowProps,C=m.expanded,x=m.rowSupportExpand,E=s.useRef(!1);E.current||(E.current=C),process.env.NODE_ENV!=="production"&&Vo(e);var S=uw(h,r,o,c),$=s.createElement(u,de({},y,{"data-row-key":a,className:U(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(c),y==null?void 0:y.className,H({},S,c>=1)),style:q(q({},n),y==null?void 0:y.style)}),g.map(function(w,N){var _=w.render,T=w.dataIndex,M=w.className,D=dw(m,w,N,c,o),P=D.key,A=D.fixedInfo,R=D.appendCellNode,L=D.additionalCellProps;return s.createElement(fa,de({className:M,ellipsis:w.ellipsis,align:w.align,scope:w.rowScope,component:w.rowScope?f:d,prefixCls:p,key:P,record:r,index:o,renderIndex:i,dataIndex:T,render:_,shouldCellUpdate:w.shouldCellUpdate},A,{appendNode:R,additionalProps:L}))})),O;if(x&&(E.current||C)){var I=v(r,o,c+1,C);O=s.createElement(cw,{expanded:C,className:U("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(c+1),S),prefixCls:p,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},I)}return s.createElement(s.Fragment,null,$,O)}process.env.NODE_ENV!=="production"&&(fw.displayName="BodyRow");const M7=da(fw);function D7(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return Et(function(){r.current&&n(t,r.current.offsetWidth)},[]),s.createElement(Wn,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function A7(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=s.useRef(null);return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},s.createElement(Wn.Collection,{onBatchResize:function(a){Za(o.current)&&a.forEach(function(l){var c=l.data,u=l.size;r(c,u.offsetWidth)})}},n.map(function(i){return s.createElement(D7,{key:i,columnKey:i,onColumnResize:r})})))}function mw(e){process.env.NODE_ENV!=="production"&&Vo(e);var t=e.data,n=e.measureColumnWidth,r=qn(ir,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=lw(t,d,u,c),p=s.useRef({renderWithProps:!1}),g=i(["body","wrapper"],"tbody"),h=i(["body","row"],"tr"),v=i(["body","cell"],"td"),y=i(["body","cell"],"th"),C;t.length?C=m.map(function(E,S){var $=E.record,O=E.indent,I=E.index,w=c($,S);return s.createElement(M7,{key:w,rowKey:w,record:$,index:S,renderIndex:I,rowComponent:h,cellComponent:v,scopeCellComponent:y,indent:O})}):C=s.createElement(cw,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:v,colSpan:l.length,isEmpty:!0},f);var x=ru(l);return s.createElement(rw.Provider,{value:p.current},s.createElement(g,{className:"".concat(o,"-tbody")},n&&s.createElement(A7,{prefixCls:o,columnsKey:x,onColumnResize:a}),C))}process.env.NODE_ENV!=="production"&&(mw.displayName="Body");const R7=da(mw);var j7=["expandable"],Tl="RC_TABLE_INTERNAL_COL_DEFINE";function L7(e){var t=e.expandable,n=tt(e,j7),r;return"expandable"in e?r=q(q({},n),t):(process.env.NODE_ENV!=="production"&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(function(o){return o in e})&&Ue(!1,"expanded related props have been moved into `expandable`."),r=n),r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var z7=["columnType"];function pw(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=qn(ir,["tableLayout"]),i=o.tableLayout,a=[],l=r||n.length,c=!1,u=l-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,p=void 0;if(f&&(m=f[Tl],i==="auto"&&(p=f.minWidth)),d||p||m||c){var g=m||{};g.columnType;var h=tt(g,z7);a.unshift(s.createElement("col",de({key:u,style:{width:d,minWidth:p}},h))),c=!0}}return s.createElement("colgroup",null,a)}var B7=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function k7(e,t){return b.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var vw=s.forwardRef(function(e,t){process.env.NODE_ENV!=="production"&&Vo(e);var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,m=e.stickyBottomOffset,p=e.stickyClassName,g=e.onScroll,h=e.maxContentScroll,v=e.children,y=tt(e,B7),C=qn(ir,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=C.prefixCls,E=C.scrollbarSize,S=C.isSticky,$=C.getComponent,O=$(["header","table"],"table"),I=S&&!d?0:E,w=s.useRef(null),N=s.useCallback(function(L){Ra(t,L),Ra(w,L)},[]);s.useEffect(function(){var L;function j(z){var B=z,K=B.currentTarget,W=B.deltaX;W&&(g({currentTarget:K,scrollLeft:K.scrollLeft+W}),z.preventDefault())}return(L=w.current)===null||L===void 0||L.addEventListener("wheel",j,{passive:!1}),function(){var z;(z=w.current)===null||z===void 0||z.removeEventListener("wheel",j)}},[]);var _=s.useMemo(function(){return i.every(function(L){return L.width})},[i]),T=i[i.length-1],M={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},D=b.useMemo(function(){return I?[].concat(ge(o),[M]):o},[I,o]),P=b.useMemo(function(){return I?[].concat(ge(i),[M]):i},[I,i]),A=b.useMemo(function(){var L=c.right,j=c.left;return q(q({},c),{},{left:u==="rtl"?[].concat(ge(j.map(function(z){return z+I})),[0]):j,right:u==="rtl"?L:[].concat(ge(L.map(function(z){return z+I})),[0]),isSticky:S})},[I,c,S]),R=k7(a,l);return s.createElement("div",{style:q({overflow:"hidden"},S?{top:f,bottom:m}:{}),ref:N,className:U(n,H({},p,!!p))},s.createElement(O,{style:{tableLayout:"fixed",visibility:r||R?null:"hidden"}},(!r||!h||_)&&s.createElement(pw,{colWidths:R?[].concat(ge(R),[I]):[],columCount:l+1,columns:P}),v(q(q({},y),{},{stickyOffsets:A,columns:D,flattenColumns:P}))))});process.env.NODE_ENV!=="production"&&(vw.displayName="FixedHolder");const gw=s.memo(vw);var hw=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,i=t.rowComponent,a=t.cellComponent,l=t.onHeaderRow,c=t.index,u=qn(ir,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;l&&(m=l(n.map(function(g){return g.column}),c));var p=ru(n.map(function(g){return g.column}));return s.createElement(i,m,n.map(function(g,h){var v=g.column,y=zp(g.colStart,g.colEnd,o,r,f),C;return v&&v.onHeaderCell&&(C=g.column.onHeaderCell(v)),s.createElement(fa,de({},g,{scope:v.title?g.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:d,key:p[h]},y,{additionalProps:C,rowType:"header"}))}))};process.env.NODE_ENV!=="production"&&(hw.displayName="HeaderRow");function F7(e){var t=[];function n(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=a.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},p=1,g=f.children;return g&&g.length>0&&(p=n(g,u,c+1).reduce(function(h,v){return h+v},0),m.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[c].push(m),u+=p,p});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},i=0;i<r;i+=1)o(i);return t}var H7=function(t){process.env.NODE_ENV!=="production"&&Vo(t);var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,i=t.onHeaderRow,a=qn(ir,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,u=s.useMemo(function(){return F7(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return s.createElement(d,{className:"".concat(l,"-thead")},u.map(function(p,g){var h=s.createElement(hw,{key:g,flattenColumns:o,cells:p,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:i,index:g});return h}))};const bw=da(H7);function yw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function V7(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var p=yw(t,m.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,u=0,d=e.map(function(m){var p=q({},m),g=yw(t,p.width);if(g)p.width=g;else{var h=Math.floor(c);p.width=l===1?a:h,a-=h,l-=1}return u+=p.width,p});if(u<i){var f=i/u;a=i,d.forEach(function(m,p){var g=Math.floor(m.width*f);m.width=p===d.length-1?a:g,a-=g})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var W7=["children"],K7=["fixed"];function Bp(e){return _n(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=tt(r,W7),a=q({key:n},i);return o&&(a.children=Bp(o)),a})}function Cw(e){return e.filter(function(t){return t&&He(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?q(q({},t),{},{children:Cw(n)}):t})}function kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&He(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,l="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ge(n),ge(kp(c,l).map(function(u){return q({fixed:a},u)}))):[].concat(ge(n),[q(q({key:l},r),{},{fixed:a})])},[])}function q7(e){return e.map(function(t){var n=t.fixed,r=tt(t,K7),o=n;return n==="left"?o="right":n==="right"&&(o="left"),q({fixed:o},r)})}function G7(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,g=e.expandRowByClick,h=e.columnWidth,v=e.fixed,y=e.scrollWidth,C=e.clientWidth,x=s.useMemo(function(){var T=r||Bp(o)||[];return Cw(T.slice())},[r,o]),E=s.useMemo(function(){if(i){var T=x.slice();if(process.env.NODE_ENV!=="production"&&m>=0&&Ue(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!T.includes(Vr)){var M=m||0;M>=0&&(M||v==="left"||!v)&&T.splice(M,0,Vr),v==="right"&&T.splice(x.length,0,Vr)}process.env.NODE_ENV!=="production"&&T.filter(function(L){return L===Vr}).length>1&&Ue(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var D=T.indexOf(Vr);T=T.filter(function(L,j){return L!==Vr||j===D});var P=x[D],A;v?A=v:A=P?P.fixed:null;var R=H(H(H(H(H(H({},Tl,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",A),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(j,z,B){var K=c(z,B),W=a.has(K),k=f?f(z):!0,V=d({prefixCls:n,expanded:W,expandable:k,record:z,onExpand:u});return g?s.createElement("span",{onClick:function(J){return J.stopPropagation()}},V):V});return T.map(function(L){return L===Vr?R:L})}return process.env.NODE_ENV!=="production"&&x.includes(Vr)&&Ue(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter(function(L){return L!==Vr})},[i,x,c,a,d,p]),S=s.useMemo(function(){var T=E;return t&&(T=t(T)),T.length||(T=[{render:function(){return null}}]),T},[t,E,p]),$=s.useMemo(function(){return p==="rtl"?q7(kp(S)):kp(S)},[S,p,y]),O=s.useMemo(function(){for(var T=-1,M=$.length-1;M>=0;M-=1){var D=$[M].fixed;if(D==="left"||D===!0){T=M;break}}if(T>=0)for(var P=0;P<=T;P+=1){var A=$[P].fixed;if(A!=="left"&&A!==!0)return!0}var R=$.findIndex(function(z){var B=z.fixed;return B==="right"});if(R>=0)for(var L=R;L<$.length;L+=1){var j=$[L].fixed;if(j!=="right")return!0}return!1},[$]),I=V7($,y,C),w=ae(I,2),N=w[0],_=w[1];return[S,N,_,O]}function U7(e,t,n){var r=L7(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||P7,p=f||"children",g=s.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Pl&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&He(S)==="object"&&S[p]})?"nest":!1},[!!c,t]),h=s.useState(function(){return a||(l?T7(t,n,p):[])}),v=ae(h,2),y=v[0],C=v[1],x=s.useMemo(function(){return new Set(i||y||[])},[i,y]),E=s.useCallback(function(S){var $=n(S,t.indexOf(S)),O,I=x.has($);I?(x.delete($),O=ge(x)):O=[].concat(ge(x),[$]),C(O),u&&u(!I,S),d&&d(O)},[n,x,t,u,d]);return process.env.NODE_ENV!=="production"&&c&&t.some(function(S){return Array.isArray(S==null?void 0:S[p])})&&Ue(!1,"`expandedRowRender` should not use with nested Table"),[r,g,x,m,p,E]}function X7(e,t,n){var r=e.map(function(o,i){return zp(i,i,e,t,n)});return ei(function(){return r},[r],function(o,i){return!Jr(o,i)})}function Q7(e){var t=b.useRef(e),n=b.useState({}),r=ae(n,2),o=r[1],i=b.useRef(null),a=b.useRef([]);function l(c){a.current.push(c);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(m){t.current=m(t.current)}),i.current=null,f!==t.current&&o({})}})}return b.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function Y7(e){var t=b.useRef(e||null),n=b.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return b.useEffect(function(){return r},[]),[o,i]}function J7(){var e=s.useState(-1),t=ae(e,2),n=t[0],r=t[1],o=s.useState(-1),i=ae(o,2),a=i[0],l=i[1],c=s.useCallback(function(u,d){r(u),l(d)},[]);return[n,a,c]}var Sw=In()?window:null;function Z7(e,t){var n=He(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,c=l===void 0?0:l,u=n.getContainer,d=u===void 0?function(){return Sw}:u,f=d()||Sw,m=!!e;return s.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:f}},[m,c,o,a,t,f])}function e9(e,t,n){var r=b.useMemo(function(){var o=t.length,i=function(u,d,f){for(var m=[],p=0,g=u;g!==d;g+=f)m.push(p),t[g].fixed&&(p+=e[g]||0);return m},a=i(0,o,1),l=i(o-1,-1,-1).reverse();return n==="rtl"?{left:l,right:a}:{left:a,right:l}},[e,t,n]);return r}function xw(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)}function Ew(e){var t=za(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var t9=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,c=t.container,u=t.direction,d=qn(ir,"prefixCls"),f=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,p=f&&m*(m/f),g=s.useRef(),h=Q7({scrollLeft:0,isHiddenScrollBar:!0}),v=ae(h,2),y=v[0],C=v[1],x=s.useRef({delta:0,x:0}),E=s.useState(!1),S=ae(E,2),$=S[0],O=S[1],I=s.useRef(null);s.useEffect(function(){return function(){At.cancel(I.current)}},[]);var w=function(){O(!1)},N=function(P){P.persist(),x.current.delta=P.pageX-y.scrollLeft,x.current.x=0,O(!0),P.preventDefault()},_=function(P){var A,R=P||((A=window)===null||A===void 0?void 0:A.event),L=R.buttons;if(!$||L===0){$&&O(!1);return}var j=x.current.x+P.pageX-x.current.x-x.current.delta,z=u==="rtl";j=Math.max(z?p-m:0,Math.min(z?0:m-p,j));var B=!z||Math.abs(j)+Math.abs(p)<m;B&&(a({scrollLeft:j/m*(f+2)}),x.current.x=P.pageX)},T=function(){At.cancel(I.current),I.current=At(function(){if(i.current){var P=Ew(i.current).top,A=P+i.current.offsetHeight,R=c===window?document.documentElement.scrollTop+window.innerHeight:Ew(c).top+c.clientHeight;A-_C()<=R||P>=R-l?C(function(L){return q(q({},L),{},{isHiddenScrollBar:!0})}):C(function(L){return q(q({},L),{},{isHiddenScrollBar:!1})})}})},M=function(P){C(function(A){return q(q({},A),{},{scrollLeft:P/f*m||0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:T}}),s.useEffect(function(){var D=C1(document.body,"mouseup",w,!1),P=C1(document.body,"mousemove",_,!1);return T(),function(){D.remove(),P.remove()}},[p,$]),s.useEffect(function(){if(i.current){for(var D=[],P=za(i.current);P;)D.push(P),P=P.parentElement;return D.forEach(function(A){return A.addEventListener("scroll",T,!1)}),window.addEventListener("resize",T,!1),window.addEventListener("scroll",T,!1),c.addEventListener("scroll",T,!1),function(){D.forEach(function(A){return A.removeEventListener("scroll",T)}),window.removeEventListener("resize",T),window.removeEventListener("scroll",T),c.removeEventListener("scroll",T)}}},[c]),s.useEffect(function(){y.isHiddenScrollBar||C(function(D){var P=i.current;return P?q(q({},D),{},{scrollLeft:P.scrollLeft/P.scrollWidth*P.clientWidth}):D})},[y.isHiddenScrollBar]),f<=m||!p||y.isHiddenScrollBar?null:s.createElement("div",{style:{height:_C(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:N,ref:g,className:U("".concat(d,"-sticky-scroll-bar"),H({},"".concat(d,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const n9=s.forwardRef(t9);var $w="rc-table",r9=[],o9={};function i9(){return"No Data"}function a9(e,t){var n=q({rowKey:"key",prefixCls:$w,emptyText:i9},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,p=n.footer,g=n.summary,h=n.caption,v=n.id,y=n.showHeader,C=n.components,x=n.emptyText,E=n.onRow,S=n.onHeaderRow,$=n.onScroll,O=n.internalHooks,I=n.transformColumns,w=n.internalRefs,N=n.tailor,_=n.getContainerWidth,T=n.sticky,M=n.rowHoverable,D=M===void 0?!0:M,P=l||r9,A=!!P.length,R=O===Pl;process.env.NODE_ENV!=="production"&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(function(ut){Ue(n[ut]===void 0,"`".concat(ut,"` is removed, please use `onRow` instead."))}),Ue(!("getBodyWrapper"in n),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var L=s.useCallback(function(ut,dt){return rr(C,ut)||dt},[C]),j=s.useMemo(function(){return typeof c=="function"?c:function(ut){var dt=ut&&ut[c];return process.env.NODE_ENV!=="production"&&Ue(dt!==void 0,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),dt}},[c]),z=L(["body"]),B=J7(),K=ae(B,3),W=K[0],k=K[1],V=K[2],Q=U7(n,P,j),J=ae(Q,6),Y=J[0],te=J[1],oe=J[2],X=J[3],F=J[4],ee=J[5],Z=u==null?void 0:u.x,ne=s.useState(0),re=ae(ne,2),se=re[0],le=re[1],he=G7(q(q(q({},n),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:oe,getRowKey:j,onTriggerExpand:ee,expandIcon:X,expandIconColumnIndex:Y.expandIconColumnIndex,direction:f,scrollWidth:R&&N&&typeof Z=="number"?Z:null,clientWidth:se}),R?I:null),fe=ae(he,4),ie=fe[0],ce=fe[1],ue=fe[2],me=fe[3],Ce=ue!=null?ue:Z,Oe=s.useMemo(function(){return{columns:ie,flattenColumns:ce}},[ie,ce]),Pe=s.useRef(),je=s.useRef(),Ne=s.useRef(),Ie=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:Pe.current,scrollTo:function(dt){var vn;if(Ne.current instanceof HTMLElement){var sn=dt.index,xn=dt.top,Sr=dt.key;if(h7(xn)){var Zn;(Zn=Ne.current)===null||Zn===void 0||Zn.scrollTo({top:xn})}else{var er,Wr=Sr!=null?Sr:j(P[sn]);(er=Ne.current.querySelector('[data-row-key="'.concat(Wr,'"]')))===null||er===void 0||er.scrollIntoView()}}else(vn=Ne.current)!==null&&vn!==void 0&&vn.scrollTo&&Ne.current.scrollTo(dt)}}});var xe=s.useRef(),be=s.useState(!1),Ee=ae(be,2),$e=Ee[0],_e=Ee[1],ve=s.useState(!1),Se=ae(ve,2),Je=Se[0],it=Se[1],Ot=s.useState(new Map),_t=ae(Ot,2),Ut=_t[0],st=_t[1],Pt=ru(ce),mt=Pt.map(function(ut){return Ut.get(ut)}),et=s.useMemo(function(){return mt},[mt.join("_")]),ke=e9(et,ce,f),Me=u&&Lp(u.y),Te=u&&Lp(Ce)||!!Y.fixed,at=Te&&ce.some(function(ut){var dt=ut.fixed;return dt}),ct=s.useRef(),Le=Z7(T,r),we=Le.isSticky,ze=Le.offsetHeader,Fe=Le.offsetSummary,Ve=Le.offsetScroll,Ze=Le.stickyClassName,$t=Le.container,Ae=s.useMemo(function(){return g==null?void 0:g(P)},[g,P]),Qe=(Me||we)&&s.isValidElement(Ae)&&Ae.type===ou&&Ae.props.fixed,nt,ot,ht;Me&&(ot={overflowY:A?"scroll":"auto",maxHeight:u.y}),Te&&(nt={overflowX:"auto"},Me||(ot={overflowY:"hidden"}),ht={width:Ce===!0?"auto":Ce,minWidth:"100%"});var Rt=s.useCallback(function(ut,dt){st(function(vn){if(vn.get(ut)!==dt){var sn=new Map(vn);return sn.set(ut,dt),sn}return vn})},[]),Wt=Y7(null),yt=ae(Wt,2),en=yt[0],De=yt[1];function Ke(ut,dt){dt&&(typeof dt=="function"?dt(ut):dt.scrollLeft!==ut&&(dt.scrollLeft=ut,dt.scrollLeft!==ut&&setTimeout(function(){dt.scrollLeft=ut},0)))}var Be=qt(function(ut){var dt=ut.currentTarget,vn=ut.scrollLeft,sn=f==="rtl",xn=typeof vn=="number"?vn:dt.scrollLeft,Sr=dt||o9;if(!De()||De()===Sr){var Zn;en(Sr),Ke(xn,je.current),Ke(xn,Ne.current),Ke(xn,xe.current),Ke(xn,(Zn=ct.current)===null||Zn===void 0?void 0:Zn.setScrollLeft)}var er=dt||je.current;if(er){var Wr=R&&N&&typeof Ce=="number"?Ce:er.scrollWidth,Uo=er.clientWidth;if(Wr===Uo){_e(!1),it(!1);return}sn?(_e(-xn<Wr-Uo),it(-xn>0)):(_e(xn>0),it(xn<Wr-Uo))}}),Re=qt(function(ut){Be(ut),$==null||$(ut)}),lt=function(){if(Te&&Ne.current){var dt;Be({currentTarget:za(Ne.current),scrollLeft:(dt=Ne.current)===null||dt===void 0?void 0:dt.scrollLeft})}else _e(!1),it(!1)},Tt=function(dt){var vn,sn=dt.width;(vn=ct.current)===null||vn===void 0||vn.checkScrollBarVisible();var xn=Pe.current?Pe.current.offsetWidth:sn;R&&_&&Pe.current&&(xn=_(Pe.current,xn)||xn),xn!==se&&(lt(),le(xn))},Dt=s.useRef(!1);s.useEffect(function(){Dt.current&<()},[Te,l,ie.length]),s.useEffect(function(){Dt.current=!0},[]);var Kt=s.useState(0),on=ae(Kt,2),Gt=on[0],Ye=on[1],ft=s.useState(!0),jt=ae(ft,2),Cn=jt[0],fn=jt[1];Et(function(){(!N||!R)&&(Ne.current instanceof Element?Ye(Yf(Ne.current).width):Ye(Yf(Ie.current).width)),fn(hm("position","sticky"))},[]),s.useEffect(function(){R&&w&&(w.body.current=Ne.current)});var Ln=s.useCallback(function(ut){return s.createElement(s.Fragment,null,s.createElement(bw,ut),Qe==="top"&&s.createElement(iu,ut,Ae))},[Qe,Ae]),yr=s.useCallback(function(ut){return s.createElement(iu,ut,Ae)},[Ae]),Cr=L(["table"],"table"),zn=s.useMemo(function(){return d||(at?Ce==="max-content"?"auto":"fixed":Me||we||ce.some(function(ut){var dt=ut.ellipsis;return dt})?"fixed":"auto")},[Me,at,ce,d,we]),Dr,cr={colWidths:et,columCount:ce.length,stickyOffsets:ke,onHeaderRow:S,fixHeader:Me,scroll:u},Nt=s.useMemo(function(){return A?null:typeof x=="function"?x():x},[A,x]),Ge=s.createElement(R7,{data:P,measureColumnWidth:Me||Te||we}),bt=s.createElement(pw,{colWidths:ce.map(function(ut){var dt=ut.width;return dt}),columns:ce}),xt=h!=null?s.createElement("caption",{className:"".concat(r,"-caption")},h):void 0,Lt=An(n,{data:!0}),zt=An(n,{aria:!0});if(Me||we){var Sn;typeof z=="function"?(Sn=z(P,{scrollbarSize:Gt,ref:Ne,onScroll:Be}),cr.colWidths=ce.map(function(ut,dt){var vn=ut.width,sn=dt===ce.length-1?vn-Gt:vn;return typeof sn=="number"&&!Number.isNaN(sn)?sn:(process.env.NODE_ENV!=="production"&&Ue(n.columns.length===0,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):Sn=s.createElement("div",{style:q(q({},nt),ot),onScroll:Re,ref:Ne,className:U("".concat(r,"-body"))},s.createElement(Cr,de({style:q(q({},ht),{},{tableLayout:zn})},zt),xt,bt,Ge,!Qe&&Ae&&s.createElement(iu,{stickyOffsets:ke,flattenColumns:ce},Ae)));var Nn=q(q(q({noData:!P.length,maxContentScroll:Te&&Ce==="max-content"},cr),Oe),{},{direction:f,stickyClassName:Ze,onScroll:Be});Dr=s.createElement(s.Fragment,null,y!==!1&&s.createElement(gw,de({},Nn,{stickyTopOffset:ze,className:"".concat(r,"-header"),ref:je}),Ln),Sn,Qe&&Qe!=="top"&&s.createElement(gw,de({},Nn,{stickyBottomOffset:Fe,className:"".concat(r,"-summary"),ref:xe}),yr),we&&Ne.current&&Ne.current instanceof Element&&s.createElement(n9,{ref:ct,offsetScroll:Ve,scrollBodyRef:Ne,onScroll:Be,container:$t,direction:f}))}else Dr=s.createElement("div",{style:q(q({},nt),ot),className:U("".concat(r,"-content")),onScroll:Be,ref:Ne},s.createElement(Cr,de({style:q(q({},ht),{},{tableLayout:zn})},zt),xt,bt,y!==!1&&s.createElement(bw,de({},cr,Oe)),Ge,Ae&&s.createElement(iu,{stickyOffsets:ke,flattenColumns:ce},Ae)));var Hn=s.createElement("div",de({className:U(r,o,H(H(H(H(H(H(H(H(H(H({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),$e),"".concat(r,"-ping-right"),Je),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Me),"".concat(r,"-fixed-column"),at),"".concat(r,"-fixed-column-gapped"),at&&me),"".concat(r,"-scroll-horizontal"),Te),"".concat(r,"-has-fix-left"),ce[0]&&ce[0].fixed),"".concat(r,"-has-fix-right"),ce[ce.length-1]&&ce[ce.length-1].fixed==="right")),style:a,id:v,ref:Pe},Lt),m&&s.createElement(xw,{className:"".concat(r,"-title")},m(P)),s.createElement("div",{ref:Ie,className:"".concat(r,"-container")},Dr),p&&s.createElement(xw,{className:"".concat(r,"-footer")},p(P)));Te&&(Hn=s.createElement(Wn,{onResize:Tt},Hn));var Yn=X7(ce,ke,f),Jn=s.useMemo(function(){return{scrollX:Ce,prefixCls:r,getComponent:L,scrollbarSize:Gt,direction:f,fixedInfoList:Yn,isSticky:we,supportSticky:Cn,componentWidth:se,fixHeader:Me,fixColumn:at,horizonScroll:Te,tableLayout:zn,rowClassName:i,expandedRowClassName:Y.expandedRowClassName,expandIcon:X,expandableType:te,expandRowByClick:Y.expandRowByClick,expandedRowRender:Y.expandedRowRender,onTriggerExpand:ee,expandIconColumnIndex:Y.expandIconColumnIndex,indentSize:Y.indentSize,allColumnsFixedLeft:ce.every(function(ut){return ut.fixed==="left"}),emptyNode:Nt,columns:ie,flattenColumns:ce,onColumnResize:Rt,hoverStartRow:W,hoverEndRow:k,onHover:V,rowExpandable:Y.rowExpandable,onRow:E,getRowKey:j,expandedKeys:oe,childrenColumnName:F,rowHoverable:D}},[Ce,r,L,Gt,f,Yn,we,Cn,se,Me,at,Te,zn,i,Y.expandedRowClassName,X,te,Y.expandRowByClick,Y.expandedRowRender,ee,Y.expandIconColumnIndex,Y.indentSize,Nt,ie,ce,Rt,W,k,V,Y.rowExpandable,E,j,oe,F,D]);return s.createElement(ir.Provider,{value:Jn},Hn)}var ww=s.forwardRef(a9);process.env.NODE_ENV!=="production"&&(ww.displayName="Table");function Ow(e){return tw(ww,e)}var ma=Ow();ma.EXPAND_COLUMN=Vr,ma.INTERNAL_HOOKS=Pl,ma.Column=I7,ma.ColumnGroup=_7,ma.Summary=iw;var Fp=Rp(null),Nw=Rp(null);function l9(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function s9(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,p=n.render,g=n.dataIndex,h=n.className,v=n.width,y=qn(Nw,["columnsOffset"]),C=y.columnsOffset,x=dw(t,n,r,o,i),E=x.key,S=x.fixedInfo,$=x.appendCellNode,O=x.additionalCellProps,I=O.style,w=O.colSpan,N=w===void 0?1:w,_=O.rowSpan,T=_===void 0?1:_,M=r-1,D=l9(M,N,C),P=N>1?v-D:0,A=q(q(q({},I),u),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:P,pointerEvents:"auto"}),R=s.useMemo(function(){return f?T<=1:N===0||T===0||T>1},[T,N,f]);R?A.visibility="hidden":f&&(A.height=m==null?void 0:m(T));var L=R?function(){return null}:p,j={};return(T===0||N===0)&&(j.rowSpan=1,j.colSpan=1),s.createElement(fa,de({className:U(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:E,record:c,index:i,renderIndex:l,dataIndex:g,render:L,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:q(q({},O),{},{style:A},j)}))}var c9=["data","index","className","rowKey","style","extra","getHeight"],u9=s.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,l=e.extra,c=e.getHeight,u=tt(e,c9),d=n.record,f=n.indent,m=n.index,p=qn(ir,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=p.scrollX,h=p.flattenColumns,v=p.prefixCls,y=p.fixColumn,C=p.componentWidth,x=qn(Fp,["getComponent"]),E=x.getComponent,S=sw(d,i,r,f),$=E(["body","row"],"div"),O=E(["body","cell"],"div"),I=S.rowSupportExpand,w=S.expanded,N=S.rowProps,_=S.expandedRowRender,T=S.expandedRowClassName,M;if(I&&w){var D=_(d,r,f+1,w),P=uw(T,d,r,f),A={};y&&(A={style:H({},"--virtual-width","".concat(C,"px"))});var R="".concat(v,"-expanded-row-cell");M=s.createElement($,{className:U("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),P)},s.createElement(fa,{component:O,prefixCls:v,className:U(R,H({},"".concat(R,"-fixed"),y)),additionalProps:A},D))}var L=q(q({},a),{},{width:g});l&&(L.position="absolute",L.pointerEvents="none");var j=s.createElement($,de({},N,u,{"data-row-key":i,ref:I?null:t,className:U(o,"".concat(v,"-row"),N==null?void 0:N.className,H({},"".concat(v,"-row-extra"),l)),style:q(q({},L),N==null?void 0:N.style)}),h.map(function(z,B){return s.createElement(s9,{key:B,component:O,rowInfo:S,column:z,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return I?s.createElement("div",{ref:t},j,M):j}),Hp=da(u9);process.env.NODE_ENV!=="production"&&(Hp.displayName="BodyLine");var d9=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=qn(ir,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,p=qn(Fp),g=p.sticky,h=p.scrollY,v=p.listItemHeight,y=p.getComponent,C=p.onScroll,x=s.useRef(),E=lw(n,d,c,l),S=s.useMemo(function(){var M=0;return i.map(function(D){var P=D.width,A=D.key;return M+=P,[A,P,M]})},[i]),$=s.useMemo(function(){return S.map(function(M){return M[2]})},[S]);s.useEffect(function(){S.forEach(function(M){var D=ae(M,2),P=D[0],A=D[1];a(P,A)})},[S]),s.useImperativeHandle(t,function(){var M,D={scrollTo:function(A){var R;(R=x.current)===null||R===void 0||R.scrollTo(A)},nativeElement:(M=x.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var A;return((A=x.current)===null||A===void 0?void 0:A.getScrollInfo().x)||0},set:function(A){var R;(R=x.current)===null||R===void 0||R.scrollTo({left:A})}}),D});var O=function(D,P){var A,R=(A=E[P])===null||A===void 0?void 0:A.record,L=D.onCell;if(L){var j,z=L(R,P);return(j=z==null?void 0:z.rowSpan)!==null&&j!==void 0?j:1}return 1},I=function(D){var P=D.start,A=D.end,R=D.getSize,L=D.offsetY;if(A<0)return null;for(var j=i.filter(function(X){return O(X,P)===0}),z=P,B=function(F){if(j=j.filter(function(ee){return O(ee,F)===0}),!j.length)return z=F,1},K=P;K>=0&&!B(K);K-=1);for(var W=i.filter(function(X){return O(X,A)!==1}),k=A,V=function(F){if(W=W.filter(function(ee){return O(ee,F)!==1}),!W.length)return k=Math.max(F-1,A),1},Q=A;Q<E.length&&!V(Q);Q+=1);for(var J=[],Y=function(F){var ee=E[F];if(!ee)return 1;i.some(function(Z){return O(Z,F)>1})&&J.push(F)},te=z;te<=k;te+=1)Y(te);var oe=J.map(function(X){var F=E[X],ee=l(F.record,X),Z=function(se){var le=X+se-1,he=l(E[le].record,le),fe=R(ee,he);return fe.bottom-fe.top},ne=R(ee);return s.createElement(Hp,{key:X,data:F,rowKey:ee,index:X,style:{top:-L+ne.top},extra:!0,getHeight:Z})});return oe},w=s.useMemo(function(){return{columnsOffset:$}},[$]),N="".concat(u,"-tbody"),_=y(["body","wrapper"]),T={};return g&&(T.position="sticky",T.bottom=0,He(g)==="object"&&g.offsetScroll&&(T.bottom=g.offsetScroll)),s.createElement(Nw.Provider,{value:w},s.createElement(hc,{fullHeight:!1,ref:x,prefixCls:"".concat(N,"-virtual"),styles:{horizontalScrollBar:T},className:N,height:h,itemHeight:v||24,data:E,itemKey:function(D){return l(D.record)},component:_,scrollWidth:f,direction:m,onVirtualScroll:function(D){var P,A=D.x;r({currentTarget:(P=x.current)===null||P===void 0?void 0:P.nativeElement,scrollLeft:A})},onScroll:C,extraRender:I},function(M,D,P){var A=l(M.record,D);return s.createElement(Hp,{data:M,rowKey:A,index:D,style:P.style})}))}),Iw=da(d9);process.env.NODE_ENV!=="production"&&(Iw.displayName="ResponseGrid");var f9=function(t,n){var r=n.ref,o=n.onScroll;return s.createElement(Iw,{ref:r,data:t,onScroll:o})};function m9(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,l=a===void 0?$w:a,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},p=m.x,g=m.y;typeof p!="number"&&(process.env.NODE_ENV!=="production"&&Ue(!p,"`scroll.x` in virtual table must be number."),p=1),typeof g!="number"&&(g=500,process.env.NODE_ENV!=="production"&&Ue(!1,"`scroll.y` in virtual table must be number."));var h=qt(function(C,x){return rr(d,C)||x}),v=qt(f),y=s.useMemo(function(){return{sticky:i,scrollY:g,listItemHeight:u,getComponent:h,onScroll:v}},[i,g,u,h,v]);return s.createElement(Fp.Provider,{value:y},s.createElement(ma,de({},e,{className:U(c,"".concat(l,"-virtual")),scroll:q(q({},o),{},{x:p}),components:q(q({},d),{},{body:n!=null&&n.length?f9:void 0}),columns:r,internalHooks:Pl,tailor:!0,ref:t})))}var _w=s.forwardRef(m9);process.env.NODE_ENV!=="production"&&(_w.displayName="VirtualTable");function Pw(e){return tw(_w,e)}Pw();const p9=e=>null,v9=e=>null;var Vp=s.createContext(null),g9=s.createContext({}),h9=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c<r;c+=1)l.push(s.createElement("span",{key:c,className:U(a,H(H({},"".concat(a,"-start"),o[c]),"".concat(a,"-end"),i[c]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const b9=s.memo(h9);var y9=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Tw="open",Mw="close",C9="---",pa=function(t){var n,r,o,i=t.eventKey,a=t.className,l=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,p=t.isEnd,g=t.expanded,h=t.selected,v=t.checked,y=t.halfChecked,C=t.loading,x=t.domRef,E=t.active,S=t.data,$=t.onMouseMove,O=t.selectable,I=tt(t,y9),w=b.useContext(Vp),N=b.useContext(g9),_=b.useRef(null),T=b.useState(!1),M=ae(T,2),D=M[0],P=M[1],A=!!(w.disabled||t.disabled||(n=N.nodeDisabled)!==null&&n!==void 0&&n.call(N,S)),R=b.useMemo(function(){return!w.checkable||t.checkable===!1?!1:w.checkable},[w.checkable,t.checkable]),L=function(be){A||w.onNodeSelect(be,Tn(t))},j=function(be){A||!R||t.disableCheckbox||w.onNodeCheck(be,Tn(t),!v)},z=b.useMemo(function(){return typeof O=="boolean"?O:w.selectable},[O,w.selectable]),B=function(be){w.onNodeClick(be,Tn(t)),z?L(be):j(be)},K=function(be){w.onNodeDoubleClick(be,Tn(t))},W=function(be){w.onNodeMouseEnter(be,Tn(t))},k=function(be){w.onNodeMouseLeave(be,Tn(t))},V=function(be){w.onNodeContextMenu(be,Tn(t))},Q=b.useMemo(function(){return!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(S)))},[w.draggable,S]),J=function(be){be.stopPropagation(),P(!0),w.onNodeDragStart(be,t);try{be.dataTransfer.setData("text/plain","")}catch(Ee){}},Y=function(be){be.preventDefault(),be.stopPropagation(),w.onNodeDragEnter(be,t)},te=function(be){be.preventDefault(),be.stopPropagation(),w.onNodeDragOver(be,t)},oe=function(be){be.stopPropagation(),w.onNodeDragLeave(be,t)},X=function(be){be.stopPropagation(),P(!1),w.onNodeDragEnd(be,t)},F=function(be){be.preventDefault(),be.stopPropagation(),P(!1),w.onNodeDrop(be,t)},ee=function(be){C||w.onNodeExpand(be,Tn(t))},Z=b.useMemo(function(){var xe=sr(w.keyEntities,i)||{},be=xe.children;return!!(be||[]).length},[w.keyEntities,i]),ne=b.useMemo(function(){return f===!1?!1:f||!w.loadData&&!Z||w.loadData&&t.loaded&&!Z},[f,w.loadData,Z,t.loaded]);b.useEffect(function(){C||typeof w.loadData=="function"&&g&&!ne&&!t.loaded&&w.onNodeLoad(Tn(t))},[C,w.loadData,w.onNodeLoad,g,ne,t]);var re=b.useMemo(function(){var xe;return(xe=w.draggable)!==null&&xe!==void 0&&xe.icon?b.createElement("span",{className:"".concat(w.prefixCls,"-draggable-icon")},w.draggable.icon):null},[w.draggable]),se=function(be){var Ee=t.switcherIcon||w.switcherIcon;return typeof Ee=="function"?Ee(q(q({},t),{},{isLeaf:be})):Ee},le=function(){if(ne){var be=se(!0);return be!==!1?b.createElement("span",{className:U("".concat(w.prefixCls,"-switcher"),"".concat(w.prefixCls,"-switcher-noop"))},be):null}var Ee=se(!1);return Ee!==!1?b.createElement("span",{onClick:ee,className:U("".concat(w.prefixCls,"-switcher"),"".concat(w.prefixCls,"-switcher_").concat(g?Tw:Mw))},Ee):null},he=b.useMemo(function(){if(!R)return null;var xe=typeof R!="boolean"?R:null;return b.createElement("span",{className:U("".concat(w.prefixCls,"-checkbox"),H(H(H({},"".concat(w.prefixCls,"-checkbox-checked"),v),"".concat(w.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(w.prefixCls,"-checkbox-disabled"),A||t.disableCheckbox)),onClick:j,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":A||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},xe)},[R,v,y,A,t.disableCheckbox,t.title]),fe=b.useMemo(function(){return ne?null:g?Tw:Mw},[ne,g]),ie=b.useMemo(function(){return b.createElement("span",{className:U("".concat(w.prefixCls,"-iconEle"),"".concat(w.prefixCls,"-icon__").concat(fe||"docu"),H({},"".concat(w.prefixCls,"-icon_loading"),C))})},[w.prefixCls,fe,C]),ce=b.useMemo(function(){var xe=!!w.draggable,be=!t.disabled&&xe&&w.dragOverNodeKey===i;return be?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),ue=b.useMemo(function(){var xe=t.title,be=xe===void 0?C9:xe,Ee="".concat(w.prefixCls,"-node-content-wrapper"),$e;if(w.showIcon){var _e=t.icon||w.icon;$e=_e?b.createElement("span",{className:U("".concat(w.prefixCls,"-iconEle"),"".concat(w.prefixCls,"-icon__customize"))},typeof _e=="function"?_e(t):_e):ie}else w.loadData&&C&&($e=ie);var ve;return typeof be=="function"?ve=be(S):w.titleRender?ve=w.titleRender(S):ve=be,b.createElement("span",{ref:_,title:typeof be=="string"?be:"",className:U(Ee,"".concat(Ee,"-").concat(fe||"normal"),H({},"".concat(w.prefixCls,"-node-selected"),!A&&(h||D))),onMouseEnter:W,onMouseLeave:k,onContextMenu:V,onClick:B,onDoubleClick:K},$e,b.createElement("span",{className:"".concat(w.prefixCls,"-title")},ve),ce)},[w.prefixCls,w.showIcon,t,w.icon,ie,w.titleRender,S,fe,W,k,V,B,K]),me=An(I,{aria:!0,data:!0}),Ce=sr(w.keyEntities,i)||{},Oe=Ce.level,Pe=p[p.length-1],je=!A&&Q,Ne=w.draggingNodeKey===i,Ie=O!==void 0?{"aria-selected":!!O}:void 0;return b.createElement("div",de({ref:x,role:"treeitem","aria-expanded":f?void 0:g,className:U(a,"".concat(w.prefixCls,"-treenode"),(o={},H(H(H(H(H(H(H(H(H(H(o,"".concat(w.prefixCls,"-treenode-disabled"),A),"".concat(w.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!f),"".concat(w.prefixCls,"-treenode-checkbox-checked"),v),"".concat(w.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(w.prefixCls,"-treenode-selected"),h),"".concat(w.prefixCls,"-treenode-loading"),C),"".concat(w.prefixCls,"-treenode-active"),E),"".concat(w.prefixCls,"-treenode-leaf-last"),Pe),"".concat(w.prefixCls,"-treenode-draggable"),Q),"dragging",Ne),H(H(H(H(H(H(H(o,"drop-target",w.dropTargetKey===i),"drop-container",w.dropContainerKey===i),"drag-over",!A&&c),"drag-over-gap-top",!A&&u),"drag-over-gap-bottom",!A&&d),"filter-node",(r=w.filterTreeNode)===null||r===void 0?void 0:r.call(w,Tn(t))),"".concat(w.prefixCls,"-treenode-leaf"),ne))),style:l,draggable:je,onDragStart:je?J:void 0,onDragEnter:Q?Y:void 0,onDragOver:Q?te:void 0,onDragLeave:Q?oe:void 0,onDrop:Q?F:void 0,onDragEnd:Q?X:void 0,onMouseMove:$},Ie,me),b.createElement(b9,{prefixCls:w.prefixCls,level:Oe,isStart:m,isEnd:p}),re,le(),he,ue)};pa.isTreeNode=1,process.env.NODE_ENV!=="production"&&(pa.displayName="TreeNode");function so(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function No(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Wp(e){return e.split("-")}function S9(e,t){var n=[],r=sr(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,c=a.children;n.push(l),o(c)})}return o(r.children),n}function x9(e){if(e.parent){var t=Wp(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function E9(e){var t=Wp(e.pos);return Number(t[t.length-1])===0}function Dw(e,t,n,r,o,i,a,l,c,u){var d,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),g=p.top,h=p.height,v=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),y=(v-12)/r,C=c.filter(function(A){var R;return(R=l[A])===null||R===void 0||(R=R.children)===null||R===void 0?void 0:R.length}),x=sr(l,n.eventKey);if(m<g+h/2){var E=a.findIndex(function(A){return A.key===x.key}),S=E<=0?0:E-1,$=a[S].key;x=sr(l,$)}var O=x.key,I=x,w=x.key,N=0,_=0;if(!C.includes(O))for(var T=0;T<y&&x9(x);T+=1)x=x.parent,_+=1;var M=t.data,D=x.node,P=!0;return E9(x)&&x.level===0&&m<g+h/2&&i({dragNode:M,dropNode:D,dropPosition:-1})&&x.key===n.eventKey?N=-1:(I.children||[]).length&&C.includes(w)?i({dragNode:M,dropNode:D,dropPosition:0})?N=0:P=!1:_===0?y>-1.5?i({dragNode:M,dropNode:D,dropPosition:1})?N=1:P=!1:i({dragNode:M,dropNode:D,dropPosition:0})?N=0:i({dragNode:M,dropNode:D,dropPosition:1})?N=1:P=!1:i({dragNode:M,dropNode:D,dropPosition:1})?N=1:P=!1,{dropPosition:N,dropLevelOffset:_,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:w,dropContainerKey:N===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:P}}function Aw(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Kp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(He(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ue(!1,"`checkedKeys` is not an array or an object"),null;return t}function qp(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=sr(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),ge(n)}function $9(e){const[t,n]=b.useState(null);return[b.useCallback((i,a,l)=>{const c=t!=null?t:i,u=Math.min(c||0,i),d=Math.max(c||0,i),f=a.slice(u,d+1).map(g=>e(g)),m=f.some(g=>!l.has(g)),p=[];return f.forEach(g=>{m?(l.has(g)||p.push(g),l.add(g)):(l.delete(g),p.push(g))}),n(m?d:null),p},[t]),i=>{n(i)}]}const co={},Gp="SELECT_ALL",Up="SELECT_INVERT",Xp="SELECT_NONE",Rw=[],jw=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ge(n),ge(jw(e,r[e]))))}),n},w9=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:p,selections:g,fixed:h,renderCell:v,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:E,pageData:S,getRecordByKey:$,getRowKey:O,expandType:I,childrenColumnName:w,locale:N,getPopupContainer:_}=e,T=vt("Table"),[M,D]=$9(X=>X),[P,A]=an(r||o||Rw,{value:r}),R=s.useRef(new Map),L=b.useCallback(X=>{if(n){const F=new Map;X.forEach(ee=>{let Z=$(ee);!Z&&R.current.has(ee)&&(Z=R.current.get(ee)),F.set(ee,Z)}),R.current=F}},[$,n]);s.useEffect(()=>{L(P)},[P]);const j=b.useMemo(()=>jw(w,S),[w,S]),{keyEntities:z}=b.useMemo(()=>{if(C)return{keyEntities:null};let X=E;if(n){const F=new Set(j.map((Z,ne)=>O(Z,ne))),ee=Array.from(R.current).reduce((Z,ne)=>{let[re,se]=ne;return F.has(re)?Z:Z.concat(se)},[]);X=[].concat(ge(X),ge(ee))}return hp(X,{externalGetKey:O,childrenPropName:w})},[E,O,C,w,n,j]),B=b.useMemo(()=>{const X=new Map;return j.forEach((F,ee)=>{const Z=O(F,ee),ne=(i?i(F):null)||{};X.set(Z,ne),process.env.NODE_ENV!=="production"&&T(!("checked"in ne||"defaultChecked"in ne),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),X},[j,O,i]),K=b.useCallback(X=>{const F=O(X);let ee;return B.has(F)?ee=B.get(O(X)):ee=i?i(X):void 0,!!(ee!=null&&ee.disabled)},[B,O]),[W,k]=b.useMemo(()=>{if(C)return[P||[],[]];const{checkedKeys:X,halfCheckedKeys:F}=la(P,!0,z,K);return[X||[],F]},[P,C,z,K]),V=b.useMemo(()=>{const X=p==="radio"?W.slice(0,1):W;return new Set(X)},[W,p]),Q=b.useMemo(()=>p==="radio"?new Set:new Set(k),[k,p]);s.useEffect(()=>{t||A(Rw)},[!!t]);const J=b.useCallback((X,F)=>{let ee,Z;L(X),n?(ee=X,Z=X.map(ne=>R.current.get(ne))):(ee=[],Z=[],X.forEach(ne=>{const re=$(ne);re!==void 0&&(ee.push(ne),Z.push(re))})),A(ee),a==null||a(ee,Z,{type:F})},[A,$,a,n]),Y=b.useCallback((X,F,ee,Z)=>{if(l){const ne=ee.map(re=>$(re));l($(X),F,ne,Z)}J(ee,"single")},[l,$,J]),te=b.useMemo(()=>!g||y?null:(g===!0?[Gp,Up,Xp]:g).map(F=>F===Gp?{key:"all",text:N.selectionAll,onSelect(){J(E.map((ee,Z)=>O(ee,Z)).filter(ee=>{const Z=B.get(ee);return!(Z!=null&&Z.disabled)||V.has(ee)}),"all")}}:F===Up?{key:"invert",text:N.selectInvert,onSelect(){const ee=new Set(V);S.forEach((ne,re)=>{const se=O(ne,re),le=B.get(se);le!=null&&le.disabled||(ee.has(se)?ee.delete(se):ee.add(se))});const Z=Array.from(ee);u&&(T.deprecated(!1,"onSelectInvert","onChange"),u(Z)),J(Z,"invert")}}:F===Xp?{key:"none",text:N.selectNone,onSelect(){d==null||d(),J(Array.from(V).filter(ee=>{const Z=B.get(ee);return Z==null?void 0:Z.disabled}),"none")}}:F).map(F=>Object.assign(Object.assign({},F),{onSelect:function(){for(var ee,Z,ne=arguments.length,re=new Array(ne),se=0;se<ne;se++)re[se]=arguments[se];(Z=F.onSelect)===null||Z===void 0||(ee=Z).call.apply(ee,[F].concat(re)),D(null)}})),[g,V,S,O,u,J]);return[b.useCallback(X=>{var F;if(!t)return process.env.NODE_ENV!=="production"&&T(!X.includes(co),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),X.filter(Ie=>Ie!==co);let ee=ge(X);const Z=new Set(V),ne=j.map(O).filter(Ie=>!B.get(Ie).disabled),re=ne.every(Ie=>Z.has(Ie)),se=ne.some(Ie=>Z.has(Ie)),le=()=>{const Ie=[];re?ne.forEach(be=>{Z.delete(be),Ie.push(be)}):ne.forEach(be=>{Z.has(be)||(Z.add(be),Ie.push(be))});const xe=Array.from(Z);c==null||c(!re,xe.map(be=>$(be)),Ie.map(be=>$(be))),J(xe,"all"),D(null)};let he,fe;if(p!=="radio"){let Ie;if(te){const _e={getPopupContainer:_,items:te.map((ve,Se)=>{const{key:Je,text:it,onSelect:Ot}=ve;return{key:Je!=null?Je:Se,onClick:()=>{Ot==null||Ot(ne)},label:it}})};Ie=s.createElement("div",{className:`${x}-selection-extra`},s.createElement(Z$,{menu:_e,getPopupContainer:_},s.createElement("span",null,s.createElement(ms,null))))}const xe=j.map((_e,ve)=>{const Se=O(_e,ve),Je=B.get(Se)||{};return Object.assign({checked:Z.has(Se)},Je)}).filter(_e=>{let{disabled:ve}=_e;return ve}),be=!!xe.length&&xe.length===j.length,Ee=be&&xe.every(_e=>{let{checked:ve}=_e;return ve}),$e=be&&xe.some(_e=>{let{checked:ve}=_e;return ve});fe=s.createElement(Vc,{checked:be?Ee:!!j.length&&re,indeterminate:be?!Ee&&$e:!re&&se,onChange:le,disabled:j.length===0||be,"aria-label":Ie?"Custom selection":"Select all",skipGroup:!0}),he=!y&&s.createElement("div",{className:`${x}-selection`},fe,Ie)}let ie;p==="radio"?ie=(Ie,xe,be)=>{const Ee=O(xe,be),$e=Z.has(Ee),_e=B.get(Ee);return{node:s.createElement(gr,Object.assign({},_e,{checked:$e,onClick:ve=>{var Se;ve.stopPropagation(),(Se=_e==null?void 0:_e.onClick)===null||Se===void 0||Se.call(_e,ve)},onChange:ve=>{var Se;Z.has(Ee)||Y(Ee,!0,[Ee],ve.nativeEvent),(Se=_e==null?void 0:_e.onChange)===null||Se===void 0||Se.call(_e,ve)}})),checked:$e}}:ie=(Ie,xe,be)=>{var Ee;const $e=O(xe,be),_e=Z.has($e),ve=Q.has($e),Se=B.get($e);let Je;return I==="nest"?(Je=ve,process.env.NODE_ENV!=="production"&&T(typeof(Se==null?void 0:Se.indeterminate)!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Je=(Ee=Se==null?void 0:Se.indeterminate)!==null&&Ee!==void 0?Ee:ve,{node:s.createElement(Vc,Object.assign({},Se,{indeterminate:Je,checked:_e,skipGroup:!0,onClick:it=>{var Ot;it.stopPropagation(),(Ot=Se==null?void 0:Se.onClick)===null||Ot===void 0||Ot.call(Se,it)},onChange:it=>{var Ot;const{nativeEvent:_t}=it,{shiftKey:Ut}=_t,st=ne.findIndex(mt=>mt===$e),Pt=W.some(mt=>ne.includes(mt));if(Ut&&C&&Pt){const mt=M(st,ne,Z),et=Array.from(Z);f==null||f(!_e,et.map(ke=>$(ke)),mt.map(ke=>$(ke))),J(et,"multiple")}else{const mt=W;if(C){const et=_e?so(mt,$e):No(mt,$e);Y($e,!_e,et,_t)}else{const et=la([].concat(ge(mt),[$e]),!0,z,K),{checkedKeys:ke,halfCheckedKeys:Me}=et;let Te=ke;if(_e){const at=new Set(ke);at.delete($e),Te=la(Array.from(at),{checked:!1,halfCheckedKeys:Me},z,K).checkedKeys}Y($e,!_e,Te,_t)}}D(_e?null:st),(Ot=Se==null?void 0:Se.onChange)===null||Ot===void 0||Ot.call(Se,it)}})),checked:_e}};const ce=(Ie,xe,be)=>{const{node:Ee,checked:$e}=ie(Ie,xe,be);return v?v($e,xe,be,Ee):Ee};if(!ee.includes(co))if(ee.findIndex(Ie=>{var xe;return((xe=Ie[Tl])===null||xe===void 0?void 0:xe.columnType)==="EXPAND_COLUMN"})===0){const[Ie,...xe]=ee;ee=[Ie,co].concat(ge(xe))}else ee=[co].concat(ge(ee));const ue=ee.indexOf(co);process.env.NODE_ENV!=="production"&&T(ee.filter(Ie=>Ie===co).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),ee=ee.filter((Ie,xe)=>Ie!==co||xe===ue);const me=ee[ue-1],Ce=ee[ue+1];let Oe=h;Oe===void 0&&((Ce==null?void 0:Ce.fixed)!==void 0?Oe=Ce.fixed:(me==null?void 0:me.fixed)!==void 0&&(Oe=me.fixed)),Oe&&me&&((F=me[Tl])===null||F===void 0?void 0:F.columnType)==="EXPAND_COLUMN"&&me.fixed===void 0&&(me.fixed=Oe);const Pe=U(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&p==="checkbox"}),je=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(fe):t.columnTitle:he,Ne={fixed:Oe,width:m,className:`${x}-selection-column`,title:je(),render:ce,onCell:t.onCell,align:t.align,[Tl]:{className:Pe}};return ee.map(Ie=>Ie===co?Ne:Ie)},[O,j,t,W,V,Q,m,te,I,B,f,Y,K]),V]};function O9(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function N9(e,t){return b.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):O9(r,n)})}function I9(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:U(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function _9(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);i=r-l-c}return i}}const Wo=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function va(e,t){return t?`${t}-${e}`:`${e}`}const au=(e,t)=>typeof e=="function"?e(t):e,P9=(e,t)=>{const n=au(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function T9(e){const t=s.useRef(e),n=Bx();return[()=>t.current,r=>{t.current=r,n()}]}var Lw=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return b.createElement("div",{style:i})};process.env.NODE_ENV!=="production"&&(Lw.displayName="DropIndicator");function zw(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function M9(e,t){var n=s.useState(!1),r=ae(n,2),o=r[0],i=r[1];Et(function(){if(o)return e(),function(){t()}},[o]),Et(function(){return i(!0),function(){i(!1)}},[])}var D9=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Bw=s.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=tt(e,D9),m=s.useState(!0),p=ae(m,2),g=p[0],h=p[1],v=s.useContext(Vp),y=v.prefixCls,C=i&&a!=="hide";Et(function(){i&&C!==g&&h(C)},[i]);var x=function(){i&&l()},E=s.useRef(!1),S=function(){i&&!E.current&&(E.current=!0,c())};M9(x,S);var $=function(I){C===I&&S()};return i?s.createElement(lr,de({ref:t,visible:g},o,{motionAppear:a==="show",onVisibleChanged:$}),function(O,I){var w=O.className,N=O.style;return s.createElement("div",{ref:I,className:U("".concat(y,"-treenode-motion"),w),style:N},i.map(function(_){var T=Object.assign({},(zw(_.data),_.data)),M=_.title,D=_.key,P=_.isStart,A=_.isEnd;delete T.children;var R=$l(D,d);return s.createElement(pa,de({},T,R,{title:M,active:u,data:_.data,key:D,isStart:P,isEnd:A}))}))}):s.createElement(pa,de({domRef:t,className:n,style:r},f,{active:u}))});process.env.NODE_ENV!=="production"&&(Bw.displayName="MotionTreeNode");function A9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var l=new Map;i.forEach(function(u){l.set(u,!0)});var c=a.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function kw(e,t,n){var r=e.findIndex(function(l){return l.key===n}),o=e[r+1],i=t.findIndex(function(l){return l.key===n});if(o){var a=t.findIndex(function(l){return l.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var R9=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Fw={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},j9=function(){},bi="RC_TREE_MOTION_".concat(Math.random()),Qp={key:bi},Hw={key:bi,level:0,index:0,pos:"0",node:Qp,nodes:[Qp]},Vw={parent:null,children:[],pos:Hw.pos,data:Qp,title:null,key:bi,isStart:[],isEnd:[]};function Ww(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Kw(e){var t=e.key,n=e.pos;return El(t,n)}function L9(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var qw=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,p=e.dragOverNodeKey,g=e.dropPosition,h=e.motion,v=e.height,y=e.itemHeight,C=e.virtual,x=e.scrollWidth,E=e.focusable,S=e.activeItem,$=e.focused,O=e.tabIndex,I=e.onKeyDown,w=e.onFocus,N=e.onBlur,_=e.onActiveChange,T=e.onListChangeStart,M=e.onListChangeEnd,D=tt(e,R9),P=s.useRef(null),A=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(ce){P.current.scrollTo(ce)},getIndentWidth:function(){return A.current.offsetWidth}}});var R=s.useState(o),L=ae(R,2),j=L[0],z=L[1],B=s.useState(r),K=ae(B,2),W=K[0],k=K[1],V=s.useState(r),Q=ae(V,2),J=Q[0],Y=Q[1],te=s.useState([]),oe=ae(te,2),X=oe[0],F=oe[1],ee=s.useState(null),Z=ae(ee,2),ne=Z[0],re=Z[1],se=s.useRef(r);se.current=r;function le(){var ie=se.current;k(ie),Y(ie),F([]),re(null),M()}Et(function(){z(o);var ie=A9(j,o);if(ie.key!==null)if(ie.add){var ce=W.findIndex(function(je){var Ne=je.key;return Ne===ie.key}),ue=Ww(kw(W,r,ie.key),C,v,y),me=W.slice();me.splice(ce+1,0,Vw),Y(me),F(ue),re("show")}else{var Ce=r.findIndex(function(je){var Ne=je.key;return Ne===ie.key}),Oe=Ww(kw(r,W,ie.key),C,v,y),Pe=r.slice();Pe.splice(Ce+1,0,Vw),Y(Pe),F(Oe),re("hide")}else W!==r&&(k(r),Y(r))},[o,r]),s.useEffect(function(){m||le()},[m]);var he=h?J:r,fe={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:g,keyEntities:d};return s.createElement(s.Fragment,null,$&&S&&s.createElement("span",{style:Fw,"aria-live":"assertive"},L9(S)),s.createElement("div",null,s.createElement("input",{style:Fw,disabled:E===!1||f,tabIndex:E!==!1?O:null,onKeyDown:I,onFocus:w,onBlur:N,value:"",onChange:j9,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),s.createElement(hc,de({},D,{data:he,itemKey:Kw,height:v,fullHeight:!1,virtual:C,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:P,role:"tree",onVisibleChange:function(ce){ce.every(function(ue){return Kw(ue)!==bi})&&le()}}),function(ie){var ce=ie.pos,ue=Object.assign({},(zw(ie.data),ie.data)),me=ie.title,Ce=ie.key,Oe=ie.isStart,Pe=ie.isEnd,je=El(Ce,ce);delete ue.key,delete ue.children;var Ne=$l(je,fe);return s.createElement(Bw,de({},ue,Ne,{title:me,active:!!S&&Ce===S.key,pos:ce,data:ie.data,isStart:Oe,isEnd:Pe,motion:h,motionNodes:Ce===bi?X:null,motionType:ne,onMotionStart:T,onMotionEnd:le,treeNodeRequiredProps:fe,onMouseMove:function(){_(null)}}))}))});process.env.NODE_ENV!=="production"&&(qw.displayName="NodeList");var z9=10,Yp=function(e){Rr(n,e);var t=Yr(n);function n(){var r;hn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),H(qe(r),"destroyed",!1),H(qe(r),"delayedDragEnterLogic",void 0),H(qe(r),"loadingRetryTimes",{}),H(qe(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:aa()}),H(qe(r),"dragStartMousePosition",null),H(qe(r),"dragNodeProps",null),H(qe(r),"currentMouseOverDroppableNodeKey",null),H(qe(r),"listRef",s.createRef()),H(qe(r),"onNodeDragStart",function(l,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,p=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var g=so(d,p);r.setState({draggingNodeKey:p,dragChildrenKeys:S9(p,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(g),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:l,node:Tn(c)})}),H(qe(r),"onNodeDragEnter",function(l,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,p=u.flattenNodes,g=u.indent,h=r.props,v=h.onDragEnter,y=h.onExpand,C=h.allowDrop,x=h.direction,E=c.pos,S=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==S&&(r.currentMouseOverDroppableNodeKey=S),!r.dragNodeProps){r.resetDragState();return}var $=Dw(l,r.dragNodeProps,c,g,r.dragStartMousePosition,C,p,f,d,x),O=$.dropPosition,I=$.dropLevelOffset,w=$.dropTargetKey,N=$.dropContainerKey,_=$.dropTargetPos,T=$.dropAllowed,M=$.dragOverNodeKey;if(m.includes(w)||!T){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==c.eventKey&&(l.persist(),r.delayedDragEnterLogic[E]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=ge(d),P=sr(f,c.eventKey);P&&(P.children||[]).length&&(D=No(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),y==null||y(D,{node:Tn(c),expanded:!0,nativeEvent:l.nativeEvent})}},800)),r.dragNodeProps.eventKey===w&&I===0){r.resetDragState();return}r.setState({dragOverNodeKey:M,dropPosition:O,dropLevelOffset:I,dropTargetKey:w,dropContainerKey:N,dropTargetPos:_,dropAllowed:T}),v==null||v({event:l,node:Tn(c),expandedKeys:d})}),H(qe(r),"onNodeDragOver",function(l,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,p=u.expandedKeys,g=u.indent,h=r.props,v=h.onDragOver,y=h.allowDrop,C=h.direction;if(r.dragNodeProps){var x=Dw(l,r.dragNodeProps,c,g,r.dragStartMousePosition,y,f,m,p,C),E=x.dropPosition,S=x.dropLevelOffset,$=x.dropTargetKey,O=x.dropContainerKey,I=x.dropTargetPos,w=x.dropAllowed,N=x.dragOverNodeKey;d.includes($)||!w||(r.dragNodeProps.eventKey===$&&S===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():E===r.state.dropPosition&&S===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&O===r.state.dropContainerKey&&I===r.state.dropTargetPos&&w===r.state.dropAllowed&&N===r.state.dragOverNodeKey||r.setState({dropPosition:E,dropLevelOffset:S,dropTargetKey:$,dropContainerKey:O,dropTargetPos:I,dropAllowed:w,dragOverNodeKey:N}),v==null||v({event:l,node:Tn(c)}))}}),H(qe(r),"onNodeDragLeave",function(l,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:Tn(c)})}),H(qe(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),H(qe(r),"onNodeDragEnd",function(l,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:Tn(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),H(qe(r),"onNodeDrop",function(l,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,p=f.dropPosition,g=f.dropTargetKey,h=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var C=q(q({},$l(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:sr(r.state.keyEntities,g).node}),x=m.includes(g);Ue(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=Wp(h),S={event:l,node:Tn(C),dragNode:r.dragNodeProps?Tn(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(E[E.length-1])};d||y==null||y(S),r.dragNodeProps=null}}}),H(qe(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),H(qe(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,p=c.key,g=c.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var h=f.filter(function(y){return y.key===p})[0],v=Tn(q(q({},$l(p,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?so(d,p):No(d,p)),r.onNodeExpand(l,v)}}),H(qe(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),H(qe(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),H(qe(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,p=r.props,g=p.onSelect,h=p.multiple,v=c.selected,y=c[m.key],C=!v;C?h?u=No(u,y):u=[y]:u=so(u,y);var x=u.map(function(E){var S=sr(f,E);return S?S.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:C,node:c,selectedNodes:x,nativeEvent:l.nativeEvent})}),H(qe(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,p=d.halfCheckedKeys,g=r.props,h=g.checkStrictly,v=g.onCheck,y=c.key,C,x={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(h){var E=u?No(m,y):so(m,y),S=so(p,y);C={checked:E,halfChecked:S},x.checkedNodes=E.map(function(_){return sr(f,_)}).filter(Boolean).map(function(_){return _.node}),r.setUncontrolledState({checkedKeys:E})}else{var $=la([].concat(ge(m),[y]),!0,f),O=$.checkedKeys,I=$.halfCheckedKeys;if(!u){var w=new Set(O);w.delete(y);var N=la(Array.from(w),{checked:!1,halfCheckedKeys:I},f);O=N.checkedKeys,I=N.halfCheckedKeys}C=O,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=I,O.forEach(function(_){var T=sr(f,_);if(T){var M=T.node,D=T.pos;x.checkedNodes.push(M),x.checkedNodesPositions.push({node:M,pos:D})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:I})}v==null||v(C,x)}),H(qe(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=sr(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(p,g){r.setState(function(h){var v=h.loadedKeys,y=v===void 0?[]:v,C=h.loadingKeys,x=C===void 0?[]:C,E=r.props,S=E.loadData,$=E.onLoad;if(!S||y.includes(u)||x.includes(u))return null;var O=S(l);return O.then(function(){var I=r.state.loadedKeys,w=No(I,u);$==null||$(w,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:w}),r.setState(function(N){return{loadingKeys:so(N.loadingKeys,u)}}),p()}).catch(function(I){if(r.setState(function(N){return{loadingKeys:so(N.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=z9){var w=r.state.loadedKeys;Ue(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:No(w,u)}),p()}g(I)}),{loadingKeys:No(x,u)}})});return m.catch(function(){}),m}}),H(qe(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),H(qe(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),H(qe(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),H(qe(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),H(qe(r),"onBlur",function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),H(qe(r),"getTreeNodeRequiredProps",function(){var l=r.state,c=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,m=l.checkedKeys,p=l.halfCheckedKeys,g=l.dragOverNodeKey,h=l.dropPosition,v=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:p||[],dragOverNodeKey:g,dropPosition:h,keyEntities:v}}),H(qe(r),"setExpandedKeys",function(l){var c=r.state,u=c.treeData,d=c.fieldNames,f=gp(u,l,d);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),H(qe(r),"onNodeExpand",function(l,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,p=r.props,g=p.onExpand,h=p.loadData,v=c.expanded,y=c[m.key];if(!f){var C=u.includes(y),x=!v;if(Ue(v&&C||!v&&!C,"Expand state not sync with index check"),u=x?No(u,y):so(u,y),r.setExpandedKeys(u),g==null||g(u,{node:c,expanded:x,nativeEvent:l.nativeEvent}),x&&h){var E=r.onNodeLoad(c);E&&E.then(function(){var S=gp(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=r.state.expandedKeys,$=so(S,y);r.setExpandedKeys($)})}}}),H(qe(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),H(qe(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),H(qe(r),"onActiveChange",function(l){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:m}),d==null||d(l))}),H(qe(r),"getActiveItem",function(){var l=r.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),H(qe(r),"offsetActiveKey",function(l){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(g){var h=g.key;return h===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var m=u[f];if(m){var p=m.key;r.onActiveChange(p)}else r.onActiveChange(null)}),H(qe(r),"onKeyDown",function(l){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,p=r.props,g=p.onKeyDown,h=p.checkable,v=p.selectable;switch(l.which){case ye.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case ye.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var y=r.getActiveItem();if(y&&y.data){var C=r.getTreeNodeRequiredProps(),x=y.data.isLeaf===!1||!!(y.data[m.children]||[]).length,E=Tn(q(q({},$l(u,C)),{},{data:y.data,active:!0}));switch(l.which){case ye.LEFT:{x&&d.includes(u)?r.onNodeExpand({},E):y.parent&&r.onActiveChange(y.parent.key),l.preventDefault();break}case ye.RIGHT:{x&&!d.includes(u)?r.onNodeExpand({},E):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),l.preventDefault();break}case ye.ENTER:case ye.SPACE:{h&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?r.onNodeCheck({},E,!f.includes(u)):!h&&v&&!E.disabled&&E.selectable!==!1&&r.onNodeSelect({},E);break}}}g==null||g(l)}),H(qe(r),"setUncontrolledState",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}d=!0,m[p]=l[p]}),d&&(!c||f)&&r.setState(q(q({},m),u))}}),H(qe(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return bn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,i=o.focused,a=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,p=o.dropPosition,g=o.dragOverNodeKey,h=o.indent,v=this.props,y=v.prefixCls,C=v.className,x=v.style,E=v.showLine,S=v.focusable,$=v.tabIndex,O=$===void 0?0:$,I=v.selectable,w=v.showIcon,N=v.icon,_=v.switcherIcon,T=v.draggable,M=v.checkable,D=v.checkStrictly,P=v.disabled,A=v.motion,R=v.loadData,L=v.filterTreeNode,j=v.height,z=v.itemHeight,B=v.scrollWidth,K=v.virtual,W=v.titleRender,k=v.dropIndicatorRender,V=v.onContextMenu,Q=v.onScroll,J=v.direction,Y=v.rootClassName,te=v.rootStyle,oe=An(this.props,{aria:!0,data:!0}),X;T&&(He(T)==="object"?X=T:typeof T=="function"?X={nodeDraggable:T}:X={});var F={prefixCls:y,selectable:I,showIcon:w,icon:N,switcherIcon:_,draggable:X,draggingNodeKey:c,checkable:M,checkStrictly:D,disabled:P,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:p,dragOverNodeKey:g,indent:h,direction:J,dropIndicatorRender:k,loadData:R,filterTreeNode:L,titleRender:W,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return s.createElement(Vp.Provider,{value:F},s.createElement("div",{className:U(y,C,Y,H(H(H({},"".concat(y,"-show-line"),E),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),u!==null)),style:te},s.createElement(qw,de({ref:this.listRef,prefixCls:y,style:x,data:a,disabled:P,selectable:I,checkable:!!M,motion:A,dragging:c!==null,height:j,itemHeight:z,virtual:K,focusable:S,focused:i,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:Q,scrollWidth:B},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function c(O){return!a&&o.hasOwnProperty(O)||a&&a[O]!==o[O]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=aa(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Ue(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=v$(o.children)),u){l.treeData=u;var f=hp(u,{fieldNames:d});l.keyEntities=q(H({},bi,Hw),f.keyEntities),process.env.NODE_ENV!=="production"&&gF(u,d)}var m=l.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?qp(o.expandedKeys,m):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=q({},m);delete p[bi];var g=[];Object.keys(p).forEach(function(O){var I=p[O];I.children&&I.children.length&&g.push(I.key)}),l.expandedKeys=g}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?qp(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var h=gp(u||i.treeData,l.expandedKeys||i.expandedKeys,d);l.flattenNodes=h}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=Aw(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=Aw(o.defaultSelectedKeys,o))),o.checkable){var v;if(c("checkedKeys")?v=Kp(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=Kp(o.defaultCheckedKeys)||{}:u&&(v=Kp(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var y=v,C=y.checkedKeys,x=C===void 0?[]:C,E=y.halfCheckedKeys,S=E===void 0?[]:E;if(!o.checkStrictly){var $=la(x,!0,m);x=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=S}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(s.Component);H(Yp,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Lw,allowDrop:function(){return!0},expandAction:!1}),H(Yp,"TreeNode",pa);const B9=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},k9=new It("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),F9=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),H9=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),V9=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Ht(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},zr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:k9,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:G(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},F9(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},H9(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(i).div(2).equal())} !important`}})}},W9=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=St(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[V9(e,a),n&&B9(a)].filter(Boolean)},K9=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},q9=Mt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:h$(`${n}-checkbox`,e)},W9(n,e),Ff(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},K9(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),Gw=4;function G9(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",c={[a]:-n*o+Gw,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+Gw;break}return b.createElement("div",{style:c,className:`${r}-drop-indicator`})}const U9=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return s.isValidElement(i)?i:s.createElement(Zo,{className:`${t}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),a){if(!o)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,p=`${t}-switcher-line-custom-icon`;return s.isValidElement(m)?Gn(m,{className:U(m.props.className||"",p)}):m}return u?s.createElement(Jh,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return s.isValidElement(f)?Gn(f,{className:U(f.props.className||"",d)}):f!==void 0?f:o?l?s.createElement(LT,{className:`${t}-switcher-line-icon`}):s.createElement(WT,{className:`${t}-switcher-line-icon`}):s.createElement(E_,{className:d})},Uw=b.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=b.useContext(Xe),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:p=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:y,motion:C,style:x}=e,E=r("tree",l),S=r(),$=C!=null?C:Object.assign(Object.assign({},Xs(S)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:u,motion:$,blockNode:p,showLine:!!d,dropIndicatorRender:G9}),[I,w,N]=q9(E),[,_]=Fn(),T=_.paddingXS/2+(((n=_.Tree)===null||n===void 0?void 0:n.titleHeight)||_.controlHeightSM),M=b.useMemo(()=>{if(!y)return!1;let P={};switch(typeof y){case"function":P.nodeDraggable=y;break;case"object":P=Object.assign({},y);break}return P.icon!==!1&&(P.icon=P.icon||b.createElement(hT,null)),P},[y]),D=P=>b.createElement(U9,{prefixCls:E,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:P,showLine:d});return I(b.createElement(Yp,Object.assign({itemHeight:T,ref:t,virtual:i},O,{style:Object.assign(Object.assign({},a==null?void 0:a.style),x),prefixCls:E,className:U({[`${E}-icon-hide`]:!u,[`${E}-block-node`]:p,[`${E}-unselectable`]:!v,[`${E}-rtl`]:o==="rtl"},a==null?void 0:a.className,c,w,N),direction:o,checkable:h&&b.createElement("span",{className:`${E}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:M}),g))});process.env.NODE_ENV!=="production"&&(Uw.displayName="Tree");const Xw=Uw,Qw=0,Jp=1,Yw=2;function Zp(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],c=a[o];t(l,a)!==!1&&Zp(c||[],t,n)}e.forEach(i)}function X9(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=Qw;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return Zp(t,u=>{if(l===Yw)return!1;if(c(u)){if(a.push(u),l===Qw)l=Jp;else if(l===Jp)return l=Yw,!1}else l===Jp&&a.push(u);return n.includes(u)},aa(i)),a}function ev(e,t,n){const r=ge(t),o=[];return Zp(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},aa(n)),o}var Jw=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Q9(e){const{isLeaf:t,expanded:n}=e;return t?s.createElement(Jh,null):n?s.createElement(cT,null):s.createElement(mT,null)}function Zw(e){let{treeData:t,children:n}=e;return t||v$(n)}const Y9=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Jw(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=s.useRef(null),l=s.useRef(null),c=()=>{const{keyEntities:I}=hp(Zw(i));let w;return n?w=Object.keys(I):r?w=qp(i.expandedKeys||o||[],I):w=i.expandedKeys||o||[],w},[u,d]=s.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),s.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const p=(I,w)=>{var N;return"expandedKeys"in i||m(I),(N=i.onExpand)===null||N===void 0?void 0:N.call(i,I,w)},g=(I,w)=>{var N;const{multiple:_,fieldNames:T}=i,{node:M,nativeEvent:D}=w,{key:P=""}=M,A=Zw(i),R=Object.assign(Object.assign({},w),{selected:!0}),L=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),j=D==null?void 0:D.shiftKey;let z;_&&L?(z=I,a.current=P,l.current=z,R.selectedNodes=ev(A,z,T)):_&&j?(z=Array.from(new Set([].concat(ge(l.current||[]),ge(X9({treeData:A,expandedKeys:f,startKey:P,endKey:a.current,fieldNames:T}))))),R.selectedNodes=ev(A,z,T)):(z=[P],a.current=P,l.current=z,R.selectedNodes=ev(A,z,T)),(N=i.onSelect)===null||N===void 0||N.call(i,z,R),"selectedKeys"in i||d(z)},{getPrefixCls:h,direction:v}=s.useContext(Xe),{prefixCls:y,className:C,showIcon:x=!0,expandAction:E="click"}=i,S=Jw(i,["prefixCls","className","showIcon","expandAction"]),$=h("tree",y),O=U(`${$}-directory`,{[`${$}-directory-rtl`]:v==="rtl"},C);return s.createElement(Xw,Object.assign({icon:Q9,ref:t,blockNode:!0},S,{showIcon:x,expandAction:E,prefixCls:$,className:O,expandedKeys:f,selectedKeys:u,onSelect:g,onExpand:p}))},eO=s.forwardRef(Y9);process.env.NODE_ENV!=="production"&&(eO.displayName="DirectoryTree");const J9=eO,tv=Xw;tv.DirectoryTree=J9,tv.TreeNode=pa;const Z9=tv,tO=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(wl,{prefix:s.createElement(Aa,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},eW=e=>{const{keyCode:t}=e;t===ye.ENTER&&e.stopPropagation()},nO=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:eW,ref:t},e.children));process.env.NODE_ENV!=="production"&&(nO.displayName="FilterDropdownMenuWrapper");const tW=nO;function ga(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ge(t),ge(ga(o))))}),t}function nW(e){return e.some(t=>{let{children:n}=t;return n})}function rO(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function oO(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:oO({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?Vc:gr,f={key:l.value!==void 0?u:c,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:r.includes(u)}),s.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?f:null:rO(i,l.text)?f:null:f})}function nv(e){return e||[]}const rW=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:p=!1,filterState:g,triggerFilter:h,locale:v,children:y,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:S,filterDropdownProps:$={},filterDropdownOpen:O,filterDropdownVisible:I,onFilterDropdownVisibleChange:w,onFilterDropdownOpenChange:N}=l,[_,T]=s.useState(!1),M=!!(g&&(!((t=g.filteredKeys)===null||t===void 0)&&t.length||g.forceFiltered)),D=ie=>{var ce;T(ie),(ce=$.onOpenChange)===null||ce===void 0||ce.call($,ie),N==null||N(ie),w==null||w(ie)};if(process.env.NODE_ENV!=="production"){const ie=vt("Table");[["filterDropdownOpen","filterDropdownProps.open"],["filterDropdownVisible","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"],["onFilterDropdownVisibleChange","filterDropdownProps.onOpenChange"]].forEach(ue=>{let[me,Ce]=ue;ie.deprecated(!(me in l),me,Ce)}),ie.deprecated(!("filterCheckall"in v),"filterCheckall","locale.filterCheckAll")}const P=(o=(r=(n=$.open)!==null&&n!==void 0?n:O)!==null&&r!==void 0?r:I)!==null&&o!==void 0?o:_,A=g==null?void 0:g.filteredKeys,[R,L]=T9(nv(A)),j=ie=>{let{selectedKeys:ce}=ie;L(ce)},z=(ie,ce)=>{let{node:ue,checked:me}=ce;j(f?{selectedKeys:ie}:{selectedKeys:me&&ue.key?[ue.key]:[]})};s.useEffect(()=>{_&&j({selectedKeys:nv(A)})},[A]);const[B,K]=s.useState([]),W=ie=>{K(ie)},[k,V]=s.useState(""),Q=ie=>{const{value:ce}=ie.target;V(ce)};s.useEffect(()=>{_||V("")},[_]);const J=ie=>{const ce=ie!=null&&ie.length?ie:null;if(ce===null&&(!g||!g.filteredKeys)||Jr(ce,g==null?void 0:g.filteredKeys,!0))return null;h({column:l,key:u,filteredKeys:ce})},Y=()=>{D(!1),J(R())},te=function(){let{confirm:ie,closeDropdown:ce}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ie&&J([]),ce&&D(!1),V(""),L(E?(S||[]).map(ue=>String(ue)):[])},oe=function(){let{closeDropdown:ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ie&&D(!1),J(R())},X=(ie,ce)=>{ce.source==="trigger"&&(ie&&A!==void 0&&L(nv(A)),D(ie),!ie&&!l.filterDropdown&&d&&Y())},F=U({[`${c}-menu-without-submenu`]:!nW(l.filters||[])}),ee=ie=>{if(ie.target.checked){const ce=ga(l==null?void 0:l.filters).map(ue=>String(ue));L(ce)}else L([])},Z=ie=>{let{filters:ce}=ie;return(ce||[]).map((ue,me)=>{const Ce=String(ue.value),Oe={title:ue.text,key:ue.value!==void 0?Ce:String(me)};return ue.children&&(Oe.children=Z({filters:ue.children})),Oe})},ne=ie=>{var ce;return Object.assign(Object.assign({},ie),{text:ie.title,value:ie.key,children:((ce=ie.children)===null||ce===void 0?void 0:ce.map(ue=>ne(ue)))||[]})};let re;const{direction:se,renderEmpty:le}=s.useContext(Xe);if(typeof l.filterDropdown=="function")re=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ie=>j({selectedKeys:ie}),selectedKeys:R(),confirm:oe,clearFilters:te,filters:l.filters,visible:P,close:()=>{D(!1)}});else if(l.filterDropdown)re=l.filterDropdown;else{const ie=R()||[],ce=()=>{var me,Ce;const Oe=(me=le==null?void 0:le("Table.filter"))!==null&&me!==void 0?me:s.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return Oe;if(m==="tree")return s.createElement(s.Fragment,null,s.createElement(tO,{filterSearch:p,value:k,onChange:Q,tablePrefixCls:i,locale:v}),s.createElement("div",{className:`${i}-filter-dropdown-tree`},f?s.createElement(Vc,{checked:ie.length===ga(l.filters).length,indeterminate:ie.length>0&&ie.length<ga(l.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:ee},(Ce=v==null?void 0:v.filterCheckall)!==null&&Ce!==void 0?Ce:v==null?void 0:v.filterCheckAll):null,s.createElement(Z9,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:z,checkedKeys:ie,selectedKeys:ie,showIcon:!1,treeData:Z({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:k.trim()?Ne=>typeof p=="function"?p(k,ne(Ne)):rO(k,Ne.title):void 0})));const Pe=oO({filters:l.filters||[],filterSearch:p,prefixCls:a,filteredKeys:R(),filterMultiple:f,searchValue:k}),je=Pe.every(Ne=>Ne===null);return s.createElement(s.Fragment,null,s.createElement(tO,{filterSearch:p,value:k,onChange:Q,tablePrefixCls:i,locale:v}),je?Oe:s.createElement(AE,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:F,onSelect:j,onDeselect:j,selectedKeys:ie,getPopupContainer:C,openKeys:B,onOpenChange:W,items:Pe}))},ue=()=>E?Jr((S||[]).map(me=>String(me)),ie,!0):ie.length===0;re=s.createElement(s.Fragment,null,ce(),s.createElement("div",{className:`${a}-dropdown-btns`},s.createElement(rn,{type:"link",size:"small",disabled:ue(),onClick:()=>te()},v.filterReset),s.createElement(rn,{type:"primary",size:"small",onClick:Y},v.filterConfirm)))}l.filterDropdown&&(re=s.createElement(NE,{selectable:void 0},re)),re=s.createElement(tW,{className:`${a}-dropdown`},re);const fe=uc({trigger:["click"],placement:se==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ie;return typeof l.filterIcon=="function"?ie=l.filterIcon(M):l.filterIcon?ie=l.filterIcon:ie=s.createElement(tT,null),s.createElement("span",{role:"button",tabIndex:-1,className:U(`${a}-trigger`,{active:M}),onClick:ce=>{ce.stopPropagation()}},ie)})(),getPopupContainer:C},Object.assign(Object.assign({},$),{rootClassName:U(x,$.rootClassName),open:P,onOpenChange:X,popupRender:()=>typeof($==null?void 0:$.dropdownRender)=="function"?$.dropdownRender(re):re}));return s.createElement("div",{className:`${a}-column`},s.createElement("span",{className:`${i}-column-title`},y),s.createElement(Z$,Object.assign({},fe)))},rv=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const l=va(i,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),r.push({column:o,key:Wo(o,l),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Wo(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ge(r),ge(rv(o.children,t,l))))}),r};function iO(e,t,n,r,o,i,a,l,c){return n.map((u,d)=>{const f=va(d,l),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:g,filterSearch:h}=u;let v=u;if(v.filters||v.filterDropdown){const y=Wo(v,f),C=r.find(x=>{let{key:E}=x;return y===E});v=Object.assign(Object.assign({},v),{title:x=>s.createElement(rW,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:C,filterOnClose:m,filterMultiple:p,filterMode:g,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:c},au(u.title,x))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:iO(e,t,v.children,r,o,i,a,f,c)})),v})}const aO=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:c}=i;if(c)t[a]=o||null;else if(Array.isArray(o)){const u=ga(l);t[a]=u.filter(d=>o.includes(String(d)))}else t[a]=null}),t},ov=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:l},filteredKeys:c}=i;return a&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=ga(l),m=f.findIndex(g=>String(g)===String(d)),p=m!==-1?f[m]:d;return u[n]&&(u[n]=ov(u[n],t,n)),a(p,u)})):o},e),lO=e=>e.flatMap(t=>"children"in t?[t].concat(ge(lO(t.children||[]))):[t]),oW=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e,c=vt("Table"),u=s.useMemo(()=>lO(r||[]),[r]),[d,f]=s.useState(()=>rv(u,!0)),m=s.useMemo(()=>{const v=rv(u,!1);if(v.length===0)return v;let y=!0,C=!0;if(v.forEach(x=>{let{filteredKeys:E}=x;E!==void 0?y=!1:C=!1}),y){const x=(u||[]).map((E,S)=>Wo(E,va(S)));return d.filter(E=>{let{key:S}=E;return x.includes(S)}).map(E=>{const S=u[x.findIndex($=>$===E.key)];return Object.assign(Object.assign({},E),{column:Object.assign(Object.assign({},E.column),S),forceFiltered:S.filtered})})}return process.env.NODE_ENV!=="production"&&c(C,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),v},[u,d]),p=s.useMemo(()=>aO(m),[m]),g=v=>{const y=m.filter(C=>{let{key:x}=C;return x!==v.key});y.push(v),f(y),o(aO(y),y)};return[v=>iO(t,n,v,m,a,g,i,void 0,l),m,p]},iW=(e,t,n)=>{const r=s.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((d,f)=>{const m=n(d,f);l.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(i)}return[o]};var aW=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sO=10;function lW(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function sW(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=aW(r,["total"]),[a,l]=b.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:sO})),c=uc(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,p)=>{l({current:m!=null?m:1,pageSize:p||c.pageSize})},f=(m,p)=>{var g;n&&((g=n.onChange)===null||g===void 0||g.call(n,m,p)),d(m,p),t(m,p||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const lu="ascend",iv="descend",su=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,cO=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,cW=(e,t)=>t?e[e.indexOf(t)+1]:e[0],av=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:Wo(i,a),multiplePriority:su(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const l=va(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(ge(r),ge(av(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Wo(i,l),multiplePriority:su(i),sortOrder:i.defaultSortOrder}))}),r},uO=(e,t,n,r,o,i,a,l)=>(t||[]).map((u,d)=>{const f=va(d,l);let m=u;if(m.sorter){const p=m.sortDirections||o,g=m.showSorterTooltip===void 0?a:m.showSorterTooltip,h=Wo(m,f),v=n.find(w=>{let{key:N}=w;return N===h}),y=v?v.sortOrder:null,C=cW(p,y);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:y});else{const w=p.includes(lu)&&s.createElement(T_,{className:U(`${e}-column-sorter-up`,{active:y===lu})}),N=p.includes(iv)&&s.createElement(N_,{className:U(`${e}-column-sorter-down`,{active:y===iv})});x=s.createElement("span",{className:U(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(w&&N)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},w,N))}const{cancelSort:E,triggerAsc:S,triggerDesc:$}=i||{};let O=E;C===iv?O=$:C===lu&&(O=S);const I=typeof g=="object"?Object.assign({title:O},g):{title:O};m=Object.assign(Object.assign({},m),{className:U(m.className,{[`${e}-column-sort`]:y}),title:w=>{const N=`${e}-column-sorters`,_=s.createElement("span",{className:`${e}-column-title`},au(u.title,w)),T=s.createElement("div",{className:N},_,x);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?s.createElement("div",{className:`${N} ${e}-column-sorters-tooltip-target-sorter`},_,s.createElement(lo,Object.assign({},I),x)):s.createElement(lo,Object.assign({},I),T):T},onHeaderCell:w=>{var N;const _=((N=u.onHeaderCell)===null||N===void 0?void 0:N.call(u,w))||{},T=_.onClick,M=_.onKeyDown;_.onClick=A=>{r({column:u,key:h,sortOrder:C,multiplePriority:su(u)}),T==null||T(A)},_.onKeyDown=A=>{A.keyCode===ye.ENTER&&(r({column:u,key:h,sortOrder:C,multiplePriority:su(u)}),M==null||M(A))};const D=P9(u.title,{}),P=D==null?void 0:D.toString();return y&&(_["aria-sort"]=y==="ascend"?"ascending":"descending"),_["aria-label"]=P||"",_.className=U(_.className,`${e}-column-has-sorters`),_.tabIndex=0,u.ellipsis&&(_.title=(D!=null?D:"").toString()),_}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:uO(e,m.children,n,r,o,i,a,f)})),m}),dO=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},fO=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(dO);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},dO(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},lv=(e,t,n)=>{const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:c}=a;return cO(l)&&c});return i.length?o.sort((a,l)=>{for(let c=0;c<i.length;c+=1){const u=i[c],{column:{sorter:d},sortOrder:f}=u,m=cO(d);if(m&&f){const p=m(a,l,f);if(p!==0)return f===lu?p:-p}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:lv(l,t,n)}):a}):o},uW=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[l,c]=s.useState(()=>av(n,!0)),u=(h,v)=>{const y=[];return h.forEach((C,x)=>{const E=va(x,v);if(y.push(Wo(C,E)),Array.isArray(C.children)){const S=u(C.children,E);y.push.apply(y,ge(S))}}),y},d=s.useMemo(()=>{let h=!0;const v=av(n,!1);if(!v.length){const E=u(n);return l.filter(S=>{let{key:$}=S;return E.includes($)})}const y=[];function C(E){h?y.push(E):y.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return v.forEach(E=>{x===null?(C(E),E.sortOrder&&(E.multiplePriority===!1?h=!1:x=!0)):(x&&E.multiplePriority!==!1||(h=!1),C(E))}),y},[n,l]),f=s.useMemo(()=>{var h,v;const y=d.map(C=>{let{column:x,sortOrder:E}=C;return{column:x,order:E}});return{sortColumns:y,sortColumn:(h=y[0])===null||h===void 0?void 0:h.column,sortOrder:(v=y[0])===null||v===void 0?void 0:v.order}},[d]),m=h=>{let v;h.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?v=[h]:v=[].concat(ge(d.filter(y=>{let{key:C}=y;return C!==h.key})),[h]),c(v),a(fO(v),v)};return[h=>uO(t,h,d,m,r,o,i),d,f,()=>fO(d)]},mO=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=au(r.title,t),"children"in o&&(o.children=mO(o.children,t)),o}),dW=e=>[s.useCallback(n=>mO(n,e),[e])],fW=Ow((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),mW=Pw((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pW=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,u=`${G(n)} ${r} ${o}`,d=(f,m,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(m).mul(-1).equal())}
|
|
337
|
+
${G(c(c(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
|
|
338
|
+
> ${t}-content,
|
|
339
|
+
> ${t}-header,
|
|
340
|
+
> ${t}-body,
|
|
341
|
+
> ${t}-summary
|
|
342
|
+
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(a).mul(-1).equal())} ${G(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
343
|
+
> tr${t}-expanded-row,
|
|
344
|
+
> tr${t}-placeholder
|
|
345
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},vW=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Co),{wordBreak:"keep-all",[`
|
|
346
|
+
&${t}-cell-fix-left-last,
|
|
347
|
+
&${t}-cell-fix-right-first
|
|
348
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},gW=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},hW=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:g,expandIconMarginTop:h,expandIconSize:v,expandIconHalfInner:y,expandIconScale:C,calc:x}=e,E=`${G(o)} ${a} ${l}`,S=x(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},vf(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:G(v),background:c,border:E,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:y,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(x(f).mul(-1).equal())} ${G(x(m).mul(-1).equal())}`,padding:`${G(f)} ${G(m)}`}}}},bW=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:h,motionDurationSlow:v,colorIcon:y,colorPrimary:C,tableHeaderFilterActiveBg:x,colorTextDisabled:E,tableFilterDropdownBg:S,tableFilterDropdownHeight:$,controlItemBgHover:O,controlItemBgActive:I,boxShadowSecondary:w,filterDropdownMenuBg:N,calc:_}=e,T=`${n}-dropdown`,M=`${t}-filter-dropdown`,D=`${n}-tree`,P=`${G(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(a).mul(-1).equal(),marginInline:`${G(a)} ${G(_(g).div(2).mul(-1).equal())}`,padding:`0 ${G(a)}`,color:m,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:x},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},Ht(e)),{minWidth:o,backgroundColor:S,borderRadius:h,boxShadow:w,overflow:"hidden",[`${T}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:N,"&:empty::after":{display:"block",padding:`${G(l)} 0`,color:E,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${G(l)} 0`,paddingInline:l,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:O},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${M}-search`]:{padding:l,borderBottom:P,"&-input":{input:{minWidth:i},[r]:{color:E}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G(_(l).sub(u).equal())} ${G(l)}`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},yW=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
|
|
349
|
+
${t}-cell-fix-left,
|
|
350
|
+
${t}-cell-fix-right
|
|
351
|
+
`]:{position:"sticky !important",zIndex:i,background:a},[`
|
|
352
|
+
${t}-cell-fix-left-first::after,
|
|
353
|
+
${t}-cell-fix-left-last::after
|
|
354
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
355
|
+
${t}-cell-fix-right-first::after,
|
|
356
|
+
${t}-cell-fix-right-last::after
|
|
357
|
+
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
|
|
358
|
+
${t}-cell-fix-left-first::after,
|
|
359
|
+
${t}-cell-fix-left-last::after
|
|
360
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
|
|
361
|
+
${t}-cell-fix-right-first::after,
|
|
362
|
+
${t}-cell-fix-right-last::after
|
|
363
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
364
|
+
${t}-cell-fix-left-first::after,
|
|
365
|
+
${t}-cell-fix-left-last::after,
|
|
366
|
+
${t}-cell-fix-right-first::after,
|
|
367
|
+
${t}-cell-fix-right-last::after
|
|
368
|
+
`]:{boxShadow:"none"}}}}},CW=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${G(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},SW=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${G(n)} ${G(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${G(n)} ${G(n)}`}}}}},xW=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},EW=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).add(g(a).mul(2)).equal()}},[`
|
|
369
|
+
table tr th${t}-selection-column,
|
|
370
|
+
table tr td${t}-selection-column,
|
|
371
|
+
${t}-selection-column
|
|
372
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:g(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:G(g(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},$W=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[`
|
|
373
|
+
${t}-title,
|
|
374
|
+
${t}-footer,
|
|
375
|
+
${t}-cell,
|
|
376
|
+
${t}-thead > tr > th,
|
|
377
|
+
${t}-tbody > tr > th,
|
|
378
|
+
${t}-tbody > tr > td,
|
|
379
|
+
tfoot > tr > th,
|
|
380
|
+
tfoot > tr > td
|
|
381
|
+
`]:{padding:`${G(a)} ${G(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:G(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${G(r(a).mul(-1).equal())} ${G(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:G(r(a).mul(-1).equal()),marginInline:`${G(r(n).sub(l).equal())} ${G(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:G(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},wW=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
382
|
+
&${t}-cell-fix-left:hover,
|
|
383
|
+
&${t}-cell-fix-right:hover
|
|
384
|
+
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},OW=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${G(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},pO=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${G(o(n).mul(-1).equal())} 0 ${r}`}}}},NW=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${G(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
385
|
+
& > ${t}-row,
|
|
386
|
+
& > div:not(${t}-row) > ${t}-row
|
|
387
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},IW=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:h,tableFooterTextColor:v,tableFooterBg:y,calc:C}=e,x=`${G(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},So()),{[t]:Object.assign(Object.assign({},Ht(e)),{fontSize:u,background:d,borderRadius:`${G(f)} ${G(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(f)} ${G(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
388
|
+
${t}-cell,
|
|
389
|
+
${t}-thead > tr > th,
|
|
390
|
+
${t}-tbody > tr > th,
|
|
391
|
+
${t}-tbody > tr > td,
|
|
392
|
+
tfoot > tr > th,
|
|
393
|
+
tfoot > tr > td
|
|
394
|
+
`]:{position:"relative",padding:`${G(r)} ${G(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${G(r)} ${G(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:x,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:x,[`
|
|
395
|
+
> ${t}-wrapper:only-child,
|
|
396
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
397
|
+
`]:{[t]:{marginBlock:G(C(r).mul(-1).equal()),marginInline:`${G(C(i).sub(o).equal())}
|
|
398
|
+
${G(C(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:x,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(o)}`,color:v,background:y}})}},_W=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:g,fontSize:h,fontSizeSM:v,lineHeight:y,lineWidth:C,colorIcon:x,colorIconHover:E,opacityLoading:S,controlInteractiveSize:$}=e,O=new Bt(o).onBackground(n).toHexString(),I=new Bt(i).onBackground(n).toHexString(),w=new Bt(t).onBackground(n).toHexString(),N=new Bt(x),_=new Bt(E),T=$/2-C,M=T*2+C*3;return{headerBg:w,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:I,bodySortBg:w,rowHoverBg:w,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:w,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:O,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*y-C*3)/2-Math.ceil((v*1.4-C*3)/2),headerIconColor:N.clone().setA(N.a*S).toRgbString(),headerIconHoverColor:_.clone().setA(_.a*S).toRgbString(),expandIconHalfInner:T,expandIconSize:M,expandIconScale:$/M}},vO=2,PW=Mt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:g,cellPaddingInline:h,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:C,cellPaddingInlineSM:x,borderColor:E,footerBg:S,footerColor:$,headerBorderRadius:O,cellFontSize:I,cellFontSizeMD:w,cellFontSizeSM:N,headerSplitColor:_,fixedHeaderSortActiveBg:T,headerFilterHoverBg:M,filterDropdownBg:D,expandIconBg:P,selectionColumnWidth:A,stickyScrollBarBg:R,calc:L}=e,j=St(e,{tableFontSize:I,tableBg:r,tableRadius:O,tablePaddingVertical:g,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:x,tableBorderColor:E,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:S,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:D,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:vO,zIndexTableSticky:L(vO).add(1).equal({unit:!1}),tableFontSizeMiddle:w,tableFontSizeSmall:N,tableSelectionColumnWidth:A,tableExpandIconBg:P,tableExpandColumnWidth:L(o).add(L(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[IW(j),CW(j),pO(j),wW(j),bW(j),pW(j),SW(j),hW(j),pO(j),gW(j),EW(j),yW(j),OW(j),vW(j),$W(j),xW(j),NW(j)]},_W,{unitless:{expandIconScale:!0}}),TW=[],MW=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:p,rowKey:g="key",rowClassName:h,columns:v,children:y,childrenColumnName:C,onChange:x,getPopupContainer:E,loading:S,expandIcon:$,expandable:O,expandedRowRender:I,expandIconColumnIndex:w,indentSize:N,scroll:_,sortDirections:T,locale:M,showSorterTooltip:D={target:"full-header"},virtual:P}=e,A=vt("Table");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&A(!(typeof g=="function"&&g.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const R=s.useMemo(()=>v||Bp(y),[v,y]),L=s.useMemo(()=>R.some(Ae=>Ae.responsive),[R]),j=pl(L),z=s.useMemo(()=>{const Ae=new Set(Object.keys(j).filter(Qe=>j[Qe]));return R.filter(Qe=>!Qe.responsive||Qe.responsive.some(nt=>Ae.has(nt)))},[R,j]),B=tn(e,["className","style","columns"]),{locale:K=eo,direction:W,table:k,renderEmpty:V,getPrefixCls:Q,getPopupContainer:J}=s.useContext(Xe),Y=Kn(c),te=Object.assign(Object.assign({},K.Table),M),oe=f||TW,X=Q("table",o),F=Q("dropdown",d),[,ee]=Fn(),Z=wn(X),[ne,re,se]=PW(X,Z),le=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:w},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=k==null?void 0:k.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:he="children"}=le,fe=s.useMemo(()=>oe.some(Ae=>Ae==null?void 0:Ae[he])?"nest":I||O!=null&&O.expandedRowRender?"row":null,[oe]),ie={body:s.useRef(null)},ce=_9(X),ue=s.useRef(null),me=s.useRef(null);N9(t,()=>Object.assign(Object.assign({},me.current),{nativeElement:ue.current}));const Ce=s.useMemo(()=>typeof g=="function"?g:Ae=>Ae==null?void 0:Ae[g],[g]),[Oe]=iW(oe,he,Ce),Pe={},je=function(Ae,Qe){let nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ot,ht,Rt,Wt;const yt=Object.assign(Object.assign({},Pe),Ae);nt&&((ot=Pe.resetPagination)===null||ot===void 0||ot.call(Pe),!((ht=yt.pagination)===null||ht===void 0)&&ht.current&&(yt.pagination.current=1),m&&((Rt=m.onChange)===null||Rt===void 0||Rt.call(m,1,(Wt=yt.pagination)===null||Wt===void 0?void 0:Wt.pageSize))),_&&_.scrollToFirstRowOnChange!==!1&&ie.body.current&&yR(0,{getContainer:()=>ie.body.current}),x==null||x(yt.pagination,yt.filters,yt.sorter,{currentDataSource:ov(lv(oe,yt.sorterStates,he),yt.filterStates,he),action:Qe})},Ne=(Ae,Qe)=>{je({sorter:Ae,sorterStates:Qe},"sort",!1)},[Ie,xe,be,Ee]=uW({prefixCls:X,mergedColumns:z,onSorterChange:Ne,sortDirections:T||["ascend","descend"],tableLocale:te,showSorterTooltip:D}),$e=s.useMemo(()=>lv(oe,xe,he),[oe,xe]);Pe.sorter=Ee(),Pe.sorterStates=xe;const _e=(Ae,Qe)=>{je({filters:Ae,filterStates:Qe},"filter",!0)},[ve,Se,Je]=oW({prefixCls:X,locale:te,dropdownPrefixCls:F,mergedColumns:z,onFilterChange:_e,getPopupContainer:E||J,rootClassName:U(a,Z)}),it=ov($e,Se,he);Pe.filters=Je,Pe.filterStates=Se;const Ot=s.useMemo(()=>{const Ae={};return Object.keys(Je).forEach(Qe=>{Je[Qe]!==null&&(Ae[Qe]=Je[Qe])}),Object.assign(Object.assign({},be),{filters:Ae})},[be,Je]),[_t]=dW(Ot),Ut=(Ae,Qe)=>{je({pagination:Object.assign(Object.assign({},Pe.pagination),{current:Ae,pageSize:Qe})},"paginate")},[st,Pt]=sW(it.length,Ut,m);Pe.pagination=m===!1?{}:lW(st,m),Pe.resetPagination=Pt;const mt=s.useMemo(()=>{if(m===!1||!st.pageSize)return it;const{current:Ae=1,total:Qe,pageSize:nt=sO}=st;return process.env.NODE_ENV!=="production"&&A(Ae>0,"usage","`current` should be positive number."),it.length<Qe?it.length>nt?(process.env.NODE_ENV!=="production"&&A(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),it.slice((Ae-1)*nt,Ae*nt)):it:it.slice((Ae-1)*nt,Ae*nt)},[!!m,it,st==null?void 0:st.current,st==null?void 0:st.pageSize,st==null?void 0:st.total]),[et,ke]=w9({prefixCls:X,data:it,pageData:mt,getRowKey:Ce,getRecordByKey:Oe,expandType:fe,childrenColumnName:he,locale:te,getPopupContainer:E||J},p),Me=(Ae,Qe,nt)=>{let ot;return typeof h=="function"?ot=U(h(Ae,Qe,nt)):ot=U(h),U({[`${X}-row-selected`]:ke.has(Ce(Ae,Qe))},ot)};le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||$||I9(te),fe==="nest"&&le.expandIconColumnIndex===void 0?le.expandIconColumnIndex=p?1:0:le.expandIconColumnIndex>0&&p&&(le.expandIconColumnIndex-=1),typeof le.indentSize!="number"&&(le.indentSize=typeof N=="number"?N:15);const Te=s.useCallback(Ae=>_t(et(ve(Ie(Ae)))),[Ie,ve,et]);let at,ct;if(m!==!1&&(st!=null&&st.total)){let Ae;st.size?Ae=st.size:Ae=Y==="small"||Y==="middle"?"small":void 0;const Qe=ht=>s.createElement(HH,Object.assign({},st,{className:U(`${X}-pagination ${X}-pagination-${ht}`,st.className),size:Ae})),nt=W==="rtl"?"left":"right",{position:ot}=st;if(ot!==null&&Array.isArray(ot)){const ht=ot.find(yt=>yt.includes("top")),Rt=ot.find(yt=>yt.includes("bottom")),Wt=ot.every(yt=>`${yt}`=="none");!ht&&!Rt&&!Wt&&(ct=Qe(nt)),ht&&(at=Qe(ht.toLowerCase().replace("top",""))),Rt&&(ct=Qe(Rt.toLowerCase().replace("bottom","")))}else ct=Qe(nt)}let Le;typeof S=="boolean"?Le={spinning:S}:typeof S=="object"&&(Le=Object.assign({spinning:!0},S));const we=U(se,Z,`${X}-wrapper`,k==null?void 0:k.className,{[`${X}-wrapper-rtl`]:W==="rtl"},i,a,re),ze=Object.assign(Object.assign({},k==null?void 0:k.style),l),Fe=typeof(M==null?void 0:M.emptyText)!="undefined"?M.emptyText:(V==null?void 0:V("Table"))||s.createElement(Nx,{componentName:"Table"}),Ve=P?mW:fW,Ze={},$t=s.useMemo(()=>{const{fontSize:Ae,lineHeight:Qe,lineWidth:nt,padding:ot,paddingXS:ht,paddingSM:Rt}=ee,Wt=Math.floor(Ae*Qe);switch(Y){case"middle":return Rt*2+Wt+nt;case"small":return ht*2+Wt+nt;default:return ot*2+Wt+nt}},[ee,Y]);return P&&(Ze.listItemHeight=$t),ne(s.createElement("div",{ref:ue,className:we,style:ze},s.createElement(Yc,Object.assign({spinning:!1},Le),at,s.createElement(Ve,Object.assign({},Ze,B,{ref:me,columns:z,direction:W,expandable:le,prefixCls:X,className:U({[`${X}-middle`]:Y==="middle",[`${X}-small`]:Y==="small",[`${X}-bordered`]:u,[`${X}-empty`]:oe.length===0},se,Z,re),data:mt,rowKey:Ce,rowClassName:Me,emptyText:Fe,internalHooks:Pl,internalRefs:ie,transformColumns:Te,getContainerWidth:ce})),ct)))},DW=s.forwardRef(MW),AW=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(DW,Object.assign({},e,{ref:t,_renderTimes:n.current}))},uo=s.forwardRef(AW);uo.SELECTION_COLUMN=co,uo.EXPAND_COLUMN=Vr,uo.SELECTION_ALL=Gp,uo.SELECTION_INVERT=Up,uo.SELECTION_NONE=Xp,uo.Column=p9,uo.ColumnGroup=v9,uo.Summary=iw,process.env.NODE_ENV!=="production"&&(uo.displayName="Table");const sv=uo,RW=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Ht(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},cv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return St(e,{tagFontSize:o,tagLineHeight:G(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uv=e=>({defaultBg:new Bt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),gO=Mt("Tag",e=>{const t=cv(e);return RW(t)},uv);var jW=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LW=s.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,c=jW(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=s.useContext(Xe),f=y=>{a==null||a(!i),l==null||l(y)},m=u("tag",n),[p,g,h]=gO(m),v=U(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},d==null?void 0:d.className,o,g,h);return p(s.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:v,onClick:f})))}),zW=e=>r0(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),BW=Ri(["Tag","preset"],e=>{const t=cv(e);return zW(t)},uv);function kW(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const cu=(e,t,n)=>{const r=kW(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},FW=Ri(["Tag","status"],e=>{const t=cv(e);return[cu(t,"success","Success"),cu(t,"processing","Info"),cu(t,"error","Error"),cu(t,"warning","Warning")]},uv);var HW=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dv=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=HW(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:g,tag:h}=s.useContext(Xe),[v,y]=s.useState(!0),C=tn(m,["closeIcon","closable"]);process.env.NODE_ENV!=="production"&&vt("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),s.useEffect(()=>{f!==void 0&&y(f)},[f]);const x=Gx(c),E=EB(c),S=x||E,$=Object.assign(Object.assign({backgroundColor:c&&!S?c:void 0},h==null?void 0:h.style),i),O=p("tag",n),[I,w,N]=gO(O),_=U(O,h==null?void 0:h.className,{[`${O}-${c}`]:S,[`${O}-has-color`]:c&&!S,[`${O}-hidden`]:!v,[`${O}-rtl`]:g==="rtl",[`${O}-borderless`]:!d},r,o,w,N),T=L=>{L.stopPropagation(),u==null||u(L),!L.defaultPrevented&&y(!1)},[,M]=gm(qi(e),qi(h),{closable:!1,closeIconRender:L=>{const j=s.createElement("span",{className:`${O}-close-icon`,onClick:T},L);return $f(L,j,z=>({onClick:B=>{var K;(K=z==null?void 0:z.onClick)===null||K===void 0||K.call(z,B),T(B)},className:U(z==null?void 0:z.className,`${O}-close-icon`)}))}}),D=typeof m.onClick=="function"||a&&a.type==="a",P=l||null,A=P?s.createElement(s.Fragment,null,P,a&&s.createElement("span",null,a)):a,R=s.createElement("span",Object.assign({},C,{ref:t,className:_,style:$}),A,M,x&&s.createElement(BW,{key:"preset",prefixCls:O}),E&&s.createElement(FW,{key:"status",prefixCls:O}));return I(D?s.createElement(el,{component:"Tag"},R):R)});process.env.NODE_ENV!=="production"&&(dv.displayName="Tag"),dv.CheckableTag=LW;const ha=dv,VW=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},WW=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
399
|
+
h${r}&,
|
|
400
|
+
div&-h${r},
|
|
401
|
+
div&-h${r} > textarea,
|
|
402
|
+
h${r}
|
|
403
|
+
`]=VW(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},KW=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},vf(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},qW=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:as[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),GW=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${G(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},UW=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),XW=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),QW=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},WW(e)),{[`
|
|
404
|
+
& + h1${t},
|
|
405
|
+
& + h2${t},
|
|
406
|
+
& + h3${t},
|
|
407
|
+
& + h4${t},
|
|
408
|
+
& + h5${t}
|
|
409
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),qW(e)),KW(e)),{[`
|
|
410
|
+
${t}-expand,
|
|
411
|
+
${t}-collapse,
|
|
412
|
+
${t}-edit,
|
|
413
|
+
${t}-copy
|
|
414
|
+
`]:Object.assign(Object.assign({},vf(e)),{marginInlineStart:e.marginXXS})}),GW(e)),UW(e)),XW()),{"&-rtl":{direction:"rtl"}})}},hO=Mt("Typography",e=>[QW(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),YW=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=s.createElement(DP,null)}=e,g=s.useRef(null),h=s.useRef(!1),v=s.useRef(null),[y,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var D;if(!((D=g.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:P}=g.current.resizableTextArea;P.focus();const{length:A}=P.value;P.setSelectionRange(A,A)}},[]);const x=D=>{let{target:P}=D;C(P.value.replace(/[\n\r]/g,""))},E=()=>{h.current=!0},S=()=>{h.current=!1},$=D=>{let{keyCode:P}=D;h.current||(v.current=P)},O=()=>{u(y.trim())},I=D=>{let{keyCode:P,ctrlKey:A,altKey:R,metaKey:L,shiftKey:j}=D;v.current!==P||h.current||A||R||L||j||(P===ye.ENTER?(O(),f==null||f()):P===ye.ESC&&d())},w=()=>{O()},[N,_,T]=hO(t),M=U(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,_,T);return N(s.createElement("div",{className:M,style:o},s.createElement(E1,{ref:g,maxLength:a,value:y,onChange:x,onKeyDown:$,onKeyUp:I,onCompositionStart:E,onCompositionEnd:S,onBlur:w,"aria-label":n,rows:1,autoSize:l}),p!==null?Gn(p,{className:`${t}-edit-content-confirm`}):null))};var JW=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ZW=JW,bO={"text/plain":"Text","text/html":"Url",default:"Text"},eK="Copy to clipboard: #{key}, Enter";function tK(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function nK(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{o=ZW(),i=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData=="undefined"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=bO[t.format]||bO.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=tK("message"in t?t.message:eK),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var rK=nK;const oK=Xo(rK);var iK=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const aK=e=>{let{copyConfig:t,children:n}=e;const[r,o]=s.useState(!1),[i,a]=s.useState(!1),l=s.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),s.useEffect(()=>c,[]);const d=qt(f=>iK(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;oK(p||eV(n,!0).join("")||"",u),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:i,onClick:d}};function fv(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const lK=e=>{const t=b.useRef(void 0);return b.useEffect(()=>{t.current=e}),t.current},sK=(e,t,n)=>b.useMemo(()=>e===!0?{title:t!=null?t:n}:b.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var cK=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yO=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,d=cK(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:p,style:g}=Dn("typography"),h=c!=null?c:m,v=a?Vn(t,a):t,y=f("typography",n);process.env.NODE_ENV!=="production"&&vt("Typography").deprecated(!a,"setContentRef","ref");const[C,x,E]=hO(y),S=U(y,p,{[`${y}-rtl`]:h==="rtl"},o,i,x,E),$=Object.assign(Object.assign({},g),u);return C(s.createElement(r,Object.assign({className:S,style:$,ref:v},d),l))});process.env.NODE_ENV!=="production"&&(yO.displayName="Typography");const CO=yO;function SO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function mv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uK(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const pv=e=>["string","number"].includes(typeof e),dK=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const d=SO(i),f=SO(a),{copied:m,copy:p}=r!=null?r:{},g=n?m:p,h=mv(d[n?1:0],g),v=typeof h=="string"?h:g;return s.createElement(lo,{title:h},s.createElement("button",{type:"button",className:U(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":v,tabIndex:l},n?mv(f[1],s.createElement(fs,null),!0):mv(f[0],u?s.createElement(Zo,null):s.createElement(lP,null),!0)))},uu=s.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=s.useRef(null);return s.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),fK=e=>e.reduce((t,n)=>t+(pv(n)?String(n).length:1),0);function xO(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=pv(i)?String(i).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const vv=0,gv=1,hv=2,bv=3,EO=4,du={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function mK(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>_n(r),[r]),d=s.useMemo(()=>fK(u),[r]),f=s.useMemo(()=>o(u,!1),[r]),[m,p]=s.useState(null),g=s.useRef(null),h=s.useRef(null),v=s.useRef(null),y=s.useRef(null),C=s.useRef(null),[x,E]=s.useState(!1),[S,$]=s.useState(vv),[O,I]=s.useState(0),[w,N]=s.useState(null);Et(()=>{$(t&&n&&d?gv:vv)},[n,r,i,t,u]),Et(()=>{var D,P,A,R;if(S===gv){$(hv);const L=h.current&&getComputedStyle(h.current).whiteSpace;N(L)}else if(S===hv){const L=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());$(L?bv:EO),p(L?[0,d]:null),E(L);const j=((P=v.current)===null||P===void 0?void 0:P.getHeight())||0,z=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,B=((R=C.current)===null||R===void 0?void 0:R.getHeight())||0,K=Math.max(j,z+B);I(K+1),c(L)}},[S]);const _=m?Math.ceil((m[0]+m[1])/2):0;Et(()=>{var D;const[P,A]=m||[0,0];if(P!==A){const L=(((D=g.current)===null||D===void 0?void 0:D.getHeight())||0)>O;let j=_;A-P===1&&(j=L?P:A),p(L?[P,j]:[j,A])}},[m,_]);const T=s.useMemo(()=>{if(!t)return o(u,!1);if(S!==bv||!m||m[0]!==m[1]){const D=o(u,!1);return[EO,vv].includes(S)?D:s.createElement("span",{style:Object.assign(Object.assign({},du),{WebkitLineClamp:i})},D)}return o(a?u:xO(u,m[0]),x)},[a,S,m,u].concat(ge(l))),M={width:n,margin:0,padding:0,whiteSpace:w==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,T,S===hv&&s.createElement(s.Fragment,null,s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i}),ref:v},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:i-1}),ref:y},f),s.createElement(uu,{style:Object.assign(Object.assign(Object.assign({},M),du),{WebkitLineClamp:1}),ref:C},o([],!0))),S===bv&&m&&m[0]!==m[1]&&s.createElement(uu,{style:Object.assign(Object.assign({},M),{top:400}),ref:g},o(xO(u,_),!0)),S===gv&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const $O=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:s.createElement(lo,Object.assign({open:n?void 0:!1},o),r)};process.env.NODE_ENV!=="production"&&($O.displayName="EllipsisTooltip");const pK=$O;var vK=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gK(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:c}=e,u=t;function d(f,m){m&&(u=s.createElement(f,{},u))}return d("strong",a),d("u",o),d("del",i),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}const hK="...",fu=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,g=vK(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:v}=s.useContext(Xe),[y]=to("Text"),C=s.useRef(null),x=s.useRef(null),E=h("typography",r),S=tn(g,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=fv(d),[I,w]=an(!1,{value:O.editing}),{triggerType:N=["icon"]}=O,_=ve=>{var Se;ve&&((Se=O.onStart)===null||Se===void 0||Se.call(O)),w(ve)},T=lK(I);Et(()=>{var ve;!I&&T&&((ve=x.current)===null||ve===void 0||ve.focus())},[I]);const M=ve=>{ve==null||ve.preventDefault(),_(!0)},D=ve=>{var Se;(Se=O.onChange)===null||Se===void 0||Se.call(O,ve),_(!1)},P=()=>{var ve;(ve=O.onCancel)===null||ve===void 0||ve.call(O),_(!1)},[A,R]=fv(f),{copied:L,copyLoading:j,onClick:z}=aK({copyConfig:R,children:c}),[B,K]=s.useState(!1),[W,k]=s.useState(!1),[V,Q]=s.useState(!1),[J,Y]=s.useState(!1),[te,oe]=s.useState(!0),[X,F]=fv(u,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ee,Z]=an(F.defaultExpanded||!1,{value:F.expanded}),ne=X&&(!ee||F.expandable==="collapsible"),{rows:re=1}=F,se=s.useMemo(()=>ne&&(F.suffix!==void 0||F.onEllipsis||F.expandable||$||A),[ne,F,$,A]);Et(()=>{X&&!se&&(K(hm("webkitLineClamp")),k(hm("textOverflow")))},[se,X]);const[le,he]=s.useState(ne),fe=s.useMemo(()=>se?!1:re===1?W:B,[se,W,B]);Et(()=>{he(fe&&ne)},[fe,ne]);const ie=ne&&(le?J:V),ce=ne&&re===1&&le,ue=ne&&re>1&&le,me=(ve,Se)=>{var Je;Z(Se.expanded),(Je=F.onExpand)===null||Je===void 0||Je.call(F,ve,Se)},[Ce,Oe]=s.useState(0),Pe=ve=>{let{offsetWidth:Se}=ve;Oe(Se)},je=ve=>{var Se;Q(ve),V!==ve&&((Se=F.onEllipsis)===null||Se===void 0||Se.call(F,ve))};s.useEffect(()=>{const ve=C.current;if(X&&le&&ve){const Se=uK(ve);J!==Se&&Y(Se)}},[X,le,c,ue,te,Ce]),s.useEffect(()=>{const ve=C.current;if(typeof IntersectionObserver=="undefined"||!ve||!le||!ne)return;const Se=new IntersectionObserver(()=>{oe(!!ve.offsetParent)});return Se.observe(ve),()=>{Se.disconnect()}},[le,ne]);const Ne=sK(F.tooltip,O.text,c),Ie=s.useMemo(()=>{if(!(!X||le))return[O.text,c,p,Ne.title].find(pv)},[X,le,p,Ne.title,ie]);if(I)return s.createElement(YW,{value:(n=O.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:P,onEnd:O.onEnd,prefixCls:E,className:o,style:i,direction:v,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const xe=()=>{const{expandable:ve,symbol:Se}=F;return ve?s.createElement("button",{type:"button",key:"expand",className:`${E}-${ee?"collapse":"expand"}`,onClick:Je=>me(Je,{expanded:!ee}),"aria-label":ee?y.collapse:y==null?void 0:y.expand},typeof Se=="function"?Se(ee):Se):null},be=()=>{if(!$)return;const{icon:ve,tooltip:Se,tabIndex:Je}=O,it=_n(Se)[0]||(y==null?void 0:y.edit),Ot=typeof it=="string"?it:"";return N.includes("icon")?s.createElement(lo,{key:"edit",title:Se===!1?"":it},s.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:M,"aria-label":Ot,tabIndex:Je},ve||s.createElement(Dd,{role:"button"}))):null},Ee=()=>A?s.createElement(dK,Object.assign({key:"copy"},R,{prefixCls:E,copied:L,locale:y,onCopy:z,loading:j,iconOnly:c==null})):null,$e=ve=>[ve&&xe(),be(),Ee()],_e=ve=>[ve&&!ee&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hK),F.suffix,$e(ve)];return s.createElement(Wn,{onResize:Pe,disabled:!ne},ve=>s.createElement(pK,{tooltipProps:Ne,enableEllipsis:ne,isEllipsis:ie},s.createElement(CO,Object.assign({className:U({[`${E}-${a}`]:a,[`${E}-disabled`]:l,[`${E}-ellipsis`]:X,[`${E}-ellipsis-single-line`]:ce,[`${E}-ellipsis-multiple-line`]:ue},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?re:void 0}),component:m,ref:Vn(ve,C,t),direction:v,onClick:N.includes("text")?M:void 0,"aria-label":Ie==null?void 0:Ie.toString(),title:p},S),s.createElement(mK,{enableMeasure:ne&&!le,text:c,rows:re,width:Ce,onEllipsis:je,expanded:ee,miscDeps:[L,ee,j,$,A,y]},(Se,Je)=>gK(e,s.createElement(s.Fragment,null,Se.length>0&&Je&&!ee&&Ie?s.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,_e(Je)))))))});var bK=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yK=s.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=bK(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=vt("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,s.createElement(fu,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),CK=s.forwardRef((e,t)=>s.createElement(fu,Object.assign({ref:t},e,{component:"div"})));var SK=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xK=(e,t)=>{var{ellipsis:n}=e,r=SK(e,["ellipsis"]);const o=s.useMemo(()=>n&&typeof n=="object"?tn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return s.createElement(fu,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},EK=s.forwardRef(xK);var $K=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wO=[1,2,3,4,5],wK=s.forwardRef((e,t)=>{const{level:n=1}=e,r=$K(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=vt("Typography.Title");process.env.NODE_ENV!=="production"&&i(wO.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=wO.includes(n)?`h${n}`:"h1";return s.createElement(fu,Object.assign({ref:t},r,{component:o}))}),Ml=CO;Ml.Text=EK,Ml.Link=yK,Ml.Title=wK,Ml.Paragraph=CK;const kt=Ml,Dl={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:OO}=kt;function yv({currentStep:e,icon:t,title:n,totalSteps:r}){return b.createElement(Zt,{className:Dl.container,direction:"vertical"},b.createElement(OO,{className:Dl.stepText},"Step ",e,"/",r),b.createElement(Zt,{className:Dl.titleContainer},b.createElement(t,{className:Dl.titleIcon}),b.createElement(OO,{className:Dl.titleText},n)))}yv.propTypes={currentStep:pe.number.isRequired,icon:pe.elementType.isRequired,title:pe.string.isRequired,totalSteps:pe.number.isRequired};function OK({applicationData:e}){switch(e.status){case Oi.APPLICATION_FORM:return b.createElement(b.Fragment,null,"Application Form");default:return null}}function NO({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:o}){const[i,a]=b.useState(!0),{data:l,isLoading:c}=Vg({jobProfileId:t,utmMedium:r,utmSource:o,currentTab:e,utmId:n}),u=()=>{a(!1)};return b.createElement(U$,{closable:{placement:"end"},loading:c,onClose:u,open:i,placement:"bottom",title:b.createElement(yv,{currentStep:1,icon:Ta,title:"Required Details",totalSteps:2})},b.createElement(OK,{applicationData:l}))}NO.propTypes={currentTab:pe.string.isRequired,jobProfileId:pe.number.isRequired,utmId:pe.string,utmMedium:pe.string,utmSource:pe.string};const IO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",mu=({logo:e,company:t,companiesList:n,companyName:r,size:o=48})=>{const[i,a]=b.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:IO)}),l=()=>{a(IO)};return b.createElement(Zx,{size:o,src:i,alt:r,onError:l,shape:"square"})};mu.propTypes={logo:pe.string,company:pe.arrayOf(pe.number),companiesList:pe.object,companyName:pe.string,size:pe.number},mu.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const yi={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:NK,Text:IK}=kt,Cv=({title:e,companyName:t,isExpanded:n})=>b.createElement(Zt,{direction:"vertical",size:4,className:U(yi.titleContainer,{[yi.titleContainerExpanded]:n,[yi.titleContainerCollapsed]:!n})},b.createElement(NK,{level:5,className:yi.jobTitle,ellipsis:{rows:1}},e),b.createElement(IK,{type:"secondary",ellipsis:!0,className:yi.companyName},t));Cv.propTypes={title:pe.string.isRequired,companyName:pe.string.isRequired,isExpanded:pe.bool},Cv.defaultProps={isExpanded:!1};const _O=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},Sv=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const o=e[r];return!o||o.isEligible}),xv={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},_K=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],Ev=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:o}=e,{isEligible:i,reasons:a=[]}=t||{};if(r&&(new Date(r)<new Date||o!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=a.reduce((g,h)=>(g[h.label]=h,g),{}),u=c.experience,d=c.notice_period,f=c.skills,m=c.tech_stacks;if(i&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(i)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(d&&!d.isEligible&&Sv(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const p=_O(f,m);return p>0&&Sv(c,"skills")?{tag:"steps_to_apply",text:`${p} ${p===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:p}:{tag:xv.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},PK={tag:"_tag_ueyiz_1"},TK={CheckCircleOutlined:Ih,CloseCircleOutlined:eP,ClockCircleOutlined:Th,RocketOutlined:o2},pu=({jobData:e,currentTab:t})=>{const n=Ev(e,e.eligibilityCriteria);if(!n)return null;const r=TK[n.icon];return b.createElement(ha,{icon:r&&b.createElement(r,null),color:n.antdColor,className:PK.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};pu.propTypes={jobData:pe.shape({isRelevant:pe.bool,expiry:pe.string,jobProfileStatus:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.shape({label:pe.string,isEligible:pe.bool,data:pe.object}))})}).isRequired,currentTab:pe.string},pu.defaultProps={currentTab:"all"};const $v=({jobData:e,currentTab:t})=>b.createElement("div",{className:yi.actions},b.createElement(pu,{jobData:e,currentTab:t}));$v.propTypes={jobData:pe.object.isRequired,currentTab:pe.string},$v.defaultProps={currentTab:"all"};const wv=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>b.createElement(wo,{gutter:[12,8],className:yi.header},b.createElement(jn,{flex:"auto"},b.createElement(wo,{gutter:12,align:"top",wrap:!1},b.createElement(jn,null,b.createElement(mu,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),b.createElement(jn,{flex:"auto"},b.createElement(Cv,{title:e.title,companyName:e.name,isExpanded:r})))),b.createElement(jn,null,b.createElement($v,{jobData:e,currentTab:n})));wv.propTypes={jobData:pe.object.isRequired,companiesList:pe.object,currentTab:pe.string,isExpanded:pe.bool},wv.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const Ov=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},Nv=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:o,userCountry:i="IN"})=>{if(r)return o?`₹${o}/month`:"Unpaid Internship";const a=i==="US"?"$":"₹",l=i==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${a} (Flexible)`:n?`${a}${e}${l}+ (Negotiable)`:e===t?`${a}${e}${l} CTC`:`${a}${e}${l} - ${a}${t}${l} CTC`},Iv=e=>!e||e===0?"Immediate":`${e} days Notice Period`,PO=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return`${n}/${r}/${o}`},_v=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},TO={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},vu=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:o=!1})=>{const[i,a]=b.useState(!1),l=t==="Saved",c=u=>ar(this,null,function*(){u.stopPropagation(),a(!0);try{yield r(e,l?"unsave":"save")}catch(d){console.error("Save action failed:",d)}finally{a(!1)}});return l&&n?b.createElement(rn,{type:"text",icon:b.createElement(Sb,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:o||i,loading:i,className:TO.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",PO(n)):b.createElement(rn,{type:"text",icon:b.createElement(s2,null),onClick:c,disabled:o||i,loading:i,className:TO.saveButton,size:"small"},l?"Saved":"Save")};vu.propTypes={jobProfileId:pe.number.isRequired,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,onSave:pe.func.isRequired,disabled:pe.bool},vu.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const Al={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:MK}=kt,MO=({text:e})=>e?b.createElement(MK,{className:Al.detailText},e):null;MO.propTypes={text:pe.string};const Pv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>{const{preferredCities:i,minExperience:a,maxExperience:l,minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,preferredNoticePeriod:p}=e,g=_v(i),h=o===null&&t.isExperienceCtcAvailable?Ov(a,l):null,v=t.isExperienceCtcAvailable?Nv({minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,userCountry:n}):null,y=o===null&&t.isNoticePeriodAvailable?Iv(p):null,C=[g&&{text:g},h&&{text:h},v&&{text:v},y&&{text:y}].filter(Boolean);return b.createElement("div",{className:Al.detailsRowContainer},C.length>0&&b.createElement(Zt,{split:b.createElement(I$,{type:"vertical"}),className:Al.detailsRow},C.map((x,E)=>b.createElement(MO,{key:E,text:x.text}))),b.createElement("div",{className:Al.saveButtonWrapper},b.createElement(vu,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};Pv.propTypes={jobData:pe.shape({id:pe.number.isRequired,preferredCities:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,preferredNoticePeriod:pe.number,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string}).isRequired,cardConfig:pe.shape({isExperienceCtcAvailable:pe.bool,isNoticePeriodAvailable:pe.bool}).isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Pv.defaultProps={userCountry:"IN",selectedJobId:null};const Tv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>b.createElement("div",{className:Al.body},b.createElement(Pv,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o}));Tv.propTypes={jobData:pe.object.isRequired,cardConfig:pe.object.isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Tv.defaultProps={userCountry:"IN",selectedJobId:null};const gu={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},hu=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:o,companiesList:i,userCountry:a,className:l,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:d}=Kg({currentTab:n,isActive:t,jobData:e}),f=()=>{r&&r(e.id)};return b.createElement(Fc,{className:U(gu.jobCard,{[gu.active]:t,[gu.archived]:e.applicationStatus==="Archived"},l),onClick:f},b.createElement("div",{className:gu.cardContent},b.createElement(wv,{jobData:e,companiesList:i,currentTab:n,isExpanded:!c}),d&&b.createElement(Tv,{jobData:e,cardConfig:u,userCountry:a,onSave:o,selectedJobId:c})))};hu.propTypes={jobData:pe.shape({id:pe.number.isRequired,title:pe.string.isRequired,name:pe.string.isRequired,company:pe.arrayOf(pe.number),logo:pe.string,preferredCities:pe.string,expiry:pe.string,jobProfileStatus:pe.string,isRelevant:pe.bool,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,preferredNoticePeriod:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.object)})}).isRequired,isActive:pe.bool,currentTab:pe.string,onClick:pe.func,onSave:pe.func.isRequired,companiesList:pe.object,userCountry:pe.oneOf(["IN","US"]),className:pe.string,selectedJobId:pe.number},hu.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const Mv=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),Dv=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),DK=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return Mv(t);case"titleCase":return Dv(t);default:return t}},bu=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(bu);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=Mv(n);t[r]=bu(e[n])}),t}return e},AK=Xr.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var a,l,c;const n=bu(t),r=((a=n==null?void 0:n.data)==null?void 0:a.attributes)||{},o=((c=(l=n==null?void 0:n.included)==null?void 0:l.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},i=r.contestSkills||[];return{jobData:ba(ur({},r),{contestSkills:i,name:r.name||(o==null?void 0:o.name)||"Company"}),companyData:o,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:DO}=AK,AO=b.createContext(null),RK=({country:e="IN",jobId:t,openMockInterviewModal:n=(a,l)=>{console.log("Method not implemented. We should get it from MIT"),console.log(a,l)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:o=!1,children:i})=>{const{data:a,isLoading:l,error:c,refetch:u}=DO(t,{skip:!t||o}),[d,f]=b.useState(),m={activeTab:d,setActiveTab:f,country:e,jobId:t,data:a,isLoading:l,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:a==null?void 0:a.jobData,companyData:a==null?void 0:a.companyData,highlights:a==null?void 0:a.highlights,eligibilityCriteria:a==null?void 0:a.eligibilityCriteria};return b.createElement(AO.Provider,{value:m},i)},ln=()=>{const e=b.useContext(AO);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},Ci={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},jK=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return b.createElement(Fc,{size:"small"},b.createElement(Zt,{direction:"horizontal"},b.createElement(Zx,{size:48,src:n,className:Ci.recruiterAvatar}),b.createElement(Zt,{direction:"vertical",className:Ci.recruiterCardContent},b.createElement(kt.Text,{className:Ci.recruiterName},t),b.createElement(kt.Link,{className:Ci.recruiterEmail,href:`mailto:${r}`},b.createElement(DT,null),"Send Email To Recruiter"))))},LK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return b.createElement(Zt,null,t.map((n,r)=>b.createElement(jK,{key:r,recruiter:n})))},zK=()=>{const{jobData:e}=ln(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(i=>({title:i.stageName,description:i.stageComments})),o=n.findIndex(i=>i.stageStatus==="ongoing");return b.createElement(Z1,{current:o,items:r,direction:"vertical"})},BK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Your Application Status"),b.createElement(zK,null)),kK=()=>{const{jobData:e}=ln(),{recruiters:t}=e||{};return!t||t.length===0?null:b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.descriptionContainer},b.createElement(kt.Title,{level:4},"Recruiter Details"),b.createElement(LK,null))},FK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:Ci.container},b.createElement(BK,null),b.createElement(kK,null)),Av={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679"},Rl={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},RO=({icon:e,title:t,description:n,buttonText:r,buttonIcon:o,className:i,onClick:a,isLoading:l})=>b.createElement("div",{className:U(Rl.actionBanner,i)},e,b.createElement("div",{className:Rl.actionBannerContent},b.createElement("span",{className:Rl.actionBannerTitle},t),b.createElement("span",{className:Rl.actionBannerDescription},n)),b.createElement(rn,{icon:o,type:"primary",className:Rl.actionBannerButton,onClick:a,loading:l},r)),jO={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},HK="https://companion.scaler.com/interview-experiences",LO=()=>{const{jobData:e,companyData:t}=ln(),{appliedOn:n,title:r,applicationStatus:o}=e||{},i=o===Oi.WITHDRAWN,{name:a}=t||{},l=b.useCallback(()=>{globalThis.open(`${HK}?company=${encodeURIComponent(a)}&role=${encodeURIComponent(r)}`,"_blank")},[a,r]);return!n||i?null:b.createElement(RO,{icon:b.createElement("img",{src:Av.monitor,className:jO.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:b.createElement(Md,null),className:jO.monitorBanner,onClick:l})},dn={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},VK=()=>{const{companyData:e}=ln(),{name:t,employeeCount:n,companyVision:r,location:o,category:i,companyWebsite:a}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About ",t,a&&b.createElement(kt.Link,{className:dn.descriptionLink,href:a,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Company Website"))),r&&b.createElement(kt.Paragraph,{className:dn.descriptionText},b.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),o&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Office Location:"),b.createElement(kt.Text,{className:dn.descriptionText},o)),i&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"Company Category:"),b.createElement(kt.Text,{className:dn.descriptionText},Dv(i))),n&&b.createElement(Zt,null,b.createElement(kt.Text,{className:dn.descriptionTitle},"No. of Employees:"),b.createElement(kt.Text,{className:dn.descriptionText},n)))},Rv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},WK=({html:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:Rv.collapsableContainer},b.createElement("div",{className:U(t,{[Rv.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),b.createElement(kt.Link,{className:Rv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},KK=()=>{const{jobData:e}=ln(),{jobDescText:t,jobDesc:n}=e||{};return b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"About the Role",n&&b.createElement(kt.Link,{className:dn.descriptionLink,href:n,target:"_blank"},b.createElement(Zt,null,b.createElement(lb,null),"Know More"))),t&&b.createElement(WK,{html:t,contentClassName:dn.descriptionText}))},jv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},qK=({children:e,contentClassName:t})=>{const[n,r]=b.useState(!1);return b.createElement("div",{className:jv.collapsableContainer},b.createElement("div",{className:U(t,{[jv.collapsed]:!n})},e),b.createElement(kt.Link,{className:jv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},GK=()=>{const{jobData:e,country:t}=ln(),{benefits:n,visaSponsorship:r}=e||{},o=r==="yes";return!n&&!o||t!=="US"?null:b.createElement(Zt,{className:dn.contentContainer,direction:"vertical",size:"large"},b.createElement(kt.Text,{className:dn.descriptionTitle},"Benefits"),b.createElement(qK,{contentClassName:dn.descriptionText},b.createElement("ul",{className:dn.list},n==null?void 0:n.map(i=>b.createElement("li",{key:i},i)),o&&b.createElement("li",null,"Visa sponsorship available"))))},UK=()=>{const{jobData:e}=ln(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:b.createElement("span",{className:dn.descriptionTitle},r.stepName),description:b.createElement("span",{className:dn.descriptionText},r.interviewType)}));return b.createElement(Z1,{className:dn.steps,current:-1,progressDot:!0,items:n})},XK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Job Description"),b.createElement(VK,null),b.createElement(KK,null),b.createElement(GK,null)),QK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.descriptionContainer},b.createElement(kt.Title,{level:4},"Post Application Process"),b.createElement(UK,null)),YK=()=>b.createElement(Zt,{direction:"vertical",size:"large",className:dn.container},b.createElement(XK,null),b.createElement(QK,null),b.createElement(LO,null)),Ko={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Mr={completed:"Completed",pending:"Pending",notRequired:"Not Required"},JK=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],ZK=({status:e})=>b.createElement(ha,{color:e===Mr.completed?"success":"warning"},e),eq=({contestDetails:e})=>{if(!e)return Mr.notRequired;const{cleared:t,joinLink:n}=e;return t?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{href:n,underline:!0},"Attempt Contest")},tq=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=ln();if(!e)return Mr.notRequired;const{cleared:o}=e;return o?b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,Ko.successDot)}),b.createElement(kt.Text,null,"Success")):b.createElement(kt.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},nq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="skills");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{const l=a.contests,c=l?a.contests.cleared?Mr.completed:Mr.pending:Mr.notRequired,u=a.skills,d=u?a.skills.cleared?Mr.completed:Mr.pending:Mr.notRequired,f=[c,d].every(m=>m!==Mr.pending)?Mr.completed:Mr.pending;return{skillType:i,status:b.createElement(ZK,{status:f}),contests:b.createElement(eq,{contestDetails:l}),mockInterview:b.createElement(tq,{mockInterviewDetails:u,skillId:a.skillId,skillName:a.skillName})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Scaler certifications you need to apply"),columns:JK,dataSource:o,pagination:!1})},jl={added:"Added",missing:"Missing"},rq=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],oq=({status:e})=>b.createElement(Zt,null,b.createElement("div",{className:U(Ko.dot,{[Ko.successDot]:e===jl.added,[Ko.errorDot]:e===jl.missing})}),b.createElement(kt.Text,null,e)),iq=({status:e})=>{const{openResume:t}=ln();return e===jl.added?null:b.createElement(kt.Link,{onClick:t,underline:!0},"Add Skill")},aq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="tech_stacks");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{var c;const l=(c=a.data)!=null&&c.cleared?jl.added:jl.missing;return{stackType:i,experience:`${Math.floor(a.proficiencyPeriod/12)}+`,status:b.createElement(oq,{status:l}),action:b.createElement(iq,{status:l})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:rq,dataSource:o,pagination:!1})},lq=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,o=`${n}${r}`;if(!t)return`${o}+ Experience`;const i=`${Math.floor(t/12)}y`,a=t%12===0?"":`${t%12}m`;return`${o} - ${i} ${a} Experience`},sq=e=>e===0?"Immediate":e==null?"NA":`${e} days`,cq={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>lq(e,t),notice_period:({preferredNoticePeriod:e})=>`${sq(e)} Notice Period`},Lv={eligible:"Eligible",ineligible:"Ineligible"},uq=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],dq=({status:e})=>e===Lv.eligible?b.createElement(ha,{color:"success"},"Eligible"):b.createElement(ha,{color:"error"},"Ineligible"),fq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(i=>i.label!=="skills"&&i.showText);if(!r)return null;const o=r.map(i=>{const a=i.isEligible?Lv.eligible:Lv.ineligible;return{requirement:Dv(i.label),details:cq[i.label](e),status:b.createElement(dq,{status:a})}});return b.createElement(sv,{title:()=>b.createElement(kt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:uq,dataSource:o,pagination:!1})},mq=()=>{const{jobData:e}=ln(),{eligibilityCriteria:t}=e||{};return t?b.createElement(Zt,{direction:"vertical",size:"large",className:Ko.container},b.createElement(kt.Title,{level:4},"Job Check-list"),b.createElement(nq,null),b.createElement(aq,null),b.createElement(fq,null)):null},zO={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},pq=()=>{var a;const{activeTab:e,setActiveTab:t,jobData:n}=ln(),{applicationTimeline:r}=n||{},i=[((a=r==null?void 0:r.timeline)==null?void 0:a.length)>0&&{key:ti.APPLICATION_TIMELINE.key,label:ti.APPLICATION_TIMELINE.label,children:b.createElement(FK,null)},{key:ti.ABOUT_ROLE.key,label:ti.ABOUT_ROLE.label,children:b.createElement(YK,null)},{key:ti.REQUIREMENTS.key,label:ti.REQUIREMENTS.label,children:b.createElement(mq,null)}].filter(Boolean);return b.createElement("div",{className:zO.bodyContainer},b.createElement(vp,{activeKey:e,className:zO.tabs,items:i,onChange:t}))},vq=Xr.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:BO}=vq,qo={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},gq=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const o=a=>{const l=a.target.value;t(l),l!=="Other"&&r("")},i=a=>{r(a.target.value)};return b.createElement(b.Fragment,null,b.createElement(kt.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),b.createElement(Vt,{className:qo.withdrawalReasonForm},b.createElement(Vt.Item,{layout:"vertical",label:"Select reason"},b.createElement(gr.Group,{className:qo.withdrawalReasonRadioGroup,onChange:o,value:e},wa.map(a=>b.createElement(gr,{key:a.value,value:a.value},a.label))),e==="Other"&&b.createElement(Vt.Item,null,b.createElement(vi.TextArea,{value:n,onChange:i,placeholder:"Please specify your reason"})))))},hq=()=>{var v;const{jobId:e,jobData:t,refetch:n}=ln(),{applicationStatus:r,appliedOn:o}=t||{},[i,a]=b.useState(!1),[l,c]=b.useState((v=wa[0])==null?void 0:v.value),[u,d]=b.useState(""),[f]=BO(),{message:m}=zS.useApp(),p=()=>ar(this,null,function*(){var C,x;const y=yield f({job_profile_id:e,update_action:"withdraw",message:u||l});(C=y==null?void 0:y.data)!=null&&C.success?(m.success("Application withdrawn successfully"),a(!1),c((x=wa[0])==null?void 0:x.value),d(""),n()):m.error("Failed to withdraw application")}),g=()=>{var y;a(!1),c((y=wa[0])==null?void 0:y.value),d("")},h=()=>{var y;c((y=wa[0])==null?void 0:y.value),d(""),a(!0)};return r===Oi.WITHDRAWN?b.createElement("div",{className:qo.withdrawnText},b.createElement(To,null),"Your Application has been Withdrawn"):o&&!_K.includes(r)?b.createElement(b.Fragment,null,b.createElement(rn,{icon:b.createElement("img",{src:Av.exit,alt:"exit"}),onClick:h,className:qo.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),b.createElement(F1,{title:b.createElement(Zt,null,b.createElement(O2,{className:qo.warningIcon}),b.createElement(kt.Text,null,"Withdraw My Application")),open:i,onOk:p,onCancel:g},b.createElement(gq,{withdrawalReason:l,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:d}))):null},bq=()=>{const{jobId:e,jobData:t,refetch:n}=ln(),[r,{isLoading:o}]=BO(),{applicationStatus:i,appliedOn:a}=t||{},l=i===Oi.SAVED,c=()=>ar(this,null,function*(){var d;const u=yield r({job_profile_id:e,update_action:"save"});(d=u==null?void 0:u.data)!=null&&d.success?(Hr.success("Application saved successfully"),n()):Hr.error("Failed to save application")});return a?null:l?b.createElement(rn,{icon:b.createElement("img",{src:Av.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):b.createElement(rn,{icon:b.createElement(Sb,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:o},"Save")},yq=()=>{const{jobData:e,eligibilityCriteria:t}=ln(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:o}=t||{},i=r===Oi.WITHDRAWN,a=()=>{};return i?null:n?b.createElement(rn,{icon:b.createElement(To,null),className:qo.appliedButton,type:"text",size:"large"},"Applied"):b.createElement(rn,{icon:b.createElement(hb,null),onClick:a,className:qo.applyButton,type:"primary",size:"large",disabled:!o},"Apply Now")},Cq=()=>b.createElement("div",{className:qo.jobActions},b.createElement(yq,null),b.createElement(bq,null),b.createElement(hq,null)),Io={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Sq=()=>{const{companyData:e}=ln(),{logo:t,name:n}=e||{};return b.createElement("div",{className:Io.companyInfo},b.createElement(mu,{logo:t,companyName:n,size:50}),b.createElement("div",{className:Io.companyName},n))},xq=()=>{const{jobData:e}=ln(),{title:t}=e||{};return b.createElement(kt.Text,{ellipsis:!0,className:Io.jobTitle},t)},Eq=()=>{const{jobData:e}=ln(),{preferredCities:t}=e||{},n=_v(t);return b.createElement("div",{className:Io.jobLocation},n)},$q=()=>b.createElement("div",{className:Io.basicInfo},b.createElement(Sq,null),b.createElement(xq,null),b.createElement(Eq,null)),wq=()=>{const{jobData:e}=ln(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i,preferredNoticePeriod:a,minExperience:l,maxExperience:c}=e||{},u=Nv({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i}),d=Ov(l,c),f=Iv(a);return b.createElement("div",{className:Io.extraDetails},[u,d,f].filter(Boolean).map((m,p)=>b.createElement(b.Fragment,{key:p},b.createElement("div",{className:Io.detail},m),b.createElement(I$,{size:"large",type:"vertical",className:Io.extraDetailsDivider}))))},Oq=()=>b.createElement("div",{className:Io.container},b.createElement($q,null),b.createElement(wq,null),b.createElement(Cq,null)),Mn={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},Nq=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=ln(),o=()=>{r(ti.REQUIREMENTS.key),n()};return e===xv.ineligible?b.createElement("div",{className:U(Mn.actionAlert,Mn.ineligible)},b.createElement(kP,null),b.createElement("span",{className:Mn.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===xv.steps_to_apply?b.createElement(RO,{icon:b.createElement(G_,{className:Mn.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:b.createElement(Dd,null),className:Mn.stepsToApply,onClick:o}):null},Iq=({highlights:e})=>b.createElement(b.Fragment,null,b.createElement("div",{className:Mn.title},"Top Reasons to Apply"),b.createElement("ul",{className:Mn.highlightsList},e==null?void 0:e.map(t=>b.createElement("li",{key:t,className:Mn.highlight},b.createElement("span",{className:Mn.highlightText},t))))),_q=({keywords:e,eligibilityStatus:t})=>b.createElement("div",{className:Mn.keywordsList},e==null?void 0:e.map((n,r)=>b.createElement("div",{key:r,className:U(Mn.keyword,Mn[Mv(t)])},n))),Pq=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return b.createElement("div",{className:Mn.exceptions},b.createElement("div",{className:Mn.exceptionsIconContainer},b.createElement(b2,{size:20,twoToneColor:"#FAAD14",className:Mn.exceptionsIcon})),b.createElement("div",null,b.createElement("div",{className:Mn.exceptionsTitle},"We've made an exception for you!"),b.createElement("ul",{className:Mn.exceptionsList},t.map((n,r)=>b.createElement("li",{className:[Mn.exception],key:r},n)))))},Tq=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=ln(),r=b.useRef(null),{highlights:o,keywords:i}=t||(e==null?void 0:e.highlights)||{},{tag:a,count:l}=Ev(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const d=r.current.getBoundingClientRect(),f=d.top+window.pageYOffset,m=d.height,p=window.innerHeight,g=f+m-p/2;window.scrollTo({top:g,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(o!=null&&o.length)?null:b.createElement("div",{ref:r,className:U(Mn.container,Mn[a])},b.createElement(Nq,{eligibilityStatus:a,metric:l,onScrollToEnd:c}),b.createElement(Iq,{highlights:o}),b.createElement(_q,{keywords:i,eligibilityStatus:a}),b.createElement(Pq,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},Mq=Xr.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:Dq}=Mq,dZ={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},Aq=()=>{ln();const[e,{isLoading:t}]=Dq();return b.useCallback(()=>ar(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):Hr.error("Failed to initiate screening call. Please try again.")}),[e]),null},yu={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},Rq=()=>b.createElement("div",{className:yu.expandedJobView},b.createElement(Oq,null),b.createElement(Tq,null),b.createElement(Aq,null),b.createElement(LO,null),b.createElement(pq,null)),jq=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:o,currentTab:i})=>{var u;const{data:a,isLoading:l,error:c}=DO(r,{skip:!r||!o});return!o||!r?null:l?b.createElement(Fc,{className:`${yu.expandedJobView} ${yu.loadingCard}`},b.createElement(Yc,{size:"large"})):c?b.createElement(Fc,{className:yu.expandedJobView},b.createElement(wf,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):a?b.createElement(zS,null,b.createElement(RK,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!o},b.createElement(Rq,{currentTab:i}))):null},Cu={content:"_content_koeg3_1",header:"_header_koeg3_8",sider:"_sider_koeg3_16",layout:"_layout_koeg3_20"},{Header:Lq,Sider:zq,Content:Bq}=Np;function Su({header:e,children:t,className:n,sider:r,siderWidth:o}){return b.createElement(Np,{className:n},b.createElement(Lq,{className:Cu.header},e||"Header"),b.createElement(Np,{className:Cu.layout},b.createElement(Bq,{className:Cu.content},t),r&&b.createElement(zq,{className:Cu.sider,width:o||"25%"},r)))}Su.propTypes={children:pe.node.isRequired,className:pe.string,sider:pe.node,siderWidth:pe.oneOfType([pe.string,pe.number])},Su.defaultProps={className:"",sider:null,siderWidth:"25%"};const Ll={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function kq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.tab)||"all"}),n=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.dashboard)==null?void 0:c.processCounts)||{}}),r=a=>{const l=pn[a];l&&e(DI(l))},o=a=>{const l=pn[a];return t===l},i=a=>{const l=A2[a];return n[l]||0};return b.createElement("div",{className:Ll.tagsSection},Object.keys(zd).map(a=>b.createElement(ha,{className:U(Ll.tag,{[Ll.activeTag]:o(a)}),key:a,onClick:()=>r(a)},b.createElement(zd[a].icon,{className:Ll.icon}),zd[a].label," ",b.createElement("span",{className:Ll.count},"(",i(a),")"))))}const Fq={processCounts:Mb,filterModalOpen:!1,jobAlertModalOpen:!1},kO=We.createSlice({name:"dashboard",initialState:Fq,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:Hq,openFilterModal:Vq,closeFilterModal:Wq,openJobAlertModal:Kq,closeJobAlertModal:qq}=kO.actions,Gq=kO.reducer,FO={jobAlert:"_jobAlert_sfx7a_1"};function Uq(){const e=wt.useDispatch(),t=()=>{e(Kq())};return b.createElement("div",{className:FO.jobAlert,onClick:t},b.createElement(Td,{className:FO.icon}),"Job Alerts")}const Xq={};function Qq(){const e=wt.useDispatch(),t=wt.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.sortings)||[]}),n=b.useMemo(()=>R2(t),[t]),r=a=>{const l=ps[a];l&&e(jI([l.mapping]))},o=Object.values(ps).map(a=>({value:a.value,label:a.value===n?`Sorted By: ${a.label}`:a.label})),i=a=>{const l=ps[a.value];return l?l.label:a.label};return b.createElement(yn,{className:Xq.sorting,value:n,onChange:r,suffixIcon:b.createElement(ms,null),options:o,optionRender:i})}const Yq={};function Jq(){const e=wt.useDispatch(),t=()=>{e(Vq())};return b.createElement(rn,{type:"primary",className:Yq.filter,onClick:t},"Filters ",b.createElement(ms,null))}const zv={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function Zq(){const e=wt.useDispatch(),t=wt.useSelector(f=>{var m,p,g;return((g=(p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.filters)==null?void 0:g.keyword)||""}),[n,r]=b.useState(!1),[o,i]=b.useState(t),a=b.useRef(null),l=b.useRef(null);b.useEffect(()=>{i(t)},[t]),b.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const c=()=>{r(!0)},u=f=>{const m=f.target.value;i(m),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{e(AI(m))},300)},d=()=>{o.trim()||r(!1)};return b.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),b.createElement("div",{className:zv.search},n||o?b.createElement(vi,{ref:a,className:zv.input,placeholder:"Search for job or Company Name",value:o,onChange:u,onBlur:d,suffix:b.createElement(Aa,null)}):b.createElement("div",{className:zv.iconContainer,onClick:c},b.createElement(Aa,null)))}const eG={actions:"_actions_nxp1u_1"};function tG(){return b.createElement("div",{className:eG.actions},b.createElement(Uq,null),b.createElement(Qq,null),b.createElement(Jq,null),b.createElement(Zq,null))}const nG={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function xu({className:e}){return b.createElement("div",{className:U(e,nG.jobsHeaderContainer)},b.createElement(kq,null),b.createElement(tG,null))}xu.propTypes={className:pe.string},xu.defaultProps={className:""};function Eu({className:e}){return b.createElement("div",{className:e},b.createElement("h1",{style:{textAlign:"center"}},"Profile Details"))}Eu.propTypes={className:pe.string},Eu.defaultProps={className:""};function $u({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:o}){return r?b.createElement("div",{className:o},b.createElement(jq,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}$u.propTypes={country:pe.string,openMockInterviewModal:pe.func,openResume:pe.func,jobId:pe.oneOfType([pe.string,pe.number]),className:pe.string},$u.defaultProps={jobId:null,className:""};const Bv=e=>{if(!e||!e.data||!Array.isArray(e.data))return[];const t={};return e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=n.attributes)}),e.data.map(n=>{if(n.type!=="job_profile"||!n.attributes)return null;const r=n.attributes,o=n.relationships||{};let i=null;if(o.company&&o.company.data){const l=o.company.data.id;i=t[l]||null}return{id:parseInt(n.id,10),title:r.title||"",name:r.title||"",slug:r.slug||"",jobDesc:r.job_desc||"",jobDescText:r.job_desc_text||"",minExperience:r.min_experience?parseFloat(r.min_experience):null,maxExperience:r.max_experience?parseFloat(r.max_experience):null,minCtc:r.min_ctc?parseFloat(r.min_ctc):null,maxCtc:r.max_ctc?parseFloat(r.max_ctc):null,validTill:r.valid_till||null,createdAt:r.created_at||null,jobType:r.job_type||null,preferredCities:r.preferred_cities||"",preferredNoticePeriod:r.preferred_notice_period||null,meritBasedSkills:r.merit_based_skills||[],contestSkills:r.contest_skills||[],applicationStatus:r.application_status||null,expiry:r.expiry||r.valid_till||null,applicationId:r.application_id||null,userCompanyStatus:r.user_company_status||null,applicationLastUpdatedAt:r.application_last_upated_at||null,jobSource:r.job_source||null,jobProfileId:r.job_profile_id||null,jobProfileStatus:r.job_profile_status||"active",datePostedOn:r.date_posted_on||null,openForDiscussionCtc:r.open_for_discussion_ctc||!1,appliedOn:r.applied_on||null,seniorityLevel:r.seniority_level||null,roleType:r.role_type||"full_time",duration:r.duration||null,stipend:r.stipend||null,eligibilityCriteria:r.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:r.exceptional_job||!1,isRelevant:r.is_relevant||!1,isInternship:r.role_type==="internship",company:i?[parseInt(o.company.data.id,10)]:[],logo:(i==null?void 0:i.logo)||null,companyName:(i==null?void 0:i.name)||null,companySlug:(i==null?void 0:i.slug)||null,companyLocation:(i==null?void 0:i.location)||null,companyWebsite:(i==null?void 0:i.company_website)||null,companyVision:(i==null?void 0:i.company_vision)||null,companyTagline:(i==null?void 0:i.tagline)||null,companyCategory:(i==null?void 0:i.category)||null,companyEmployeeCount:(i==null?void 0:i.employee_count)||null}}).filter(Boolean)},kv=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=ur({id:n.id},n.attributes))}),t},rG=Xr.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Bv(t),r=kv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:oG,useFetchPipelineJobsQuery:HO,useFetchRelevantJobsQuery:iG}=rG,aG={selectedJobId:null},VO=We.createSlice({name:"layout",initialState:aG,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:lG,clearSelectedJobId:sG}=VO.actions,cG=VO.reducer,fo={heading:"_heading_1jbzw_1",spinner:"_spinner_1jbzw_8",alert:"_alert_1jbzw_14",header:"_header_1jbzw_18",sentinel:"_sentinel_1jbzw_23",loadingMore:"_loadingMore_1jbzw_30"},{Title:wu,Text:uG}=kt,WO={[pn.relevant]:"Unlocked Jobs",[pn.all]:"All Jobs",[pn.saved]:"Saved Jobs",[pn.applied]:"Applied Jobs"};function Si({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:o=!1,error:i=null,isFetchingMore:a=!1,hasMore:l=!0}){var y;const c=wt.useDispatch(),u=wt.useSelector(C=>C.scalantCareerHub.layout.selectedJobId),d=wt.useSelector(C=>{var x,E;return((E=(x=C.scalantCareerHub)==null?void 0:x.dashboard)==null?void 0:E.processCounts)||{}}),f=l!==void 0?l:!0,{sentinelRef:m}=zI({hasMore:f,isLoading:o,isFetchingMore:a}),p=C=>{c(u===C?sG():lG(C))},g=()=>ar(this,null,function*(){return Promise.resolve()}),h=WO[t]||WO[pn.all],v=()=>d[t]||0;return o?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(Yc,{size:"large",className:fo.spinner})):i?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"Error loading jobs",description:((y=i==null?void 0:i.data)==null?void 0:y.message)||(i==null?void 0:i.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:fo.alert})):!n||n.length===0?b.createElement("div",{className:e},b.createElement(wu,{level:2,className:fo.heading},h),b.createElement(wf,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:fo.alert})):b.createElement("div",{className:e},b.createElement(Zt,{direction:"vertical",className:fo.header},b.createElement(wu,{level:4,className:fo.heading},h," ",b.createElement(ha,{color:"green"},v()," Found")),b.createElement(uG,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),b.createElement("div",null,n.map(C=>b.createElement(hu,{key:C.id,jobData:C,isActive:u===C.id,currentTab:t,onClick:p,onSave:g,companiesList:r,userCountry:"IN",selectedJobId:u})),f&&b.createElement("div",{ref:m,className:fo.sentinel},a&&b.createElement("div",{className:fo.loadingMore},b.createElement(Yc,{size:"small"}),b.createElement("span",null,"Loading more jobs...")))))}Si.propTypes={className:pe.string,currentTab:pe.string,jobs:pe.arrayOf(pe.object),companiesMap:pe.object,isLoading:pe.bool,error:pe.object,isFetchingMore:pe.bool,hasMore:pe.bool},Si.defaultProps={className:"",currentTab:pn.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const dG={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function fG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=iG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.relevant);return b.createElement("div",{className:dG.relevantJobsPage},b.createElement(Si,{currentTab:pn.relevant,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const mG={allJobsPage:"_allJobsPage_10f3p_1"};function pG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=oG(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.all);return b.createElement("div",{className:mG.allJobsPage},b.createElement(Si,{currentTab:pn.all,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const vG={savedJobsPage:"_savedJobsPage_km19z_1"};function gG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.saved},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.saved);return b.createElement("div",{className:vG.savedJobsPage},b.createElement(Si,{currentTab:pn.saved,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const hG={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function bG(){const e=os(),{data:t,isLoading:n,error:r,isFetching:o}=HO(ur({type:pn.applied},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=vs(t,o,n,pn.applied);return b.createElement("div",{className:hG.appliedJobsPage},b.createElement(Si,{currentTab:pn.applied,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const KO={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},qO=We.createSlice({name:"filterForm",initialState:KO,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>KO,setFormData:(e,t)=>ur(ur({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const o=n.split("_").slice(-1)[0],i=n.replace(`_${o}`,"");e.mbe_skill_ids[i]||(e.mbe_skill_ids[i]={subject:null,rating:null}),o==="subject"?e.mbe_skill_ids[i].subject=r:o==="rating"&&(e.mbe_skill_ids[i].rating=r)}}}),{updateFormField:yG,resetForm:CG,setFormData:BZ,addRatingFilterInput:GO,deleteRatingFilterInput:SG,updateRatingFilterInput:UO}=qO.actions,xG=qO.reducer,XO=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=wt.useDispatch(),i=wt.useSelector(h=>h.scalantCareerHub.filterForm)[e],a=b.useMemo(()=>i||{},[i]),l=b.useMemo(()=>typeof a=="object"&&!Array.isArray(a)?a:{},[a]);b.useEffect(()=>{(!a||Object.keys(l).length===0)&&r(GO())},[a,l,r]);const c=b.useMemo(()=>Object.values(l).map(h=>{var v;return((v=h==null?void 0:h.subject)==null?void 0:v.key)||(h==null?void 0:h.subject)}).filter(Boolean),[l]),u=b.useMemo(()=>t.filter(h=>!c.includes(h.key)),[t,c]),d=b.useCallback(()=>{r(GO())},[r]),f=b.useCallback(h=>{r(SG({inputFieldKey:h}))},[r]),m=b.useCallback((h,v)=>{const y=t.find(C=>C.key===v);r(UO({inputFilterSubKey:`${h}_subject`,value:y||v}))},[t,r]),p=b.useCallback((h,v)=>{r(UO({inputFilterSubKey:`${h}_rating`,value:v}))},[r]),g=Object.keys(l);return b.createElement(Zt,{direction:"vertical",style:{width:"100%"},size:"middle"},g.map(h=>{var E;const v=l[h],y=((E=v==null?void 0:v.subject)==null?void 0:E.key)||(v==null?void 0:v.subject),C=v==null?void 0:v.rating,x=[...t.filter(S=>S.key===y),...u];return b.createElement(wo,{key:h,gutter:16,align:"middle"},b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select skill",value:y,onChange:S=>m(h,S),showSearch:!0,filterOption:(S,$)=>{var O;return((O=$==null?void 0:$.label)!=null?O:"").toLowerCase().includes(S.toLowerCase())},options:x.map(S=>({label:S.value,value:S.key}))})),b.createElement(jn,{span:10},b.createElement(yn,{placeholder:"Select rating",value:C,onChange:S=>p(h,S),options:n.map(S=>({label:S.label,value:S.value}))})),b.createElement(jn,{span:4},b.createElement(Zt,null,b.createElement(rn,{type:"text",icon:b.createElement(fb,null),onClick:d,style:{color:"#1890ff"}}),g.length>1&&b.createElement(rn,{type:"text",icon:b.createElement(zh,null),onClick:()=>f(h),danger:!0}))))}))};XO.propTypes={fieldName:pe.string.isRequired,subjectOptions:pe.arrayOf(pe.shape({key:pe.oneOfType([pe.string,pe.number]),value:pe.string})).isRequired,ratingOptions:pe.arrayOf(pe.shape({value:pe.oneOfType([pe.string,pe.number]),label:pe.string})).isRequired};const Go={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:br}=yn;function EG(){var _,T,M,D;const e=wt.useDispatch(),t=wt.useSelector(P=>P.scalantCareerHub.filterForm),n=wt.useSelector(P=>P.scalantCareerHub.filterOptions||{}),[r]=Vt.useForm();b.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:o,handleTitleSearch:i,handleExperienceSkillSearch:a,handleExperienceSkillChange:l,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:d}=eM(),{jobTypes:f,functions:m,seniorityLevels:p,companyCategories:g,locations:h,mbeSkills:v,ctcRanges:y,stipendRanges:C,durationRanges:x,noticePeriods:E,datePostedOptions:S,skillRatings:$}=Lb(),O=(P,A)=>{e(yG({field:P,value:A}))},I=t.role_type,w=I==="full_time",N=I==="internship";return b.createElement(Vt,{layout:"vertical",className:Go.filterForm,form:r,initialValues:t},b.createElement(Vt.Item,{label:"Job Types",name:"role_type"},b.createElement(yn,{placeholder:"Select job profile",value:t.role_type,onChange:P=>O("role_type",P)},f.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Company Name",name:"company_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:o,loading:c,value:t.company_ids,onChange:P=>O("company_ids",P),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(_=n.companyOptions)==null?void 0:_.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Title",name:"job_title"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:i,loading:u,value:t.job_title,onChange:P=>O("job_title",P),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(T=n.titleOptions)==null?void 0:T.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),b.createElement(Vt.Item,{label:"Function",name:"job_category"},b.createElement(yn,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:P=>O("job_category",P)},m.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Role seniority level",name:"seniority_level"},b.createElement(yn,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:P=>O("seniority_level",P)},p.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Company category",name:"company_categories"},b.createElement(yn,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:P=>O("company_categories",P)},g.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))))),b.createElement(Vt.Item,{label:"Location",name:"location"},b.createElement(yn,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:P=>O("location",P)},h.map(P=>b.createElement(br,{key:P.key,value:P.value},P.value)))),!N&&b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},b.createElement(yn,{placeholder:"Select range",value:t.min_ctc,onChange:P=>O("min_ctc",P)},y.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))),!w&&b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Stipend (INR per month)",name:"min_stipend"},b.createElement(yn,{placeholder:"Select range",value:t.min_stipend,onChange:P=>O("min_stipend",P)},C.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Internship duration (in months)",name:"min_duration"},b.createElement(yn,{placeholder:"Select range",value:t.min_duration,onChange:P=>O("min_duration",P)},x.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Notice period requirement",name:"notice_period"},b.createElement(yn,{placeholder:"Choose period",value:t.notice_period,onChange:P=>O("notice_period",P)},E.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label))))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{label:"Job posted date",name:"date_posted_on"},b.createElement(yn,{placeholder:"Pick date",value:t.date_posted_on,onChange:P=>O("date_posted_on",P)},S.map(P=>b.createElement(br,{key:P.value,value:P.value},P.label)))))),b.createElement(Vt.Item,{label:"Expert Mock Interview Skills Required"},b.createElement(XO,{fieldName:"mbe_skill_ids",subjectOptions:v,ratingOptions:$})),b.createElement(Vt.Item,{label:"Experienced based skills",name:"experience_skill_ids"},b.createElement(yn,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:a,loading:d,value:((M=t.experience_skill_ids)==null?void 0:M.map(P=>typeof P=="object"?P.experience_skill_id:P))||[],onChange:P=>{const A=l(P,n.experienceSkillOptions);O("experience_skill_ids",A)},notFoundContent:d?"Loading...":"Type at least 2 characters to search"},(D=n.experienceSkillOptions)==null?void 0:D.map(P=>b.createElement(br,{key:P.key,value:P.key},P.value)))),b.createElement(Vt.Item,{label:"Experience (Years)? *"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:P=>O("min_experience",P.target.value)}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:P=>O("max_experience",P.target.value)}))))))}function $G({onClose:e}){return b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:5},b.createElement(iT,{className:Go.filterIcon}),"Filters"),b.createElement(xr,{onClick:e})),b.createElement("div",{className:Go.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function wG(){const e=wt.useDispatch(),t=wt.useSelector(a=>a.scalantCareerHub.dashboard.filterModalOpen),n=wt.useSelector(a=>a.scalantCareerHub.filterForm),r=()=>{e(Wq())},o=()=>{var c,u,d,f,m,p,g;let a;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(a=Object.values(n.mbe_skill_ids).filter(h=>!h||h.rating===void 0||h.rating===null?!1:h.subject?typeof h.subject=="object"?h.subject.key!==void 0&&h.subject.key!==null:h.subject!==void 0&&h.subject!==null:!1).map(h=>{var y;let v;return typeof h.subject=="object"&&((y=h.subject)==null?void 0:y.key)!==void 0?v=h.subject.key:v=h.subject,{mbe_skill_id:v,rating:h.rating}}),a.length===0&&(a=void 0));const l={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(d=n.job_category)!=null&&d.length?n.job_category:void 0,seniority_level:(f=n.seniority_level)!=null&&f.length?n.seniority_level:void 0,location:(m=n.location)!=null&&m.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:a,experience_skill_ids:(p=n.experience_skill_ids)!=null&&p.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(g=n.company_categories)!=null&&g.length?n.company_categories:void 0};Object.keys(l).forEach(h=>{l[h]===void 0&&delete l[h]}),e(Ug(l)),r()},i=()=>{e(CG()),e(J2()),e(Ug({}))};return b.createElement(U$,{title:b.createElement($G,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Go.drawer},b.createElement("div",{className:Go.drawerContent},b.createElement(EG,null),b.createElement("div",{className:Go.buttonContainer},b.createElement(rn,{className:Go.resetButton,onClick:i},"Reset Filters"),b.createElement(rn,{type:"primary",className:Go.applyButton,onClick:o},"Apply"))))}const OG=Xr.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:NG,useCreateAlertMutation:IG,useUpdateAlertStatusMutation:_G,useDeleteAlertMutation:PG,useUpdateAlertMutation:TG}=OG,MG={alerts:[],loading:!1,error:null},QO=We.createSlice({name:"alerts",initialState:MG,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:DG,addAlert:qZ,setLoading:GZ,setError:UZ}=QO.actions,AG=QO.reducer,mo={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Fv}=yn;function YO({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:o,locations:i,ctcRanges:a}=Lb(),[l,c]=b.useState("realtime");b.useEffect(()=>{var f,m;if(t&&e){const g={[un.REALTIME]:"realtime",[un.DAILY]:"daily",[un.ALTERNATE_DAY]:"alternate",[un.WEEKLY]:"weekly"}[t.frequency]||"realtime",h={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((f=t.min_experience)==null?void 0:f.toString())||"",max_experience:((m=t.max_experience)==null?void 0:m.toString())||"",frequency:g,notification_type:t.notification_type||nr.EMAIL};e.setFieldsValue(h),c(g)}},[t,e]);const u=()=>ar(this,null,function*(){try{const f=yield e.validateFields(),m={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},p=f.frequency==="realtime",g={alert:{name:f.name,job_functions:f.job_functions||[],min_ctc:f.min_ctc,locations:f.locations||[],min_experience:f.min_experience?parseInt(f.min_experience,10):0,max_experience:f.max_experience?parseInt(f.max_experience,10):null,frequency:m[f.frequency]||un.REALTIME,notification_type:p&&f.notification_type||nr.EMAIL}};n&&(yield n(g))}catch(f){console.error("Error submitting form:",f)}});b.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const d=Vt.useWatch("frequency",e)||"realtime";return b.useEffect(()=>{c(d)},[d]),b.createElement(Vt,{form:e,layout:"vertical",className:mo.createAlertContent,initialValues:{frequency:"realtime"}},b.createElement(Vt.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},b.createElement(vi,{placeholder:"Give your job alert a name"})),b.createElement(Vt.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select job function",className:mo.formInput},o.map(f=>b.createElement(Fv,{key:f.key,value:f.key},f.value)))),b.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},b.createElement(yn,{placeholder:"Select range",className:mo.formInput},a.map(f=>b.createElement(Fv,{key:f.value,value:f.value},f.label)))),b.createElement(Vt.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},b.createElement(yn,{mode:"multiple",placeholder:"Select locations",className:mo.formInput},i.map(f=>b.createElement(Fv,{key:f.key,value:f.value},f.value)))),b.createElement(Vt.Item,{label:"Experience (Years)?"},b.createElement(wo,{gutter:16},b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Minimum",type:"number"}))),b.createElement(jn,{span:12},b.createElement(Vt.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},b.createElement(vi,{placeholder:"Maximum",type:"number"}))))),b.createElement(Vt.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},b.createElement(gr.Group,{className:mo.radioGroup,onChange:f=>{c(f.target.value),f.target.value!=="realtime"&&e.setFieldsValue({notification_type:nr.EMAIL})}},b.createElement(gr,{value:"realtime"},"Realtime"),b.createElement(gr,{value:"daily"},"Daily"),b.createElement(gr,{value:"alternate"},"Every alternate day"),b.createElement(gr,{value:"weekly"},"Weekly"))),l==="realtime"&&b.createElement(Vt.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},b.createElement(gr.Group,{className:mo.radioGroup},b.createElement(gr,{value:nr.EMAIL},"Email"),b.createElement(gr,{value:nr.WHATSAPP},"Whatsapp"),b.createElement(gr,{value:nr.BOTH},"Both"))))}const Qn={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function RG(){const e=wt.useDispatch(),{data:t=[],isLoading:n,error:r}=NG(),[o]=_G(),[i]=PG(),[a,{isLoading:l}]=TG(),[c,u]=b.useState(null),[d]=Vt.useForm();b.useEffect(()=>{t&&e(DG(t))},[t,e]);const f=x=>Pb[x]||Pb[un.REALTIME],m=x=>Tb[x]||Tb[nr.EMAIL],p=x=>x===ja.ACTIVE,g=(x,E)=>ar(this,null,function*(){try{const S=E===ja.ACTIVE?ja.INACTIVE:ja.ACTIVE;yield o({id:x,status:S}).unwrap(),Hr.success(`Alert ${S===ja.ACTIVE?"activated":"deactivated"} successfully`)}catch(S){Hr.error("Failed to update alert status"),console.error("Error updating alert status:",S)}}),h=x=>{u(x)},v=()=>{u(null),d.resetFields()},y=x=>ar(this,null,function*(){try{yield a({id:c,payload:x}).unwrap(),Hr.success("Alert updated successfully"),u(null),d.resetFields()}catch(E){throw Hr.error("Failed to update alert"),console.error("Error updating alert:",E),E}}),C=x=>ar(this,null,function*(){try{yield i(x).unwrap(),Hr.success("Alert deleted successfully")}catch(E){Hr.error("Failed to delete alert"),console.error("Error deleting alert:",E)}});return n?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.loadingText},"Loading alerts...")):r?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.errorText},"Error loading alerts")):!t||t.length===0?b.createElement("div",{className:Qn.existingAlertContent},b.createElement("div",{className:Qn.emptyText},"No alerts found")):b.createElement("div",{className:Qn.existingAlertContent},t.map(x=>{const E=x.attributes||x,S=x.id||E.id,$=p(E.status),O=f(E.frequency),I=m(E.notification_type),w=c===S;return b.createElement("div",{key:S,className:Qn.alertCard},b.createElement(_r,{align:"center",className:Qn.alertHeader},b.createElement(Td,{className:U(Qn.alertIcon,{[Qn.inactiveIcon]:!$})}),b.createElement("div",null,E.name)),b.createElement("div",{className:Qn.alertSettings},b.createElement(_r,{align:"center",gap:16,wrap:!0},b.createElement(_r,{align:"center",gap:8},b.createElement(d7,{checked:$,onChange:()=>g(S,E.status),size:"small",disabled:w}),b.createElement("span",null,"Active")),b.createElement(_r,{align:"center",gap:8},b.createElement(Th,null),b.createElement("span",null,O)),b.createElement(_r,{align:"center",gap:8},b.createElement(Td,null),b.createElement("span",null,I)))),!w&&b.createElement("div",{className:Qn.alertActions},b.createElement(rn,{type:"text",danger:!0,icon:b.createElement(zh,null),onClick:()=>C(S),className:Qn.deleteButton},"Delete"),b.createElement(rn,{type:"primary",icon:b.createElement(Dd,null),onClick:()=>h(S),className:Qn.editButton},"Edit")),w&&b.createElement("div",{className:Qn.editFormCard},b.createElement(YO,{form:d,initialValues:E,onSubmit:y,isSubmitting:l}),b.createElement(_r,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},b.createElement(rn,{onClick:v,disabled:l},"Cancel"),b.createElement(rn,{type:"primary",onClick:()=>ar(this,null,function*(){try{const N=yield d.validateFields(),_={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},T=N.frequency==="realtime",M={alert:{name:N.name,job_functions:N.job_functions||[],min_ctc:N.min_ctc,locations:N.locations||[],min_experience:N.min_experience?parseInt(N.min_experience,10):0,max_experience:N.max_experience?parseInt(N.max_experience,10):null,frequency:_[N.frequency]||un.REALTIME,notification_type:T&&N.notification_type||nr.EMAIL}};yield y(M)}catch(N){}}),loading:l},"Update Alert"))))}))}function jG(){const e=wt.useDispatch(),t=wt.useSelector(h=>h.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=b.useState("create"),[o]=Vt.useForm(),[i,{isLoading:a}]=IG();b.useEffect(()=>{t||(o.resetFields(),r("create"))},[t,o]);const l=()=>{e(qq())},c=()=>{l()},u=()=>ar(this,null,function*(){try{const h=yield o.validateFields(),v={realtime:un.REALTIME,daily:un.DAILY,alternate:un.ALTERNATE_DAY,weekly:un.WEEKLY},y=h.frequency==="realtime",C={alert:{name:h.name,job_functions:h.job_functions||[],min_ctc:h.min_ctc,locations:h.locations||[],min_experience:h.min_experience?parseInt(h.min_experience,10):0,max_experience:h.max_experience?parseInt(h.max_experience,10):null,frequency:v[h.frequency]||un.REALTIME,notification_type:y&&h.notification_type||nr.EMAIL},resume_alert:!1},x=yield i(C).unwrap();x.success&&x.alert&&(o.resetFields(),r("existing"),Hr.success("Alert created successfully"))}catch(h){Hr.error("Failed to create alert"),console.error("Error creating alert:",h)}}),d=h=>ar(this,null,function*(){const v=ba(ur({},h),{resume_alert:!1});return yield i(v).unwrap()}),f=b.createElement(_r,{vertical:!0},b.createElement(_r,{justify:"space-between"},b.createElement(_r,{align:"center",gap:8},b.createElement(y_,{className:mo.filterIcon}),"Curate your Job Alert"),b.createElement(xr,{onClick:l})),b.createElement("div",{className:mo.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),m=b.createElement("div",{className:mo.modalFooter},b.createElement(rn,{onClick:c},"Cancel"),b.createElement(rn,{type:"primary",onClick:u,loading:a},"Create Alert")),p=b.createElement(YO,{form:o,onSubmit:d,isSubmitting:a}),g=b.createElement(RG,null);return b.createElement(F1,{title:f,open:t,onCancel:l,footer:m,width:600,closable:!1,className:mo.modal},b.createElement(vp,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:p},{key:"existing",label:"Existing alerts",children:g}]}))}const LG={jobsPageContent:"_jobsPageContent_pk7y3_1"};function JO({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Mb}){const o=wt.useDispatch(),i=wt.useSelector(f=>f.scalantCareerHub.layout.selectedJobId),a=wt.useSelector(f=>{var m,p;return((p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.tab)||pn.all});b.useEffect(()=>{o(Hq(r))},[r,o]);const l=b.createElement(xu,null),c=i?b.createElement($u,{country:e,openMockInterviewModal:t,openResume:n,jobId:i}):b.createElement(Eu,null),u=i?_b.JOB_DETAILS:_b.PROFILE_DETAILS,d=()=>{switch(a){case pn.relevant:return b.createElement(fG,null);case pn.saved:return b.createElement(gG,null);case pn.applied:return b.createElement(bG,null);case pn.all:default:return b.createElement(pG,null)}};return b.createElement(b.Fragment,null,b.createElement(Su,{header:l,sider:c,siderWidth:u,className:LG.jobsPage},d()),b.createElement(wG,null),b.createElement(jG,null))}JO.propTypes={processCounts:pe.shape({all:pe.number,relevant:pe.number,draft:pe.number,applications:pe.number,saved:pe.number,archived:pe.number})};function Hv(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vv=function(){return Math.random().toString(36).substring(7).split("").join(".")},zl={INIT:"@@redux/INIT"+Vv(),REPLACE:"@@redux/REPLACE"+Vv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vv()}};function zG(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function BG(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(HG(e))return"date";if(FG(e))return"error";var n=kG(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kG(e){return typeof e.constructor=="function"?e.constructor.name:null}function FG(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function HG(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function VG(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=BG(e)),t}function ZO(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function WG(e,t,n,r){var o=Object.keys(t),i=n&&n.type===zl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!zG(e))return"The "+i+' has unexpected type of "'+VG(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!r[l]});if(a.forEach(function(l){r[l]=!0}),!(n&&n.type===zl.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function KG(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:zl.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:zl.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Hv(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+zl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function qG(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&ZO('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),a;process.env.NODE_ENV!=="production"&&(a={});var l;try{KG(n)}catch(c){l=c}return function(u,d){if(u===void 0&&(u={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=WG(u,n,d,a);f&&ZO(f)}for(var m=!1,p={},g=0;g<i.length;g++){var h=i[g],v=n[h],y=u[h],C=v(y,d);if(typeof C=="undefined"){var x=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Hv(14):"When called with an action of type "+(x?'"'+String(x)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}p[h]=C,m=m||C!==y}return m=m||i.length!==Object.keys(u).length,m?p:u}}const GG={company_categories:[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories:[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations:[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types:[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels:[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping:{"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked:!0,pipeline_stages:[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills:[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled:!0,v0_onboarding_completed:!0,initial_user_application_stage:4,is_discussion_hub_enabled:!1,resume_issues:{total_issues:2},default_resume_details:{id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills:{language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data:[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}]},UG=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),XG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:UG(t.label||"").replace(/_/g," ")})),QG=e=>!e||!Array.isArray(e)?e:e.map(t=>ba(ur({},t),{label:DK("titleCase",t.label||"")})),eN=e=>{if(!e||typeof e!="object")return e;const t=bu(e);return t.companyCategories&&(t.companyCategories=XG(t.companyCategories)),t.roleTypes&&(t.roleTypes=QG(t.roleTypes)),t},YG=window.__CAREERS_HUB__||GG,JG={meta:eN(YG)},tN=We.createSlice({name:"metaData",initialState:JG,reducers:{setMetaData:(e,t)=>{e.meta=eN(t.payload)}}});tN.actions;const ZG=tN.reducer,eU=qG({[Xr.reducerPath]:Xr.reducer,layout:cG,filter:LI,dashboard:Gq,filterForm:xG,metaData:ZG,filterOptions:Z2,alerts:AG});pt.APPLICATION_STATUS=PI,pt.ApplicationForm=zb,pt.EligibilityTag=pu,pt.FormContainer=NO,pt.FormContent=kd,pt.FormHeader=yv,pt.HelloWorld=Kr,pt.JOB_CARD_CONFIG=ad,pt.JOB_PROFILE_STATUS=TI,pt.JobCard=hu,pt.JobDetails=$u,pt.JobsHeader=xu,pt.JobsLayout=Su,pt.JobsList=Si,pt.JobsPage=JO,pt.ProfileDetails=Eu,pt.SaveButton=vu,pt.TABS=MI,pt.careerHubApi=Xr,pt.checkAllOtherRequirementsMet=Sv,pt.countPendingSteps=_O,pt.default=Kr,pt.determineJobTag=Ev,pt.formatCtc=Nv,pt.formatDate=PO,pt.formatExperience=Ov,pt.formatLocation=_v,pt.formatNoticePeriod=Iv,pt.setBaseUrl=wI,pt.store=eU,pt.useApplicationForm=Wg,pt.useCreateApplication=Vg,pt.useJobCardState=Kg,Object.defineProperties(pt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|