@gientech/modual 1.3.6 → 1.4.2
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/assets/AppLoading-BCu9TPs5.js +414 -0
- package/assets/GientechStreamReader-A8zHypyu.js +446 -0
- package/assets/LeftOutlined-BdBZ6FSD.js +1 -0
- package/assets/homeBg.png +0 -0
- package/assets/index-B7u9FawR.js +1 -0
- package/assets/index-CFlRqq2H.js +585 -0
- package/assets/index-CNJZ9j4J.js +1 -0
- package/assets/{index-Ce4td48i.js → index-DfSHCQcq.js} +95 -100
- package/assets/index-DiQ4Me9J.js +1429 -0
- package/assets/index-EcdpegTC.js +1 -0
- package/assets/index-rydP_SDR.js +21 -0
- package/assets/left.jpg +0 -0
- package/assets/logoImg.png +0 -0
- package/assets/{plus-omCUN0e3.js → plus-ufD39rmY.js} +1 -1
- package/assets/style.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/style4.css +1 -0
- package/assets/{x-vPcWt3fC.js → x-_1-UpSBt.js} +1 -1
- package/chat.js +78 -581
- package/database.js +2 -2
- package/databaseId.js +3 -3
- package/databaseTable.js +14 -2
- package/index.d.ts +81 -0
- package/index.js +14 -0
- package/modelManage.js +1 -1
- package/package.json +8 -1
- package/sensitive.js +1 -1
- package/streamFilesReader.d.ts +3 -0
- package/streamFilesReader.js +1 -442
- package/assets/_commonjsHelpers-gnU0ypJ3.js +0 -1
- package/assets/circle-alert-g2Y6zAjt.js +0 -6
- package/assets/index-CDNF071H.js +0 -1709
- package/assets/index-CEK88UzR.js +0 -26
- package/assets/styled-components.browser.esm-DPkS13KC.js +0 -2
package/chat.js
CHANGED
|
@@ -1,620 +1,125 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as $,jsxs as Y,Fragment as Ea}from"react/jsx-runtime";import*as l from"react";import Be,{forwardRef as br,useMemo as Ge,useRef as Xe,useCallback as qt,useImperativeHandle as Po,createContext as Fa,useEffect as je,Component as Ao,createElement as Vn,PureComponent as Na,useState as Ie}from"react";import{c as Pt,b5 as Xt,K as vt,V as ko,b6 as yr,b7 as Mo,A as ot,L as Ke,k as Z,b8 as Ro,_ as De,N as re,b9 as Oa,ba as Bo,M as ze,ao as Ye,bb as Da,o as Lt,H as Cr,D as To,at as xt,aw as xr,ax as wr,ay as $r,aA as Ir,bc as an,au as Sr,z as Er,a7 as jt,t as Jt,C as wt,q as Gt,T as Fr,bd as Pa,X as Aa,x as ne,a9 as ka,be as Nr,g as cn,e as sn,aC as _o,bf as wn,i as zo,a_ as $n,r as On,bg as or,bh as Ma,W as jo,aJ as ar,aL as Lo,aF as Ho,bi as Ra,bj as Ba,bk as Ta,bl as _a,f as za,bm as qr,U as Ur,j as ja,h as La,aP as Ha,ah as qa,bn as Ua,Y as Wa,bo as Va,u as Or,bp as Ka,bq as Xa,br as Ga,as as pt,aM as qo,aj as Uo,b1 as Wo,aT as Ja,aW as Ya,bs as ir,w as sr,aN as Qa,aQ as Za,aO as ei,bt as ti,bu as Bt,bv as Qe,az as Ve,G as ni,bw as Wr,bx as ri,by as oi,aI as ai,aD as Vr,aE as ii,I as lt,bz as si,bA as Kr,b as rt,b4 as Dr,bB as li,bC as Vo,aH as Ko,F as Xr,d as ci,bD as ui}from"./assets/index-DiQ4Me9J.js";import{h as di,v as pi,C as mi,H as fi,A as gi,F as hi}from"./assets/AppLoading-BCu9TPs5.js";import{A as Gr}from"./assets/index-DfSHCQcq.js";import{u as Ht}from"./assets/index-CpW6Dhpp.js";/* empty css */import{R as vi,a as bi}from"./assets/LeftOutlined-BdBZ6FSD.js";import{flushSync as lr}from"react-dom";import{P as Xo}from"./assets/plus-ufD39rmY.js";import{X as Pr}from"./assets/x-_1-UpSBt.js";import{A as yi,i as Ci,s as Re,M as Ar,S as vn}from"./assets/index-rydP_SDR.js";import{g as Jr,a as xi,P as Go}from"./assets/index-EcdpegTC.js";/**
|
|
2
2
|
* @license lucide-react v0.456.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const wi=Pt("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
7
7
|
* @license lucide-react v0.456.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const $i=Pt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
12
12
|
* @license lucide-react v0.456.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const Kn=Pt("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
|
|
17
17
|
* @license lucide-react v0.456.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const Ii=Pt("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
22
22
|
* @license lucide-react v0.456.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const Si=Pt("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
27
27
|
* @license lucide-react v0.456.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const Ei=Pt("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
|
32
32
|
* @license lucide-react v0.456.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const Jo=Pt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
37
37
|
* @license lucide-react v0.456.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const Fi=Pt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
42
42
|
* @license lucide-react v0.456.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const eE=io("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ag={exports:{}},vi={};/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
|
|
94
|
-
*/const gE=Lr("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
95
|
-
* @license lucide-react v0.456.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const hE=Lr("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
100
|
-
* @license lucide-react v0.456.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const lg=Lr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
105
|
-
* @license lucide-react v0.456.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const vE=Lr("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
110
|
-
* @license lucide-react v0.456.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const bE=Lr("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
115
|
-
* @license lucide-react v0.456.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const yE=Lr("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
120
|
-
* @license lucide-react v0.456.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const xE=Lr("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
|
125
|
-
* @license lucide-react v0.456.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const Bb=Lr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var zb={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},$p={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},wE=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],$l={CSS:{},springs:{}};function Xr(e,t,n){return Math.min(Math.max(e,t),n)}function Fi(e,t){return e.indexOf(t)>-1}function Xc(e,t){return e.apply(null,t)}var wt={arr:function(e){return Array.isArray(e)},obj:function(e){return Fi(Object.prototype.toString.call(e),"Object")},pth:function(e){return wt.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||wt.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return wt.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return wt.hex(e)||wt.rgb(e)||wt.hsl(e)},key:function(e){return!zb.hasOwnProperty(e)&&!$p.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function Hb(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function Lb(e,t){var n=Hb(e),r=Xr(wt.und(n[0])?1:n[0],.1,100),o=Xr(wt.und(n[1])?100:n[1],.1,100),a=Xr(wt.und(n[2])?10:n[2],.1,100),i=Xr(wt.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),l=a/(2*Math.sqrt(o*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,f=l<1?(l*s+-i)/c:-i+s;function p(h){var g=t?t*h/1e3:h;return l<1?g=Math.exp(-g*l*s)*(u*Math.cos(c*g)+f*Math.sin(c*g)):g=(u+f*g)*Math.exp(-g*s),h===0||h===1?h:1-g}function v(){var h=$l.springs[e];if(h)return h;for(var g=1/6,m=0,b=0;;)if(m+=g,p(m)===1){if(b++,b>=16)break}else b=0;var y=m*g*1e3;return $l.springs[e]=y,y}return t?p:v}function CE(e){return e===void 0&&(e=10),function(t){return Math.ceil(Xr(t,1e-6,1)*e)*(1/e)}}var SE=(function(){var e=11,t=1/(e-1);function n(u,f){return 1-3*f+3*u}function r(u,f){return 3*f-6*u}function o(u){return 3*u}function a(u,f,p){return((n(f,p)*u+r(f,p))*u+o(f))*u}function i(u,f,p){return 3*n(f,p)*u*u+2*r(f,p)*u+o(f)}function s(u,f,p,v,h){var g,m,b=0;do m=f+(p-f)/2,g=a(m,v,h)-u,g>0?p=m:f=m;while(Math.abs(g)>1e-7&&++b<10);return m}function l(u,f,p,v){for(var h=0;h<4;++h){var g=i(f,p,v);if(g===0)return f;var m=a(f,p,v)-u;f-=m/g}return f}function c(u,f,p,v){if(!(0<=u&&u<=1&&0<=p&&p<=1))return;var h=new Float32Array(e);if(u!==f||p!==v)for(var g=0;g<e;++g)h[g]=a(g*t,u,p);function m(b){for(var y=0,x=1,C=e-1;x!==C&&h[x]<=b;++x)y+=t;--x;var w=(b-h[x])/(h[x+1]-h[x]),E=y+w*t,S=i(E,u,p);return S>=.001?l(b,E,u,p):S===0?E:s(b,y,y+t,u,p)}return function(b){return u===f&&p===v||b===0||b===1?b:a(m(b),f,v)}}return c})(),Vb=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var o,a=4;r<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-r,2)}},Elastic:function(r,o){r===void 0&&(r=1),o===void 0&&(o=.5);var a=Xr(r,1,10),i=Xr(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(a,i){return function(s){return 1-o(a,i)(1-s)}},e["easeInOut"+r]=function(a,i){return function(s){return s<.5?o(a,i)(s*2)/2:1-o(a,i)(s*-2+2)/2}},e["easeOutIn"+r]=function(a,i){return function(s){return s<.5?(1-o(a,i)(1-s*2))/2:(o(a,i)(s*2-1)+1)/2}}}),e})();function kp(e,t){if(wt.fnc(e))return e;var n=e.split("(")[0],r=Vb[n],o=Hb(e);switch(n){case"spring":return Lb(e,t);case"cubicBezier":return Xc(SE,o);case"steps":return Xc(CE,o);default:return Xc(r,o)}}function Wb(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Zl(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function Jl(e){return e.reduce(function(t,n){return t.concat(wt.arr(n)?Jl(n):n)},[])}function cg(e){return wt.arr(e)?e:(wt.str(e)&&(e=Wb(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Op(e,t){return e.some(function(n){return n===t})}function Ip(e){var t={};for(var n in e)t[n]=e[n];return t}function nd(e,t){var n=Ip(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ec(e,t){var n=Ip(e);for(var r in t)n[r]=wt.und(e[r])?t[r]:e[r];return n}function EE(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function $E(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(s,l,c,u){return l+l+c+c+u+u}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(r[1],16),a=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+o+","+a+","+i+",1)"}function kE(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function i(p,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?p+(v-p)*6*h:h<1/2?v:h<2/3?p+(v-p)*(2/3-h)*6:p}var s,l,c;if(r==0)s=l=c=o;else{var u=o<.5?o*(1+r):o+r-o*r,f=2*o-u;s=i(f,u,n+1/3),l=i(f,u,n),c=i(f,u,n-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+a+")"}function OE(e){if(wt.rgb(e))return EE(e);if(wt.hex(e))return $E(e);if(wt.hsl(e))return kE(e)}function no(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function IE(e){if(Fi(e,"translate")||e==="perspective")return"px";if(Fi(e,"rotate")||Fi(e,"skew"))return"deg"}function rd(e,t){return wt.fnc(e)?e(t.target,t.id,t.total):e}function Gr(e,t){return e.getAttribute(t)}function Mp(e,t,n){var r=no(t);if(Op([n,"deg","rad","turn"],r))return t;var o=$l.CSS[t+n];if(!wt.und(o))return o;var a=100,i=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(i),i.style.position="absolute",i.style.width=a+n;var l=a/i.offsetWidth;s.removeChild(i);var c=l*parseFloat(t);return $l.CSS[t+n]=c,c}function qb(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Mp(e,o,n):o}}function Fp(e,t){if(wt.dom(e)&&!wt.inp(e)&&(!wt.nil(Gr(e,t))||wt.svg(e)&&e[t]))return"attribute";if(wt.dom(e)&&Op(wE,t))return"transform";if(wt.dom(e)&&t!=="transform"&&qb(e,t))return"css";if(e[t]!=null)return"object"}function Ub(e){if(wt.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,o;o=n.exec(t);)r.set(o[1],o[2]);return r}}function ME(e,t,n,r){var o=Fi(t,"scale")?1:0+IE(t),a=Ub(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Mp(e,a,r):a}function Np(e,t,n,r){switch(Fp(e,t)){case"transform":return ME(e,t,r,n);case"css":return qb(e,t,n);case"attribute":return Gr(e,t);default:return e[t]||0}}function jp(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=no(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function Yb(e,t){if(wt.col(e))return OE(e);if(/\s/g.test(e))return e;var n=no(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Pp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function FE(e){return Math.PI*2*Gr(e,"r")}function NE(e){return Gr(e,"width")*2+Gr(e,"height")*2}function jE(e){return Pp({x:Gr(e,"x1"),y:Gr(e,"y1")},{x:Gr(e,"x2"),y:Gr(e,"y2")})}function Xb(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(n+=Pp(r,a)),r=a}return n}function PE(e){var t=e.points;return Xb(e)+Pp(t.getItem(t.numberOfItems-1),t.getItem(0))}function Gb(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return FE(e);case"rect":return NE(e);case"line":return jE(e);case"polyline":return Xb(e);case"polygon":return PE(e)}}function AE(e){var t=Gb(e);return e.setAttribute("stroke-dasharray",t),t}function RE(e){for(var t=e.parentNode;wt.svg(t)&&wt.svg(t.parentNode);)t=t.parentNode;return t}function Kb(e,t){var n=t||{},r=n.el||RE(e),o=r.getBoundingClientRect(),a=Gr(r,"viewBox"),i=o.width,s=o.height,l=n.viewBox||(a?a.split(" "):[0,0,i,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:i,h:s,vW:l[2],vH:l[3]}}function TE(e,t){var n=wt.str(e)?Wb(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:Kb(n),totalLength:Gb(n)*(r/100)}}}function DE(e,t,n){function r(u){u===void 0&&(u=0);var f=t+u>=1?t+u:0;return e.el.getPointAtLength(f)}var o=Kb(e.el,e.svg),a=r(),i=r(-1),s=r(1),l=n?1:o.w/o.vW,c=n?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*l;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-i.y,s.x-i.x)*180/Math.PI}}function ug(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Yb(wt.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:wt.str(e)||t?r.split(n):[]}}function Ap(e){var t=e?Jl(wt.arr(e)?e.map(cg):cg(e)):[];return Zl(t,function(n,r,o){return o.indexOf(n)===r})}function Qb(e){var t=Ap(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:Ub(n)}}})}function _E(e,t){var n=Ip(t);if(/^spring/.test(n.easing)&&(n.duration=Lb(n.easing)),wt.arr(e)){var r=e.length,o=r===2&&!wt.obj(e[0]);o?e={value:e}:wt.fnc(t.duration)||(n.duration=t.duration/r)}var a=wt.arr(e)?e:[e];return a.map(function(i,s){var l=wt.obj(i)&&!wt.pth(i)?i:{value:i};return wt.und(l.delay)&&(l.delay=s?0:t.delay),wt.und(l.endDelay)&&(l.endDelay=s===a.length-1?t.endDelay:0),l}).map(function(i){return ec(i,n)})}function BE(e){for(var t=Zl(Jl(e.map(function(a){return Object.keys(a)})),function(a){return wt.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),n={},r=function(a){var i=t[a];n[i]=e.map(function(s){var l={};for(var c in s)wt.key(c)?c==i&&(l.value=s[c]):l[c]=s[c];return l})},o=0;o<t.length;o++)r(o);return n}function zE(e,t){var n=[],r=t.keyframes;r&&(t=ec(BE(r),t));for(var o in t)wt.key(o)&&n.push({name:o,tweens:_E(t[o],e)});return n}function HE(e,t){var n={};for(var r in e){var o=rd(e[r],t);wt.arr(o)&&(o=o.map(function(a){return rd(a,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function LE(e,t){var n;return e.tweens.map(function(r){var o=HE(r,t),a=o.value,i=wt.arr(a)?a[1]:a,s=no(i),l=Np(t.target,e.name,s,t),c=n?n.to.original:l,u=wt.arr(a)?a[0]:c,f=no(u)||no(l),p=s||f;return wt.und(i)&&(i=c),o.from=ug(u,p),o.to=ug(jp(i,u),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=kp(o.easing,o.duration),o.isPath=wt.pth(a),o.isPathTargetInsideSVG=o.isPath&&wt.svg(t.target),o.isColor=wt.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var Zb={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var a="";r.list.forEach(function(i,s){a+=s+"("+i+") "}),e.style.transform=a}}};function Jb(e,t){var n=Qb(e);n.forEach(function(r){for(var o in t){var a=rd(t[o],r),i=r.target,s=no(a),l=Np(i,o,s,r),c=s||no(l),u=jp(Yb(a,c),l),f=Fp(i,o);Zb[f](i,o,u,r.transforms,!0)}})}function VE(e,t){var n=Fp(e.target,t.name);if(n){var r=LE(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}function WE(e,t){return Zl(Jl(e.map(function(n){return t.map(function(r){return VE(n,r)})})),function(n){return!wt.und(n)})}function ey(e,t){var n=e.length,r=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(a){return r(a)+a.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(a){return r(a)+a.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(a){return r(a)+a.duration-a.endDelay})):t.endDelay,o}var dg=0;function qE(e){var t=nd(zb,e),n=nd($p,e),r=zE(n,e),o=Qb(e.targets),a=WE(o,r),i=ey(a,n),s=dg;return dg++,ec(t,{id:s,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Pr=[],ty=(function(){var e;function t(){!e&&(!fg()||!cn.suspendWhenDocumentHidden)&&Pr.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var a=Pr.length,i=0;i<a;){var s=Pr[i];s.paused?(Pr.splice(i,1),a--):(s.tick(o),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){cn.suspendWhenDocumentHidden&&(fg()?e=cancelAnimationFrame(e):(Pr.forEach(function(o){return o._onDocumentVisibility()}),ty()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function fg(){return!!document&&document.hidden}function cn(e){e===void 0&&(e={});var t=0,n=0,r=0,o,a=0,i=null;function s(y){var x=window.Promise&&new Promise(function(C){return i=C});return y.finished=x,x}var l=qE(e);s(l);function c(){var y=l.direction;y!=="alternate"&&(l.direction=y!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,o.forEach(function(x){return x.reversed=l.reversed})}function u(y){return l.reversed?l.duration-y:y}function f(){t=0,n=u(l.currentTime)*(1/cn.speed)}function p(y,x){x&&x.seek(y-x.timelineOffset)}function v(y){if(l.reversePlayback)for(var x=a;x--;)p(y,o[x]);else for(var C=0;C<a;C++)p(y,o[C])}function h(y){for(var x=0,C=l.animations,w=C.length;x<w;){var E=C[x],S=E.animatable,k=E.tweens,O=k.length-1,$=k[O];O&&($=Zl(k,function(V){return y<V.end})[0]||$);for(var I=Xr(y-$.start-$.delay,0,$.duration)/$.duration,N=isNaN(I)?1:$.easing(I),A=$.to.strings,F=$.round,j=[],M=$.to.numbers.length,R=void 0,P=0;P<M;P++){var z=void 0,H=$.to.numbers[P],L=$.from.numbers[P]||0;$.isPath?z=DE($.value,N*H,$.isPathTargetInsideSVG):z=L+N*(H-L),F&&($.isColor&&P>2||(z=Math.round(z*F)/F)),j.push(z)}var T=A.length;if(!T)R=j[0];else{R=A[0];for(var _=0;_<T;_++){var D=A[_+1],B=j[_];isNaN(B)||(D?R+=B+D:R+=B+" ")}}Zb[E.type](S.target,E.property,R,S.transforms),E.currentValue=R,x++}}function g(y){l[y]&&!l.passThrough&&l[y](l)}function m(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var x=l.duration,C=l.delay,w=x-l.endDelay,E=u(y);l.progress=Xr(E/x*100,0,100),l.reversePlayback=E<l.currentTime,o&&v(E),!l.began&&l.currentTime>0&&(l.began=!0,g("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,g("loopBegin")),E<=C&&l.currentTime!==0&&h(0),(E>=w&&l.currentTime!==x||!x)&&h(x),E>C&&E<w?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,g("changeBegin")),g("change"),h(E)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,g("changeComplete")),l.currentTime=Xr(E,0,x),l.began&&g("update"),y>=x&&(n=0,m(),l.remaining?(t=r,g("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,g("loopComplete"),g("complete"),!l.passThrough&&"Promise"in window&&(i(),s(l)))))}return l.reset=function(){var y=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=y==="reverse",l.remaining=l.loop,o=l.children,a=o.length;for(var x=a;x--;)l.children[x].reset();(l.reversed&&l.loop!==!0||y==="alternate"&&l.loop===1)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=f,l.set=function(y,x){return Jb(y,x),l},l.tick=function(y){r=y,t||(t=r),b((r+(n-t))*cn.speed)},l.seek=function(y){b(u(y))},l.pause=function(){l.paused=!0,f()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Pr.push(l),f(),ty())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var x=Ap(y);ny(x,l)},l.reset(),l.autoplay&&l.play(),l}function pg(e,t){for(var n=t.length;n--;)Op(e,t[n].animatable.target)&&t.splice(n,1)}function ny(e,t){var n=t.animations,r=t.children;pg(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;pg(e,i),!i.length&&!a.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function UE(e){for(var t=Ap(e),n=Pr.length;n--;){var r=Pr[n];ny(t,r)}}function YE(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?kp(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,s=i==="first",l=i==="center",c=i==="last",u=wt.arr(e),f=parseFloat(u?e[0]:e),p=u?parseFloat(e[1]):0,v=no(u?e[1]:e)||0,h=t.start||0+(u?f:0),g=[],m=0;return function(b,y,x){if(s&&(i=0),l&&(i=(x-1)/2),c&&(i=x-1),!g.length){for(var C=0;C<x;C++){if(!o)g.push(Math.abs(i-C));else{var w=l?(o[0]-1)/2:i%o[0],E=l?(o[1]-1)/2:Math.floor(i/o[0]),S=C%o[0],k=Math.floor(C/o[0]),O=w-S,$=E-k,I=Math.sqrt(O*O+$*$);a==="x"&&(I=-O),a==="y"&&(I=-$),g.push(I)}m=Math.max.apply(Math,g)}r&&(g=g.map(function(A){return r(A/m)*m})),n==="reverse"&&(g=g.map(function(A){return a?A<0?A*-1:-A:Math.abs(m-A)}))}var N=u?(p-f)/m:f;return h+N*(Math.round(g[y]*100)/100)+v}}function XE(e){e===void 0&&(e={});var t=cn(e);return t.duration=0,t.add=function(n,r){var o=Pr.indexOf(t),a=t.children;o>-1&&Pr.splice(o,1);function i(p){p.passThrough=!0}for(var s=0;s<a.length;s++)i(a[s]);var l=ec(n,nd($p,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=wt.und(r)?c:jp(r,c),i(t),t.seek(l.timelineOffset);var u=cn(l);i(u),a.push(u);var f=ey(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}cn.version="3.2.1";cn.speed=1;cn.suspendWhenDocumentHidden=!0;cn.running=Pr;cn.remove=UE;cn.get=Np;cn.set=Jb;cn.convertPx=Mp;cn.path=TE;cn.setDashoffset=AE;cn.stagger=YE;cn.timeline=XE;cn.easing=kp;cn.penner=Vb;cn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const GE=Hr({badgeCounts:{},updateBadgeCount:()=>{}}),KE=()=>{const e=nn(GE);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var mg={exports:{}};/*!
|
|
130
|
-
Copyright (c) 2018 Jed Watson.
|
|
131
|
-
Licensed under the MIT License (MIT), see
|
|
132
|
-
http://jedwatson.github.io/classnames
|
|
133
|
-
*/var gg;function QE(){return gg||(gg=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mg)),mg.exports}var ZE=QE();const me=so(ZE);function Ge(){return Ge=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},Ge.apply(null,arguments)}function dt(e){"@babel/helpers - typeof";return dt=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},dt(e)}var JE=Symbol.for("react.element"),e2=Symbol.for("react.transitional.element"),t2=Symbol.for("react.fragment");function ry(e){return e&&dt(e)==="object"&&(e.$$typeof===JE||e.$$typeof===e2)&&e.type===t2}function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Ha(r)):ry(r)&&r.props?n=n.concat(Ha(r.props.children,t)):n.push(r))}),n}var od={},n2=function(e){};function r2(e,t){}function o2(e,t){}function a2(){od={}}function oy(e,t,n){!t&&!od[n]&&(e(!1,n),od[n]=!0)}function Hn(e,t){oy(r2,e,t)}function i2(e,t){oy(o2,e,t)}Hn.preMessage=n2;Hn.resetWarned=a2;Hn.noteOnce=i2;function s2(e,t){if(dt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ay(e){var t=s2(e,"string");return dt(t)=="symbol"?t:t+""}function G(e,t,n){return(t=ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(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 K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(n),!0).forEach(function(r){G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bi(e){return e instanceof HTMLElement||e instanceof SVGElement}function iy(e){return e&&dt(e)==="object"&&Bi(e.nativeElement)?e.nativeElement:Bi(e)?e:null}function nl(e){var t=iy(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var vg={exports:{}},on={};/**
|
|
134
|
-
* @license React
|
|
135
|
-
* react-is.production.min.js
|
|
136
|
-
*
|
|
137
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the MIT license found in the
|
|
140
|
-
* LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/var bg;function l2(){if(bg)return on;bg=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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return on.ContextConsumer=i,on.ContextProvider=a,on.Element=e,on.ForwardRef=l,on.Fragment=n,on.Lazy=p,on.Memo=f,on.Portal=t,on.Profiler=o,on.StrictMode=r,on.Suspense=c,on.SuspenseList=u,on.isAsyncMode=function(){return!1},on.isConcurrentMode=function(){return!1},on.isContextConsumer=function(m){return g(m)===i},on.isContextProvider=function(m){return g(m)===a},on.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},on.isForwardRef=function(m){return g(m)===l},on.isFragment=function(m){return g(m)===n},on.isLazy=function(m){return g(m)===p},on.isMemo=function(m){return g(m)===f},on.isPortal=function(m){return g(m)===t},on.isProfiler=function(m){return g(m)===o},on.isStrictMode=function(m){return g(m)===r},on.isSuspense=function(m){return g(m)===c},on.isSuspenseList=function(m){return g(m)===u},on.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},on.typeOf=g,on}var yg;function c2(){return yg||(yg=1,vg.exports=l2()),vg.exports}var Gc=c2();function tc(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var u2=Number(Fb.split(".")[0]),Rp=function(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t)},kr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(a){Rp(a,o)})}},ls=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tc(function(){return kr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})},Za=function(e){var t,n;if(!e)return!1;if(sy(e)&&u2>=19)return!0;var r=Gc.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Gc.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Gc.ForwardRef)};function sy(e){return yp(e)&&!ry(e)}var cs=function(e){if(e&&sy(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ad=d.createContext(null);function d2(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),a=d.useContext(ad),i=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(ad.Provider,{value:i},t)}var ly=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!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,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t})()})(),id=typeof window<"u"&&typeof document<"u"&&window.document===document,kl=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),f2=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(kl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),p2=2;function m2(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){f2(a)}function s(){var l=Date.now();if(n){if(l-o<p2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=l}return s}var g2=20,h2=["top","right","bottom","left","width","height","size","weight"],v2=typeof MutationObserver<"u",b2=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m2(this.refresh.bind(this),g2)}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(){!id||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v2?(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(){!id||!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=h2.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),cy=(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}),La=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||kl}),uy=nc(0,0,0,0);function Ol(e){return parseFloat(e)||0}function xg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Ol(a)},0)}function y2(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Ol(i)}return n}function x2(e){var t=e.getBBox();return nc(0,0,t.width,t.height)}function w2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return uy;var r=La(e).getComputedStyle(e),o=y2(r),a=o.left+o.right,i=o.top+o.bottom,s=Ol(r.width),l=Ol(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=xg(r,"left","right")+a),Math.round(l+i)!==n&&(l-=xg(r,"top","bottom")+i)),!S2(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return nc(o.left,o.top,s,l)}var C2=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof La(e).SVGGraphicsElement}:function(e){return e instanceof La(e).SVGElement&&typeof e.getBBox=="function"}})();function S2(e){return e===La(e).document.documentElement}function E2(e){return id?C2(e)?x2(e):w2(e):uy}function $2(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return cy(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function nc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k2=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=E2(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})(),O2=(function(){function e(t,n){var r=$2(n);cy(this,{target:t,contentRect:r})}return e})(),I2=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new ly,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>"u"||!(Element instanceof Object))){if(!(t instanceof La(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new k2(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>"u"||!(Element instanceof Object))){if(!(t instanceof La(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 O2(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})(),dy=typeof WeakMap<"u"?new WeakMap:new ly,fy=(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=b2.getInstance(),r=new I2(t,n,this);dy.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){fy.prototype[e]=function(){var t;return(t=dy.get(this))[e].apply(t,arguments)}});var M2=(function(){return typeof kl.ResizeObserver<"u"?kl.ResizeObserver:fy})(),Co=new Map;function F2(e){e.forEach(function(t){var n,r=t.target;(n=Co.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var py=new M2(F2);function N2(e,t){Co.has(e)||(Co.set(e,new Set),py.observe(e)),Co.get(e).add(t)}function j2(e,t){Co.has(e)&&(Co.get(e).delete(t),Co.get(e).size||(py.unobserve(e),Co.delete(e)))}function xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(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,ay(r.key),r)}}function wn(e,t,n){return t&&wg(e.prototype,t),n&&wg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zi(e,t){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zi(e,t)}function jo(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&&zi(e,t)}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hi(e)}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tp=function(){return!!e})()}function Wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P2(e,t){if(t&&(dt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wt(e)}function Po(e){var t=Tp();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P2(this,n)}}var A2=(function(e){jo(n,e);var t=Po(n);function n(){return xn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function R2(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),a=d.useRef(null),i=d.useContext(ad),s=typeof n=="function",l=s?n(o):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&Za(l),f=u?cs(l):null,p=ls(f,o),v=function(){var m;return nl(o.current)||(o.current&&dt(o.current)==="object"?nl((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||nl(a.current)};d.useImperativeHandle(t,function(){return v()});var h=d.useRef(e);h.current=e;var g=d.useCallback(function(m){var b=h.current,y=b.onResize,x=b.data,C=m.getBoundingClientRect(),w=C.width,E=C.height,S=m.offsetWidth,k=m.offsetHeight,O=Math.floor(w),$=Math.floor(E);if(c.current.width!==O||c.current.height!==$||c.current.offsetWidth!==S||c.current.offsetHeight!==k){var I={width:O,height:$,offsetWidth:S,offsetHeight:k};c.current=I;var N=S===Math.round(w)?w:S,A=k===Math.round(E)?E:k,F=K(K({},I),{},{offsetWidth:N,offsetHeight:A});i==null||i(F,m,x),y&&Promise.resolve().then(function(){y(F,m)})}},[]);return d.useEffect(function(){var m=v();return m&&!r&&N2(m,g),function(){return j2(m,g)}},[o.current,r]),d.createElement(A2,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var T2=d.forwardRef(R2),D2="rc-observer-key";function _2(e,t){var n=e.children,r=typeof n=="function"?[n]:Ha(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(D2,"-").concat(a);return d.createElement(T2,Ge({},e,{key:i,ref:a===0?t:void 0}),o)})}var eo=d.forwardRef(_2);eo.Collection=d2;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 B2(e){if(Array.isArray(e))return sd(e)}function my(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dp(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 z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(e){return B2(e)||my(e)||Dp(e)||z2()}var gy=function(e){return+setTimeout(e,16)},hy=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(gy=function(e){return window.requestAnimationFrame(e)},hy=function(e){return window.cancelAnimationFrame(e)});var Cg=0,_p=new Map;function vy(e){_p.delete(e)}var Tt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Cg+=1;var n=Cg;function r(o){if(o===0)vy(n),e();else{var a=gy(function(){r(o-1)});_p.set(n,a)}}return r(t),n};Tt.cancel=function(e){var t=_p.get(e);return vy(e),hy(t)};function by(e){if(Array.isArray(e))return e}function H2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function yy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return by(e)||H2(e,t)||Dp(e,t)||yy()}function Li(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 er(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function L2(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 Sg="data-rc-order",Eg="data-rc-priority",V2="rc-util-key",ld=new Map;function xy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):V2}function rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function W2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bp(e){return Array.from((ld.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function wy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!er())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=W2(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Sg,i),s&&a&&l.setAttribute(Eg,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Bp(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Sg)))return!1;var v=Number(p.getAttribute(Eg)||0);return a>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rc(t);return(t.styles||Bp(n)).find(function(r){return r.getAttribute(xy(t))===e})}function Vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Cy(e,t);if(n){var r=rc(t);r.removeChild(n)}}function q2(e,t){var n=ld.get(e);if(!n||!L2(document,n)){var r=wy("",t),o=r.parentNode;ld.set(e,o),e.removeChild(r)}}function ro(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rc(n),o=Bp(r),a=K(K({},n),{},{styles:o});q2(r,a);var i=Cy(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=wy(e,a);return u.setAttribute(xy(a),t),u}function U2(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 Dt(e,t){if(e==null)return{};var n,r,o=U2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Il(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Hn(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&dt(a)==="object"&&dt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}var Y2="%";function cd(e){return e.join(Y2)}var X2=(function(){function e(t){xn(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=t}return wn(e,[{key:"get",value:function(t){return this.opGet(cd(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(cd(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),o=n(r);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Wi="data-token-hash",Qr="data-css-hash",So="__cssinjs_instance__";function G2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[So]=o[So]||e,o[So]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qr,"]"))).forEach(function(o){var a=o.getAttribute(Qr);if(r[a]){if(o[So]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new X2(e)}var us=d.createContext({hashPriority:"low",cache:G2(),defaultCache:!0});function K2(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 zp=(function(){function e(){xn(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(i)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(r=a)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var u=te(l,2),f=u[1];return r.internalGet(c)[1]<f?[c,r.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=te(o,1),i=a[0];this.delete(i)}this.keys.push(t)}var s=this.cache;t.forEach(function(l,c){if(c===t.length-1)s.set(l,{value:[n,r.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var o;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!K2(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();G(zp,"MAX_CACHE_SIZE",20);G(zp,"MAX_CACHE_OFFSET",5);var $g=0,Sy=(function(){function e(t){xn(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=$g,t.length===0&&(t.length>0,void 0),$g+=1}return wn(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),Kc=new zp;function ud(e){var t=Array.isArray(e)?e:[e];return Kc.has(t)||Kc.set(t,new Sy(t)),Kc.get(t)}var Q2=new WeakMap,Qc={};function Z2(e,t){for(var n=Q2,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(Qc)||n.set(Qc,e()),n.get(Qc)}var kg=new WeakMap;function Ni(e){var t=kg.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Sy?t+=r.id:r&&dt(r)==="object"?t+=Ni(r):t+=r}),t=Li(t),kg.set(e,t)),t}function Og(e,t){return Li("".concat(t,"_").concat(Ni(e)))}var dd=er();function xe(e){return typeof e=="number"?"".concat(e,"px"):e}var rl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},J2=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var o=te(r,2),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},Ey=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(a){var i,s,l=te(a,2),c=l[0],u=l[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[c])o[c]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(s=n.ignore)!==null&&s!==void 0&&s[c])){var f,p=rl(c,n==null?void 0:n.prefix);r[p]=typeof u=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(u,"px"):String(u),o[c]="var(".concat(p,")")}}),[o,J2(r,t,{scope:n==null?void 0:n.scope})]},Ig=er()?d.useLayoutEffect:d.useEffect,Ut=function(e,t){var n=d.useRef(!0);Ig(function(){return e(n.current)},t),Ig(function(){return n.current=!1,function(){n.current=!0}},[])},Ra=function(e,t){Ut(function(n){if(!n)return e()},t)},e$=K({},d),Mg=e$.useInsertionEffect,t$=function(e,t,n){d.useMemo(e,n),Ut(function(){return t(!0)},n)},n$=Mg?function(e,t,n){return Mg(function(){return e(),t()},n)}:t$,r$=K({},d),o$=r$.useInsertionEffect,a$=function(e){var t=[],n=!1;function r(o){n||t.push(o)}return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},e),r},i$=function(){return function(e){e()}},s$=typeof o$<"u"?a$:i$;function Hp(e,t,n,r,o){var a=d.useContext(us),i=a.cache,s=[e].concat(_e(t)),l=cd(s),c=s$([l]),u=function(v){i.opUpdate(l,function(h){var g=h||[void 0,void 0],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=x,w=C||n(),E=[y,w];return v?v(E):E})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return n$(function(){o==null||o(p)},function(v){return u(function(h){var g=te(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=y-1;return C===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var l$={},c$="css",_o=new Map;function u$(e){_o.set(e,(_o.get(e)||0)+1)}function d$(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wi,'="').concat(e,'"]'));n.forEach(function(r){if(r[So]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var f$=0;function p$(e,t){_o.set(e,(_o.get(e)||0)-1);var n=new Set;_o.forEach(function(r,o){r<=0&&n.add(o)}),_o.size-n.size>f$&&n.forEach(function(r){d$(r,t),_o.delete(r)})}var m$=function(e,t,n,r){var o=n.getDerivativeToken(e),a=K(K({},o),t);return r&&(a=r(a)),a},g$="token";function h$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=nn(us),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?l$:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=Z2(function(){return Object.assign.apply(Object,[{}].concat(_e(t)))},t),h=Ni(v),g=Ni(c),m=p?Ni(p):"",b=Hp(g$,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):m$(v,c,e,u),C=K({},x),w="";if(p){var E=Ey(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=te(E,2);x=S[0],w=S[1]}var k=Og(x,s);x._tokenKey=k,C._tokenKey=Og(C,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:k;x._themeKey=O,u$(O);var $="".concat(c$,"-").concat(Li(k));return x._hashId=$,[x,$,C,w,(p==null?void 0:p.key)||""]},function(y){p$(y[0]._themeKey,o)},function(y){var x=te(y,4),C=x[0],w=x[3];if(p&&w){var E=ro(w,Li("css-variables-".concat(C._themeKey)),{mark:Qr,prepend:"queue",attachTo:a,priority:-999});E[So]=o,E.setAttribute(Wi,C._themeKey)}});return b}var v$={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},$y="comm",ky="rule",Oy="decl",b$="@import",y$="@namespace",x$="@keyframes",w$="@layer",Iy=Math.abs,Lp=String.fromCharCode;function My(e){return e.trim()}function ol(e,t,n){return e.replace(t,n)}function C$(e,t,n){return e.indexOf(t,n)}function Ta(e,t){return e.charCodeAt(t)|0}function Va(e,t,n){return e.slice(t,n)}function Ur(e){return e.length}function S$(e){return e.length}function ks(e,t){return t.push(e),e}var oc=1,Wa=1,Fy=0,Er=0,In=0,Ja="";function Vp(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:oc,column:Wa,length:i,return:"",siblings:s}}function E$(){return In}function $$(){return In=Er>0?Ta(Ja,--Er):0,Wa--,In===10&&(Wa=1,oc--),In}function Ar(){return In=Er<Fy?Ta(Ja,Er++):0,Wa++,In===10&&(Wa=1,oc++),In}function Eo(){return Ta(Ja,Er)}function al(){return Er}function ac(e,t){return Va(Ja,e,t)}function qi(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 k$(e){return oc=Wa=1,Fy=Ur(Ja=e),Er=0,[]}function O$(e){return Ja="",e}function Zc(e){return My(ac(Er-1,fd(e===91?e+2:e===40?e+1:e)))}function I$(e){for(;(In=Eo())&&In<33;)Ar();return qi(e)>2||qi(In)>3?"":" "}function M$(e,t){for(;--t&&Ar()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return ac(e,al()+(t<6&&Eo()==32&&Ar()==32))}function fd(e){for(;Ar();)switch(In){case e:return Er;case 34:case 39:e!==34&&e!==39&&fd(In);break;case 40:e===41&&fd(e);break;case 92:Ar();break}return Er}function F$(e,t){for(;Ar()&&e+In!==57&&!(e+In===84&&Eo()===47););return"/*"+ac(t,Er-1)+"*"+Lp(e===47?e:Ar())}function N$(e){for(;!qi(Eo());)Ar();return ac(e,Er)}function j$(e){return O$(il("",null,null,null,[""],e=k$(e),0,[0],e))}function il(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",C=o,w=a,E=r,S=x;m;)switch(h=y,y=Ar()){case 40:if(h!=108&&Ta(S,f-1)==58){C$(S+=ol(Zc(y),"&","&\f"),"&\f",Iy(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Zc(y);break;case 9:case 10:case 13:case 32:S+=I$(h);break;case 92:S+=M$(al()-1,7);continue;case 47:switch(Eo()){case 42:case 47:ks(P$(F$(Ar(),al()),t,n,l),l),(qi(h||1)==5||qi(Eo()||1)==5)&&Ur(S)&&Va(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Ur(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=ol(S,/\f/g,"")),v>0&&(Ur(S)-f||g===0&&h===47)&&ks(v>32?Ng(S+";",r,n,f-1,l):Ng(ol(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(ks(E=Fg(S,t,n,c,u,o,s,x,C=[],w=[],f,a),a),y===123)if(u===0)il(S,t,E,E,C,a,f,s,w);else{switch(p){case 99:if(Ta(S,3)===110)break;case 108:if(Ta(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?il(e,E,E,r&&ks(Fg(e,E,E,0,0,o,s,x,o,C=[],f,w),w),o,w,f,s,r?C:w):il(S,E,E,E,[""],w,0,s,w)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Ur(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&$$()==125)continue}switch(S+=Lp(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ur(S)-1)*b,b=1;break;case 64:Eo()===45&&(S+=Zc(Ar())),p=Eo(),u=f=Ur(x=S+=N$(al())),y++;break;case 45:h===45&&Ur(S)==2&&(g=0)}}return a}function Fg(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=S$(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=Va(e,p+1,p=Iy(m=i[g])),C=e;y<h;++y)(C=My(m>0?v[y]+" "+x:ol(x,/&\f/g,v[y])))&&(l[b++]=C);return Vp(e,t,n,o===0?ky:s,l,c,u,f)}function P$(e,t,n,r){return Vp(e,t,n,$y,Lp(E$()),Va(e,2,-2),0,r)}function Ng(e,t,n,r,o){return Vp(e,t,n,Oy,Va(e,0,r),Va(e,r+1,-1),r,o)}function pd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function A$(e,t,n,r){switch(e.type){case w$:if(e.children.length)break;case b$:case y$:case Oy:return e.return=e.return||e.value;case $y:return"";case x$:return e.return=e.value+"{"+pd(e.children,r)+"}";case ky:if(!Ur(e.value=e.props.join(",")))return""}return Ur(n=pd(e.children,r))?e.return=e.value+"{"+n+"}":""}var jg="data-ant-cssinjs-cache-path",Ny="_FILE_STYLE__",Go,jy=!0;function R$(){if(!Go&&(Go={},er())){var e=document.createElement("div");e.className=jg,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 a=o.split(":"),i=te(a,2),s=i[0],l=i[1];Go[s]=l});var n=document.querySelector("style[".concat(jg,"]"));if(n){var r;jy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function T$(e){return R$(),!!Go[e]}function D$(e){var t=Go[e],n=null;if(t&&er())if(jy)n=Ny;else{var r=document.querySelector("style[".concat(Qr,'="').concat(Go[e],'"]'));r?n=r.innerHTML:delete Go[e]}return[n,t]}var _$="_skip_check_",Py="_multi_value_";function Jc(e){var t=pd(j$(e),A$);return t.replace(/\{%%%\:[^;];}/g,";")}function B$(e){return dt(e)==="object"&&e&&(_$ in e||Py in e)}function Pg(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(_e(l.slice(1))).join(" ")});return a.join(",")}var z$=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,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),C=te(x,1),w=C[0];v[y]="@keyframes ".concat(b.getName(s)).concat(w)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
|
|
144
|
-
`);else if(y._keyframe)h(y);else{var x=f.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},y);Object.keys(x).forEach(function(C){var w=x[C];if(dt(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!B$(w)){var E=!1,S=C.trim(),k=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=Pg("",s,c):S=Pg(C,s,c):o&&!s&&(S==="&"||S==="")&&(S="",k=!0);var O=e(w,n,{root:k,injectHash:E,parentSelectors:[].concat(_e(i),[S])}),$=te(O,2),I=$[0],N=$[1];v=K(K({},v),N),p+="".concat(S).concat(I)}else{let j=function(M,R){var P=M.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=R;!v$[M]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),M==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(h(R),z=R.getName(s)),p+="".concat(P,":").concat(z,";")};var A,F=(A=w==null?void 0:w.value)!==null&&A!==void 0?A:w;dt(w)==="object"&&w!==null&&w!==void 0&&w[Py]&&Array.isArray(F)?F.forEach(function(M){j(C,M)}):j(C,F)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
|
|
145
|
-
`))):p="{".concat(p,"}"),[p,v]};function Ay(e,t){return Li("".concat(e.join("%")).concat(t))}function H$(){return null}var L$="style";function md(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(us),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,C=n._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,_e(r));var E=dd,S=Hp(L$,w,function(){var N=w.join("|");if(T$(N)){var A=D$(N),F=te(A,2),j=F[0],M=F[1];if(j)return[j,C,M,{},s,c]}var R=t(),P=z$(R,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),z=te(P,2),H=z[0],L=z[1],T=Jc(H),_=Ay(w,T);return[T,C,_,L,s,c]},function(N,A){var F=te(N,3),j=F[2];(A||f)&&dd&&Vi(j,{mark:Qr,attachTo:h})},function(N){var A=te(N,4),F=A[0],j=A[2],M=A[3];if(E&&F!==Ny){var R={mark:Qr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(R.csp={nonce:P});var z=[],H=[];Object.keys(M).forEach(function(T){T.startsWith("@layer")?z.push(T):H.push(T)}),z.forEach(function(T){ro(Jc(M[T]),"_layer-".concat(T),K(K({},R),{},{prepend:!0}))});var L=ro(F,j,R);L[So]=y.instanceId,L.setAttribute(Wi,C),H.forEach(function(T){ro(Jc(M[T]),"_effect-".concat(T),R)})}}),k=te(S,3),O=k[0],$=k[1],I=k[2];return function(N){var A;return!g||E||!p?A=d.createElement(H$,null):A=d.createElement("style",Ge({},G(G({},Wi,$),Qr,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,A,N)}}var V$="cssVar",W$=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,s=e.scope,l=s===void 0?"":s,c=nn(us),u=c.cache.instanceId,f=c.container,p=i._tokenKey,v=[].concat(_e(e.path),[n,l,p]),h=Hp(V$,v,function(){var g=t(),m=Ey(g,n,{prefix:r,unitless:o,ignore:a,scope:l}),b=te(m,2),y=b[0],x=b[1],C=Ay(v,x);return[y,x,C,n]},function(g){var m=te(g,3),b=m[2];dd&&Vi(b,{mark:Qr,attachTo:f})},function(g){var m=te(g,3),b=m[1],y=m[2];if(b){var x=ro(b,y,{mark:Qr,prepend:"queue",attachTo:f,priority:-999});x[So]=u,x.setAttribute(Wi,n)}});return h},Zt=(function(){function e(t,n){xn(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return wn(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})(),Wp=Hr({});function Ry(e){return by(e)||my(e)||Dp(e)||yy()}function Sr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ty(e,t,n,r){if(!t.length)return n;var o=Ry(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=_e(e):s=K({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=Ty(s[a],i,n,r),s}function Cr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Sr(e,t.slice(0,-1))?e:Ty(e,t,n,r)}function q$(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ag(e){return Array.isArray(e)?[]:{}}var U$=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ag(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Sr(o,i),u=Array.isArray(c);if(u||q$(c)){if(!l.has(c)){l.add(c);var f=Sr(r,i);u?r=Cr(r,i,[]):(!f||dt(f)!=="object")&&(r=Cr(r,i,Ag(c))),U$(c).forEach(function(p){a([].concat(_e(i),[p]),l)})}}else r=Cr(r,i,c)}a([])}),r}function Y$(){}const X$=d.createContext({}),ic=()=>{const e=()=>{};return e.deprecated=Y$,e},Dy=Hr(void 0);var G$={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"},K$={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q$=K(K({},K$),{},{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 _y={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ml={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"]},Q$),timePickerLocale:Object.assign({},_y)},ar="${label} is not a valid ${type}",Io={locale:"en",Pagination:G$,DatePicker:Ml,TimePicker:_y,Calendar:Ml,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:ar,method:ar,array:ar,object:ar,number:ar,date:ar,boolean:ar,integer:ar,float:ar,regexp:ar,email:ar,url:ar,hex:ar},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"}};Object.assign({},Io.Modal);let sl=[];const Rg=()=>sl.reduce((e,t)=>Object.assign(Object.assign({},e),t),Io.Modal);function Z$(e){if(e){const t=Object.assign({},e);return sl.push(t),Rg(),()=>{sl=sl.filter(n=>n!==t),Rg()}}Object.assign({},Io.Modal)}const qp=Hr(void 0),aa=(e,t)=>{const n=d.useContext(qp),r=d.useMemo(()=>{var a;const i=t||Io[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Io.locale:a},[n]);return[r,o]},J$="internalMark",ek=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>Z$(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(qp.Provider,{value:o},n)},By={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"},Ui=Object.assign(Object.assign({},By),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
146
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
147
|
-
'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}),Bn=Math.round;function eu(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 Tg=(e,t,n)=>n===0?e:e/100;function bi(e,t){const n=t||255;return e>n?n:e<0?0:e}class Qt{constructor(t){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(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 r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof Qt)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=bi(t.r),this.g=bi(t.g),this.b=bi(t.b),this.a=typeof t.a=="number"?bi(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.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>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Bn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let 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,a=s=>(r[s]-this[s])*o+this[s],i={r:Bn(a("r")),g:Bn(a("g")),b:Bn(a("b")),a:Bn(a("a")*100)/100};return this._c(i)}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=a=>Bn((this[a]*this.a+n[a]*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 a=Bn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Bn(this.getSaturation()*100),r=Bn(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]=bi(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||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 p=Bn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Bn((a+f)*255),this.g=Bn((i+f)*255),this.b=Bn((s+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 a=Bn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=Bn(r*(1-n)*255),u=Bn(r*(1-n*l)*255),f=Bn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=eu(t,Tg);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=eu(t,Tg);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=eu(t,(r,o)=>o.includes("%")?Bn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Os=2,Dg=.16,tk=.05,nk=.05,rk=.15,zy=5,Hy=4,ok=[{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 _g(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Os*t:Math.round(e.h)+Os*t:r=n?Math.round(e.h)+Os*t:Math.round(e.h)-Os*t,r<0?r+=360:r>=360&&(r-=360),r}function Bg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Dg*t:t===Hy?r=e.s+Dg:r=e.s+tk*t,r>1&&(r=1),n&&t===zy&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function zg(e,t,n){var r;return n?r=e.v+nk*t:r=e.v-rk*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Yi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Qt(e),o=r.toHsv(),a=zy;a>0;a-=1){var i=new Qt({h:_g(o,a,!0),s:Bg(o,a,!0),v:zg(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=Hy;s+=1){var l=new Qt({h:_g(o,s),s:Bg(o,s),v:zg(o,s)});n.push(l)}return t.theme==="dark"?ok.map(function(c){var u=c.index,f=c.amount;return new Qt(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var tu={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"},gd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];gd.primary=gd[5];var hd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hd.primary=hd[5];var vd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vd.primary=vd[5];var bd=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bd.primary=bd[5];var yd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yd.primary=yd[5];var xd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xd.primary=xd[5];var wd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wd.primary=wd[5];var Cd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Cd.primary=Cd[5];var Fl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fl.primary=Fl[5];var Sd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sd.primary=Sd[5];var Ed=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ed.primary=Ed[5];var $d=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$d.primary=$d[5];var kd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kd.primary=kd[5];var nu={red:gd,volcano:hd,orange:vd,gold:bd,yellow:yd,lime:xd,green:wd,cyan:Cd,blue:Fl,geekblue:Sd,purple:Ed,magenta:$d,grey:kd};function ak(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new Qt(v[1]).mix(new Qt(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Qt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ik=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 sk(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},ik(r))}const lk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ll(e){return(e+8)/e}function ck(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ll(n)}))}const uk=e=>{const t=ck(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function dk(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 mr=(e,t)=>new Qt(e).setA(t).toRgbString(),yi=(e,t)=>new Qt(e).darken(t).toHexString(),fk=e=>{const t=Yi(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]}},pk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:mr(r,.88),colorTextSecondary:mr(r,.65),colorTextTertiary:mr(r,.45),colorTextQuaternary:mr(r,.25),colorFill:mr(r,.15),colorFillSecondary:mr(r,.06),colorFillTertiary:mr(r,.04),colorFillQuaternary:mr(r,.02),colorBgSolid:mr(r,1),colorBgSolidHover:mr(r,.75),colorBgSolidActive:mr(r,.95),colorBgLayout:yi(n,4),colorBgContainer:yi(n,0),colorBgElevated:yi(n,0),colorBgSpotlight:mr(r,.85),colorBgBlur:"transparent",colorBorder:yi(n,15),colorBorderSecondary:yi(n,6)}};function mk(e){tu.pink=tu.magenta,nu.pink=nu.magenta;const t=Object.keys(By).map(n=>{const r=e[n]===tu[n]?nu[n]:Yi(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),ak(e,{generateColorPalettes:fk,generateNeutralColorPalettes:pk})),uk(e.fontSize)),dk(e)),lk(e)),sk(e))}const Ly=ud(mk),Od={token:Ui,override:{override:Ui},hashed:!0},Vy=fe.createContext(Od),Xi="ant",sc="anticon",gk=["outlined","borderless","filled","underlined"],hk=(e,t)=>t||(e?`${Xi}-${e}`:Xi),qt=d.createContext({getPrefixCls:hk,iconPrefixCls:sc}),Hg={};function lo(e){const t=d.useContext(qt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Hg,styles:Hg},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const vk=`-ant-${Date.now()}-${Math.random()}`;function bk(e,t){const n={},r=(a,i)=>{let s=a.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},o=(a,i)=>{const s=new Qt(a),l=Yi(s.toRgbString());n[`${i}-color`]=r(s),n[`${i}-color-disabled`]=l[1],n[`${i}-color-hover`]=l[4],n[`${i}-color-active`]=l[6],n[`${i}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=l[0],n[`${i}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Qt(t.primaryColor),i=Yi(a.toRgbString());i.forEach((l,c)=>{n[`primary-${c+1}`]=l}),n["primary-color-deprecated-l-35"]=r(a,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(a,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(a,l=>l.setA(l.a*.12));const s=new Qt(i[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setA(l.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.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"),`
|
|
148
|
-
:root {
|
|
149
|
-
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
150
|
-
`)}
|
|
151
|
-
}
|
|
152
|
-
`.trim()}function yk(e,t){const n=bk(e,t);er()&&ro(n,`${vk}-dynamic-theme`)}const Kn=d.createContext(!1),Wy=({children:e,disabled:t})=>{const n=d.useContext(Kn);return d.createElement(Kn.Provider,{value:t??n},e)},ea=d.createContext(void 0),xk=({children:e,size:t})=>{const n=d.useContext(ea);return d.createElement(ea.Provider,{value:t||n},e)};function wk(){const e=nn(Kn),t=nn(ea);return{componentDisabled:e,componentSize:t}}var qy=wn(function e(){xn(this,e)}),Uy="CALC_UNIT",Ck=new RegExp(Uy,"g");function ru(e){return typeof e=="number"?"".concat(e).concat(Uy):e}var Sk=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;xn(this,n),a=t.call(this),G(Wt(a),"result",""),G(Wt(a),"unitlessCssVar",void 0),G(Wt(a),"lowPriority",void 0);var i=dt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=ru(r):i==="string"&&(a.result=r),a}return wn(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(ru(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(ru(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var o=this,a=r||{},i=a.unit,s=!0;return typeof i=="boolean"?s=i:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(Ck,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(qy),Ek=(function(e){jo(n,e);var t=Po(n);function n(r){var o;return xn(this,n),o=t.call(this),G(Wt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return wn(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(qy),$k=function(e,t){var n=e==="css"?Sk:Ek;return function(r){return new n(r,t)}},Lg=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Vt(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function qa(e){var t=d.useRef(!1),n=d.useState(e),r=te(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function ou(e){return e!==void 0}function bn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=qa(function(){return ou(o)?o:ou(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=te(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,p=i?i(f):f,v=Vt(a),h=qa([f]),g=te(h,2),m=g[0],b=g[1];Ra(function(){var x=m[0];c!==x&&v(c,x)},[m]),Ra(function(){ou(o)||u(o)},[o]);var y=Vt(function(x,C){u(x,C),b([f],C)});return[p,y]}function Vg(e,t,n,r){var o=K({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=te(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=K(K({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Yy=typeof CSSINJS_STATISTIC<"u",Id=!0;function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Yy)return Object.assign.apply(Object,[{}].concat(t));Id=!1;var r={};return t.forEach(function(o){if(dt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Id=!0,r}var Wg={};function kk(){}var Ok=function(e){var t,n=e,r=kk;return Yy&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,a){if(Id){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),r=function(o,a){var i;Wg[o]={global:Array.from(t),component:K(K({},(i=Wg[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}};function qg(e,t,n){if(typeof n=="function"){var r;return n(rn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Ik(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(o){return xe(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(o){return xe(o)}).join(","),")")}}}var Mk=1e3*60*10,Fk=(function(){function e(){xn(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return wn(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(o){return o&&dt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(dt(o),"_").concat(o)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,o){n-r>Mk&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Ug=new Fk;function Nk(e,t){return fe.useMemo(function(){var n=Ug.get(t);if(n)return n;var r=e();return Ug.set(t,r),r},t)}var jk=function(){return{}};function Pk(e){var t=e.useCSP,n=t===void 0?jk:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b(k){return"".concat(String(m)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},C=K(K({},x),{},G({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){C[b(k)]=y[k]});var w=K(K({},g),{},{unitless:C,prefixToken:b}),E=u(p,v,h,w),S=c(m,h,w);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,$=E(k,O),I=te($,2),N=I[1],A=S(O),F=te(A,2),j=F[0],M=F[1];return[j,N,M]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,C=function(E){var S=E.rootCls,k=E.cssVar,O=k===void 0?{}:k,$=r(),I=$.realToken;return W$({path:[p],prefix:O.prefix,key:O.key,unitless:g,ignore:x,token:I,scope:S},function(){var N=qg(p,I,v),A=Vg(p,I,N,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(N).forEach(function(F){A[y(F)]=A[F],delete A[F]}),A}),null},w=function(E){var S=r(),k=S.cssVar;return[function(O){return b&&k?fe.createElement(fe.Fragment,null,fe.createElement(C,{rootCls:E,cssVar:k,component:p}),O):O},k==null?void 0:k.key]};return w}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=te(m,1),y=b[0],x=m.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),k=S.theme,O=S.realToken,$=S.hashId,I=S.token,N=S.cssVar,A=o(),F=A.rootPrefixCls,j=A.iconPrefixCls,M=n(),R=N?"css":"js",P=Nk(function(){var D=new Set;return N&&Object.keys(g.unitless||{}).forEach(function(B){D.add(rl(B,N.prefix)),D.add(rl(B,Lg(y,N.prefix)))}),$k(R,D)},[R,y,N==null?void 0:N.prefix]),z=Ik(R),H=z.max,L=z.min,T={theme:k,token:I,hashId:$,nonce:function(){return M.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&md(K(K({},T),{},{clientOnly:!1,path:["Shared",F]}),function(){return a(I,{prefix:{rootPrefixCls:F,iconPrefixCls:j},csp:M})});var _=md(K(K({},T),{},{path:[x,w,j]}),function(){if(g.injectStyle===!1)return[];var D=Ok(I),B=D.token,V=D.flush,W=qg(y,O,h),q=".".concat(w),Q=Vg(y,O,W,{deprecatedTokens:g.deprecatedTokens});N&&W&&dt(W)==="object"&&Object.keys(W).forEach(function(Y){W[Y]="var(".concat(rl(Y,Lg(y,N.prefix)),")")});var U=rn(B,{componentCls:q,prefixCls:w,iconCls:".".concat(j),antCls:".".concat(F),calc:P,max:H,min:L},N?W:Q),J=v(U,{hashId:$,prefixCls:w,rootPrefixCls:F,iconPrefixCls:j});V(y,Q);var X=typeof i=="function"?i(U,w,E,g.resetFont):null;return[g.resetStyle===!1?null:X,J]});return[_,$]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,K({resetStyle:!1,order:-998},g)),b=function(y){var x=y.prefixCls,C=y.rootCls,w=C===void 0?x:C;return m(x,w),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Ak="5.27.6";function au(e){return e>=0&&e<=255}function $i(e,t){const{r:n,g:r,b:o,a}=new Qt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Qt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(au(u)&&au(f)&&au(p))return new Qt({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new Qt({r:n,g:r,b:o,a:1}).toRgbString()}var Rk=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 Xy(e){const{override:t}=e,n=Rk(e,["override"]),r=Object.assign({},t);Object.keys(Ui).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:$i(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:$i(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:$i(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:$i(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:`
|
|
153
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
154
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
155
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
156
|
-
`,boxShadowSecondary:`
|
|
157
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
158
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
159
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
160
|
-
`,boxShadowTertiary:`
|
|
161
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
162
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
163
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
164
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
165
|
-
0 1px 2px -2px ${new Qt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
166
|
-
0 3px 6px 0 ${new Qt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
167
|
-
0 5px 12px 4px ${new Qt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
168
|
-
`,boxShadowDrawerRight:`
|
|
169
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
170
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
171
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
172
|
-
`,boxShadowDrawerLeft:`
|
|
173
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
174
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
175
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
176
|
-
`,boxShadowDrawerUp:`
|
|
177
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
178
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
179
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
180
|
-
`,boxShadowDrawerDown:`
|
|
181
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
182
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
183
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
184
|
-
`,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 Yg=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 Gy={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},Tk={motionBase:!0,motionUnit:!0},Dk={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},Ky=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Yg(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xy(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Yg(l,["theme"]);let f=u;c&&(f=Ky(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function Or(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(Vy),a=`${Ak}-${t||""}`,i=n||Ly,[s,l,c]=h$(i,[Ui,e],{salt:a,override:r,getComputedToken:Ky,formatToken:Xy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Gy,ignore:Tk,preserve:Dk}});return[i,c,t?l:"",s,o]}const Nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},yn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ds=()=>({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"}}),_k=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bk=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"}}}),zk=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Up=(e,t)=>({outline:`${xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Qy=(e,t)=>({"&:focus-visible":Up(e)}),Zy=e=>({[`.${e}`]:Object.assign(Object.assign({},ds()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Fn,genComponentStyleHook:Hk,genSubStyleComponent:lc}=Pk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=nn(qt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Or();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=nn(qt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Bk(e);return[r,{"&":r},Zy((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:sc)]},getCommonStyle:zk,getCompUnitless:()=>Gy});function cc(e,t){return ta.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Lk=(e,t)=>{const[n,r]=Or();return md({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Zy(e))},Vk=Object.assign({},d),{useId:Xg}=Vk,Wk=()=>"",qk=typeof Xg>"u"?Wk:Xg;function Uk(e,t,n){var r;ic();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Od),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Od.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=qk();return tc(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!Il(c,f,!0)}))}var Yk=["children"],Jy=d.createContext({});function Xk(e){var t=e.children,n=Dt(e,Yk);return d.createElement(Jy.Provider,{value:n},t)}var Gk=(function(e){jo(n,e);var t=Po(n);function n(){return xn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function Kk(e){var t=d.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=d.useRef(e),a=Vt(function(){return o.current}),i=Vt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var vo="none",Is="appear",Ms="enter",Fs="leave",Gg="none",Fr="prepare",Oa="start",Ia="active",Yp="end",e1="prepared";function Kg(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 Qk(e,t){var n={animationend:Kg("Animation","AnimationEnd"),transitionend:Kg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Zk=Qk(er(),typeof window<"u"?window:{}),t1={};if(er()){var Jk=document.createElement("div");t1=Jk.style}var Ns={};function n1(e){if(Ns[e])return Ns[e];var t=Zk[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in t1)return Ns[e]=t[a],Ns[e]}return""}var r1=n1("animationend"),o1=n1("transitionend"),a1=!!(r1&&o1),Qg=r1||"animationend",Zg=o1||"transitionend";function Jg(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const eO=(function(e){var t=Ke();function n(o){o&&(o.removeEventListener(Zg,e),o.removeEventListener(Qg,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Zg,e),o.addEventListener(Qg,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var i1=er()?jb:mt;const tO=(function(){var e=d.useRef(null);function t(){Tt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Tt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var nO=[Fr,Oa,Ia,Yp],rO=[Fr,e1],s1=!1,oO=!0;function l1(e){return e===Ia||e===Yp}const aO=(function(e,t,n){var r=qa(Gg),o=te(r,2),a=o[0],i=o[1],s=tO(),l=te(s,2),c=l[0],u=l[1];function f(){i(Fr,!0)}var p=t?rO:nO;return i1(function(){if(a!==Gg&&a!==Yp){var v=p.indexOf(a),h=p[v+1],g=n(a);g===s1?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function iO(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,k=r.onVisibleChanged,O=qa(),$=te(O,2),I=$[0],N=$[1],A=Kk(vo),F=te(A,2),j=F[0],M=F[1],R=qa(null),P=te(R,2),z=P[0],H=P[1],L=j(),T=Ke(!1),_=Ke(null);function D(){return n()}var B=Ke(!1);function V(){M(vo),H(null,!0)}var W=Vt(function(he){var ke=j();if(ke!==vo){var ce=D();if(!(he&&!he.deadline&&he.target!==ce)){var de=B.current,Ae;ke===Is&&de?Ae=w==null?void 0:w(ce,he):ke===Ms&&de?Ae=E==null?void 0:E(ce,he):ke===Fs&&de&&(Ae=S==null?void 0:S(ce,he)),de&&Ae!==!1&&V()}}}),q=eO(W),Q=te(q,1),U=Q[0],J=function(he){switch(he){case Is:return G(G(G({},Fr,p),Oa,g),Ia,y);case Ms:return G(G(G({},Fr,v),Oa,m),Ia,x);case Fs:return G(G(G({},Fr,h),Oa,b),Ia,C);default:return{}}},X=d.useMemo(function(){return J(L)},[L]),Y=aO(L,!e,function(he){if(he===Fr){var ke=X[Fr];return ke?ke(D()):s1}if(ne in X){var ce;H(((ce=X[ne])===null||ce===void 0?void 0:ce.call(X,D(),null))||null)}return ne===Ia&&L!==vo&&(U(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===e1&&V(),oO}),ae=te(Y,2),oe=ae[0],ne=ae[1],ue=l1(ne);B.current=ue;var pe=Ke(null);i1(function(){if(!(T.current&&pe.current===t)){N(t);var he=T.current;T.current=!0;var ke;!he&&t&&s&&(ke=Is),he&&t&&a&&(ke=Ms),(he&&!t&&c||!he&&f&&!t&&c)&&(ke=Fs);var ce=J(ke);ke&&(e||ce[Fr])?(M(ke),oe()):M(vo),pe.current=t}},[t]),mt(function(){(L===Is&&!s||L===Ms&&!a||L===Fs&&!c)&&M(vo)},[s,a,c]),mt(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var be=d.useRef(!1);mt(function(){I&&(be.current=!0),I!==void 0&&L===vo&&((be.current||I)&&(k==null||k(I)),be.current=!0)},[I,L]);var Se=z;return X[Fr]&&ne===Oa&&(Se=K({transition:"none"},Se)),[L,ne,Se,I??t]}function sO(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(Jy),m=g.motion,b=n(o,m),y=Ke(),x=Ke();function C(){try{return y.current instanceof HTMLElement?y.current:nl(x.current)}catch{return null}}var w=iO(b,s,C,o),E=te(w,4),S=E[0],k=E[1],O=E[2],$=E[3],I=d.useRef($);$&&(I.current=!0);var N=d.useCallback(function(P){y.current=P,Rp(a,P)},[a]),A,F=K(K({},h),{},{visible:s});if(!f)A=null;else if(S===vo)$?A=f(K({},F),N):!c&&I.current&&v?A=f(K(K({},F),{},{className:v}),N):u||!c&&!v?A=f(K(K({},F),{},{style:{display:"none"}}),N):A=null;else{var j;k===Fr?j="prepare":l1(k)?j="active":k===Oa&&(j="start");var M=Jg(p,"".concat(S,"-").concat(j));A=f(K(K({},F),{},{className:me(Jg(p,S),G(G({},M,M&&j),p,typeof p=="string")),style:O}),N)}if(d.isValidElement(A)&&Za(A)){var R=cs(A);R||(A=d.cloneElement(A,{ref:N}))}return d.createElement(Gk,{ref:x},A)});return r.displayName="CSSMotion",r}const ia=sO(a1);var Md="add",Fd="keep",Nd="remove",iu="removed";function lO(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function jd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lO)}function cO(){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,a=jd(e),i=jd(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return K(K({},v),{},{status:Md})})),r=f),n.push(K(K({},p),{},{status:Fd})),r+=1,u=!0;break}}u||n.push(K(K({},c),{},{status:Nd}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return K(K({},c),{},{status:Md})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==Nd}),n.forEach(function(u){u.key===c&&(u.status=Fd)})}),n}var uO=["component","children","onVisibleChanged","onAllRemoved"],dO=["status"],fO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,n=(function(r){jo(a,r);var o=Po(a);function a(){var i;xn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),G(Wt(i),"state",{keyEntities:[]}),G(Wt(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:K(K({},v),{},{status:iu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==iu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return wn(a,[{key:"render",value:function(){var i=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,f=l.onVisibleChanged,p=Dt(l,uO),v=c||d.Fragment,h={};return fO.forEach(function(g){h[g]=p[g],delete p[g]}),delete p.keys,d.createElement(v,p,s.map(function(g,m){var b=g.status,y=Dt(g,dO),x=b===Md||b===Fd;return d.createElement(t,Ge({},h,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(C){f==null||f(C,{key:y.key}),C||i.removeKey(y.key)}}),function(C,w){return u(K(K({},C),{},{index:m}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=i.keys,c=s.keyEntities,u=jd(l),f=cO(c,u);return{keyEntities:f.filter(function(p){var v=c.find(function(h){var g=h.key;return p.key===g});return!(v&&v.status===iu&&p.status===Nd)})}}}]),a})(d.Component);return G(n,"defaultProps",{component:"div"}),n}const c1=pO(a1),eh=d.createContext(!0);function mO(e){const t=d.useContext(eh),{children:n}=e,[,r]=Or(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(eh.Provider,{value:o},d.createElement(Xk,{motion:o},n)):n}const gO=()=>null;var hO=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 vO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Xp,u1,d1,f1;function cl(){return Xp||Xi}function bO(){return u1||sc}function yO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Xp=t),n!==void 0&&(u1=n),"holderRender"in e&&(f1=o),r&&(yO(r)?yk(cl(),r):d1=r)},wO=()=>({getPrefixCls:(e,t)=>t||(e?`${cl()}-${e}`:cl()),getIconPrefixCls:bO,getRootPrefixCls:()=>Xp||cl(),getTheme:()=>d1,holderRender:f1}),CO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:E,spin:S,calendar:k,carousel:O,cascader:$,collapse:I,typography:N,checkbox:A,descriptions:F,divider:j,drawer:M,skeleton:R,steps:P,image:z,layout:H,list:L,mentions:T,modal:_,progress:D,result:B,slider:V,breadcrumb:W,menu:q,pagination:Q,input:U,textArea:J,empty:X,badge:Y,radio:ae,rate:oe,switch:ne,transfer:ue,avatar:pe,message:be,tag:Se,table:he,card:ke,tabs:ce,timeline:de,timePicker:Ae,upload:ie,notification:We,tree:ze,colorPicker:De,datePicker:Ee,rangePicker:Ve,flex:Ne,wave:Fe,dropdown:$e,warning:je,tour:qe,tooltip:ve,popover:it,popconfirm:pt,floatButton:yt,floatButtonGroup:Pt,variant:He,inputNumber:Xe,treeSelect:Ye}=e,Je=d.useCallback((Qe,ot)=>{const{prefixCls:gt}=e;if(ot)return ot;const kt=gt||b.getPrefixCls("");return Qe?`${kt}-${Qe}`:kt},[b.getPrefixCls,e.prefixCls]),tt=y||b.iconPrefixCls||sc,Ot=n||b.csp;Lk(tt,Ot);const Nt=Uk(x,b.theme,{prefixCls:Je("")}),et={csp:Ot,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:Je,iconPrefixCls:tt,theme:Nt,segmented:w,statistic:E,spin:S,calendar:k,carousel:O,cascader:$,collapse:I,typography:N,checkbox:A,descriptions:F,divider:j,drawer:M,skeleton:R,steps:P,image:z,input:U,textArea:J,layout:H,list:L,mentions:T,modal:_,progress:D,result:B,slider:V,breadcrumb:W,menu:q,pagination:Q,empty:X,badge:Y,radio:ae,rate:oe,switch:ne,transfer:ue,avatar:pe,message:be,tag:Se,table:he,card:ke,tabs:ce,timeline:de,timePicker:Ae,upload:ie,notification:We,tree:ze,colorPicker:De,datePicker:Ee,rangePicker:Ve,flex:Ne,wave:Fe,dropdown:$e,warning:je,tour:qe,tooltip:ve,popover:it,popconfirm:pt,floatButton:yt,floatButtonGroup:Pt,variant:He,inputNumber:Xe,treeSelect:Ye},st=Object.assign({},b);Object.keys(et).forEach(Qe=>{et[Qe]!==void 0&&(st[Qe]=et[Qe])}),vO.forEach(Qe=>{const ot=e[Qe];ot&&(st[Qe]=ot)}),typeof r<"u"&&(st.button=Object.assign({autoInsertSpace:r},st.button));const Ct=tc(()=>st,st,(Qe,ot)=>{const gt=Object.keys(Qe),kt=Object.keys(ot);return gt.length!==kt.length||gt.some(Mt=>Qe[Mt]!==ot[Mt])}),{layer:Le}=d.useContext(us),Pe=d.useMemo(()=>({prefixCls:tt,csp:Ot,layer:Le?"antd":void 0}),[tt,Ot,Le]);let ye=d.createElement(d.Fragment,null,d.createElement(gO,{dropdownMatchSelectWidth:v}),t);const Te=d.useMemo(()=>{var Qe,ot,gt,kt;return ka(((Qe=Io.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((gt=(ot=Ct.locale)===null||ot===void 0?void 0:ot.Form)===null||gt===void 0?void 0:gt.defaultValidateMessages)||{},((kt=Ct.form)===null||kt===void 0?void 0:kt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Ct,i==null?void 0:i.validateMessages]);Object.keys(Te).length>0&&(ye=d.createElement(Dy.Provider,{value:Te},ye)),s&&(ye=d.createElement(ek,{locale:s,_ANT_MARK__:J$},ye)),ye=d.createElement(Wp.Provider,{value:Pe},ye),l&&(ye=d.createElement(xk,{size:l},ye)),ye=d.createElement(mO,null,ye);const nt=d.useMemo(()=>{const Qe=Nt||{},{algorithm:ot,token:gt,components:kt,cssVar:Mt}=Qe,Jt=hO(Qe,["algorithm","token","components","cssVar"]),Ht=ot&&(!Array.isArray(ot)||ot.length>0)?ud(ot):Ly,Z={};Object.entries(kt||{}).forEach(([we,Ie])=>{const le=Object.assign({},Ie);"algorithm"in le&&(le.algorithm===!0?le.theme=Ht:(Array.isArray(le.algorithm)||typeof le.algorithm=="function")&&(le.theme=ud(le.algorithm)),delete le.algorithm),Z[we]=le});const ee=Object.assign(Object.assign({},Ui),gt);return Object.assign(Object.assign({},Jt),{theme:Ht,token:ee,components:Z,override:Object.assign({override:ee},Z),cssVar:Mt})},[Nt]);return x&&(ye=d.createElement(Vy.Provider,{value:nt},ye)),Ct.warning&&(ye=d.createElement(X$.Provider,{value:Ct.warning},ye)),C!==void 0&&(ye=d.createElement(Wy,{disabled:C},ye)),d.createElement(qt.Provider,{value:Ct},ye)},Ao=e=>{const t=d.useContext(qt),n=d.useContext(qp);return d.createElement(CO,Object.assign({parentContext:t,legacyLocale:n},e))};Ao.ConfigContext=qt;Ao.SizeContext=ea;Ao.config=xO;Ao.useConfig=wk;Object.defineProperty(Ao,"SizeContext",{get:()=>ea});var SO={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"};function p1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function EO(e){return p1(e)instanceof ShadowRoot}function jl(e){return EO(e)?p1(e):null}function $O(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function kO(e,t){Hn(e,"[@ant-design/icons] ".concat(t))}function th(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function nh(){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[$O(n)]=r}return t},{})}function Pd(e,t,n){return n?fe.createElement(e.tag,K(K({key:t},nh(e.attrs)),n),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,K({key:t},nh(e.attrs)),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function m1(e){return Yi(e)[0]}function g1(e){return e?Array.isArray(e)?e:[e]:[]}var OO=`
|
|
185
|
-
.anticon {
|
|
186
|
-
display: inline-flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
color: inherit;
|
|
189
|
-
font-style: normal;
|
|
190
|
-
line-height: 0;
|
|
191
|
-
text-align: center;
|
|
192
|
-
text-transform: none;
|
|
193
|
-
vertical-align: -0.125em;
|
|
194
|
-
text-rendering: optimizeLegibility;
|
|
195
|
-
-webkit-font-smoothing: antialiased;
|
|
196
|
-
-moz-osx-font-smoothing: grayscale;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.anticon > * {
|
|
200
|
-
line-height: 1;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.anticon svg {
|
|
204
|
-
display: inline-block;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.anticon::before {
|
|
208
|
-
display: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.anticon .anticon-icon {
|
|
212
|
-
display: block;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.anticon[tabindex] {
|
|
216
|
-
cursor: pointer;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.anticon-spin::before,
|
|
220
|
-
.anticon-spin {
|
|
221
|
-
display: inline-block;
|
|
222
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
223
|
-
animation: loadingCircle 1s infinite linear;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@-webkit-keyframes loadingCircle {
|
|
227
|
-
100% {
|
|
228
|
-
-webkit-transform: rotate(360deg);
|
|
229
|
-
transform: rotate(360deg);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
@keyframes loadingCircle {
|
|
234
|
-
100% {
|
|
235
|
-
-webkit-transform: rotate(360deg);
|
|
236
|
-
transform: rotate(360deg);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
`,IO=function(e){var t=nn(Wp),n=t.csp,r=t.prefixCls,o=t.layer,a=OO;r&&(a=a.replace(/anticon/g,r)),o&&(a="@layer ".concat(o,` {
|
|
240
|
-
`).concat(a,`
|
|
241
|
-
}`)),mt(function(){var i=e.current,s=jl(i);ro(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:s})},[])},MO=["icon","className","onClick","style","primaryColor","secondaryColor"],ji={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function FO(e){var t=e.primaryColor,n=e.secondaryColor;ji.primaryColor=t,ji.secondaryColor=n||m1(t),ji.calculated=!!n}function NO(){return K({},ji)}var ei=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,i=e.secondaryColor,s=Dt(e,MO),l=d.useRef(),c=ji;if(a&&(c={primaryColor:a,secondaryColor:i||m1(a)}),IO(l),kO(th(t),"icon should be icon definiton, but got ".concat(t)),!th(t))return null;var u=t;return u&&typeof u.icon=="function"&&(u=K(K({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Pd(u.icon,"svg-".concat(u.name),K(K({className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ei.displayName="IconReact";ei.getTwoToneColors=NO;ei.setTwoToneColors=FO;function h1(e){var t=g1(e),n=te(t,2),r=n[0],o=n[1];return ei.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jO(){var e=ei.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h1(Fl.primary);var Tn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Dt(e,PO),u=d.useContext(Wp),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=me(v,p,G(G({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=g1(l),y=te(b,2),x=y[0],C=y[1];return d.createElement("span",Ge({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(ei,{icon:r,primaryColor:x,secondaryColor:C,style:m}))});Tn.displayName="AntdIcon";Tn.getTwoToneColor=jO;Tn.setTwoToneColor=h1;var AO=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:SO}))},v1=d.forwardRef(AO),RO={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"},TO=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:RO}))},uc=d.forwardRef(TO),DO={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"},_O=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:DO}))},Gp=d.forwardRef(_O),BO={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"},zO=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:BO}))},b1=d.forwardRef(zO),HO={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"},LO=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:HO}))},VO=d.forwardRef(LO),WO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
242
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
243
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
244
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
245
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
246
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
247
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
248
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
249
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
250
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
251
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
252
|
-
summary tabIndex target title type useMap value width wmode wrap`,qO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
253
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
254
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
255
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
256
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
257
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
258
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UO="".concat(WO," ").concat(qO).split(/[\s\n]+/),YO="aria-",XO="data-";function rh(e,t){return e.indexOf(t)===0}function Br(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=K({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||rh(o,YO))||n.data&&rh(o,XO)||n.attr&&UO.includes(o))&&(r[o]=e[o])}),r}function y1(e){return e&&fe.isValidElement(e)&&e.type===fe.Fragment}const x1=(e,t,n)=>fe.isValidElement(e)?fe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Mo(e,t){return x1(e,e,t)}const oh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ah=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",js=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ah(n.overflowY,t)||ah(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ps=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,GO=e=>e.parentElement??(e.getRootNode().host||null),ih=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:M=>M!==c;if(!oh(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;oh(h)&&f(h);){if(h=GO(h),h===p){v.push(h);break}h!=null&&h===document.body&&js(h)&&!js(document.documentElement)||h!=null&&js(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:C,top:w,right:E,bottom:S,left:k}=e.getBoundingClientRect(),{top:O,right:$,bottom:I,left:N}=(M=>{const R=window.getComputedStyle(M);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?w-O:s==="end"?S+I:w+x/2-O+I,F=l==="center"?k+C/2-N+$:l==="end"?E+$:k-N;const j=[];for(let M=0;M<v.length;M++){const R=v[M],{height:P,width:z,top:H,right:L,bottom:T,left:_}=R.getBoundingClientRect();if(i==="if-needed"&&w>=0&&k>=0&&S<=m&&E<=g&&(R===p&&!js(R)||w>=H&&S<=T&&k>=_&&E<=L))return j;const D=getComputedStyle(R),B=parseInt(D.borderLeftWidth,10),V=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),q=parseInt(D.borderBottomWidth,10);let Q=0,U=0;const J="offsetWidth"in R?R.offsetWidth-R.clientWidth-B-W:0,X="offsetHeight"in R?R.offsetHeight-R.clientHeight-V-q:0,Y="offsetWidth"in R?R.offsetWidth===0?0:z/R.offsetWidth:0,ae="offsetHeight"in R?R.offsetHeight===0?0:P/R.offsetHeight:0;if(p===R)Q=s==="start"?A:s==="end"?A-m:s==="nearest"?Ps(y,y+m,m,V,q,y+A,y+A+x,x):A-m/2,U=l==="start"?F:l==="center"?F-g/2:l==="end"?F-g:Ps(b,b+g,g,B,W,b+F,b+F+C,C),Q=Math.max(0,Q+y),U=Math.max(0,U+b);else{Q=s==="start"?A-H-V:s==="end"?A-T+q+X:s==="nearest"?Ps(H,T,P,V,q+X,A,A+x,x):A-(H+P/2)+X/2,U=l==="start"?F-_-B:l==="center"?F-(_+z/2)+J/2:l==="end"?F-L+W+J:Ps(_,L,z,B,W+J,F,F+C,C);const{scrollLeft:oe,scrollTop:ne}=R;Q=ae===0?0:Math.max(0,Math.min(ne+Q/ae,R.scrollHeight-P/ae+X)),U=Y===0?0:Math.max(0,Math.min(oe+U/Y,R.scrollWidth-z/Y+J)),A+=ne-Q,F+=oe-U}j.push({el:R,top:Q,left:U})}return j},KO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QO(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(ih(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of ih(e,KO(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const pr=e=>{const[,,,,t]=Or();return t?`${e}-css-var`:""};var ut={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},w1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,C=d.useState(!1),w=te(C,2),E=w[0],S=w[1],k=d.useState(0),O=te(k,2),$=O[0],I=O[1],N=d.useState(0),A=te(N,2),F=A[0],j=A[1],M=x||E,R=i>0&&s,P=function(){b(u)},z=function(D){(D.key==="Enter"||D.code==="Enter"||D.keyCode===ut.ENTER)&&P()};d.useEffect(function(){if(!M&&i>0){var D=Date.now()-F,B=setTimeout(function(){P()},i*1e3-F);return function(){c&&clearTimeout(B),j(Date.now()-D)}}},[i,M,y]),d.useEffect(function(){if(!M&&R&&(c||F===0)){var D=performance.now(),B,V=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(q){var Q=q+F-D,U=Math.min(Q/(i*1e3),1);I(U*100),U<1&&W()})};return V(),function(){c&&cancelAnimationFrame(B)}}},[i,F,M,R,y]);var H=d.useMemo(function(){return dt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),L=Br(H,!0),T=100-(!$||$<0?0:$>100?100:$),_="".concat(n,"-notice");return d.createElement("div",Ge({},g,{ref:t,className:me(_,o,G({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(D){var B;S(!0),g==null||(B=g.onMouseEnter)===null||B===void 0||B.call(g,D)},onMouseLeave:function(D){var B;S(!1),g==null||(B=g.onMouseLeave)===null||B===void 0||B.call(g,D)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Ge({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:z,"aria-label":"Close"},L,{onClick:function(D){D.preventDefault(),D.stopPropagation(),P()}}),H.closeIcon),R&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),C1=fe.createContext({}),ZO=function(e){var t=e.children,n=e.classNames;return fe.createElement(C1.Provider,{value:{classNames:n}},t)},sh=8,lh=3,ch=16,JO=function(e){var t={offset:sh,threshold:lh,gap:ch};if(e&&dt(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:sh,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:lh,t.gap=(o=e.gap)!==null&&o!==void 0?o:ch}return[!!e,t]},eI=["className","style","classNames","styles"],tI=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,a=e.style,i=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=nn(C1),f=u.classNames,p=Ke({}),v=ct(null),h=te(v,2),g=h[0],m=h[1],b=ct([]),y=te(b,2),x=y[0],C=y[1],w=t.map(function(j){return{config:j,key:String(j.key)}}),E=JO(c),S=te(E,2),k=S[0],O=S[1],$=O.offset,I=O.threshold,N=O.gap,A=k&&(x.length>0||w.length<=I),F=typeof i=="function"?i(n):i;return mt(function(){k&&x.length>1&&C(function(j){return j.filter(function(M){return w.some(function(R){var P=R.key;return M===P})})})},[x,w,k]),mt(function(){var j;if(k&&p.current[(j=w[w.length-1])===null||j===void 0?void 0:j.key]){var M;m(p.current[(M=w[w.length-1])===null||M===void 0?void 0:M.key])}},[w,k]),fe.createElement(c1,Ge({key:n,className:me(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,G(G({},"".concat(r,"-stack"),!!k),"".concat(r,"-stack-expanded"),A)),style:a,keys:w,motionAppear:!0},F,{onAllRemoved:function(){s(n)}}),function(j,M){var R=j.config,P=j.className,z=j.style,H=j.index,L=R,T=L.key,_=L.times,D=String(T),B=R,V=B.className,W=B.style,q=B.classNames,Q=B.styles,U=Dt(B,eI),J=w.findIndex(function(ce){return ce.key===D}),X={};if(k){var Y=w.length-1-(J>-1?J:H-1),ae=n==="top"||n==="bottom"?"-50%":"0";if(Y>0){var oe,ne,ue;X.height=A?(oe=p.current[D])===null||oe===void 0?void 0:oe.offsetHeight:g==null?void 0:g.offsetHeight;for(var pe=0,be=0;be<Y;be++){var Se;pe+=((Se=p.current[w[w.length-1-be].key])===null||Se===void 0?void 0:Se.offsetHeight)+N}var he=(A?pe:Y*$)*(n.startsWith("top")?1:-1),ke=!A&&g!==null&&g!==void 0&&g.offsetWidth&&(ne=p.current[D])!==null&&ne!==void 0&&ne.offsetWidth?((g==null?void 0:g.offsetWidth)-$*2*(Y<3?Y:3))/((ue=p.current[D])===null||ue===void 0?void 0:ue.offsetWidth):1;X.transform="translate3d(".concat(ae,", ").concat(he,"px, 0) scaleX(").concat(ke,")")}else X.transform="translate3d(".concat(ae,", 0, 0)")}return fe.createElement("div",{ref:M,className:me("".concat(r,"-notice-wrapper"),P,q==null?void 0:q.wrapper),style:K(K(K({},z),X),Q==null?void 0:Q.wrapper),onMouseEnter:function(){return C(function(ce){return ce.includes(D)?ce:[].concat(_e(ce),[D])})},onMouseLeave:function(){return C(function(ce){return ce.filter(function(de){return de!==D})})}},fe.createElement(w1,Ge({},U,{ref:function(ce){J>-1?p.current[D]=ce:delete p.current[D]},prefixCls:r,classNames:q,styles:Q,className:me(V,f==null?void 0:f.notice),style:W,times:_,key:T,eventKey:T,onNoticeClose:l,hovering:k&&x.length>0})))})},nI=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=te(p,2),h=v[0],g=v[1],m=function(k){var O,$=h.find(function(I){return I.key===k});$==null||(O=$.onClose)===null||O===void 0||O.call($),g(function(I){return I.filter(function(N){return N.key!==k})})};d.useImperativeHandle(t,function(){return{open:function(k){g(function(O){var $=_e(O),I=$.findIndex(function(F){return F.key===k.key}),N=K({},k);if(I>=0){var A;N.times=(((A=O[I])===null||A===void 0?void 0:A.times)||0)+1,$[I]=N}else N.times=0,$.push(N);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(k){m(k)},destroy:function(){g([])}}});var b=d.useState({}),y=te(b,2),x=y[0],C=y[1];d.useEffect(function(){var k={};h.forEach(function(O){var $=O.placement,I=$===void 0?"topRight":$;I&&(k[I]=k[I]||[],k[I].push(O))}),Object.keys(x).forEach(function(O){k[O]=k[O]||[]}),C(k)},[h]);var w=function(k){C(function(O){var $=K({},O),I=$[k]||[];return I.length||delete $[k],$})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return wp(d.createElement(d.Fragment,null,S.map(function(k){var O=x[k],$=d.createElement(tI,{key:k,configList:O,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:u});return f?f($,{prefixCls:r,key:k}):$})),o)}),rI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],oI=function(){return document.body},uh=0;function aI(){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(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function iI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?oI:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Dt(e,rI),p=d.useState(),v=te(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(nI,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=te(y,2),C=x[0],w=x[1],E=Vt(function(k){var O=aI(f,k);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(uh),uh+=1),w(function($){return[].concat(_e($),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function(k){w(function(O){return[].concat(_e(O),[{type:"close",key:k}])})},destroy:function(){w(function(k){return[].concat(_e(k),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&C.length){C.forEach(function($){switch($.type){case"open":m.current.open($.config);break;case"close":m.current.close($.key);break;case"destroy":m.current.destroy();break}});var k,O;w(function($){return(k!==$||!O)&&(k=$,O=$.filter(function(I){return!C.includes(I)})),O})}},[C]),[S,b]}var sI={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"},lI=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:sI}))},fs=d.forwardRef(lI);const S1=fe.createContext(void 0),bo=100,cI=10,uI=bo*cI,E1={Modal:bo,Drawer:bo,Popover:bo,Popconfirm:bo,Tooltip:bo,Tour:bo,FloatButton:bo},dI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fI(e){return e in E1}const dc=(e,t)=>{const[,n]=Or(),r=fe.useContext(S1),o=fI(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+E1[e]:i+=dI[e],a=[r===void 0?t:i,i]}return a},pI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new Zt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),C=new Zt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
259
|
-
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},yn(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
260
|
-
${t}-move-up-appear,
|
|
261
|
-
${t}-move-up-enter
|
|
262
|
-
`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
263
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
264
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
265
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},mI=e=>({zIndexPopup:e.zIndexPopupBase+uI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$1=Fn("Message",e=>{const t=rn(e,{height:150});return pI(t)},mI);var gI=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 hI={info:d.createElement(VO,null),success:d.createElement(v1,null),error:d.createElement(uc,null),warning:d.createElement(b1,null),loading:d.createElement(fs,null)},k1=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:me(`${e}-custom-content`,`${e}-${t}`)},n||hI[t],d.createElement("span",null,r)),vI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=gI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(qt),l=t||s("message"),c=pr(l),[u,f,p]=$1(l,c);return u(d.createElement(w1,Object.assign({},i,{prefixCls:l,className:me(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(k1,{prefixCls:l,type:r,icon:o},a)})))};function bI(e,t){return{motionName:t??`${e}-move-up`}}function Kp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var yI=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 xI=8,wI=3,CI=({children:e,prefixCls:t})=>{const n=pr(t),[r,o,a]=$1(t,n);return r(d.createElement(ZO,{classNames:{list:me(o,a,n)}},e))},SI=(e,{prefixCls:t,key:n})=>d.createElement(CI,{prefixCls:t,key:n},e),EI=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=wI,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(qt),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??xI}),m=()=>me({[`${h}-rtl`]:s??v==="rtl"}),b=()=>bI(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(Gp,{className:`${h}-close-icon`})),[x,C]=iI({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:SI});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),C});let dh=0;function O1(e){const t=d.useRef(null);return ic(),[d.useMemo(()=>{const n=a=>{var i;(i=t.current)===null||i===void 0||i.close(a)},r=a=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:i,prefixCls:s,message:l}=t.current,c=`${s}-notice`,{content:u,icon:f,type:p,key:v,className:h,style:g,onClose:m}=a,b=yI(a,["content","icon","type","key","className","style","onClose"]);let y=v;return y==null&&(dh+=1,y=`antd-message-${dh}`),Kp(x=>(i(Object.assign(Object.assign({},b),{key:y,content:d.createElement(k1,{prefixCls:s,type:p,icon:f},u),placement:"top",className:me(p&&`${c}-${p}`,h,l==null?void 0:l.className),style:Object.assign(Object.assign({},l==null?void 0:l.style),g),onClose:()=>{m==null||m(),x()}})),()=>{n(y)}))},o={open:r,destroy:a=>{var i;a!==void 0?n(a):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(a=>{const i=(s,l,c)=>{let u;s&&typeof s=="object"&&"content"in s?u=s:u={content:s};let f,p;typeof l=="function"?p=l:(f=l,p=c);const v=Object.assign(Object.assign({onClose:p,duration:f},u),{type:a});return r(v)};o[a]=i}),o},[]),d.createElement(EI,Object.assign({key:"message-holder"},e,{ref:t}))]}function $I(e){return O1(e)}function I1(e,t){this.v=e,this.k=t}function Wn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Wn=function(a,i,s,l){function c(u,f){Wn(a,u,function(p){return this._invoke(u,f,p)})}i?o?o(a,i,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[i]=s:(c("next",0),c("throw",1),c("return",2))},Wn(e,t,n,r)}function Qp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return Wn(y,"_invoke",(function(x,C,w){var E,S,k,O=0,$=w||[],I=!1,N={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(F,j){return E=F,S=0,k=e,N.n=j,i}};function A(F,j){for(S=F,k=j,t=0;!I&&O&&!M&&t<$.length;t++){var M,R=$[t],P=N.p,z=R[2];F>3?(M=z===j)&&(k=R[(S=R[4])?5:(S=3,3)],R[4]=R[5]=e):R[0]<=P&&((M=F<2&&P<R[1])?(S=0,N.v=j,N.n=R[1]):P<z&&(M=F<3||R[0]>j||j>z)&&(R[4]=F,R[5]=j,N.n=z,S=0))}if(M||F>1)return i;throw I=!0,j}return function(F,j,M){if(O>1)throw TypeError("Generator is already running");for(I&&j===1&&A(j,M),S=j,k=M;(t=S<2?e:k)||!I;){E||(S?S<3?(S>1&&(N.n=-1),A(S,k)):N.n=k:N.v=k);try{if(O=2,E){if(S||(F="next"),t=E[F]){if(!(t=t.call(E,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&(k=TypeError("The iterator does not provide a '"+F+"' method"),S=1);E=e}else if((t=(I=N.n<0)?k:x.call(C,N))!==i)break}catch(R){E=e,S=1,k=R}finally{O=1}}return{value:t,done:I}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Wn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,Wn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,Wn(f,"constructor",c),Wn(c,"constructor",l),l.displayName="GeneratorFunction",Wn(c,o,"GeneratorFunction"),Wn(f),Wn(f,o,"Generator"),Wn(f,r,function(){return this}),Wn(f,"toString",function(){return"[object Generator]"}),(Qp=function(){return{w:a,m:p}})()}function Pl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof I1?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(Wn(Pl.prototype),Wn(Pl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Wn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function M1(e,t,n,r,o){return new Pl(Qp().w(e,t,n,r),o||Promise)}function kI(e,t,n,r,o){var a=M1(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function OI(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function fh(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(dt(e)+" is not iterable")}function Xn(){var e=Qp(),t=e.m(Xn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,f){return l(c.a,o[u],f)},delegateYield:function(u,f,p){return s.resultName=f,l(c.d,fh(u),p)},finish:function(u){return l(c.f,u)}},l=function(u,f,p){c.p=s.prev,c.n=s.next;try{return u(f,p)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Xn=function(){return{wrap:function(i,s,l,c){return e.w(a(i),s,l,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,s){return new I1(i,s)},AsyncIterator:Pl,async:function(i,s,l,c,u){return(r(s)?M1:kI)(a(i),s,l,c,u)},keys:OI,values:fh}})()}function ph(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){ph(a,r,o,i,s,"next",l)}function s(l){ph(a,r,o,i,s,"throw",l)}i(void 0)})}}var ps=K({},Ab),II=ps.version,su=ps.render,MI=ps.unmountComponentAtNode,fc;try{var FI=Number((II||"").split(".")[0]);FI>=18&&(fc=ps.createRoot)}catch{}function mh(e){var t=ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e)}var Al="__rc_react_root__";function NI(e,t){mh(!0);var n=t[Al]||fc(t);mh(!1),n.render(e),t[Al]=n}function jI(e,t){su==null||su(e,t)}function PI(e,t){if(fc){NI(e,t);return}jI(e,t)}function AI(e){return Ad.apply(this,arguments)}function Ad(){return Ad=sa(Xn().mark(function e(t){return Xn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Al])===null||r===void 0||r.unmount(),delete t[Al]}));case 1:case"end":return n.stop()}},e)})),Ad.apply(this,arguments)}function RI(e){MI(e)}function TI(e){return Rd.apply(this,arguments)}function Rd(){return Rd=sa(Xn().mark(function e(t){return Xn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(fc===void 0){n.next=2;break}return n.abrupt("return",AI(t));case 2:RI(t);case 3:case"end":return n.stop()}},e)})),Rd.apply(this,arguments)}const DI=(e,t)=>(PI(e,t),()=>TI(t));let _I=DI;function F1(e){return _I}const lu=()=>({height:0,opacity:0}),gh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},BI=e=>({height:e?e.offsetHeight:0}),cu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",hh=(e=Xi)=>({motionName:`${e}-motion-collapse`,onAppearStart:lu,onEnterStart:lu,onAppearActive:gh,onEnterActive:gh,onLeaveStart:BI,onLeaveActive:lu,onAppearEnd:cu,onEnterEnd:cu,onLeaveEnd:cu,motionDeadline:500}),N1=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function to(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const pc=(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(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),zI=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(",")}}}}},HI=Hk("Wave",zI),Zp=`${Xi}-wave-target`;function LI(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"&&e!=="canvastext"}function VI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(LI))!==null&&t!==void 0?t:null}function uu(e){return Number.isNaN(e)?0:e}const WI=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=d.useRef(null),i=d.useRef(null);d.useEffect(()=>{i.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[v,h]=d.useState(0),[g,m]=d.useState(0),[b,y]=d.useState(0),[x,C]=d.useState(!1),w={left:f,top:v,width:g,height:b,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(w["--wave-color"]=s);function E(){const k=getComputedStyle(n);l(VI(n));const O=k.position==="static",{borderLeftWidth:$,borderTopWidth:I}=k;p(O?n.offsetLeft:uu(-Number.parseFloat($))),h(O?n.offsetTop:uu(-Number.parseFloat(I))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:A,borderBottomLeftRadius:F,borderBottomRightRadius:j}=k;u([N,A,j,F].map(M=>uu(Number.parseFloat(M))))}if(d.useEffect(()=>{if(n){const k=Tt(()=>{E(),C(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{Tt.cancel(k),O==null||O.disconnect()}}},[n]),!x)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Zp));return d.createElement(ia,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,O)=>{var $,I;if(O.deadline||O.propertyName==="opacity"){const N=($=a.current)===null||$===void 0?void 0:$.parentElement;(I=i.current)===null||I===void 0||I.call(i).then(()=>{N==null||N.remove()})}return!1}},({className:k},O)=>d.createElement("div",{ref:kr(a,O),className:me(t,k,{"wave-quick":S}),style:w}))},qI=(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 a=F1();let i=null;function s(){return i}i=a(d.createElement(WI,Object.assign({},t,{target:e,registerUnmount:s})),o)},UI=(e,t,n)=>{const{wave:r}=d.useContext(qt),[,o,a]=Or(),i=Vt(l=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const u=c.querySelector(`.${Zp}`)||c,{showEffect:f}=r||{};(f||qI)(u,{className:t,token:o,component:n,event:l,hashId:a})}),s=d.useRef(null);return l=>{Tt.cancel(s.current),s.current=Tt(()=>{i(l)})}},mc=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=nn(qt),a=Ke(null),i=o("wave"),[,s]=HI(i),l=UI(a,me(i,s),r);if(fe.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=p=>{!pc(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!fe.isValidElement(t))return t??null;const c=Za(t)?kr(cs(t),a):a;return Mo(t,{ref:c})},Ir=e=>{const t=fe.useContext(ea);return fe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},j1=d.createContext(null),Ro=(e,t)=>{const n=d.useContext(j1),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return me(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},YI=e=>{const{children:t}=e;return d.createElement(j1.Provider,{value:null},t)};var XI=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 P1=d.createContext(void 0),GI=e=>{const{getPrefixCls:t,direction:n}=d.useContext(qt),{prefixCls:r,size:o,className:a}=e,i=XI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Or(),c=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=me(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(P1.Provider,{value:o},d.createElement("div",Object.assign({},i,{className:u})))},vh=/^[\u4E00-\u9FA5]{2}$/,Td=vh.test.bind(vh);function bh(e){return typeof e=="string"}function du(e){return e==="text"||e==="link"}function KI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bh(e.type)&&Td(e.props.children)?Mo(e,{children:e.props.children.split("").join(n)}):bh(e)?Td(e)?fe.createElement("span",null,e.split("").join(n)):fe.createElement("span",null,e):y1(e)?fe.createElement("span",null,e):e}function QI(e,t){let n=!1;const r=[];return fe.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=i}),fe.Children.map(r,o=>KI(o,t))}["default","primary","danger"].concat(_e(ta));const Dd=zr((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=me(`${a}-icon`,n);return fe.createElement("span",{ref:t,className:i,style:r},o)}),yh=zr((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=me(`${n}-loading-icon`,r);return fe.createElement(Dd,{prefixCls:n,className:i,style:o,ref:t},fe.createElement(fs,{className:a}))}),fu=()=>({width:0,opacity:0,transform:"scale(0)"}),pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ZI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?fe.createElement(yh,{prefixCls:t,className:o,style:a}):fe.createElement(ia,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:fu,onAppearActive:pu,onEnterStart:fu,onEnterActive:pu,onLeaveStart:pu,onLeaveActive:fu},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},a),c);return fe.createElement(yh,{prefixCls:t,className:me(o,l),style:f,ref:u})})},xh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),JI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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}},xh(`${t}-primary`,o),xh(`${t}-danger`,a)]}};var eM=["b"],tM=["v"],mu=function(e){return Math.round(Number(e||0))},nM=function(e){if(e instanceof Qt)return e;if(e&&dt(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=Dt(t,eM);return K(K({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},_d=(function(e){jo(n,e);var t=Po(n);function n(r){return xn(this,n),t.call(this,nM(r))}return wn(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=mu(r.s*100),a=mu(r.b*100),i=mu(r.h),s=r.a,l="hsb(".concat(i,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(i,", ").concat(o,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,a=Dt(r,tM);return K(K({},a),{},{b:o,a:this.a})}}]),n})(Qt);const rM=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",oM=(e,t)=>e?rM(e,t):"";let Bd=(function(){function e(t){xn(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(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new _d(this.colors[0].color.metaColor)):this.metaColor=new _d(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return wn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return oM(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,r)=>{const o=t.colors[r];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const aM=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
266
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
267
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),iM=e=>({animationDuration:e,animationFillMode:"both"}),sM=e=>({animationDuration:e,animationFillMode:"both"}),Jp=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
268
|
-
${a}${e}-enter,
|
|
269
|
-
${a}${e}-appear
|
|
270
|
-
`]:Object.assign(Object.assign({},iM(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},sM(r)),{animationPlayState:"paused"}),[`
|
|
271
|
-
${a}${e}-enter${e}-enter-active,
|
|
272
|
-
${a}${e}-appear${e}-appear-active
|
|
273
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lM=new Zt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cM=new Zt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),uM=new Zt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dM=new Zt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fM=new Zt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pM=new Zt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mM=new Zt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gM=new Zt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hM={"move-up":{inKeyframes:mM,outKeyframes:gM},"move-down":{inKeyframes:lM,outKeyframes:cM},"move-left":{inKeyframes:uM,outKeyframes:dM},"move-right":{inKeyframes:fM,outKeyframes:pM}},Rl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hM[t];return[Jp(r,o,a,e.motionDurationMid),{[`
|
|
274
|
-
${r}-enter,
|
|
275
|
-
${r}-appear
|
|
276
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},em=new Zt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),tm=new Zt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),nm=new Zt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),rm=new Zt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vM=new Zt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bM=new Zt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yM=new Zt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xM=new Zt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wM={"slide-up":{inKeyframes:em,outKeyframes:tm},"slide-down":{inKeyframes:nm,outKeyframes:rm},"slide-left":{inKeyframes:vM,outKeyframes:bM},"slide-right":{inKeyframes:yM,outKeyframes:xM}},Tl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=wM[t];return[Jp(r,o,a,e.motionDurationMid),{[`
|
|
277
|
-
${r}-enter,
|
|
278
|
-
${r}-appear
|
|
279
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},om=new Zt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CM=new Zt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),wh=new Zt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ch=new Zt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),SM=new Zt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),EM=new Zt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$M=new Zt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),kM=new Zt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),OM=new Zt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IM=new Zt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),MM=new Zt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FM=new Zt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NM={zoom:{inKeyframes:om,outKeyframes:CM},"zoom-big":{inKeyframes:wh,outKeyframes:Ch},"zoom-big-fast":{inKeyframes:wh,outKeyframes:Ch},"zoom-left":{inKeyframes:$M,outKeyframes:kM},"zoom-right":{inKeyframes:OM,outKeyframes:IM},"zoom-up":{inKeyframes:SM,outKeyframes:EM},"zoom-down":{inKeyframes:MM,outKeyframes:FM}},jM=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=NM[t];return[Jp(r,o,a,e.motionDurationFast),{[`
|
|
280
|
-
${r}-enter,
|
|
281
|
-
${r}-appear
|
|
282
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},PM=e=>e instanceof Bd?e:new Bd(e),AM=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new _d(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},A1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return rn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},R1=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ll(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:ll(l),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:ll(c),v=AM(new Bd(e.colorBgSolid),"#fff")?"#000":"#fff",h=ta.reduce((g,m)=>Object.assign(Object.assign({},g),{[`${m}ShadowColor`]:`0 ${xe(e.controlOutlineWidth)} 0 ${$i(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,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:v,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},RM=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xe(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`]:ds(),"> a":{color:"currentColor"},"&:not(:disabled)":Qy(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}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},T1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),TM=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),DM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gc=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},T1(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),_M=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},DM(e))}),BM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hc=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?BM:_M;return Object.assign(Object.assign({},o(e)),T1(e.componentCls,t,n))},vc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},hc(e,r,o))}),bc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},hc(e,r,o))}),yc=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xc=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},hc(e,n,r))}),Zr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},hc(e,r,o,n))}),zM=e=>{const{componentCls:t}=e;return ta.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=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`]},vc(e,e.colorTextLightSolid,o,{background:i},{background:c})),bc(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),yc(e)),xc(e,a,{color:o,background:s},{color:o,background:l})),Zr(e,o,"link",{color:i},{color:c})),Zr(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},HM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},vc(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),yc(e)),xc(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),gc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),LM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},bc(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),yc(e)),xc(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Zr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),VM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},vc(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),bc(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yc(e)),xc(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Zr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),WM=e=>Object.assign(Object.assign({},Zr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),qM=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:HM(e),[`${t}-color-primary`]:LM(e),[`${t}-color-dangerous`]:VM(e),[`${t}-color-link`]:WM(e)},zM(e))},UM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},bc(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),vc(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),am=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${xe(l)} ${xe(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:TM(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},YM=e=>{const t=rn(e,{fontSize:e.contentFontSize});return am(t,e.componentCls)},XM=e=>{const t=rn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return am(t,`${e.componentCls}-sm`)},GM=e=>{const t=rn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return am(t,`${e.componentCls}-lg`)},KM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},QM=Fn("Button",e=>{const t=A1(e);return[RM(t),YM(t),XM(t),GM(t),KM(t),qM(t),UM(t),JI(t)]},R1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ZM(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function JM(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 ms(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},ZM(e,r,t,n)),JM(n,r,t))}}function eF(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function tF(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 nF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eF(e,t,e.componentCls)),tF(e.componentCls,t))}}const rF=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},oF=lc(["Button","compact"],e=>{const t=A1(e);return[ms(t),nF(t),rF(t)]},R1);var aF=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 iF(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 sF={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},lF=fe.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:p,disabled:v,className:h,rootClassName:g,children:m,icon:b,iconPosition:y="start",ghost:x=!1,block:C=!1,htmlType:w="button",classNames:E,style:S={},autoInsertSpace:k,autoFocus:O}=e,$=aF(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:N}=fe.useContext(qt),A=u||(N==null?void 0:N.shape)||"default",[F,j]=en(()=>{if(i&&s)return[i,s];if(l||c){const qe=sF[I]||[];return c?["danger",qe[1]]:qe}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[l,i,s,c,N==null?void 0:N.variant,N==null?void 0:N.color]),M=F==="danger"?"dangerous":F,{getPrefixCls:R,direction:P,autoInsertSpace:z,className:H,style:L,classNames:T,styles:_}=lo("button"),D=(n=k??z)!==null&&n!==void 0?n:!0,B=R("btn",a),[V,W,q]=QM(B),Q=nn(Kn),U=v??Q,J=nn(P1),X=en(()=>iF(o),[o]),[Y,ae]=ct(X.loading),[oe,ne]=ct(!1),ue=Ke(null),pe=ls(t,ue),be=Nb.count(m)===1&&!b&&!du(j),Se=Ke(!0);fe.useEffect(()=>(Se.current=!1,()=>{Se.current=!0}),[]),Ut(()=>{let qe=null;X.delay>0?qe=setTimeout(()=>{qe=null,ae(!0)},X.delay):ae(X.loading);function ve(){qe&&(clearTimeout(qe),qe=null)}return ve},[X.delay,X.loading]),mt(()=>{if(!ue.current||!D)return;const qe=ue.current.textContent||"";be&&Td(qe)?oe||ne(!0):oe&&ne(!1)}),mt(()=>{O&&ue.current&&ue.current.focus()},[]);const he=fe.useCallback(qe=>{var ve;if(Y||U){qe.preventDefault();return}(ve=e.onClick)===null||ve===void 0||ve.call(e,qe)},[e.onClick,Y,U]),{compactSize:ke,compactItemClassnames:ce}=Ro(B,P),de={large:"lg",small:"sm",middle:void 0},Ae=Ir(qe=>{var ve,it;return(it=(ve=f??ke)!==null&&ve!==void 0?ve:J)!==null&&it!==void 0?it:qe}),ie=Ae&&(r=de[Ae])!==null&&r!==void 0?r:"",We=Y?"loading":b,ze=to($,["navigate"]),De=me(B,W,q,{[`${B}-${A}`]:A!=="default"&&A,[`${B}-${I}`]:I,[`${B}-dangerous`]:c,[`${B}-color-${M}`]:M,[`${B}-variant-${j}`]:j,[`${B}-${ie}`]:ie,[`${B}-icon-only`]:!m&&m!==0&&!!We,[`${B}-background-ghost`]:x&&!du(j),[`${B}-loading`]:Y,[`${B}-two-chinese-chars`]:oe&&D&&!Y,[`${B}-block`]:C,[`${B}-rtl`]:P==="rtl",[`${B}-icon-end`]:y==="end"},ce,h,g,H),Ee=Object.assign(Object.assign({},L),S),Ve=me(E==null?void 0:E.icon,T.icon),Ne=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),_.icon||{}),Fe=b&&!Y?fe.createElement(Dd,{prefixCls:B,className:Ve,style:Ne},b):o&&typeof o=="object"&&o.icon?fe.createElement(Dd,{prefixCls:B,className:Ve,style:Ne},o.icon):fe.createElement(ZI,{existIcon:!!b,prefixCls:B,loading:Y,mount:Se.current}),$e=m||m===0?QI(m,be&&D):null;if(ze.href!==void 0)return V(fe.createElement("a",Object.assign({},ze,{className:me(De,{[`${B}-disabled`]:U}),href:U?void 0:ze.href,style:Ee,onClick:he,ref:pe,tabIndex:U?-1:0,"aria-disabled":U}),Fe,$e));let je=fe.createElement("button",Object.assign({},$,{type:w,className:De,style:Ee,onClick:he,disabled:U,ref:pe}),Fe,$e,ce&&fe.createElement(oF,{prefixCls:B}));return du(j)||(je=fe.createElement(mc,{component:"Button",disabled:Y},je)),V(je)}),wc=lF;wc.Group=GI;wc.__ANT_BUTTON=!0;var D1=d.createContext(null),Sh=[];function cF(e,t){var n=d.useState(function(){if(!er())return null;var h=document.createElement("div");return h}),r=te(n,1),o=r[0],a=d.useRef(!1),i=d.useContext(D1),s=d.useState(Sh),l=te(s,2),c=l[0],u=l[1],f=i||(a.current?void 0:function(h){u(function(g){var m=[h].concat(_e(g));return m})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Ut(function(){return e?i?i(p):p():v(),v},[e]),Ut(function(){c.length&&(c.forEach(function(h){return h()}),u(Sh))},[c]),[o,f]}function uF(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,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ro(`
|
|
283
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
284
|
-
`).concat(u,`
|
|
285
|
-
`).concat(f,`
|
|
286
|
-
}`),t)}catch(h){console.error(h),o=l,a=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vi(t),{width:p,height:v}}function dF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:uF(e)}function fF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pF="rc-util-locker-".concat(Date.now()),Eh=0;function mF(e){var t=!!e,n=d.useState(function(){return Eh+=1,"".concat(pF,"_").concat(Eh)}),r=te(n,1),o=r[0];Ut(function(){if(t){var a=dF(document.body).width,i=fF();ro(`
|
|
287
|
-
html body {
|
|
288
|
-
overflow-y: hidden;
|
|
289
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
290
|
-
}`),o)}else Vi(o);return function(){Vi(o)}},[t,o])}var gF=!1;function hF(e){return gF}var $h=function(e){return e===!1?!1:!er()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},_1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=d.useState(n),c=te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=d.useState(function(){return $h(o)}),h=te(v,2),g=h[0],m=h[1];d.useEffect(function(){var I=$h(o);m(I??null)});var b=cF(p&&!g),y=te(b,2),x=y[0],C=y[1],w=g??x;mF(r&&n&&er()&&(w===x||w===document.body));var E=null;if(s&&Za(s)&&t){var S=s;E=S.ref}var k=ls(E,t);if(!p||!er()||g===void 0)return null;var O=w===!1||hF(),$=s;return t&&($=d.cloneElement(s,{ref:k})),d.createElement(D1.Provider,{value:C},O?$:wp($,w))});function vF(){var e=K({},d);return e.useId}var kh=0,Oh=vF();const im=Oh?(function(e){var t=Oh();return e||t}):(function(e){var t=d.useState("ssr-id"),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){var a=kh;kh+=1,o("rc_unique_".concat(a))},[]),e||r});var Vo="RC_FORM_INTERNAL_HOOKS",sn=function(){Hn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},na=d.createContext({getFieldValue:sn,getFieldsValue:sn,getFieldError:sn,getFieldWarning:sn,getFieldsError:sn,isFieldsTouched:sn,isFieldTouched:sn,isFieldValidating:sn,isFieldsValidating:sn,resetFields:sn,setFields:sn,setFieldValue:sn,setFieldsValue:sn,validateFields:sn,submit:sn,getInternalHooks:function(){return sn(),{dispatch:sn,initEntityValue:sn,registerField:sn,useSubscribe:sn,setInitialValues:sn,destroyForm:sn,setCallbacks:sn,registerWatch:sn,getFields:sn,setValidateMessages:sn,setPreserve:sn,getInitialValue:sn}}}),Gi=d.createContext(null);function zd(e){return e==null?[]:Array.isArray(e)?e:[e]}function bF(e){return e&&!!e._init}function Hd(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ld=Hd();function yF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function xF(e,t,n){if(Tp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&zi(o,n.prototype),o}function Vd(e){var t=typeof Map=="function"?new Map:void 0;return Vd=function(n){if(n===null||!yF(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return xF(n,arguments,Hi(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),zi(r,n)},Vd(e)}var wF=/%[sdj%]/g,CF=function(){};function Wd(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 ur(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(wF,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function SF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function An(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||SF(t)&&typeof e=="string"&&!e)}function EF(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,_e(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function Ih(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function $F(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,_e(e[n]||[]))}),t}var Mh=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;return xn(this,n),a=t.call(this,"Async Validation Error"),G(Wt(a),"errors",void 0),G(Wt(a),"fields",void 0),a.errors=r,a.fields=o,a}return wn(n)})(Vd(Error));function kF(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(m){return r(m),m.length?v(new Mh(m,Wd(m))):p(o)},g=$F(e);Ih(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new Mh(u,Wd(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?Ih(m,n,h):EF(m,n,h)})});return f.catch(function(p){return p}),f}function OF(e){return!!(e&&e.message!==void 0)}function IF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Fh(e,t){return function(n){var r;return e.fullFields?r=IF(t,e.fullFields):r=t[n.field||e.fullField],OF(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 Nh(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];dt(r)==="object"&&dt(e[n])==="object"?e[n]=K(K({},e[n]),r):e[n]=r}}return e}var ga="enum",MF=function(e,t,n,r,o){e[ga]=Array.isArray(e[ga])?e[ga]:[],e[ga].indexOf(t)===-1&&r.push(ur(o.messages[ga],e.fullField,e[ga].join(", ")))},FF=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ur(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(ur(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},NF=function(e,t,n,r,o){var a=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f=typeof t=="number",p=typeof t=="string",v=Array.isArray(t);if(f?u="number":p?u="string":v&&(u="array"),!u)return!1;v&&(c=t.length),p&&(c=t.replace(l,"_").length),a?c!==e.len&&r.push(ur(o.messages[u].len,e.fullField,e.len)):i&&!s&&c<e.min?r.push(ur(o.messages[u].min,e.fullField,e.min)):s&&!i&&c>e.max?r.push(ur(o.messages[u].max,e.fullField,e.max)):i&&s&&(c<e.min||c>e.max)&&r.push(ur(o.messages[u].range,e.fullField,e.min,e.max))},B1=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||An(t,a||e.type))&&r.push(ur(o.messages.required,e.fullField))},As;const jF=(function(){if(As)return As;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return As=new RegExp("(?:^".concat(C,"$)"),"i"),As});var jh={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},ki={integer:function(e){return ki.number(e)&&parseInt(e,10)===e},float:function(e){return ki.number(e)&&!ki.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return dt(e)==="object"&&!ki.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(jh.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(jF())},hex:function(e){return typeof e=="string"&&!!e.match(jh.hex)}},PF=function(e,t,n,r,o){if(e.required&&t===void 0){B1(e,t,n,r,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?ki[i](t)||r.push(ur(o.messages.types[i],e.fullField,e.type)):i&&dt(t)!==e.type&&r.push(ur(o.messages.types[i],e.fullField,e.type))},AF=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(ur(o.messages.whitespace,e.fullField))};const Gt={required:B1,whitespace:AF,type:PF,range:NF,enum:MF,pattern:FF};var RF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o)}n(a)},TF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();Gt.required(e,t,r,a,o,"array"),t!=null&&(Gt.type(e,t,r,a,o),Gt.range(e,t,r,a,o))}n(a)},DF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&Gt.type(e,t,r,a,o)}n(a)},_F=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t,"date")&&!e.required)return n();if(Gt.required(e,t,r,a,o),!An(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),Gt.type(e,s,r,a,o),s&&Gt.range(e,s.getTime(),r,a,o)}}n(a)},BF="enum",zF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&Gt[BF](e,t,r,a,o)}n(a)},HF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&(Gt.type(e,t,r,a,o),Gt.range(e,t,r,a,o))}n(a)},LF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&(Gt.type(e,t,r,a,o),Gt.range(e,t,r,a,o))}n(a)},VF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&Gt.type(e,t,r,a,o)}n(a)},WF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&(Gt.type(e,t,r,a,o),Gt.range(e,t,r,a,o))}n(a)},qF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),t!==void 0&&Gt.type(e,t,r,a,o)}n(a)},UF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t,"string")&&!e.required)return n();Gt.required(e,t,r,a,o),An(t,"string")||Gt.pattern(e,t,r,a,o)}n(a)},YF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t)&&!e.required)return n();Gt.required(e,t,r,a,o),An(t)||Gt.type(e,t,r,a,o)}n(a)},XF=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":dt(t);Gt.required(e,t,r,a,o,i),n(a)},GF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(An(t,"string")&&!e.required)return n();Gt.required(e,t,r,a,o,"string"),An(t,"string")||(Gt.type(e,t,r,a,o),Gt.range(e,t,r,a,o),Gt.pattern(e,t,r,a,o),e.whitespace===!0&&Gt.whitespace(e,t,r,a,o))}n(a)},gu=function(e,t,n,r,o){var a=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(An(t,a)&&!e.required)return n();Gt.required(e,t,r,i,o,a),An(t,a)||Gt.type(e,t,r,i,o)}n(i)};const Pi={string:GF,method:VF,number:WF,boolean:DF,regexp:YF,integer:LF,float:HF,array:TF,object:qF,enum:zF,pattern:UF,date:_F,url:gu,hex:gu,email:gu,required:XF,any:RF};var gs=(function(){function e(t){xn(this,e),G(this,"rules",null),G(this,"_messages",Ld),this.define(t)}return wn(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(dt(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var o=t[r];n.rules[r]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=Nh(Hd(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,i=r,s=o;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(p){var v=[],h={};function g(b){if(Array.isArray(b)){var y;v=(y=v).concat.apply(y,_e(b))}else v.push(b)}for(var m=0;m<p.length;m++)g(p[m]);v.length?(h=Wd(v),s(v,h)):s(null,a)}if(i.messages){var c=this.messages();c===Ld&&(c=Hd()),Nh(c,i.messages),i.messages=c}else i.messages=this.messages();var u={},f=i.keys||Object.keys(this.rules);return f.forEach(function(p){var v=n.rules[p],h=a[p];v.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===t&&(a=K({},a)),h=a[p]=m.transform(h),h!=null&&(m.type=m.type||(Array.isArray(h)?"array":dt(h)))),typeof m=="function"?m={validator:m}:m=K({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=n.getType(m),u[p]=u[p]||[],u[p].push({rule:m,value:h,source:a,field:p}))})}),kF(u,i,function(p,v){var h=p.rule,g=(h.type==="object"||h.type==="array")&&(dt(h.fields)==="object"||dt(h.defaultField)==="object");g=g&&(h.required||!h.required&&p.value),h.field=p.field;function m(w,E){return K(K({},E),{},{fullField:"".concat(h.fullField,".").concat(w),fullFields:h.fullFields?[].concat(_e(h.fullFields),[w]):[w]})}function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(w)?w:[w];!i.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&h.message!==void 0&&(E=[].concat(h.message));var S=E.map(Fh(h,a));if(i.first&&S.length)return v(S);if(!g)v(S);else{if(h.required&&!p.value)return h.message!==void 0?S=[].concat(h.message).map(Fh(h,a)):i.error&&(S=[i.error(h,ur(i.messages.required,h.field))]),v(S);var k={};h.defaultField&&Object.keys(p.value).map(function(I){k[I]=h.defaultField}),k=K(K({},k),p.rule.fields);var O={};Object.keys(k).forEach(function(I){var N=k[I],A=Array.isArray(N)?N:[N];O[I]=A.map(m.bind(null,I))});var $=new e(O);$.messages(i.messages),p.rule.options&&(p.rule.options.messages=i.messages,p.rule.options.error=i.error),$.validate(p.value,p.rule.options||i,function(I){var N=[];S&&S.length&&N.push.apply(N,_e(S)),I&&I.length&&N.push.apply(N,_e(I)),v(N.length?N:null)})}}var y;if(h.asyncValidator)y=h.asyncValidator(h,p.value,b,p.source,i);else if(h.validator){try{y=h.validator(h,p.value,b,p.source,i)}catch(w){var x,C;(x=(C=console).error)===null||x===void 0||x.call(C,w),i.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}y===!0?b():y===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(w){return b(w)})},function(p){l(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Pi.hasOwnProperty(t.type))throw new Error(ur("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Pi.required:Pi[this.getType(t)]||void 0}}]),e})();G(gs,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pi[e]=t});G(gs,"warning",CF);G(gs,"messages",Ld);G(gs,"validators",Pi);var ir="'${name}' is not a valid ${type}",z1={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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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}"}},Ph=gs;function KF(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 Ah="CODE_LOGIC_ERROR";function qd(e,t,n,r,o){return Ud.apply(this,arguments)}function Ud(){return Ud=sa(Xn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return Xn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=K({},r),delete i.ruleIndex,Ph.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Ah)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Ph(G({},t,[i])),u=ka(z1,o.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(G({},t,n),K({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(m,b){var y=m.message,x=y===Ah?u.default:y;return d.isValidElement(x)?d.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(m,b){return qd("".concat(t,".").concat(b),m,l,o,a)}));case 21:return p=g.sent,g.abrupt("return",p.reduce(function(m,b){return[].concat(_e(m),_e(b))},[]));case 23:return v=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(m){return typeof m=="string"?KF(m,v):m}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ud.apply(this,arguments)}function QF(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=K(K({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];Promise.resolve().then(function(){Hn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,w)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",Hn(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(C){m(C||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=sa(Xn().mark(function f(p,v){var h,g,m;return Xn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<s.length)){b.next=12;break}return g=s[h],b.next=5,qd(i,t,g,r,a);case 5:if(m=b.sent,!m.length){b.next=9;break}return v([{errors:m,rule:g}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:p([]);case 13:case"end":return b.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return qd(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?JF(c):ZF(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function ZF(e){return Yd.apply(this,arguments)}function Yd(){return Yd=sa(Xn().mark(function e(t){return Xn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,a=(o=[]).concat.apply(o,_e(r));return a}));case 1:case"end":return n.stop()}},e)})),Yd.apply(this,arguments)}function JF(e){return Xd.apply(this,arguments)}function Xd(){return Xd=sa(Xn().mark(function e(t){var n;return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),Xd.apply(this,arguments)}function Sn(e){return zd(e)}function Rh(e,t){var n={};return t.forEach(function(r){var o=Sr(e,r);n=Cr(n,r,o)}),n}function Da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return H1(t,r,n)})}function H1(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 eN(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||dt(e)!=="object"||dt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return _e(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function tN(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&dt(t.target)==="object"&&e in t.target?t.target[e]:t}function Th(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(_e(e.slice(0,n)),[o],_e(e.slice(n,t)),_e(e.slice(t+1,r))):a<0?[].concat(_e(e.slice(0,t)),_e(e.slice(t+1,n+1)),[o],_e(e.slice(n+1,r))):e}var nN=["name"],gr=[];function hu(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var sm=(function(e){jo(n,e);var t=Po(n);function n(r){var o;if(xn(this,n),o=t.call(this,r),G(Wt(o),"state",{resetCount:0}),G(Wt(o),"cancelRegisterFunc",null),G(Wt(o),"mounted",!1),G(Wt(o),"touched",!1),G(Wt(o),"dirty",!1),G(Wt(o),"validatePromise",void 0),G(Wt(o),"prevValidating",void 0),G(Wt(o),"errors",gr),G(Wt(o),"warnings",gr),G(Wt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Sn(f)),o.cancelRegisterFunc=null}),G(Wt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(_e(p),_e(c)):[]}),G(Wt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),G(Wt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),G(Wt(o),"metaCache",null),G(Wt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=K(K({},o.getMeta()),{},{destroy:l});Il(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),G(Wt(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),C=c&&Da(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!Il(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=gr,o.warnings=gr,o.triggerMetaEvent()),u.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var w=u.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||gr),"warnings"in w&&(o.warnings=w.warnings||gr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Da(c,b,!0)){o.reRender();return}if(p&&!b.length&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Sn);if(E.some(function(S){return Da(u.relatedFields,S)})){o.reRender();return}break}default:if(C||(!h.length||b.length||p)&&hu(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),G(Wt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(sa(Xn().mark(function m(){var b,y,x,C,w,E,S;return Xn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(o.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,C=b.messageVariables,w=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function(O){return O}).filter(function(O){var $=O.validateTrigger;if(!$)return!0;var I=zd($);return I.includes(p)})),!(w&&p)){k.next=10;break}return k.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(o.validatePromise===g){k.next=10;break}return k.abrupt("return",[]);case 10:return S=QF(c,u,E,l,x,C),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr;if(o.validatePromise===g){var $;o.validatePromise=null;var I=[],N=[];($=O.forEach)===null||$===void 0||$.call(O,function(A){var F=A.rule.warningOnly,j=A.errors,M=j===void 0?gr:j;F?N.push.apply(N,_e(M)):I.push.apply(I,_e(M))}),o.errors=I,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),k.abrupt("return",S);case 13:case"end":return k.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),o.reRender()),g}),G(Wt(o),"isFieldValidating",function(){return!!o.validatePromise}),G(Wt(o),"isFieldTouched",function(){return o.touched}),G(Wt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Vo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),G(Wt(o),"getErrors",function(){return o.errors}),G(Wt(o),"getWarnings",function(){return o.warnings}),G(Wt(o),"isListField",function(){return o.props.isListField}),G(Wt(o),"isList",function(){return o.props.isList}),G(Wt(o),"isPreserve",function(){return o.props.preserve}),G(Wt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),G(Wt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return K(K({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Ha(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),G(Wt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Sr(l||c(!0),u)}),G(Wt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),C=b.getInternalHooks,w=b.getFieldsValue,E=C(Vo),S=E.dispatch,k=o.getValue(),O=m||function(F){return G({},g,F)},$=l[f],I=u!==void 0?O(k):{},N=K(K({},l),I);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,j=arguments.length,M=new Array(j),R=0;R<j;R++)M[R]=arguments[R];v?F=v.apply(void 0,M):F=tN.apply(void 0,[g].concat(M)),h&&(F=h(F,k,w(!0))),F!==k&&S({type:"updateValue",namePath:x,value:F}),$&&$.apply(void 0,M)};var A=zd(y||[]);return A.forEach(function(F){var j=N[F];N[F]=function(){j&&j.apply(void 0,arguments);var M=o.props.rules;M&&M.length&&S({type:"validateField",namePath:x,triggerName:F})}}),N}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Vo),s=i.initEntityValue;s(Wt(o))}return o}return wn(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,a=r.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,s=i(Vo),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!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 r=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),i=a.child,s=a.isFunction,l;return s?l=i:d.isValidElement(i)?l=d.cloneElement(i,this.getControlled(i.props)):(Hn(!i,"`children` of Field is not validate ReactElement."),l=i),d.createElement(d.Fragment,{key:r},l)}}]),n})(d.Component);G(sm,"contextType",na);G(sm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function lm(e){var t,n=e.name,r=Dt(e,nN),o=d.useContext(na),a=d.useContext(Gi),i=n!==void 0?Sn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(sm,Ge({key:l,name:i,isListField:s},r,{fieldContext:o}))}function L1(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(na),l=d.useContext(Gi),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=Sn(s.prefixName)||[];return[].concat(_e(g),_e(Sn(t)))},[s.prefixName,t]),p=d.useMemo(function(){return K(K({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(g){var m=f.length,b=g[m];return[u.keys[b],g.slice(m+1)]}}},[f]);if(typeof r!="function")return Hn(!1,"Form.List only accepts function as children."),null;var h=function(g,m,b){var y=b.source;return y==="internal"?!1:g!==m};return d.createElement(Gi.Provider,{value:v},d.createElement(na.Provider,{value:p},d.createElement(lm,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,C=s.getFieldValue,w=function(){var k=C(f||[]);return k||[]},E={add:function(k,O){var $=w();O>=0&&O<=$.length?(u.keys=[].concat(_e(u.keys.slice(0,O)),[u.id],_e(u.keys.slice(O))),x([].concat(_e($.slice(0,O)),[k],_e($.slice(O))))):(u.keys=[].concat(_e(u.keys),[u.id]),x([].concat(_e($),[k]))),u.id+=1},remove:function(k){var O=w(),$=new Set(Array.isArray(k)?k:[k]);$.size<=0||(u.keys=u.keys.filter(function(I,N){return!$.has(N)}),x(O.filter(function(I,N){return!$.has(N)})))},move:function(k,O){if(k!==O){var $=w();k<0||k>=$.length||O<0||O>=$.length||(u.keys=Th(u.keys,k,O),x(Th($,k,O)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(k,O){var $=u.keys[O];return $===void 0&&(u.keys[O]=u.id,$=u.keys[O],u.id+=1),{name:O,key:$,isListField:!0}}),E,m)})))}function rN(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var V1="__@field_split__";function vu(e){return e.map(function(t){return"".concat(dt(t),":").concat(t)}).join(V1)}var ha=(function(){function e(){xn(this,e),G(this,"kvs",new Map)}return wn(e,[{key:"set",value:function(t,n){this.kvs.set(vu(t),n)}},{key:"get",value:function(t){return this.kvs.get(vu(t))}},{key:"update",value:function(t,n){var r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(vu(t))}},{key:"map",value:function(t){return _e(this.kvs.entries()).map(function(n){var r=te(n,2),o=r[0],a=r[1],i=o.split(V1);return t({key:i.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=te(l,3),u=c[1],f=c[2];return u==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,o=n.value;return t[r.join(".")]=o,null}),t}}]),e})(),oN=["name"],aN=wn(function e(t){var n=this;xn(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(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}}),G(this,"getInternalHooks",function(r){return r===Vo?(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}):(Hn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(r){n.subscribable=r}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ka(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Cr(i,l,Sr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ha;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),G(this,"getInitialValue",function(r){var o=Sr(n.initialValues,r);return r.length?ka(o):o}),G(this,"setCallbacks",function(r){n.callbacks=r}),G(this,"setValidateMessages",function(r){n.validateMessages=r}),G(this,"setPreserve",function(r){n.preserve=r}),G(this,"watchList",[]),G(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),G(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){}),G(this,"updateStore",function(r){n.store=r}),G(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}),G(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ha;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),G(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Sn(a);return o.get(i)||{INVALIDATE_NAME_PATH:Sn(a)}})}),G(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&dt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),Rh(n.store,c.map(Sn))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var o=Sn(r);return Sr(n.store,o)}),G(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Sn(r[i]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(r){n.warningUnhooked();var o=Sn(r),a=n.getFieldsError([o])[0];return a.errors}),G(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Sn(r),a=n.getFieldsError([o])[0];return a.warnings}),G(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(Sn),c=!1):(l=null,c=i):(l=i.map(Sn),c=s);var u=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new ha;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(_e(y),[g])})})});var v=function(g){return g.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),G(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),G(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Sn);return o.some(function(i){var s=i.getNamePath();return Da(a,s)&&i.isFieldValidating()})}),G(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),G(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ha,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Hn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)Hn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(f),g=c.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(Cr(n.store,f,_e(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,_e(_e(c).map(function(f){return f.entity})))}})):s=a,i(s)}),G(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Sn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Cr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),G(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Dt(i,oN),c=Sn(s);a.push(c),"value"in l&&n.updateStore(Cr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),G(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=K(K({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),G(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Sr(n.store,a);i===void 0&&n.updateStore(Cr(n.store,a,o))}}),G(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),G(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!H1(f.getNamePath(),o)})){var u=n.store;n.updateStore(Cr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),G(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),G(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=K(K({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(_e(a))}),a}),G(this,"updateValue",function(r,o){var a=Sn(r),i=n.store;n.updateStore(Cr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Rh(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(_e(s)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ka(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),G(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ha;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Sn(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),G(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new ha;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Da(r,u)});l.length&&a(l,i)}}),G(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(Sn):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Da(l,x,v)){var C=y.validateRules(K({validateMessages:K(K({},z1),n.validateMessages)},i));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var E,S=[],k=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(O){var $=O.rule.warningOnly,I=O.errors;$?k.push.apply(k,_e(I)):S.push.apply(S,_e(I))}),S.length?Promise.reject({name:x,errors:S,warnings:k}):{name:x,errors:S,warnings:k}}))}}});var g=rN(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),G(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function cm(e){var t=d.useRef(),n=d.useState({}),r=te(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new aN(a);t.current=i.getForm()}return[t.current]}var Gd=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W1=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=d.useContext(Gd),i=d.useRef({});return d.createElement(Gd.Provider,{value:K(K({},a),{},{validateMessages:K(K({},a.validateMessages),t),triggerFormChange:function(s,l){n&&n(s,{changedFields:l,forms:i.current}),a.triggerFormChange(s,l)},triggerFormFinish:function(s,l){r&&r(s,{values:l,forms:i.current}),a.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(i.current=K(K({},i.current),{},G({},s,l))),a.registerForm(s,l)},unregisterForm:function(s){var l=K({},i.current);delete l[s],i.current=l,a.unregisterForm(s)}})},o)},iN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],sN=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,f=e.validateTrigger,p=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=e.clearOnDestroy,y=Dt(e,iN),x=d.useRef(null),C=d.useContext(Gd),w=cm(a),E=te(w,1),S=E[0],k=S.getInternalHooks(Vo),O=k.useSubscribe,$=k.setInitialValues,I=k.setCallbacks,N=k.setValidateMessages,A=k.setPreserve,F=k.destroyForm;d.useImperativeHandle(t,function(){return K(K({},S),{},{nativeElement:x.current})}),d.useEffect(function(){return C.registerForm(n,S),function(){C.unregisterForm(n)}},[C,S,n]),N(K(K({},C.validateMessages),u)),I({onValuesChange:v,onFieldsChange:function(T){if(C.triggerFormChange(n,T),h){for(var _=arguments.length,D=new Array(_>1?_-1:0),B=1;B<_;B++)D[B-1]=arguments[B];h.apply(void 0,[T].concat(D))}},onFinish:function(T){C.triggerFormFinish(n,T),g&&g(T)},onFinishFailed:m}),A(i);var j=d.useRef(null);$(r,!j.current),j.current||(j.current=!0),d.useEffect(function(){return function(){return F(b)}},[]);var M,R=typeof s=="function";if(R){var P=S.getFieldsValue(!0);M=s(P,S)}else M=s;O(!R);var z=d.useRef();d.useEffect(function(){eN(z.current||[],o||[])||S.setFields(o||[]),z.current=o},[o,S]);var H=d.useMemo(function(){return K(K({},S),{},{validateTrigger:p})},[S,p]),L=d.createElement(Gi.Provider,{value:null},d.createElement(na.Provider,{value:H},M));return c===!1?L:d.createElement(c,Ge({},y,{ref:x,onSubmit:function(T){T.preventDefault(),T.stopPropagation(),S.submit()},onReset:function(T){var _;T.preventDefault(),S.resetFields(),(_=y.onReset)===null||_===void 0||_.call(y,T)}}),L)};function Dh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function q1(){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],a=o===void 0?{}:o,i=bF(a)?{form:a}:a,s=i.form,l=ct(),c=te(l,2),u=c[0],f=c[1],p=en(function(){return Dh(u)},[u]),v=Ke(p);v.current=p;var h=nn(na),g=s||h,m=g&&g._init,b=Sn(r),y=Ke(b);return y.current=b,mt(function(){if(m){var x=g.getFieldsValue,C=g.getInternalHooks,w=C(Vo),E=w.registerWatch,S=function($,I){var N=i.preserve?I:$;return typeof r=="function"?r(N):Sr(N,y.current)},k=E(function($,I){var N=S($,I),A=Dh(N);v.current!==A&&(v.current=A,f(N))}),O=S(x(),x(!0));return u!==O&&f(O),k}},[m]),u}var lN=d.forwardRef(sN),ti=lN;ti.FormProvider=W1;ti.Field=lm;ti.List=L1;ti.useForm=cm;ti.useWatch=q1;const oo=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),U1=d.createContext(null),Y1=e=>{const t=to(e,["prefixCls"]);return d.createElement(W1,Object.assign({},t))},um=d.createContext({prefixCls:""}),Ln=d.createContext({}),X1=({children:e,status:t,override:n})=>{const r=d.useContext(Ln),o=d.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return d.createElement(Ln.Provider,{value:o},e)},G1=d.createContext(void 0),Fo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=fe.createElement(X1,{override:!0,status:!0},o)),t&&(o=fe.createElement(YI,null,o)),o};function _h(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Bh(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function zh(e){const{closable:t,closeIcon:n}=e||{};return fe.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 cN={};function uN(e,t,n=cN){const r=zh(e),o=zh(t),[a]=aa("global",Io.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=fe.useMemo(()=>Object.assign({closeIcon:fe.createElement(Gp,null)},n),[n]),l=fe.useMemo(()=>r===!1?!1:r?_h(s,o,r):o===!1?!1:o?_h(s,o):s.closable?s:!1,[r,o,s]);return fe.useMemo(()=>{var c,u;if(l===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:p}=l;let v=p;const h=Br(l,!0);return v!=null&&(f&&(v=f(p)),v=fe.isValidElement(v)?fe.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(u=(c=v.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:a.close}),h)):fe.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[i,a.close,l,s])}const dN=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"}}}},fN=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pN=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Kd=(e,t)=>pN(e,t),mN=(e,t,n)=>({[`@media (min-width: ${xe(t)})`]:Object.assign({},Kd(e,n))}),gN=()=>({}),hN=()=>({}),vN=Fn("Grid",dN,gN),bN=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),yN=Fn("Grid",e=>{const t=rn(e,{gridColumns:24}),n=bN(t);return delete n.xs,[fN(t),Kd(t,""),Kd(t,"-xs"),Object.keys(n).map(r=>mN(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},hN),xN=fe.createContext({});function wN(e){return t=>d.createElement(Ao,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const dm=(e,t,n,r,o)=>wN(a=>{const{prefixCls:i,style:s}=a,l=d.useRef(null),[c,u]=d.useState(0),[f,p]=d.useState(0),[v,h]=bn(!1,{value:a.open}),{getPrefixCls:g}=d.useContext(qt),m=g(r||"select",i);d.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(w=>{const E=w[0].target;u(E.offsetHeight+8),p(E.offsetWidth)}),C=setInterval(()=>{var w;const E=`.${m}-dropdown`,S=(w=l.current)===null||w===void 0?void 0:w.querySelector(E);S&&(clearInterval(C),x.observe(S))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:f};return d.createElement("div",{ref:l,style:y},d.createElement(e,Object.assign({},b)))}),fm=(function(){if(typeof navigator>"u"||typeof window>"u")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 Cc=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,s=typeof n=="function"?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(l){l.preventDefault(),a==null||a(l)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:me(t.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},o))},CN=function(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=fe.useMemo(function(){if(dt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=fe.useMemo(function(){return!!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return{allowClear:c,clearIcon:fe.createElement(Cc,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"\xD7")}},K1=d.createContext(null);function SN(){return d.useContext(K1)}function EN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=te(t,2),r=n[0],o=n[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};d.useEffect(function(){return i},[]);var s=function(l,c){i(),a.current=window.setTimeout(function(){o(l),c&&c()},e)};return[r,s,i]}function Q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.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 $N(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function kN(e){return e&&![ut.ESC,ut.SHIFT,ut.BACKSPACE,ut.TAB,ut.WIN_KEY,ut.ALT,ut.META,ut.WIN_KEY_RIGHT,ut.CTRL,ut.SEMICOLON,ut.EQUALS,ut.CAPS_LOCK,ut.CONTEXT_MENU,ut.F1,ut.F2,ut.F3,ut.F4,ut.F5,ut.F6,ut.F7,ut.F8,ut.F9,ut.F10,ut.F11,ut.F12].includes(e)}var ON=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],va=void 0;function IN(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,v=e.display,h=e.order,g=e.component,m=g===void 0?"div":g,b=Dt(e,ON),y=i&&!v;function x(k){l(c,k)}d.useEffect(function(){return function(){x(null)}},[]);var C=a&&o!==va?a(o,{index:h}):p,w;r||(w={opacity:y?0:1,height:y?0:va,overflowY:y?"hidden":va,order:i?h:va,pointerEvents:y?"none":va,position:y?"absolute":va});var E={};y&&(E["aria-hidden"]=!0);var S=d.createElement(m,Ge({className:me(!r&&n,u),style:K(K({},w),f)},E,b,{ref:t}),C);return i&&(S=d.createElement(eo,{onResize:function(k){var O=k.offsetWidth;x(O)},disabled:s},S)),S}var Ma=d.forwardRef(IN);Ma.displayName="Item";function MN(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FN(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],MN(function(){zS(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function ba(e,t){var n=d.useState(t),r=te(n,2),o=r[0],a=r[1],i=Vt(function(s){e(function(){a(s)})});return[o,i]}var Dl=fe.createContext(null),NN=["component"],jN=["className"],PN=["className"],AN=function(e,t){var n=d.useContext(Dl);if(!n){var r=e.component,o=r===void 0?"div":r,a=Dt(e,NN);return d.createElement(o,Ge({},a,{ref:t}))}var i=n.className,s=Dt(n,jN),l=e.className,c=Dt(e,PN);return d.createElement(Dl.Provider,{value:null},d.createElement(Ma,Ge({ref:t,className:me(i,l)},s,c)))},Z1=d.forwardRef(AN);Z1.displayName="RawItem";var RN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],J1="responsive",ex="invalidate";function TN(e){return"+ ".concat(e.length," ...")}function DN(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,v=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.prefix,y=e.suffix,x=e.component,C=x===void 0?"div":x,w=e.itemComponent,E=e.onVisibleChange,S=Dt(e,RN),k=f==="full",O=FN(),$=ba(O,null),I=te($,2),N=I[0],A=I[1],F=N||0,j=ba(O,new Map),M=te(j,2),R=M[0],P=M[1],z=ba(O,0),H=te(z,2),L=H[0],T=H[1],_=ba(O,0),D=te(_,2),B=D[0],V=D[1],W=ba(O,0),q=te(W,2),Q=q[0],U=q[1],J=ba(O,0),X=te(J,2),Y=X[0],ae=X[1],oe=ct(null),ne=te(oe,2),ue=ne[0],pe=ne[1],be=ct(null),Se=te(be,2),he=Se[0],ke=Se[1],ce=d.useMemo(function(){return he===null&&k?Number.MAX_SAFE_INTEGER:he||0},[he,N]),de=ct(!1),Ae=te(de,2),ie=Ae[0],We=Ae[1],ze="".concat(r,"-item"),De=Math.max(L,B),Ee=h===J1,Ve=a.length&&Ee,Ne=h===ex,Fe=Ve||typeof h=="number"&&a.length>h,$e=en(function(){var Pe=a;return Ve?N===null&&k?Pe=a:Pe=a.slice(0,Math.min(a.length,F/u)):typeof h=="number"&&(Pe=a.slice(0,h)),Pe},[a,u,N,h,Ve]),je=en(function(){return Ve?a.slice(ce+1):a.slice($e.length)},[a,$e,Ve,ce]),qe=rg(function(Pe,ye){var Te;return typeof l=="function"?l(Pe):(Te=l&&(Pe==null?void 0:Pe[l]))!==null&&Te!==void 0?Te:ye},[l]),ve=rg(i||function(Pe){return Pe},[i]);function it(Pe,ye,Te){he===Pe&&(ye===void 0||ye===ue)||(ke(Pe),Te||(We(Pe<a.length-1),E==null||E(Pe)),ye!==void 0&&pe(ye))}function pt(Pe,ye){A(ye.clientWidth)}function yt(Pe,ye){P(function(Te){var nt=new Map(Te);return ye===null?nt.delete(Pe):nt.set(Pe,ye),nt})}function Pt(Pe,ye){V(ye),T(B)}function He(Pe,ye){U(ye)}function Xe(Pe,ye){ae(ye)}function Ye(Pe){return R.get(qe($e[Pe],Pe))}Ut(function(){if(F&&typeof De=="number"&&$e){var Pe=Q+Y,ye=$e.length,Te=ye-1;if(!ye){it(0,null);return}for(var nt=0;nt<ye;nt+=1){var Qe=Ye(nt);if(k&&(Qe=Qe||0),Qe===void 0){it(nt-1,void 0,!0);break}if(Pe+=Qe,Te===0&&Pe<=F||nt===Te-1&&Pe+Ye(Te)<=F){it(Te,null);break}else if(Pe+De>F){it(nt-1,Pe-Qe-Y+B);break}}y&&Ye(0)+Y>F&&pe(null)}},[F,R,B,Q,Y,qe,$e]);var Je=ie&&!!je.length,tt={};ue!==null&&Ve&&(tt={position:"absolute",left:ue,top:0});var Ot={prefixCls:ze,responsive:Ve,component:w,invalidate:Ne},Nt=s?function(Pe,ye){var Te=qe(Pe,ye);return d.createElement(Dl.Provider,{key:Te,value:K(K({},Ot),{},{order:ye,item:Pe,itemKey:Te,registerSize:yt,display:ye<=ce})},s(Pe,ye))}:function(Pe,ye){var Te=qe(Pe,ye);return d.createElement(Ma,Ge({},Ot,{order:ye,key:Te,item:Pe,renderItem:ve,itemKey:Te,registerSize:yt,display:ye<=ce}))},et={order:Je?ce:Number.MAX_SAFE_INTEGER,className:"".concat(ze,"-rest"),registerSize:Pt,display:Je},st=g||TN,Ct=m?d.createElement(Dl.Provider,{value:K(K({},Ot),et)},m(je)):d.createElement(Ma,Ge({},Ot,et),typeof st=="function"?st(je):st),Le=d.createElement(C,Ge({className:me(!Ne&&r,v),style:p,ref:t},S),b&&d.createElement(Ma,Ge({},Ot,{responsive:Ee,responsiveDisabled:!Ve,order:-1,className:"".concat(ze,"-prefix"),registerSize:He,display:!0}),b),$e.map(Nt),Fe?Ct:null,y&&d.createElement(Ma,Ge({},Ot,{responsive:Ee,responsiveDisabled:!Ve,order:ce,className:"".concat(ze,"-suffix"),registerSize:Xe,display:!0,style:tt}),y));return Ee?d.createElement(eo,{onResize:pt,disabled:!Ve},Le):Le}var ni=d.forwardRef(DN);ni.displayName="Overflow";ni.Item=Z1;ni.RESPONSIVE=J1;ni.INVALIDATE=ex;function _N(e,t,n){var r=K(K({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a.apply(void 0,l),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(l))})}),r}var BN=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],zN=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,s=e.editable,l=e.activeDescendantId,c=e.value,u=e.open,f=e.attrs,p=Dt(e,BN),v=o||d.createElement("input",null),h=v,g=h.ref,m=h.props;return"maxLength"in v.props,v=d.cloneElement(v,K(K(K({type:"search"},_N(p,m)),{},{id:r,ref:kr(t,g),autoComplete:i||"off",autoFocus:a,className:me("".concat(n,"-selection-search-input"),m==null?void 0:m.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?l:void 0},f),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:K(K({},m.style),{},{opacity:s?null:0})})),v},tx=d.forwardRef(zN);function nx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var HN=typeof window<"u"&&window.document&&window.document.documentElement,LN=HN;function VN(e){return e!=null}function WN(e){return!e&&e!==0}function Hh(e){return["string","number"].includes(dt(e))}function rx(e){var t=void 0;return e&&(Hh(e.title)?t=e.title.toString():Hh(e.label)&&(t=e.label.toString())),t}function qN(e,t){LN?d.useLayoutEffect(e,t):d.useEffect(e,t)}function UN(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Lh=function(e){e.preventDefault(),e.stopPropagation()},YN=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.autoClearSearchValue,s=e.inputRef,l=e.placeholder,c=e.disabled,u=e.mode,f=e.showSearch,p=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,g=e.tabIndex,m=e.removeIcon,b=e.maxTagCount,y=e.maxTagTextLength,x=e.maxTagPlaceholder,C=x===void 0?function(Y){return"+ ".concat(Y.length," ...")}:x,w=e.tagRender,E=e.onToggleOpen,S=e.onRemove,k=e.onInputChange,O=e.onInputPaste,$=e.onInputKeyDown,I=e.onInputMouseDown,N=e.onInputCompositionStart,A=e.onInputCompositionEnd,F=e.onInputBlur,j=d.useRef(null),M=ct(0),R=te(M,2),P=R[0],z=R[1],H=ct(!1),L=te(H,2),T=L[0],_=L[1],D="".concat(n,"-selection"),B=o||u==="multiple"&&i===!1||u==="tags"?a:"",V=u==="tags"||u==="multiple"&&i===!1||f&&(o||T);qN(function(){z(j.current.scrollWidth)},[B]);var W=function(Y,ae,oe,ne,ue){return d.createElement("span",{title:rx(Y),className:me("".concat(D,"-item"),G({},"".concat(D,"-item-disabled"),oe))},d.createElement("span",{className:"".concat(D,"-item-content")},ae),ne&&d.createElement(Cc,{className:"".concat(D,"-item-remove"),onMouseDown:Lh,onClick:ue,customizeIcon:m},"\xD7"))},q=function(Y,ae,oe,ne,ue,pe){var be=function(Se){Lh(Se),E(!o)};return d.createElement("span",{onMouseDown:be},w({label:ae,value:Y,disabled:oe,closable:ne,onClose:ue,isMaxTag:!!pe}))},Q=function(Y){var ae=Y.disabled,oe=Y.label,ne=Y.value,ue=!c&&!ae,pe=oe;if(typeof y=="number"&&(typeof oe=="string"||typeof oe=="number")){var be=String(pe);be.length>y&&(pe="".concat(be.slice(0,y),"..."))}var Se=function(he){he&&he.stopPropagation(),S(Y)};return typeof w=="function"?q(ne,pe,ae,ue,Se):W(Y,pe,ae,ue,Se)},U=function(Y){if(!r.length)return null;var ae=typeof C=="function"?C(Y):C;return typeof w=="function"?q(void 0,ae,!1,!1,void 0,!0):W({title:ae},ae,!1)},J=d.createElement("div",{className:"".concat(D,"-search"),style:{width:P},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},d.createElement(tx,{ref:s,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:p,autoComplete:v,editable:V,activeDescendantId:h,value:B,onKeyDown:$,onMouseDown:I,onChange:k,onPaste:O,onCompositionStart:N,onCompositionEnd:A,onBlur:F,tabIndex:g,attrs:Br(e,!0)}),d.createElement("span",{ref:j,className:"".concat(D,"-search-mirror"),"aria-hidden":!0},B,"\xA0")),X=d.createElement(ni,{prefixCls:"".concat(D,"-overflow"),data:r,renderItem:Q,renderRest:U,suffix:J,itemKey:UN,maxCount:b});return d.createElement("span",{className:"".concat(D,"-wrap")},X,!r.length&&!B&&d.createElement("span",{className:"".concat(D,"-placeholder")},l))},XN=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,C=e.onInputChange,w=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=e.onInputBlur,O=e.title,$=d.useState(!1),I=te($,2),N=I[0],A=I[1],F=c==="combobox",j=F||h,M=f[0],R=g||"";F&&m&&!N&&(R=m),d.useEffect(function(){F&&A(!1)},[F,m]);var P=c!=="combobox"&&!u&&!h?!1:!!R,z=O===void 0?rx(M):O,H=d.useMemo(function(){return M?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},p)},[M,P,p,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(tx,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:j,activeDescendantId:l,value:R,onKeyDown:y,onMouseDown:x,onChange:function(L){A(!0),C(L)},onPaste:w,onCompositionStart:E,onCompositionEnd:S,onBlur:k,tabIndex:v,attrs:Br(e,!0),maxLength:F?b:void 0})),!F&&M?d.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:P?{visibility:"hidden"}:void 0},M.label):null,H)},GN=function(e,t){var n=Ke(null),r=Ke(!1),o=e.prefixCls,a=e.open,i=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.onInputBlur,b=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(P){n.current.focus(P)},blur:function(){n.current.blur()}}});var y=Q1(0),x=te(y,2),C=x[0],w=x[1],E=function(P){var z=P.which,H=n.current instanceof HTMLTextAreaElement;!H&&a&&(z===ut.UP||z===ut.DOWN)&&P.preventDefault(),g&&g(P),z===ut.ENTER&&i==="tags"&&!r.current&&!a&&(v==null||v(P.target.value)),!(H&&!a&&~[ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT].indexOf(z))&&kN(z)&&h(!0)},S=function(){w(!0)},k=Ke(null),O=function(P){p(P,!0,r.current)!==!1&&h(!0)},$=function(){r.current=!0},I=function(P){r.current=!1,i!=="combobox"&&O(P.target.value)},N=function(P){var z=P.target.value;if(l&&k.current&&/[\r\n]/.test(k.current)){var H=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(H,k.current)}k.current=null,O(z)},A=function(P){var z=P.clipboardData,H=z==null?void 0:z.getData("text");k.current=H||""},F=function(P){var z=P.target;if(z!==n.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){n.current.focus()}):n.current.focus()}},j=function(P){var z=C();P.target!==n.current&&!z&&!(i==="combobox"&&c)&&P.preventDefault(),(i!=="combobox"&&(!s||!z)||!a)&&(a&&f!==!1&&p("",!0,!1),h())},M={inputRef:n,onInputKeyDown:E,onInputMouseDown:S,onInputChange:N,onInputPaste:A,onInputCompositionStart:$,onInputCompositionEnd:I,onInputBlur:m},R=i==="multiple"||i==="tags"?d.createElement(YN,Ge({},e,M)):d.createElement(XN,Ge({},e,M));return d.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:F,onMouseDown:j},u&&d.createElement("div",{className:"".concat(o,"-prefix")},u),R)},KN=d.forwardRef(GN);function QN(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],y=g[0],x=g[1];m===y||!["t","b"].includes(m)?v.top=f:m==="t"?v.top=0:v.bottom=0,b===x||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0}return d.createElement("div",{ref:p,className:me("".concat(t,"-arrow"),i),style:v},s)}function ZN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?d.createElement(ia,Ge({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:r},className:me("".concat(t,"-mask"),s)})}):null}var JN=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),e5=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,v=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,w=e.portal,E=e.zIndex,S=e.onMouseEnter,k=e.onMouseLeave,O=e.onPointerEnter,$=e.onPointerDownCapture,I=e.ready,N=e.offsetX,A=e.offsetY,F=e.offsetR,j=e.offsetB,M=e.onAlign,R=e.onPrepare,P=e.stretch,z=e.targetWidth,H=e.targetHeight,L=typeof n=="function"?n():n,T=l||c,_=(x==null?void 0:x.length)>0,D=d.useState(!x||!_),B=te(D,2),V=B[0],W=B[1];if(Ut(function(){!V&&_&&i&&W(!0)},[V,_,i]),!V)return null;var q="auto",Q={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(I||!l){var U,J=g.points,X=g.dynamicInset||((U=g._experimental)===null||U===void 0?void 0:U.dynamicInset),Y=X&&J[0][1]==="r",ae=X&&J[0][0]==="b";Y?(Q.right=F,Q.left=q):(Q.left=N,Q.right=q),ae?(Q.bottom=j,Q.top=q):(Q.top=A,Q.bottom=q)}var oe={};return P&&(P.includes("height")&&H?oe.height=H:P.includes("minHeight")&&H&&(oe.minHeight=H),P.includes("width")&&z?oe.width=z:P.includes("minWidth")&&z&&(oe.minWidth=z)),l||(oe.pointerEvents="none"),d.createElement(w,{open:y||T,getContainer:x&&function(){return x(i)},autoDestroy:C},d.createElement(ZN,{prefixCls:o,open:l,zIndex:E,mask:p,motion:b}),d.createElement(eo,{onResize:M,disabled:!l},function(ne){return d.createElement(ia,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:R,onEnterPrepare:R,visible:l,onVisibleChanged:function(ue){var pe;m==null||(pe=m.onVisibleChanged)===null||pe===void 0||pe.call(m,ue),s(ue)}}),function(ue,pe){var be=ue.className,Se=ue.style,he=me(o,be,r);return d.createElement("div",{ref:kr(ne,t,pe),className:he,style:K(K(K(K({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Q),oe),Se),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:k,onPointerEnter:O,onClick:f,onPointerDownCapture:$},v&&d.createElement(QN,{prefixCls:o,arrow:v,arrowPos:h,align:g}),d.createElement(JN,{cache:!l&&!u},L))})}))}),t5=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Za(n),a=d.useCallback(function(s){Rp(t,r?r(s):s)},[r]),i=ls(a,cs(n));return o?d.cloneElement(n,{ref:i}):n}),Vh=d.createContext(null);function Wh(e){return e?Array.isArray(e)?e:[e]:[]}function n5(e,t,n,r){return d.useMemo(function(){var o=Wh(n??t),a=Wh(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function r5(){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 o5(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(r5((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function qh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hs(e){return e.ownerDocument.defaultView}function Qd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hs(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function xi(e){return Ki(parseFloat(e),0)}function Uh(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=hs(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,m=xi(s),b=xi(l),y=xi(c),x=xi(u),C=Ki(Math.round(f.width/h*1e3)/1e3),w=Ki(Math.round(f.height/p*1e3)/1e3),E=(h-g-y-x)*C,S=(p-v-m-b)*w,k=m*w,O=b*w,$=y*C,I=x*C,N=0,A=0;if(a==="clip"){var F=xi(i);N=F*C,A=F*w}var j=f.x+$-N,M=f.y+k-A,R=j+f.width+2*N-$-I-E,P=M+f.height+2*A-k-O-S;n.left=Math.max(n.left,j),n.top=Math.max(n.top,M),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,P)}}),n}function Yh(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 Xh(e,t){var n=t||[],r=te(n,2),o=r[0],a=r[1];return[Yh(e.width,o),Yh(e.height,a)]}function Gh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ya(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function mo(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 a5(e,t,n,r,o,a,i){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?Qd(t):[]},[t]),v=d.useRef({}),h=function(){v.current={}};e||h();var g=Vt(function(){if(t&&n&&e){let Nn=function(fo,gi){var po=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ae,hi=T.x+fo,Cs=T.y+gi,Vc=hi+ae,Wc=Cs+Y,qc=Math.max(hi,po.left),at=Math.max(Cs,po.top),Xt=Math.min(Vc,po.right),_n=Math.min(Wc,po.bottom);return Math.max(0,(Xt-qc)*(_n-at))},ma=function(){Ht=T.y+st,Z=Ht+Y,ee=T.x+et,we=ee+ae};var y,x,C,w,E=t,S=E.ownerDocument,k=hs(E),O=k.getComputedStyle(E),$=O.position,I=E.style.left,N=E.style.top,A=E.style.right,F=E.style.bottom,j=E.style.overflow,M=K(K({},o[r]),a),R=S.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(R),R.style.left="".concat(E.offsetLeft,"px"),R.style.top="".concat(E.offsetTop,"px"),R.style.position=$,R.style.height="".concat(E.offsetHeight,"px"),R.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var z,H,L=n.getBoundingClientRect();L.x=(z=L.x)!==null&&z!==void 0?z:L.left,L.y=(H=L.y)!==null&&H!==void 0?H:L.top,P={x:L.x,y:L.y,width:L.width,height:L.height}}var T=E.getBoundingClientRect(),_=k.getComputedStyle(E),D=_.height,B=_.width;T.x=(x=T.x)!==null&&x!==void 0?x:T.left,T.y=(C=T.y)!==null&&C!==void 0?C:T.top;var V=S.documentElement,W=V.clientWidth,q=V.clientHeight,Q=V.scrollWidth,U=V.scrollHeight,J=V.scrollTop,X=V.scrollLeft,Y=T.height,ae=T.width,oe=P.height,ne=P.width,ue={left:0,top:0,right:W,bottom:q},pe={left:-X,top:-J,right:Q-X,bottom:U-J},be=M.htmlRegion,Se="visible",he="visibleFirst";be!=="scroll"&&be!==he&&(be=Se);var ke=be===he,ce=Uh(pe,p),de=Uh(ue,p),Ae=be===Se?de:ce,ie=ke?de:Ae;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var We=E.getBoundingClientRect();E.style.left=I,E.style.top=N,E.style.right=A,E.style.bottom=F,E.style.overflow=j,(w=E.parentElement)===null||w===void 0||w.removeChild(R);var ze=Ki(Math.round(ae/parseFloat(B)*1e3)/1e3),De=Ki(Math.round(Y/parseFloat(D)*1e3)/1e3);if(ze===0||De===0||Bi(n)&&!pc(n))return;var Ee=M.offset,Ve=M.targetOffset,Ne=Xh(T,Ee),Fe=te(Ne,2),$e=Fe[0],je=Fe[1],qe=Xh(P,Ve),ve=te(qe,2),it=ve[0],pt=ve[1];P.x-=it,P.y-=pt;var yt=M.points||[],Pt=te(yt,2),He=Pt[0],Xe=Pt[1],Ye=Gh(Xe),Je=Gh(He),tt=ya(P,Ye),Ot=ya(T,Je),Nt=K({},M),et=tt.x-Ot.x+$e,st=tt.y-Ot.y+je,Ct=Nn(et,st),Le=Nn(et,st,de),Pe=ya(P,["t","l"]),ye=ya(T,["t","l"]),Te=ya(P,["b","r"]),nt=ya(T,["b","r"]),Qe=M.overflow||{},ot=Qe.adjustX,gt=Qe.adjustY,kt=Qe.shiftX,Mt=Qe.shiftY,Jt=function(fo){return typeof fo=="boolean"?fo:fo>=0},Ht,Z,ee,we;ma();var Ie=Jt(gt),le=Je[0]===Ye[0];if(Ie&&Je[0]==="t"&&(Z>ie.bottom||v.current.bt)){var Ce=st;le?Ce-=Y-oe:Ce=Pe.y-nt.y-je;var Me=Nn(et,Ce),Oe=Nn(et,Ce,de);Me>Ct||Me===Ct&&(!ke||Oe>=Le)?(v.current.bt=!0,st=Ce,je=-je,Nt.points=[mo(Je,0),mo(Ye,0)]):v.current.bt=!1}if(Ie&&Je[0]==="b"&&(Ht<ie.top||v.current.tb)){var Ue=st;le?Ue+=Y-oe:Ue=Te.y-ye.y-je;var bt=Nn(et,Ue),Re=Nn(et,Ue,de);bt>Ct||bt===Ct&&(!ke||Re>=Le)?(v.current.tb=!0,st=Ue,je=-je,Nt.points=[mo(Je,0),mo(Ye,0)]):v.current.tb=!1}var St=Jt(ot),xt=Je[1]===Ye[1];if(St&&Je[1]==="l"&&(we>ie.right||v.current.rl)){var Et=et;xt?Et-=ae-ne:Et=Pe.x-nt.x-$e;var lt=Nn(Et,st),Yt=Nn(Et,st,de);lt>Ct||lt===Ct&&(!ke||Yt>=Le)?(v.current.rl=!0,et=Et,$e=-$e,Nt.points=[mo(Je,1),mo(Ye,1)]):v.current.rl=!1}if(St&&Je[1]==="r"&&(ee<ie.left||v.current.lr)){var ft=et;xt?ft+=ae-ne:ft=Te.x-ye.x-$e;var It=Nn(ft,st),Rt=Nn(ft,st,de);It>Ct||It===Ct&&(!ke||Rt>=Le)?(v.current.lr=!0,et=ft,$e=-$e,Nt.points=[mo(Je,1),mo(Ye,1)]):v.current.lr=!1}ma();var _t=kt===!0?0:kt;typeof _t=="number"&&(ee<de.left&&(et-=ee-de.left-$e,P.x+ne<de.left+_t&&(et+=P.x-de.left+ne-_t)),we>de.right&&(et-=we-de.right-$e,P.x>de.right-_t&&(et+=P.x-de.right+_t)));var Lt=Mt===!0?0:Mt;typeof Lt=="number"&&(Ht<de.top&&(st-=Ht-de.top-je,P.y+oe<de.top+Lt&&(st+=P.y-de.top+oe-Lt)),Z>de.bottom&&(st-=Z-de.bottom-je,P.y>de.bottom-Lt&&(st+=P.y-de.bottom+Lt)));var hn=T.x+et,pn=hn+ae,Dn=T.y+st,tr=Dn+Y,ht=P.x,tn=ht+ne,mn=P.y,Ze=mn+oe,Bt=Math.max(hn,ht),dn=Math.min(pn,tn),Cn=(Bt+dn)/2,nr=Cn-hn,rr=Math.max(Dn,mn),or=Math.min(tr,Ze),Wr=(rr+or)/2,vt=Wr-Dn;i==null||i(t,Nt);var jt=We.right-T.x-(et+T.width),un=We.bottom-T.y-(st+T.height);ze===1&&(et=Math.round(et),jt=Math.round(jt)),De===1&&(st=Math.round(st),un=Math.round(un));var fn={ready:!0,offsetX:et/ze,offsetY:st/De,offsetR:jt/ze,offsetB:un/De,arrowX:nr/ze,arrowY:vt/De,scaleX:ze,scaleY:De,align:Nt};u(fn)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&g()})},b=function(){u(function(y){return K(K({},y),{},{ready:!1})})};return Ut(b,[r]),Ut(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function i5(e,t,n,r,o){Ut(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,s=Qd(a),l=Qd(i),c=hs(i),u=new Set([c].concat(_e(s),_e(l)));return u.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function s5(e,t,n,r,o,a,i,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){c.current=!1},p=function(g){var m;l.current&&!i(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&s(!1)},v=hs(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var h=jl(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function u(){c.current=!0}return u}var l5=["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 c5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_1,t=d.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,b=m===void 0?.1:m,y=n.focusDelay,x=n.blurDelay,C=n.mask,w=n.maskClosable,E=w===void 0?!0:w,S=n.getPopupContainer,k=n.forceRender,O=n.autoDestroy,$=n.destroyPopupOnHide,I=n.popup,N=n.popupClassName,A=n.popupStyle,F=n.popupPlacement,j=n.builtinPlacements,M=j===void 0?{}:j,R=n.popupAlign,P=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,L=n.fresh,T=n.alignPoint,_=n.onPopupClick,D=n.onPopupAlign,B=n.arrow,V=n.popupMotion,W=n.maskMotion,q=n.popupTransitionName,Q=n.popupAnimation,U=n.maskTransitionName,J=n.maskAnimation,X=n.className,Y=n.getTriggerDOMNode,ae=Dt(n,l5),oe=O||$||!1,ne=d.useState(!1),ue=te(ne,2),pe=ue[0],be=ue[1];Ut(function(){be(fm())},[]);var Se=d.useRef({}),he=d.useContext(Vh),ke=d.useMemo(function(){return{registerSubPopup:function(at,Xt){Se.current[at]=Xt,he==null||he.registerSubPopup(at,Xt)}}},[he]),ce=im(),de=d.useState(null),Ae=te(de,2),ie=Ae[0],We=Ae[1],ze=d.useRef(null),De=Vt(function(at){ze.current=at,Bi(at)&&ie!==at&&We(at),he==null||he.registerSubPopup(ce,at)}),Ee=d.useState(null),Ve=te(Ee,2),Ne=Ve[0],Fe=Ve[1],$e=d.useRef(null),je=Vt(function(at){Bi(at)&&Ne!==at&&(Fe(at),$e.current=at)}),qe=d.Children.only(i),ve=(qe==null?void 0:qe.props)||{},it={},pt=Vt(function(at){var Xt,_n,jn=Ne;return(jn==null?void 0:jn.contains(at))||((Xt=jl(jn))===null||Xt===void 0?void 0:Xt.host)===at||at===jn||(ie==null?void 0:ie.contains(at))||((_n=jl(ie))===null||_n===void 0?void 0:_n.host)===at||at===ie||Object.values(Se.current).some(function(vn){return(vn==null?void 0:vn.contains(at))||at===vn})}),yt=qh(a,V,Q,q),Pt=qh(a,W,J,U),He=d.useState(p||!1),Xe=te(He,2),Ye=Xe[0],Je=Xe[1],tt=f??Ye,Ot=Vt(function(at){f===void 0&&Je(at)});Ut(function(){Je(f||!1)},[f]);var Nt=d.useRef(tt);Nt.current=tt;var et=d.useRef([]);et.current=[];var st=Vt(function(at){var Xt;Ot(at),((Xt=et.current[et.current.length-1])!==null&&Xt!==void 0?Xt:tt)!==at&&(et.current.push(at),v==null||v(at))}),Ct=d.useRef(),Le=function(){clearTimeout(Ct.current)},Pe=function(at){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),Xt===0?st(at):Ct.current=setTimeout(function(){st(at)},Xt*1e3)};d.useEffect(function(){return Le},[]);var ye=d.useState(!1),Te=te(ye,2),nt=Te[0],Qe=Te[1];Ut(function(at){(!at||tt)&&Qe(!0)},[tt]);var ot=d.useState(null),gt=te(ot,2),kt=gt[0],Mt=gt[1],Jt=d.useState(null),Ht=te(Jt,2),Z=Ht[0],ee=Ht[1],we=function(at){ee([at.clientX,at.clientY])},Ie=a5(tt,ie,T&&Z!==null?Z:Ne,F,M,R,D),le=te(Ie,11),Ce=le[0],Me=le[1],Oe=le[2],Ue=le[3],bt=le[4],Re=le[5],St=le[6],xt=le[7],Et=le[8],lt=le[9],Yt=le[10],ft=n5(pe,l,c,u),It=te(ft,2),Rt=It[0],_t=It[1],Lt=Rt.has("click"),hn=_t.has("click")||_t.has("contextMenu"),pn=Vt(function(){nt||Yt()}),Dn=function(){Nt.current&&T&&hn&&Pe(!1)};i5(tt,Ne,ie,pn,Dn),Ut(function(){pn()},[Z,F]),Ut(function(){tt&&!(M!=null&&M[F])&&pn()},[JSON.stringify(R)]);var tr=d.useMemo(function(){var at=o5(M,a,lt,T);return me(at,H==null?void 0:H(lt))},[lt,H,M,a,T]);d.useImperativeHandle(r,function(){return{nativeElement:$e.current,popupElement:ze.current,forceAlign:pn}});var ht=d.useState(0),tn=te(ht,2),mn=tn[0],Ze=tn[1],Bt=d.useState(0),dn=te(Bt,2),Cn=dn[0],nr=dn[1],rr=function(){if(z&&Ne){var at=Ne.getBoundingClientRect();Ze(at.width),nr(at.height)}},or=function(){rr(),pn()},Wr=function(at){Qe(!1),Yt(),h==null||h(at)},vt=function(){return new Promise(function(at){rr(),Mt(function(){return at})})};Ut(function(){kt&&(Yt(),kt(),Mt(null))},[kt]);function jt(at,Xt,_n,jn){it[at]=function(vn){var Ss;jn==null||jn(vn),Pe(Xt,_n);for(var Uc=arguments.length,ng=new Array(Uc>1?Uc-1:0),Es=1;Es<Uc;Es++)ng[Es-1]=arguments[Es];(Ss=ve[at])===null||Ss===void 0||Ss.call.apply(Ss,[ve,vn].concat(ng))}}(Lt||hn)&&(it.onClick=function(at){var Xt;Nt.current&&hn?Pe(!1):!Nt.current&&Lt&&(we(at),Pe(!0));for(var _n=arguments.length,jn=new Array(_n>1?_n-1:0),vn=1;vn<_n;vn++)jn[vn-1]=arguments[vn];(Xt=ve.onClick)===null||Xt===void 0||Xt.call.apply(Xt,[ve,at].concat(jn))});var un=s5(tt,hn,Ne,ie,C,E,pt,Pe),fn=Rt.has("hover"),Nn=_t.has("hover"),ma,fo;fn&&(jt("onMouseEnter",!0,g,function(at){we(at)}),jt("onPointerEnter",!0,g,function(at){we(at)}),ma=function(at){(tt||nt)&&ie!==null&&ie!==void 0&&ie.contains(at.target)&&Pe(!0,g)},T&&(it.onMouseMove=function(at){var Xt;(Xt=ve.onMouseMove)===null||Xt===void 0||Xt.call(ve,at)})),Nn&&(jt("onMouseLeave",!1,b),jt("onPointerLeave",!1,b),fo=function(){Pe(!1,b)}),Rt.has("focus")&&jt("onFocus",!0,y),_t.has("focus")&&jt("onBlur",!1,x),Rt.has("contextMenu")&&(it.onContextMenu=function(at){var Xt;Nt.current&&_t.has("contextMenu")?Pe(!1):(we(at),Pe(!0)),at.preventDefault();for(var _n=arguments.length,jn=new Array(_n>1?_n-1:0),vn=1;vn<_n;vn++)jn[vn-1]=arguments[vn];(Xt=ve.onContextMenu)===null||Xt===void 0||Xt.call.apply(Xt,[ve,at].concat(jn))}),X&&(it.className=me(ve.className,X));var gi=d.useRef(!1);gi.current||(gi.current=k||tt||nt);var po=K(K({},ve),it),hi={},Cs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Cs.forEach(function(at){ae[at]&&(hi[at]=function(){for(var Xt,_n=arguments.length,jn=new Array(_n),vn=0;vn<_n;vn++)jn[vn]=arguments[vn];(Xt=po[at])===null||Xt===void 0||Xt.call.apply(Xt,[po].concat(jn)),ae[at].apply(ae,jn)})});var Vc=d.cloneElement(qe,K(K({},po),hi)),Wc={x:Re,y:St},qc=B?K({},B!==!0?B:{}):null;return d.createElement(d.Fragment,null,d.createElement(eo,{disabled:!tt,ref:je,onResize:or},d.createElement(t5,{getTriggerDOMNode:Y},Vc)),gi.current&&d.createElement(Vh.Provider,{value:ke},d.createElement(e5,{portal:e,ref:De,prefixCls:a,popup:I,className:me(N,tr),style:A,target:Ne,onMouseEnter:ma,onMouseLeave:fo,onPointerEnter:ma,zIndex:P,open:tt,keepDom:nt,fresh:L,onClick:_,onPointerDownCapture:un,mask:C,motion:yt,maskMotion:Pt,onVisibleChanged:Wr,onPrepare:vt,forceRender:k,autoDestroy:oe,getPopupContainer:S,align:lt,arrow:qc,arrowPos:Wc,ready:Ce,offsetX:Me,offsetY:Oe,offsetR:Ue,offsetB:bt,onAlign:pn,stretch:z,targetWidth:mn/xt,targetHeight:Cn/Et})))});return t}const pm=c5(_1);var u5=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],d5=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},f5=function(e,t){var n=e.prefixCls,r=e.visible,o=e.children,a=e.popupElement,i=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,f=u===void 0?"ltr":u,p=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,C=e.onPopupVisibleChange,w=e.onPopupMouseEnter,E=Dt(e,u5),S="".concat(n,"-dropdown"),k=a;g&&(k=g(a));var O=d.useMemo(function(){return v||d5(h)},[v,h]),$=i?"".concat(S,"-").concat(i):s,I=typeof h=="number",N=d.useMemo(function(){return I?null:h===!1?"minWidth":"width"},[h,I]),A=l;I&&(A=K(K({},A),{},{width:h}));var F=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){var j;return(j=F.current)===null||j===void 0?void 0:j.popupElement}}}),d.createElement(pm,Ge({},E,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:S,popupTransitionName:$,popup:d.createElement("div",{onMouseEnter:w},k),ref:F,stretch:N,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:me(c,G({},"".concat(S,"-empty"),y)),popupStyle:A,getTriggerDOMNode:x,onPopupVisibleChange:C}),o)},p5=d.forwardRef(f5);function Kh(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Zd(e){return typeof e<"u"&&!Number.isNaN(e)}function ox(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function m5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=ox(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(v){if(p||!(l in v)){var h=v[s];o.push({key:Kh(v,o.length),groupOption:p,data:v,label:v[i],value:h})}else{var g=v[c];g===void 0&&r&&(g=v.label),o.push({key:Kh(v,o.length),group:!0,data:v,label:g}),u(v[l],!0)}})}return u(e,!1),o}function Jd(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Hn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var g5=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function i(s,l){var c=Ry(l),u=c[0],f=c.slice(1);if(!u)return[s];var p=s.split(u);return r=r||p.length>1,p.reduce(function(v,h){return[].concat(_e(v),_e(i(h,f)))},[]).filter(Boolean)},a=o(e,t);return r?typeof n<"u"?a.slice(0,n):a:null},mm=d.createContext(null);function h5(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.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 a=o.label,i=o.value;return["number","string"].includes(dt(a))?a:i}).join(", ")),n.length>r?", ...":null)}var v5=["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"],b5=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ef=function(e){return e==="tags"||e==="multiple"},y5=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,g=e.onClear,m=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,C=e.getRawInputElement,w=e.open,E=e.defaultOpen,S=e.onDropdownVisibleChange,k=e.activeValue,O=e.onActiveValueChange,$=e.activeDescendantId,I=e.searchValue,N=e.autoClearSearchValue,A=e.onSearch,F=e.onSearchSplit,j=e.tokenSeparators,M=e.allowClear,R=e.prefix,P=e.suffixIcon,z=e.clearIcon,H=e.OptionList,L=e.animation,T=e.transitionName,_=e.dropdownStyle,D=e.dropdownClassName,B=e.dropdownMatchSelectWidth,V=e.dropdownRender,W=e.dropdownAlign,q=e.placement,Q=e.builtinPlacements,U=e.getPopupContainer,J=e.showAction,X=J===void 0?[]:J,Y=e.onFocus,ae=e.onBlur,oe=e.onKeyUp,ne=e.onKeyDown,ue=e.onMouseDown,pe=Dt(e,v5),be=ef(m),Se=(i!==void 0?i:be)||m==="combobox",he=K({},pe);b5.forEach(function(ht){delete he[ht]}),c==null||c.forEach(function(ht){delete he[ht]});var ke=d.useState(!1),ce=te(ke,2),de=ce[0],Ae=ce[1];d.useEffect(function(){Ae(fm())},[]);var ie=d.useRef(null),We=d.useRef(null),ze=d.useRef(null),De=d.useRef(null),Ee=d.useRef(null),Ve=d.useRef(!1),Ne=EN(),Fe=te(Ne,3),$e=Fe[0],je=Fe[1],qe=Fe[2];d.useImperativeHandle(t,function(){var ht,tn;return{focus:(ht=De.current)===null||ht===void 0?void 0:ht.focus,blur:(tn=De.current)===null||tn===void 0?void 0:tn.blur,scrollTo:function(mn){var Ze;return(Ze=Ee.current)===null||Ze===void 0?void 0:Ze.scrollTo(mn)},nativeElement:ie.current||We.current}});var ve=d.useMemo(function(){var ht;if(m!=="combobox")return I;var tn=(ht=u[0])===null||ht===void 0?void 0:ht.value;return typeof tn=="string"||typeof tn=="number"?String(tn):""},[I,m,u]),it=m==="combobox"&&typeof x=="function"&&x()||null,pt=typeof C=="function"&&C(),yt=ls(We,pt==null||(n=pt.props)===null||n===void 0?void 0:n.ref),Pt=d.useState(!1),He=te(Pt,2),Xe=He[0],Ye=He[1];Ut(function(){Ye(!0)},[]);var Je=bn(!1,{defaultValue:E,value:w}),tt=te(Je,2),Ot=tt[0],Nt=tt[1],et=Xe?Ot:!1,st=!h&&p;(b||st&&et&&m==="combobox")&&(et=!1);var Ct=st?!1:et,Le=d.useCallback(function(ht){var tn=ht!==void 0?ht:!et;b||(Nt(tn),et!==tn&&(S==null||S(tn)))},[b,et,Nt,S]),Pe=d.useMemo(function(){return(j||[]).some(function(ht){return[`
|
|
291
|
-
`,`\r
|
|
292
|
-
`].includes(ht)})},[j]),ye=d.useContext(mm)||{},Te=ye.maxCount,nt=ye.rawValues,Qe=function(ht,tn,mn){if(!(be&&Zd(Te)&&(nt==null?void 0:nt.size)>=Te)){var Ze=!0,Bt=ht;O==null||O(null);var dn=g5(ht,j,Zd(Te)?Te-nt.size:void 0),Cn=mn?null:dn;return m!=="combobox"&&Cn&&(Bt="",F==null||F(Cn),Le(!1),Ze=!1),A&&ve!==Bt&&A(Bt,{source:tn?"typing":"effect"}),Ze}},ot=function(ht){!ht||!ht.trim()||A(ht,{source:"submit"})};d.useEffect(function(){!et&&!be&&m!=="combobox"&&Qe("",!1,!1)},[et]),d.useEffect(function(){Ot&&b&&Nt(!1),b&&!Ve.current&&je(!1)},[b]);var gt=Q1(),kt=te(gt,2),Mt=kt[0],Jt=kt[1],Ht=d.useRef(!1),Z=function(ht){var tn=Mt(),mn=ht.key,Ze=mn==="Enter";if(Ze&&(m!=="combobox"&&ht.preventDefault(),et||Le(!0)),Jt(!!ve),mn==="Backspace"&&!tn&&be&&!ve&&u.length){for(var Bt=_e(u),dn=null,Cn=Bt.length-1;Cn>=0;Cn-=1){var nr=Bt[Cn];if(!nr.disabled){Bt.splice(Cn,1),dn=nr;break}}dn&&f(Bt,{type:"remove",values:[dn]})}for(var rr=arguments.length,or=new Array(rr>1?rr-1:0),Wr=1;Wr<rr;Wr++)or[Wr-1]=arguments[Wr];if(et&&(!Ze||!Ht.current)){var vt;Ze&&(Ht.current=!0),(vt=Ee.current)===null||vt===void 0||vt.onKeyDown.apply(vt,[ht].concat(or))}ne==null||ne.apply(void 0,[ht].concat(or))},ee=function(ht){for(var tn=arguments.length,mn=new Array(tn>1?tn-1:0),Ze=1;Ze<tn;Ze++)mn[Ze-1]=arguments[Ze];if(et){var Bt;(Bt=Ee.current)===null||Bt===void 0||Bt.onKeyUp.apply(Bt,[ht].concat(mn))}ht.key==="Enter"&&(Ht.current=!1),oe==null||oe.apply(void 0,[ht].concat(mn))},we=function(ht){var tn=u.filter(function(mn){return mn!==ht});f(tn,{type:"remove",values:[ht]})},Ie=function(){Ht.current=!1},le=d.useRef(!1),Ce=function(){je(!0),b||(Y&&!le.current&&Y.apply(void 0,arguments),X.includes("focus")&&Le(!0)),le.current=!0},Me=function(){Ve.current=!0,je(!1,function(){le.current=!1,Ve.current=!1,Le(!1)}),!b&&(ve&&(m==="tags"?A(ve,{source:"submit"}):m==="multiple"&&A("",{source:"blur"})),ae&&ae.apply(void 0,arguments))},Oe=[];d.useEffect(function(){return function(){Oe.forEach(function(ht){return clearTimeout(ht)}),Oe.splice(0,Oe.length)}},[]);var Ue=function(ht){var tn,mn=ht.target,Ze=(tn=ze.current)===null||tn===void 0?void 0:tn.getPopupElement();if(Ze&&Ze.contains(mn)){var Bt=setTimeout(function(){var rr=Oe.indexOf(Bt);if(rr!==-1&&Oe.splice(rr,1),qe(),!de&&!Ze.contains(document.activeElement)){var or;(or=De.current)===null||or===void 0||or.focus()}});Oe.push(Bt)}for(var dn=arguments.length,Cn=new Array(dn>1?dn-1:0),nr=1;nr<dn;nr++)Cn[nr-1]=arguments[nr];ue==null||ue.apply(void 0,[ht].concat(Cn))},bt=d.useState({}),Re=te(bt,2),St=Re[1];function xt(){St({})}var Et;pt&&(Et=function(ht){Le(ht)}),$N(function(){var ht;return[ie.current,(ht=ze.current)===null||ht===void 0?void 0:ht.getPopupElement()]},Ct,Le,!!pt);var lt=d.useMemo(function(){return K(K({},e),{},{notFoundContent:h,open:et,triggerOpen:Ct,id:r,showSearch:Se,multiple:be,toggleOpen:Le})},[e,h,Ct,et,r,Se,be,Le]),Yt=!!P||y,ft;Yt&&(ft=d.createElement(Cc,{className:me("".concat(o,"-arrow"),G({},"".concat(o,"-arrow-loading"),y)),customizeIcon:P,customizeIconProps:{loading:y,searchValue:ve,open:et,focused:$e,showSearch:Se}}));var It=function(){var ht;g==null||g(),(ht=De.current)===null||ht===void 0||ht.focus(),f([],{type:"clear",values:u}),Qe("",!1,!1)},Rt=CN(o,It,u,M,z,b,ve,m),_t=Rt.allowClear,Lt=Rt.clearIcon,hn=d.createElement(H,{ref:Ee}),pn=me(o,a,G(G(G(G(G(G(G(G(G(G({},"".concat(o,"-focused"),$e),"".concat(o,"-multiple"),be),"".concat(o,"-single"),!be),"".concat(o,"-allow-clear"),M),"".concat(o,"-show-arrow"),Yt),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),et),"".concat(o,"-customize-input"),it),"".concat(o,"-show-search"),Se)),Dn=d.createElement(p5,{ref:ze,disabled:b,prefixCls:o,visible:Ct,popupElement:hn,animation:L,transitionName:T,dropdownStyle:_,dropdownClassName:D,direction:l,dropdownMatchSelectWidth:B,dropdownRender:V,dropdownAlign:W,placement:q,builtinPlacements:Q,getPopupContainer:U,empty:p,getTriggerDOMNode:function(ht){return We.current||ht},onPopupVisibleChange:Et,onPopupMouseEnter:xt},pt?d.cloneElement(pt,{ref:yt}):d.createElement(KN,Ge({},e,{domRef:We,prefixCls:o,inputElement:it,ref:De,id:r,prefix:R,showSearch:Se,autoClearSearchValue:N,mode:m,activeDescendantId:$,tagRender:s,values:u,open:et,onToggleOpen:Le,activeValue:k,searchValue:ve,onSearch:Qe,onSearchSubmit:ot,onRemove:we,tokenWithEnter:Pe,onInputBlur:Ie}))),tr;return pt?tr=Dn:tr=d.createElement("div",Ge({className:pn},he,{ref:ie,onMouseDown:Ue,onKeyDown:Z,onKeyUp:ee,onFocus:Ce,onBlur:Me}),d.createElement(h5,{visible:$e&&!et,values:u}),Dn,ft,_t&&Lt),d.createElement(K1.Provider,{value:lt},tr)}),gm=function(){return null};gm.isSelectOptGroup=!0;var hm=function(){return null};hm.isSelectOption=!0;var ax=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=K(K({},p),{},G(G(G(G(G({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(eo,{onResize:function(v){var h=v.offsetHeight;h&&s&&s()}},d.createElement("div",Ge({style:p,className:me(G({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});ax.displayName="Filler";function x5(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function w5(e,t,n,r,o,a,i,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var f=t+u,p=i(c,f,{style:{width:r},offsetX:o}),v=l(c);return d.createElement(x5,{key:v,setRef:function(h){return a(c,h)}},p)})}function C5(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var p=l(a[f]),v=l(i[f]);if(p!==v){c=f,u=u||p!==l(i[f+1]);break}}return c===null?null:{index:c,multiple:u}}function S5(e,t,n){var r=d.useState(e),o=te(r,2),a=o[0],i=o[1],s=d.useState(null),l=te(s,2),c=l[0],u=l[1];return d.useEffect(function(){var f=C5(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&u(e[f.index]),i(e)},[e]),[c]}var Qh=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ix=(function(e,t,n,r){var o=Ke(!1),a=Ke(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=Ke({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}});function E5(e,t,n,r,o,a,i){var s=Ke(0),l=Ke(null),c=Ke(null),u=Ke(!1),f=ix(t,n,r,o);function p(y,x){if(Tt.cancel(l.current),!f(!1,x)){var C=y;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=x,c.current=x,Qh||C.preventDefault(),l.current=Tt(function(){var w=u.current?10:1;i(s.current*w,!1),s.current=0})}}function v(y,x){i(x,!0),Qh||y.preventDefault()}var h=Ke(null),g=Ke(null);function m(y){if(e){Tt.cancel(g.current),g.current=Tt(function(){h.current=null},2);var x=y.deltaX,C=y.deltaY,w=y.shiftKey,E=x,S=C;(h.current==="sx"||!h.current&&w&&C&&!x)&&(E=C,S=0,h.current="sx");var k=Math.abs(E),O=Math.abs(S);h.current===null&&(h.current=a&&k>O?"x":"y"),h.current==="y"?p(y,S):v(y,E)}}function b(y){e&&(u.current=y.detail===c.current)}return[m,b]}function $5(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=te(o,2),i=a[0],s=a[1],l=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(u);if(f===void 0||p===void 0)for(var v=e.length,h=s.length;h<v;h+=1){var g,m=e[h],b=t(m);i.set(b,h);var y=(g=n.get(b))!==null&&g!==void 0?g:r;if(s[h]=(s[h-1]||0)+y,b===c&&(f=h),b===u&&(p=h),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var k5=(function(){function e(){xn(this,e),G(this,"maps",void 0),G(this,"id",0),G(this,"diffRecords",new Map),this.maps=Object.create(null)}return wn(e,[{key:"set",value:function(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Zh(e){var t=parseFloat(e);return isNaN(t)?0:t}function O5(e,t,n){var r=d.useState(0),o=te(r,2),a=o[0],i=o[1],s=Ke(new Map),l=Ke(new k5),c=Ke(0);function u(){c.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var m=!1;s.current.forEach(function(b,y){if(b&&b.offsetParent){var x=b.offsetHeight,C=getComputedStyle(b),w=C.marginTop,E=C.marginBottom,S=Zh(w),k=Zh(E),O=x+S+k;l.current.get(y)!==O&&(l.current.set(y,O),m=!0)}}),m&&i(function(b){return b+1})};if(v)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function p(v,h){var g=e(v);s.current.get(g),h?(s.current.set(g,h),f()):s.current.delete(g)}return mt(function(){return u},[]),[p,f,l.current,a]}var Jh=14/15;function I5(e,t,n){var r=Ke(!1),o=Ke(0),a=Ke(0),i=Ke(null),s=Ke(null),l,c=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),g=o.current-v,m=a.current-h,b=Math.abs(g)>Math.abs(m);b?o.current=v:a.current=h;var y=n(b,b?g:m,!1,p);y&&p.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?g*=Jh:m*=Jh;var x=Math.floor(b?g:m);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",u,{passive:!0}))};l=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",u))},Ut(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function ev(e){return Math.floor(Math.pow(e,.5))}function tf(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function M5(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){Tt.cancel(a)},l=function p(){s(),a=Tt(function(){n(i),p()})},c=function(){o=!1,s()},u=function(p){if(!(p.target.draggable||p.button!==0)){var v=p;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},f=function(p){if(o){var v=tf(p,!1),h=r.getBoundingClientRect(),g=h.top,m=h.bottom;if(v<=g){var b=g-v;i=-ev(b),l()}else if(v>=m){var y=v-m;i=ev(y),l()}else s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var F5=10;function N5(e,t,n,r,o,a,i,s){var l=d.useRef(),c=d.useState(null),u=te(c,2),f=u[0],p=u[1];return Ut(function(){if(f&&f.times<F5){if(!e.current){p(function(z){return K({},z)});return}a();var v=f.targetAlign,h=f.originAlign,g=f.index,m=f.offset,b=e.current.clientHeight,y=!1,x=v,C=null;if(b){for(var w=v||h,E=0,S=0,k=0,O=Math.min(t.length-1,g),$=0;$<=O;$+=1){var I=o(t[$]);S=E;var N=n.get(I);k=S+(N===void 0?r:N),E=k}for(var A=w==="top"?m:b-m,F=O;F>=0;F-=1){var j=o(t[F]),M=n.get(j);if(M===void 0){y=!0;break}if(A-=M,A<=0)break}switch(w){case"top":C=S-m;break;case"bottom":C=k-b+m;break;default:{var R=e.current.scrollTop,P=R+b;S<R?x="top":k>P&&(x="bottom")}}C!==null&&i(C),C!==f.lastTop&&(y=!0)}y&&p(K(K({},f),{},{times:f.times+1,targetAlign:x,lastTop:C}))}},[f,e.current]),function(v){if(v==null){s();return}if(Tt.cancel(l.current),typeof v=="number")i(v);else if(v&&dt(v)==="object"){var h,g=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var m=v.offset,b=m===void 0?0:m;p({times:0,index:h,offset:b,originAlign:g})}}}var tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,v=e.thumbStyle,h=e.showScrollBar,g=d.useState(!1),m=te(g,2),b=m[0],y=m[1],x=d.useState(null),C=te(x,2),w=C[0],E=C[1],S=d.useState(null),k=te(S,2),O=k[0],$=k[1],I=!r,N=d.useRef(),A=d.useRef(),F=d.useState(h),j=te(F,2),M=j[0],R=j[1],P=d.useRef(),z=function(){h===!0||h===!1||(clearTimeout(P.current),R(!0),P.current=setTimeout(function(){R(!1)},3e3))},H=a-f||0,L=f-u||0,T=d.useMemo(function(){if(o===0||H===0)return 0;var J=o/H;return J*L},[o,H,L]),_=function(J){J.stopPropagation(),J.preventDefault()},D=d.useRef({top:T,dragging:b,pageY:w,startTop:O});D.current={top:T,dragging:b,pageY:w,startTop:O};var B=function(J){y(!0),E(tf(J,c)),$(D.current.top),i(),J.stopPropagation(),J.preventDefault()};d.useEffect(function(){var J=function(ae){ae.preventDefault()},X=N.current,Y=A.current;return X.addEventListener("touchstart",J,{passive:!1}),Y.addEventListener("touchstart",B,{passive:!1}),function(){X.removeEventListener("touchstart",J),Y.removeEventListener("touchstart",B)}},[]);var V=d.useRef();V.current=H;var W=d.useRef();W.current=L,d.useEffect(function(){if(b){var J,X=function(ae){var oe=D.current,ne=oe.dragging,ue=oe.pageY,pe=oe.startTop;Tt.cancel(J);var be=N.current.getBoundingClientRect(),Se=f/(c?be.width:be.height);if(ne){var he=(tf(ae,c)-ue)*Se,ke=pe;!I&&c?ke-=he:ke+=he;var ce=V.current,de=W.current,Ae=de?ke/de:0,ie=Math.ceil(Ae*ce);ie=Math.max(ie,0),ie=Math.min(ie,ce),J=Tt(function(){l(ie,c)})}},Y=function(){y(!1),s()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",Y,{passive:!0}),window.addEventListener("touchend",Y,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),Tt.cancel(J)}}},[b]),d.useEffect(function(){return z(),function(){clearTimeout(P.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:z}});var q="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:M?null:"hidden"},U={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(Q,{height:8,left:0,right:0,bottom:0}),Object.assign(U,G({height:"100%",width:u},I?"left":"right",T))):(Object.assign(Q,G({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(U,{width:"100%",height:u,top:T})),d.createElement("div",{ref:N,className:me(q,G(G(G({},"".concat(q,"-horizontal"),c),"".concat(q,"-vertical"),!c),"".concat(q,"-visible"),M)),style:K(K({},Q),p),onMouseDown:_,onMouseMove:z},d.createElement("div",{ref:A,className:me("".concat(q,"-thumb"),G({},"".concat(q,"-thumb-moving"),b)),style:K(K({},U),v),onMouseDown:B}))}),j5=20;function nv(){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,j5),Math.floor(n)}var P5=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],A5=[],R5={overflowY:"auto",overflowAnchor:"none"};function T5(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,v=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=m===void 0?"div":m,y=e.onScroll,x=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,E=e.extraRender,S=e.styles,k=e.showScrollBar,O=k===void 0?"optional":k,$=Dt(e,P5),I=d.useCallback(function(le){return typeof p=="function"?p(le):le==null?void 0:le[p]},[p]),N=O5(I),A=te(N,4),F=A[0],j=A[1],M=A[2],R=A[3],P=!!(v!==!1&&a&&i),z=d.useMemo(function(){return Object.values(M.maps).reduce(function(le,Ce){return le+Ce},0)},[M.id,M.maps]),H=P&&u&&(Math.max(i*u.length,z)>a||!!g),L=h==="rtl",T=me(r,G({},"".concat(r,"-rtl"),L),o),_=u||A5,D=Ke(),B=Ke(),V=Ke(),W=ct(0),q=te(W,2),Q=q[0],U=q[1],J=ct(0),X=te(J,2),Y=X[0],ae=X[1],oe=ct(!1),ne=te(oe,2),ue=ne[0],pe=ne[1],be=function(){pe(!0)},Se=function(){pe(!1)},he={getKey:I};function ke(le){U(function(Ce){var Me;typeof le=="function"?Me=le(Ce):Me=le;var Oe=Ye(Me);return D.current.scrollTop=Oe,Oe})}var ce=Ke({start:0,end:_.length}),de=Ke(),Ae=S5(_,I),ie=te(Ae,1),We=ie[0];de.current=We;var ze=d.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!H){var le;return{scrollHeight:((le=B.current)===null||le===void 0?void 0:le.offsetHeight)||0,start:0,end:_.length-1,offset:void 0}}for(var Ce=0,Me,Oe,Ue,bt=_.length,Re=0;Re<bt;Re+=1){var St=_[Re],xt=I(St),Et=M.get(xt),lt=Ce+(Et===void 0?i:Et);lt>=Q&&Me===void 0&&(Me=Re,Oe=Ce),lt>Q+a&&Ue===void 0&&(Ue=Re),Ce=lt}return Me===void 0&&(Me=0,Oe=0,Ue=Math.ceil(a/i)),Ue===void 0&&(Ue=_.length-1),Ue=Math.min(Ue+1,_.length-1),{scrollHeight:Ce,start:Me,end:Ue,offset:Oe}},[H,P,Q,_,R,a]),De=ze.scrollHeight,Ee=ze.start,Ve=ze.end,Ne=ze.offset;ce.current.start=Ee,ce.current.end=Ve,d.useLayoutEffect(function(){var le=M.getRecord();if(le.size===1){var Ce=Array.from(le.keys())[0],Me=le.get(Ce),Oe=_[Ee];if(Oe&&Me===void 0){var Ue=I(Oe);if(Ue===Ce){var bt=M.get(Ce),Re=bt-i;ke(function(St){return St+Re})}}}M.resetRecord()},[De]);var Fe=d.useState({width:0,height:a}),$e=te(Fe,2),je=$e[0],qe=$e[1],ve=function(le){qe({width:le.offsetWidth,height:le.offsetHeight})},it=Ke(),pt=Ke(),yt=d.useMemo(function(){return nv(je.width,g)},[je.width,g]),Pt=d.useMemo(function(){return nv(je.height,De)},[je.height,De]),He=De-a,Xe=Ke(He);Xe.current=He;function Ye(le){var Ce=le;return Number.isNaN(Xe.current)||(Ce=Math.min(Ce,Xe.current)),Ce=Math.max(Ce,0),Ce}var Je=Q<=0,tt=Q>=He,Ot=Y<=0,Nt=Y>=g,et=ix(Je,tt,Ot,Nt),st=function(){return{x:L?-Y:Y,y:Q}},Ct=Ke(st()),Le=Vt(function(le){if(x){var Ce=K(K({},st()),le);(Ct.current.x!==Ce.x||Ct.current.y!==Ce.y)&&(x(Ce),Ct.current=Ce)}});function Pe(le,Ce){var Me=le;Ce?(ed(function(){ae(Me)}),Le()):ke(Me)}function ye(le){var Ce=le.currentTarget.scrollTop;Ce!==Q&&ke(Ce),y==null||y(le),Le()}var Te=function(le){var Ce=le,Me=g?g-je.width:0;return Ce=Math.max(Ce,0),Ce=Math.min(Ce,Me),Ce},nt=Vt(function(le,Ce){Ce?(ed(function(){ae(function(Me){var Oe=Me+(L?-le:le);return Te(Oe)})}),Le()):ke(function(Me){var Oe=Me+le;return Oe})}),Qe=E5(P,Je,tt,Ot,Nt,!!g,nt),ot=te(Qe,2),gt=ot[0],kt=ot[1];I5(P,D,function(le,Ce,Me,Oe){var Ue=Oe;return et(le,Ce,Me)?!1:!Ue||!Ue._virtualHandled?(Ue&&(Ue._virtualHandled=!0),gt({preventDefault:function(){},deltaX:le?Ce:0,deltaY:le?0:Ce}),!0):!1}),M5(H,D,function(le){ke(function(Ce){return Ce+le})}),Ut(function(){function le(Me){var Oe=Je&&Me.detail<0,Ue=tt&&Me.detail>0;P&&!Oe&&!Ue&&Me.preventDefault()}var Ce=D.current;return Ce.addEventListener("wheel",gt,{passive:!1}),Ce.addEventListener("DOMMouseScroll",kt,{passive:!0}),Ce.addEventListener("MozMousePixelScroll",le,{passive:!1}),function(){Ce.removeEventListener("wheel",gt),Ce.removeEventListener("DOMMouseScroll",kt),Ce.removeEventListener("MozMousePixelScroll",le)}},[P,Je,tt]),Ut(function(){if(g){var le=Te(Y);ae(le),Le({x:le})}},[je.width,g]);var Mt=function(){var le,Ce;(le=it.current)===null||le===void 0||le.delayHidden(),(Ce=pt.current)===null||Ce===void 0||Ce.delayHidden()},Jt=N5(D,_,M,i,I,function(){return j(!0)},ke,Mt);d.useImperativeHandle(t,function(){return{nativeElement:V.current,getScrollInfo:st,scrollTo:function(le){function Ce(Me){return Me&&dt(Me)==="object"&&("left"in Me||"top"in Me)}Ce(le)?(le.left!==void 0&&ae(Te(le.left)),Jt(le.top)):Jt(le)}}}),Ut(function(){if(C){var le=_.slice(Ee,Ve+1);C(le,_)}},[Ee,Ve,_]);var Ht=$5(_,I,M,i),Z=E==null?void 0:E({start:Ee,end:Ve,virtual:H,offsetX:Y,offsetY:Ne,rtl:L,getSize:Ht}),ee=w5(_,Ee,Ve,g,Y,F,f,he),we=null;a&&(we=K(G({},l?"height":"maxHeight",a),R5),P&&(we.overflowY="hidden",g&&(we.overflowX="hidden"),ue&&(we.pointerEvents="none")));var Ie={};return L&&(Ie.dir="rtl"),d.createElement("div",Ge({ref:V,style:K(K({},c),{},{position:"relative"}),className:T},Ie,$),d.createElement(eo,{onResize:ve},d.createElement(b,{className:"".concat(r,"-holder"),style:we,ref:D,onScroll:ye,onMouseEnter:Mt},d.createElement(ax,{prefixCls:r,height:De,offsetX:Y,offsetY:Ne,scrollWidth:g,onInnerResize:j,ref:B,innerProps:w,rtl:L,extra:Z},ee))),H&&De>a&&d.createElement(tv,{ref:it,prefixCls:r,scrollOffset:Q,scrollRange:De,rtl:L,onScroll:Pe,onStartMove:be,onStopMove:Se,spinSize:Pt,containerSize:je.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb,showScrollBar:O}),H&&g>je.width&&d.createElement(tv,{ref:pt,prefixCls:r,scrollOffset:Y,scrollRange:g,rtl:L,onScroll:Pe,onStartMove:be,onStopMove:Se,spinSize:yt,containerSize:je.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb,showScrollBar:O}))}var sx=d.forwardRef(T5);sx.displayName="List";function D5(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _5=["disabled","title","children","style","className"];function rv(e){return typeof e=="string"||typeof e=="number"}var B5=function(e,t){var n=SN(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,f=n.onPopupScroll,p=d.useContext(mm),v=p.maxCount,h=p.flattenOptions,g=p.onActiveValue,m=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,w=p.virtual,E=p.direction,S=p.listHeight,k=p.listItemHeight,O=p.optionRender,$="".concat(r,"-item"),I=tc(function(){return h},[a,h],function(U,J){return J[0]&&U[1]!==J[1]}),N=d.useRef(null),A=d.useMemo(function(){return i&&Zd(v)&&(x==null?void 0:x.size)>=v},[i,v,x==null?void 0:x.size]),F=function(U){U.preventDefault()},j=function(U){var J;(J=N.current)===null||J===void 0||J.scrollTo(typeof U=="number"?{index:U}:U)},M=d.useCallback(function(U){return s==="combobox"?!1:x.has(U)},[s,_e(x).toString(),x.size]),R=function(U){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=I.length,Y=0;Y<X;Y+=1){var ae=(U+Y*J+X)%X,oe=I[ae]||{},ne=oe.group,ue=oe.data;if(!ne&&!(ue!=null&&ue.disabled)&&(M(ue.value)||!A))return ae}return-1},P=d.useState(function(){return R(0)}),z=te(P,2),H=z[0],L=z[1],T=function(U){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(U);var X={source:J?"keyboard":"mouse"},Y=I[U];if(!Y){g(null,-1,X);return}g(Y.value,U,X)};mt(function(){T(m!==!1?R(0):-1)},[I.length,l]);var _=d.useCallback(function(U){return s==="combobox"?String(U).toLowerCase()===l.toLowerCase():x.has(U)},[s,l,_e(x).toString(),x.size]);mt(function(){var U=setTimeout(function(){if(!i&&a&&x.size===1){var X=Array.from(x)[0],Y=I.findIndex(function(ae){var oe=ae.data;return l?String(oe.value).startsWith(l):oe.value===X});Y!==-1&&(T(Y),j(Y))}});if(a){var J;(J=N.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(U)}},[a,l]);var D=function(U){U!==void 0&&b(U,{selected:!x.has(U)}),i||c(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(U){var J=U.which,X=U.ctrlKey;switch(J){case ut.N:case ut.P:case ut.UP:case ut.DOWN:{var Y=0;if(J===ut.UP?Y=-1:J===ut.DOWN?Y=1:D5()&&X&&(J===ut.N?Y=1:J===ut.P&&(Y=-1)),Y!==0){var ae=R(H+Y,Y);j(ae),T(ae,!0)}break}case ut.TAB:case ut.ENTER:{var oe,ne=I[H];ne&&!(ne!=null&&(oe=ne.data)!==null&&oe!==void 0&&oe.disabled)&&!A?D(ne.value):D(void 0),a&&U.preventDefault();break}case ut.ESC:c(!1),a&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){j(U)}}}),I.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:F},u);var B=Object.keys(C).map(function(U){return C[U]}),V=function(U){return U.label};function W(U,J){var X=U.group;return{role:X?"presentation":"option",id:"".concat(o,"_list_").concat(J)}}var q=function(U){var J=I[U];if(!J)return null;var X=J.data||{},Y=X.value,ae=J.group,oe=Br(X,!0),ne=V(J);return J?d.createElement("div",Ge({"aria-label":typeof ne=="string"&&!ae?ne:null},oe,{key:U},W(J,U),{"aria-selected":_(Y)}),Y):null},Q={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,w&&d.createElement("div",Ge({},Q,{style:{height:0,width:0,overflow:"hidden"}}),q(H-1),q(H),q(H+1)),d.createElement(sx,{itemKey:"key",ref:N,data:I,height:S,itemHeight:k,fullHeight:!1,onMouseDown:F,onScroll:f,virtual:w,direction:E,innerProps:w?null:Q},function(U,J){var X=U.group,Y=U.groupOption,ae=U.data,oe=U.label,ne=U.value,ue=ae.key;if(X){var pe,be=(pe=ae.title)!==null&&pe!==void 0?pe:rv(oe)?oe.toString():void 0;return d.createElement("div",{className:me($,"".concat($,"-group"),ae.className),title:be},oe!==void 0?oe:ue)}var Se=ae.disabled,he=ae.title,ke=ae.style,ce=ae.className,de=Dt(ae,_5),Ae=to(de,B),ie=M(ne),We=Se||!ie&&A,ze="".concat($,"-option"),De=me($,ze,ce,G(G(G(G({},"".concat(ze,"-grouped"),Y),"".concat(ze,"-active"),H===J&&!We),"".concat(ze,"-disabled"),We),"".concat(ze,"-selected"),ie)),Ee=V(U),Ve=!y||typeof y=="function"||ie,Ne=typeof Ee=="number"?Ee:Ee||ne,Fe=rv(Ne)?Ne.toString():void 0;return he!==void 0&&(Fe=he),d.createElement("div",Ge({},Br(Ae),w?{}:W(U,J),{"aria-selected":_(ne),className:De,title:Fe,onMouseMove:function(){H===J||We||T(J)},onClick:function(){We||D(ne)},style:ke}),d.createElement("div",{className:"".concat(ze,"-content")},typeof O=="function"?O(U,{index:J}):Ne),d.isValidElement(y)||ie,Ve&&d.createElement(Cc,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:ne,disabled:We,isSelected:ie}},ie?"\u2713":null))}))},z5=d.forwardRef(B5);const H5=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return K(K({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function bu(e,t){return nx(e).join("").toUpperCase().includes(t)}const L5=(function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(v,h){return o?bu(h[o],u):h[a]?bu(h[i!=="children"?i:"label"],u):bu(h[s],u)},p=c?function(v){return Jd(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,p(v));if(h)l.push(v);else{var g=v[a].filter(function(m){return f(n,p(m))});g.length&&l.push(K(K({},v),{},G({},a,g)))}return}f(n,p(v))&&l.push(v)}),l},[e,r,o,n,t])});var ov=0,V5=er();function W5(){var e;return V5?(e=ov,ov+=1):e="TEST_OR_SSR",e}function q5(e){var t=d.useState(),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(W5()))},[]),e||r}var U5=["children","value"],Y5=["children"];function X5(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Dt(r,U5);return K({key:n,value:a!==void 0?a:n,children:o},i)}function lx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ha(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=Dt(s,Y5);return t||!a?X5(n):K(K({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:lx(l)})}).filter(function(n){return n})}var G5=function(e,t,n,r,o){return d.useMemo(function(){var a=e,i=!e;i&&(a=lx(t));var s=new Map,l=new Map,c=function(f,p,v){v&&typeof v=="string"&&f.set(p[v],p)},u=function f(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var g=p[h];!g[n.options]||v?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):f(g[n.options],!0)}};return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])};function av(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var K5=["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"],Q5=["inputValue"];function Z5(e){return!e||dt(e)!=="object"}var J5=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=g===void 0?!0:g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,C=e.optionLabelProp,w=e.options,E=e.optionRender,S=e.children,k=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,$=e.virtual,I=e.direction,N=e.listHeight,A=N===void 0?200:N,F=e.listItemHeight,j=F===void 0?20:F,M=e.labelRender,R=e.value,P=e.defaultValue,z=e.labelInValue,H=e.onChange,L=e.maxCount,T=Dt(e,K5),_=q5(n),D=ef(r),B=!!(!w&&S),V=d.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),W=d.useMemo(function(){return ox(s,B)},[JSON.stringify(s),B]),q=bn("",{value:c!==void 0?c:l,postState:function(Le){return Le||""}}),Q=te(q,2),U=Q[0],J=Q[1],X=G5(w,S,W,x,C),Y=X.valueOptions,ae=X.labelOptions,oe=X.options,ne=d.useCallback(function(Le){var Pe=nx(Le);return Pe.map(function(ye){var Te,nt,Qe,ot,gt;if(Z5(ye))Te=ye;else{var kt;Qe=ye.key,nt=ye.label,Te=(kt=ye.value)!==null&&kt!==void 0?kt:Qe}var Mt=Y.get(Te);if(Mt){var Jt;nt===void 0&&(nt=Mt==null?void 0:Mt[C||W.label]),Qe===void 0&&(Qe=(Jt=Mt==null?void 0:Mt.key)!==null&&Jt!==void 0?Jt:Te),ot=Mt==null?void 0:Mt.disabled,gt=Mt==null?void 0:Mt.title}return{label:nt,value:Te,key:Qe,disabled:ot,title:gt}})},[W,C,Y]),ue=bn(P,{value:R}),pe=te(ue,2),be=pe[0],Se=pe[1],he=d.useMemo(function(){var Le,Pe=D&&be===null?[]:be,ye=ne(Pe);return r==="combobox"&&WN((Le=ye[0])===null||Le===void 0?void 0:Le.value)?[]:ye},[be,ne,r,D]),ke=H5(he,Y),ce=te(ke,2),de=ce[0],Ae=ce[1],ie=d.useMemo(function(){if(!r&&de.length===1){var Le=de[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return de.map(function(Pe){var ye;return K(K({},Pe),{},{label:(ye=typeof M=="function"?M(Pe):Pe.label)!==null&&ye!==void 0?ye:Pe.value})})},[r,de,M]),We=d.useMemo(function(){return new Set(de.map(function(Le){return Le.value}))},[de]);d.useEffect(function(){if(r==="combobox"){var Le,Pe=(Le=de[0])===null||Le===void 0?void 0:Le.value;J(VN(Pe)?String(Pe):"")}},[de]);var ze=av(function(Le,Pe){var ye=Pe??Le;return G(G({},W.value,Le),W.label,ye)}),De=d.useMemo(function(){if(r!=="tags")return oe;var Le=_e(oe),Pe=function(ye){return Y.has(ye)};return _e(de).sort(function(ye,Te){return ye.value<Te.value?-1:1}).forEach(function(ye){var Te=ye.value;Pe(Te)||Le.push(ze(Te,ye.label))}),Le},[ze,oe,Y,de,r]),Ee=L5(De,W,U,V,x),Ve=d.useMemo(function(){return r!=="tags"||!U||Ee.some(function(Le){return Le[x||"value"]===U})||Ee.some(function(Le){return Le[W.value]===U})?Ee:[ze(U)].concat(_e(Ee))},[ze,x,r,Ee,U,W]),Ne=function Le(Pe){var ye=_e(Pe).sort(function(Te,nt){return y(Te,nt,{searchValue:U})});return ye.map(function(Te){return Array.isArray(Te.options)?K(K({},Te),{},{options:Te.options.length>0?Le(Te.options):Te.options}):Te})},Fe=d.useMemo(function(){return y?Ne(Ve):Ve},[Ve,y,U]),$e=d.useMemo(function(){return m5(Fe,{fieldNames:W,childrenAsData:B})},[Fe,W,B]),je=function(Le){var Pe=ne(Le);if(Se(Pe),H&&(Pe.length!==de.length||Pe.some(function(nt,Qe){var ot;return((ot=de[Qe])===null||ot===void 0?void 0:ot.value)!==(nt==null?void 0:nt.value)}))){var ye=z?Pe:Pe.map(function(nt){return nt.value}),Te=Pe.map(function(nt){return Jd(Ae(nt.value))});H(D?ye:ye[0],D?Te:Te[0])}},qe=d.useState(null),ve=te(qe,2),it=ve[0],pt=ve[1],yt=d.useState(0),Pt=te(yt,2),He=Pt[0],Xe=Pt[1],Ye=k!==void 0?k:r!=="combobox",Je=d.useCallback(function(Le,Pe){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Te=ye.source,nt=Te===void 0?"keyboard":Te;Xe(Pe),i&&r==="combobox"&&Le!==null&&nt==="keyboard"&&pt(String(Le))},[i,r]),tt=function(Le,Pe,ye){var Te=function(){var Z,ee=Ae(Le);return[z?{label:ee==null?void 0:ee[W.label],value:Le,key:(Z=ee==null?void 0:ee.key)!==null&&Z!==void 0?Z:Le}:Le,Jd(ee)]};if(Pe&&v){var nt=Te(),Qe=te(nt,2),ot=Qe[0],gt=Qe[1];v(ot,gt)}else if(!Pe&&h&&ye!=="clear"){var kt=Te(),Mt=te(kt,2),Jt=Mt[0],Ht=Mt[1];h(Jt,Ht)}},Ot=av(function(Le,Pe){var ye,Te=D?Pe.selected:!0;Te?ye=D?[].concat(_e(de),[Le]):[Le]:ye=de.filter(function(nt){return nt.value!==Le}),je(ye),tt(Le,Te),r==="combobox"?pt(""):(!ef||p)&&(J(""),pt(""))}),Nt=function(Le,Pe){je(Le);var ye=Pe.type,Te=Pe.values;(ye==="remove"||ye==="clear")&&Te.forEach(function(nt){tt(nt.value,!1,ye)})},et=function(Le,Pe){if(J(Le),pt(null),Pe.source==="submit"){var ye=(Le||"").trim();if(ye){var Te=Array.from(new Set([].concat(_e(We),[ye])));je(Te),tt(ye,!0),J("")}return}Pe.source!=="blur"&&(r==="combobox"&&je(Le),u==null||u(Le))},st=function(Le){var Pe=Le;r!=="tags"&&(Pe=Le.map(function(Te){var nt=ae.get(Te);return nt==null?void 0:nt.value}).filter(function(Te){return Te!==void 0}));var ye=Array.from(new Set([].concat(_e(We),_e(Pe))));je(ye),ye.forEach(function(Te){tt(Te,!0)})},Ct=d.useMemo(function(){var Le=$!==!1&&m!==!1;return K(K({},X),{},{flattenOptions:$e,onActiveValue:Je,defaultActiveFirstOption:Ye,onSelect:Ot,menuItemSelectedIcon:O,rawValues:We,fieldNames:W,virtual:Le,direction:I,listHeight:A,listItemHeight:j,childrenAsData:B,maxCount:L,optionRender:E})},[L,X,$e,Je,Ye,Ot,O,We,W,$,m,I,A,j,B,E]);return d.createElement(mm.Provider,{value:Ct},d.createElement(y5,Ge({},T,{id:_,prefixCls:a,ref:t,omitDomProps:Q5,mode:r,displayValues:ie,onDisplayValuesChange:Nt,direction:I,searchValue:U,onSearch:et,autoClearSearchValue:p,onSearchSplit:st,dropdownMatchSelectWidth:m,OptionList:z5,emptyOptions:!$e.length,activeValue:it,activeDescendantId:"".concat(_,"_list_").concat(He)})))}),vm=J5;vm.Option=hm;vm.OptGroup=gm;function No(e,t,n){return me({[`${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 la=(e,t)=>t||e,ej=()=>{const[,e]=Or(),[t]=aa("Empty"),n=new Qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tj=()=>{const[,e]=Or(),[t]=aa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:l}=en(()=>({borderColor:new Qt(n).onBackground(a).toHexString(),shadowColor:new Qt(r).onBackground(a).toHexString(),contentColor:new Qt(o).onBackground(a).toHexString()}),[n,r,o,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:i},d.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"}),d.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:l}))))},nj=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},rj=Fn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=rn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return nj(o)});var oj=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 cx=d.createElement(ej,null),ux=d.createElement(tj,null),Bo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:l,style:c,classNames:u,styles:f}=e,p=oj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:g,style:m,classNames:b,styles:y,image:x}=lo("empty"),C=v("empty",o),[w,E,S]=rj(C),[k]=aa("Empty"),O=typeof i<"u"?i:k==null?void 0:k.description,$=typeof O=="string"?O:"empty",I=(t=a??x)!==null&&t!==void 0?t:cx;let N=null;return typeof I=="string"?N=d.createElement("img",{draggable:!1,alt:$,src:I}):N=I,w(d.createElement("div",Object.assign({className:me(E,S,C,g,{[`${C}-normal`]:I===ux,[`${C}-rtl`]:h==="rtl"},n,r,b.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),m),f==null?void 0:f.root),c)},p),d.createElement("div",{className:me(`${C}-image`,b.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),f==null?void 0:f.image)},N),O&&d.createElement("div",{className:me(`${C}-description`,b.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),f==null?void 0:f.description)},O),s&&d.createElement("div",{className:me(`${C}-footer`,b.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),f==null?void 0:f.footer)},s)))};Bo.PRESENTED_IMAGE_DEFAULT=cx;Bo.PRESENTED_IMAGE_SIMPLE=ux;const aj=e=>{const{componentName:t}=e,{getPrefixCls:n}=nn(qt),r=n("empty");switch(t){case"Table":case"List":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return fe.createElement(Bo,null)}},ri=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=d.useContext(qt),s=d.useContext(G1),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const u=gk.includes(c);return[c,u]},ij=e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};function sj(e,t){return e||ij(t)}const iv=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"}},lj=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},yn(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,[`
|
|
293
|
-
${o}${s}bottomLeft,
|
|
294
|
-
${a}${s}bottomLeft
|
|
295
|
-
`]:{animationName:em},[`
|
|
296
|
-
${o}${s}topLeft,
|
|
297
|
-
${a}${s}topLeft,
|
|
298
|
-
${o}${s}topRight,
|
|
299
|
-
${a}${s}topRight
|
|
300
|
-
`]:{animationName:nm},[`${i}${s}bottomLeft`]:{animationName:tm},[`
|
|
301
|
-
${i}${s}topLeft,
|
|
302
|
-
${i}${s}topRight
|
|
303
|
-
`]:{animationName:rm},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},iv(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"},Nl),"&-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({},iv(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},dx=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:xe(t),itemLineHeight:xe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},cj=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fx=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ds()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},uj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=cj(e),s=t?`${n}-${t}`:"",l=dx(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},fx(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${xe(r)} 0`,lineHeight:xe(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:xe(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:xe(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
304
|
-
${n}-prefix + ${n}-selection-wrap
|
|
305
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:xe(a),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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function yu(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
306
|
-
&${n}-show-arrow ${n}-selector,
|
|
307
|
-
&${n}-allow-clear ${n}-selector
|
|
308
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[uj(e,t),o]}const dj=e=>{const{componentCls:t}=e,n=rn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=rn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[yu(e),yu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},yu(r,"lg")]};function xu(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},yn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:xe(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
309
|
-
${n}-selection-item,
|
|
310
|
-
${n}-selection-placeholder
|
|
311
|
-
`]:{display:"block",padding:0,lineHeight:xe(a),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"'}}),[`
|
|
312
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
313
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
314
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
315
|
-
`]:{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 ${xe(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:xe(a)}}},[`&${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 ${xe(r)}`,"&:after":{display:"none"}}}}}}}function fj(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[xu(e),xu(rn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${xe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
316
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
317
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
318
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},xu(rn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const pj=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:x,controlOutline:C}=e,w=s*2,E=r*2,S=Math.min(o-w,o-E),k=Math.min(a-w,a-E),O=Math.min(i-w,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:k,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:C,selectAffixPadding:s}},px=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${xe(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 ${xe(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},sv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},px(e,t))}),mj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},px(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),sv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),sv(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:`${xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${xe(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}}}},lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mx(e,t))}),gj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),lv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lv(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:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),hj=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${xe(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:`${xe(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}}}}),gx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${xe(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}}}},cv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gx(e,t))}),vj=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},gx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,color:e.colorText})),cv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,color:e.colorError})),cv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,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:`${xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},mj(e)),gj(e)),hj(e)),vj(e))}),yj=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"}}}},xj=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"}}}},wj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},yn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yj(e)),xj(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Nl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Nl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ds()),{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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Cj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},wj(e),fj(e),dj(e),lj(e),{[`${t}-rtl`]:{direction:"rtl"}},ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Sj=Fn("Select",(e,{rootPrefixCls:t})=>{const n=rn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Cj(n),bj(n)]},pj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ej={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"},$j=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:Ej}))},kj=d.forwardRef($j),Oj={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"},Ij=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:Oj}))},hx=d.forwardRef(Ij),Mj={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"},Fj=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:Mj}))},vx=d.forwardRef(Fj);function bx({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){const p=t??d.createElement(uc,null),v=b=>e===null&&!i&&!u?null:d.createElement(d.Fragment,null,l!==!1&&b,i&&c);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(d.createElement(fs,{spin:!0}));else{const b=`${s}-suffix`;h=({open:y,showSearch:x})=>v(y&&x?d.createElement(vx,{className:b}):d.createElement(hx,{className:b}))}let g=null;n!==void 0?g=n:a?g=d.createElement(kj,null):g=null;let m=null;return r!==void 0?m=r:m=d.createElement(Gp,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}function Nj(e){return fe.useMemo(()=>{if(e)return(...t)=>fe.createElement(Fo,{space:!0},e.apply(void 0,t))},[e])}function jj(e,t){return t!==void 0?t:e!==null}var Pj=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 yx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Aj=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:p,dropdownClassName:v,listHeight:h=256,placement:g,listItemHeight:m,size:b,disabled:y,notFoundContent:x,status:C,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:S,direction:k,style:O,allowClear:$,variant:I,dropdownStyle:N,transitionName:A,tagRender:F,maxCount:j,prefix:M,dropdownRender:R,popupRender:P,onDropdownVisibleChange:z,onOpenChange:H,styles:L,classNames:T}=e,_=Pj(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:D,getPrefixCls:B,renderEmpty:V,direction:W,virtual:q,popupMatchSelectWidth:Q,popupOverflow:U}=d.useContext(qt),{showSearch:J,style:X,styles:Y,className:ae,classNames:oe}=lo("select"),[,ne]=Or(),ue=m??(ne==null?void 0:ne.controlHeight),pe=B("select",s),be=B(),Se=k??W,{compactSize:he,compactItemClassnames:ke}=Ro(pe,Se),[ce,de]=ri("select",I,l),Ae=pr(pe),[ie,We,ze]=Sj(pe,Ae),De=d.useMemo(()=>{const{mode:Te}=e;if(Te!=="combobox")return Te===yx?"combobox":Te},[e.mode]),Ee=De==="multiple"||De==="tags",Ve=jj(e.suffixIcon,e.showArrow),Ne=(n=S??E)!==null&&n!==void 0?n:Q,Fe=((r=L==null?void 0:L.popup)===null||r===void 0?void 0:r.root)||((o=Y.popup)===null||o===void 0?void 0:o.root)||N,$e=Nj(P||R),je=H||z,{status:qe,hasFeedback:ve,isFormItemInput:it,feedbackIcon:pt}=d.useContext(Ln),yt=la(qe,C);let Pt;x!==void 0?Pt=x:De==="combobox"?Pt=null:Pt=(V==null?void 0:V("Select"))||d.createElement(aj,{componentName:"Select"});const{suffixIcon:He,itemIcon:Xe,removeIcon:Ye,clearIcon:Je}=bx(Object.assign(Object.assign({},_),{multiple:Ee,hasFeedback:ve,feedbackIcon:pt,showSuffixIcon:Ve,prefixCls:pe,componentName:"Select"})),tt=$===!0?{clearIcon:Je}:$,Ot=to(_,["suffixIcon","itemIcon"]),Nt=me(((a=T==null?void 0:T.popup)===null||a===void 0?void 0:a.root)||((i=oe==null?void 0:oe.popup)===null||i===void 0?void 0:i.root)||p||v,{[`${pe}-dropdown-${Se}`]:Se==="rtl"},u,oe.root,T==null?void 0:T.root,ze,Ae,We),et=Ir(Te=>{var nt;return(nt=b??he)!==null&&nt!==void 0?nt:Te}),st=d.useContext(Kn),Ct=y??st,Le=me({[`${pe}-lg`]:et==="large",[`${pe}-sm`]:et==="small",[`${pe}-rtl`]:Se==="rtl",[`${pe}-${ce}`]:de,[`${pe}-in-form-item`]:it},No(pe,yt,ve),ke,ae,c,oe.root,T==null?void 0:T.root,u,ze,Ae,We),Pe=d.useMemo(()=>g!==void 0?g:Se==="rtl"?"bottomRight":"bottomLeft",[g,Se]),[ye]=dc("SelectLike",Fe==null?void 0:Fe.zIndex);return ie(d.createElement(vm,Object.assign({ref:t,virtual:q,showSearch:J},Ot,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Y.root),L==null?void 0:L.root),X),O),dropdownMatchSelectWidth:Ne,transitionName:N1(be,"slide-up",A),builtinPlacements:sj(w,U),listHeight:h,listItemHeight:ue,mode:De,prefixCls:pe,placement:Pe,direction:Se,prefix:M,suffixIcon:He,menuItemSelectedIcon:Xe,removeIcon:Ye,allowClear:tt,notFoundContent:Pt,className:Le,getPopupContainer:f||D,dropdownClassName:Nt,disabled:Ct,dropdownStyle:Object.assign(Object.assign({},Fe),{zIndex:ye}),maxCount:Ee?j:void 0,tagRender:Ee?F:void 0,dropdownRender:$e,onDropdownVisibleChange:je})))},ca=d.forwardRef(Aj),Rj=dm(ca,"dropdownAlign");ca.SECRET_COMBOBOX_MODE_DO_NOT_USE=yx;ca.Option=hm;ca.OptGroup=gm;ca._InternalPanelDoNotUseOrYouWillBeFired=Rj;const Tj=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},Dj=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Qi=["xxl","xl","lg","md","sm","xs"],_j=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)`}),Bj=e=>{const t=e,n=[].concat(Qi).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`)}}),e},zj=()=>{const[,e]=Or(),t=_j(Bj(e));return fe.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);Tj(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];Dj(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function Hj(){const[,e]=d.useReducer(t=>t+1,0);return e}function Lj(e=!0,t={}){const n=Ke(t),r=Hj(),o=zj();return Ut(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function xx(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return d.createElement("div",{className:me("".concat(n,"-content"),i),style:s},d.createElement("div",{className:me("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var xa={shiftX:64,adjustY:1},wa={adjustX:1,shiftY:!0},hr=[0,0],Vj={left:{points:["cr","cl"],overflow:wa,offset:[-4,0],targetOffset:hr},right:{points:["cl","cr"],overflow:wa,offset:[4,0],targetOffset:hr},top:{points:["bc","tc"],overflow:xa,offset:[0,-4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:xa,offset:[0,4],targetOffset:hr},topLeft:{points:["bl","tl"],overflow:xa,offset:[0,-4],targetOffset:hr},leftTop:{points:["tr","tl"],overflow:wa,offset:[-4,0],targetOffset:hr},topRight:{points:["br","tr"],overflow:xa,offset:[0,-4],targetOffset:hr},rightTop:{points:["tl","tr"],overflow:wa,offset:[4,0],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:xa,offset:[0,4],targetOffset:hr},rightBottom:{points:["bl","br"],overflow:wa,offset:[4,0],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:xa,offset:[0,4],targetOffset:hr},leftBottom:{points:["br","bl"],overflow:wa,offset:[-4,0],targetOffset:hr}},Wj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],qj=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,a=e.mouseEnterDelay,i=a===void 0?0:a,s=e.mouseLeaveDelay,l=s===void 0?.1:s,c=e.overlayStyle,u=e.prefixCls,f=u===void 0?"rc-tooltip":u,p=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,y=e.placement,x=y===void 0?"right":y,C=e.align,w=C===void 0?{}:C,E=e.destroyTooltipOnHide,S=E===void 0?!1:E,k=e.defaultVisible,O=e.getTooltipContainer,$=e.overlayInnerStyle,I=e.overlay,N=e.id,A=e.showArrow,F=A===void 0?!0:A,j=e.classNames,M=e.styles,R=Dt(e,Wj),P=im(N),z=Ke(null);Qa(t,function(){return z.current});var H=K({},R);"visible"in e&&(H.popupVisible=e.visible);var L=function(){return d.createElement(xx,{key:"content",prefixCls:f,id:P,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:K(K({},$),M==null?void 0:M.body)},I)},T=function(){var _=d.Children.only(p),D=(_==null?void 0:_.props)||{},B=K(K({},D),{},{"aria-describedby":I?P:null});return d.cloneElement(p,B)};return d.createElement(pm,Ge({popupClassName:me(n,j==null?void 0:j.root),prefixCls:f,popup:L,action:o,builtinPlacements:Vj,popupPlacement:x,ref:z,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:k,autoDestroy:S,mouseLeaveDelay:l,popupStyle:K(K({},c),M==null?void 0:M.root),mouseEnterDelay:i,arrow:F},H),T())};const Uj=zr(qj);function wx(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,p=u,v=2*o-s,h=l,g=2*o-a,m=i,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,C=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${v} ${h} A ${r} ${r} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:C,arrowPolygon:x}}const Cx=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sx=8;function Ex(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sx:r}}function Rs(e,t){return e?t:{}}function Yj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Cx(e,t,o)),{"&:before":{background:t}})]},Rs(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Rs(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function Xj(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const uv={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"]}},Gj={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"]}},Kj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Qj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,s={},l=Ex({contentRadius:a,limitVerticalRadius:!0});return Object.keys(uv).forEach(c=>{const u=r&&Gj[c]||uv[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,Kj.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=l.arrowOffsetHorizontal*2-i;break}f.overflow=Xj(c,l,t,n),f.htmlRegion="visibleFirst"}),s}const Zj=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:v}=e,h=t(i).add(v).add(p).equal(),g=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),{position:"absolute",zIndex:s,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":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${xe(e.calc(u).div(2).equal())} ${xe(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,Sx)}},[`${n}-content`]:{position:"relative"}}),cc(e,(m,{darkColor:b})=>({[`&${n}-${m}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Yj(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jj=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ex({contentRadius:e.borderRadius,limitVerticalRadius:!0})),wx(rn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$x=(e,t=!0)=>Fn("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:a}=n,i=rn(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:a});return[Zj(i),jM(n,"zoom-big-fast")]},Jj,{resetStyle:!1,injectStyle:t})(e),e6=ta.map(e=>`${e}-inverse`),t6=["success","processing","error","default","warning"];function Sc(e,t=!0){return t?[].concat(_e(e6),_e(ta)).includes(e):ta.includes(e)}function n6(e){return t6.includes(e)}function kx(e,t){const n=Sc(t),r=me({[`${e}-${t}`]:t&&n}),o={},a={},i=PM(t).toRgb(),s=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=s,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const r6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(qt),l=s("tooltip",t),[c,u,f]=$x(l),p=kx(l,a),v=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),g=me(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:v},d.createElement("div",{className:`${l}-arrow`}),d.createElement(xx,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var o6=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 a6=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:v,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,getPopupContainer:C,placement:w="top",mouseEnterDelay:E=.1,mouseLeaveDelay:S=.1,overlayStyle:k,rootClassName:O,overlayClassName:$,styles:I,classNames:N}=e,A=o6(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"]),F=!!h,[,j]=Or(),{getPopupContainer:M,getPrefixCls:R,direction:P,className:z,style:H,classNames:L,styles:T}=lo("tooltip"),_=ic(),D=d.useRef(null),B=()=>{var Ee;(Ee=D.current)===null||Ee===void 0||Ee.forceAlign()};d.useImperativeHandle(t,()=>{var Ee,Ve;return{forceAlign:B,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:(Ee=D.current)===null||Ee===void 0?void 0:Ee.nativeElement,popupElement:(Ve=D.current)===null||Ve===void 0?void 0:Ve.popupElement}});const[V,W]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),q=!g&&!m&&g!==0,Q=Ee=>{var Ve,Ne;W(q?!1:Ee),q||((Ve=e.onOpenChange)===null||Ve===void 0||Ve.call(e,Ee),(Ne=e.onVisibleChange)===null||Ne===void 0||Ne.call(e,Ee))},U=d.useMemo(()=>{var Ee,Ve;let Ne=y;return typeof h=="object"&&(Ne=(Ve=(Ee=h.pointAtCenter)!==null&&Ee!==void 0?Ee:h.arrowPointAtCenter)!==null&&Ve!==void 0?Ve:y),b||Qj({arrowPointAtCenter:Ne,autoAdjustOverflow:x,arrowWidth:F?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[y,h,b,j]),J=d.useMemo(()=>g===0?g:m||g||"",[m,g]),X=d.createElement(Fo,{space:!0},typeof J=="function"?J():J),Y=R("tooltip",o),ae=R(),oe=e["data-popover-inject"];let ne=V;!("open"in e)&&!("visible"in e)&&q&&(ne=!1);const ue=d.isValidElement(c)&&!y1(c)?c:d.createElement("span",null,c),pe=ue.props,be=!pe.className||typeof pe.className=="string"?me(pe.className,a||`${Y}-open`):pe.className,[Se,he,ke]=$x(Y,!oe),ce=kx(Y,s),de=ce.arrowStyle,Ae=me($,{[`${Y}-rtl`]:P==="rtl"},ce.className,O,he,ke,z,L.root,N==null?void 0:N.root),ie=me(L.body,N==null?void 0:N.body),[We,ze]=dc("Tooltip",A.zIndex),De=d.createElement(Uj,Object.assign({},A,{zIndex:We,showArrow:F,placement:w,mouseEnterDelay:E,mouseLeaveDelay:S,prefixCls:Y,classNames:{root:Ae,body:ie},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},de),T.root),H),k),I==null?void 0:I.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},T.body),l),I==null?void 0:I.body),ce.overlayStyle)},getTooltipContainer:C||i||M,ref:D,builtinPlacements:U,overlay:X,visible:ne,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:N1(ae,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!p}),ne?Mo(ue,{className:be}):ue);return Se(d.createElement(S1.Provider,{value:ze},De))}),Ec=a6;Ec._InternalPanelDoNotUseOrYouWillBeFired=r6;const i6=new Zt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),s6=new Zt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),l6=new Zt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),c6=new Zt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),u6=new Zt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),d6=new Zt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),f6=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:v}=e,h=`${r}-scroll-number`,g=cc(e,(m,{darkColor:b})=>({[`&${t} ${t}-color-${m}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:xe(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(u).div(2).equal(),boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:xe(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${xe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:d6,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:i6,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:s6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:l6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:c6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:u6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ox=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return rn(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ix=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},p6=Fn("Badge",e=>{const t=Ox(e);return f6(t)},Ix),m6=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=cc(e,(c,{darkColor:u})=>({[`&${i}-color-${c}`]:{background:u,color:u}}));return{[s]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),{position:"absolute",top:r,padding:`0 ${xe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:xe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${xe(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},g6=Fn(["Badge","Ribbon"],e=>{const t=Ox(e);return m6(t)},Ix),h6=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(qt),f=c("ribbon",n),p=`${f}-wrapper`,[v,h,g]=g6(f,p),m=Sc(o,!1),b=me(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:m},t),y={},x={};return o&&!m&&(y.background=o,x.color=o),v(d.createElement("div",{className:me(p,l,h,g)},a,d.createElement("div",{className:me(b,h),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},i),d.createElement("div",{className:`${f}-corner`,style:x}))))},dv=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:a,className:me(`${t}-only-unit`,{current:r})},n)};function v6(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const b6=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=d.useState(o),[l,c]=d.useState(a),u=()=>{s(o),c(a)};d.useEffect(()=>{const v=setTimeout(u,1e3);return()=>clearTimeout(v)},[o]);let f,p;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[d.createElement(dv,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const g=l<a?1:-1,m=h.findIndex(b=>b%10===i);f=(g<0?h.slice(0,m+1):h.slice(m)).map((b,y)=>{const x=b%10;return d.createElement(dv,Object.assign({},e,{key:b,value:x,offset:g<0?y-m:y,current:y===m}))}),p={transform:`translateY(${-v6(i,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var y6=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 x6=d.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,f=y6(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(qt),v=p("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":l,style:i,className:me(v,o,a),title:s});let g=r;if(r&&Number(r)%1===0){const m=String(r).split("");g=d.createElement("bdi",null,m.map((b,y)=>d.createElement(b6,{prefixCls:v,count:Number(r),value:b,key:m.length-y})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Mo(u,m=>({className:me(`${v}-custom-component`,m==null?void 0:m.className,a)})):d.createElement(c,Object.assign({},h,{ref:t}),g)});var w6=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 C6=d.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:v=null,overflowCount:h=99,dot:g=!1,size:m="default",title:b,offset:y,style:x,className:C,rootClassName:w,classNames:E,styles:S,showZero:k=!1}=e,O=w6(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:$,direction:I,badge:N}=d.useContext(qt),A=$("badge",s),[F,j,M]=p6(A),R=v>h?`${h}+`:v,P=R==="0"||R===0||f==="0"||f===0,z=v===null||P&&!k,H=(u!=null||p!=null)&&z,L=u!=null||!P,T=g&&!P,_=T?"":R,D=en(()=>((_==null||_==="")&&(f==null||f==="")||P&&!k)&&!T,[_,P,k,T,f]),B=Ke(v);D||(B.current=v);const V=B.current,W=Ke(_);D||(W.current=_);const q=W.current,Q=Ke(T);D||(Q.current=T);const U=en(()=>{if(!y)return Object.assign(Object.assign({},N==null?void 0:N.style),x);const be={marginTop:y[1]};return I==="rtl"?be.left=Number.parseInt(y[0],10):be.right=-Number.parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},be),N==null?void 0:N.style),x)},[I,y,x,N==null?void 0:N.style]),J=b??(typeof V=="string"||typeof V=="number"?V:void 0),X=!D&&(f===0?k:!!f&&f!==!0),Y=X?d.createElement("span",{className:`${A}-status-text`},f):null,ae=!V||typeof V!="object"?void 0:Mo(V,be=>({style:Object.assign(Object.assign({},U),be.style)})),oe=Sc(p,!1),ne=me(E==null?void 0:E.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:H,[`${A}-status-${u}`]:!!u,[`${A}-color-${p}`]:oe}),ue={};p&&!oe&&(ue.color=p,ue.background=p);const pe=me(A,{[`${A}-status`]:H,[`${A}-not-a-wrapper`]:!c,[`${A}-rtl`]:I==="rtl"},C,w,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,j,M);if(!c&&H&&(f||L||!z)){const be=U.color;return F(d.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),U)}),d.createElement("span",{className:ne,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=N==null?void 0:N.styles)===null||a===void 0?void 0:a.indicator),ue)}),X&&d.createElement("span",{style:{color:be},className:`${A}-status-text`},f)))}return F(d.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,d.createElement(ia,{visible:!D,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:be})=>{var Se,he;const ke=$("scroll-number",l),ce=Q.current,de=me(E==null?void 0:E.indicator,(Se=N==null?void 0:N.classNames)===null||Se===void 0?void 0:Se.indicator,{[`${A}-dot`]:ce,[`${A}-count`]:!ce,[`${A}-count-sm`]:m==="small",[`${A}-multiple-words`]:!ce&&q&&q.toString().length>1,[`${A}-status-${u}`]:!!u,[`${A}-color-${p}`]:oe});let Ae=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(he=N==null?void 0:N.styles)===null||he===void 0?void 0:he.indicator),U);return p&&!oe&&(Ae=Ae||{},Ae.background=p),d.createElement(x6,{prefixCls:ke,show:!D,motionClassName:be,className:de,count:q,title:J,style:Ae,key:"scrollNumber"},ae)}),Y))}),Mx=C6;Mx.Ribbon=h6;var nf={exports:{}},S6=nf.exports,fv;function E6(){return fv||(fv=1,(function(e,t){(function(n,r){e.exports=r()})(S6,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var j=["th","st","nd","rd"],M=F%100;return"["+F+(j[(M-20)%10]||j[M]||j[0])+"]"}},x=function(F,j,M){var R=String(F);return!R||R.length>=j?F:""+Array(j+1-R.length).join(M)+F},C={s:x,z:function(F){var j=-F.utcOffset(),M=Math.abs(j),R=Math.floor(M/60),P=M%60;return(j<=0?"+":"-")+x(R,2,"0")+":"+x(P,2,"0")},m:function F(j,M){if(j.date()<M.date())return-F(M,j);var R=12*(M.year()-j.year())+(M.month()-j.month()),P=j.clone().add(R,f),z=M-P<0,H=j.clone().add(R+(z?-1:1),f);return+(-(R+(M-P)/(z?P-H:H-P))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},w="en",E={};E[w]=y;var S="$isDayjsObject",k=function(F){return F instanceof N||!(!F||!F[S])},O=function F(j,M,R){var P;if(!j)return w;if(typeof j=="string"){var z=j.toLowerCase();E[z]&&(P=z),M&&(E[z]=M,P=z);var H=j.split("-");if(!P&&H.length>1)return F(H[0])}else{var L=j.name;E[L]=j,P=L}return!R&&P&&(w=P),P||!R&&w},$=function(F,j){if(k(F))return F.clone();var M=typeof j=="object"?j:{};return M.date=F,M.args=arguments,new N(M)},I=C;I.l=O,I.i=k,I.w=function(F,j){return $(F,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var N=(function(){function F(M){this.$L=O(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[S]=!0}var j=F.prototype;return j.parse=function(M){this.$d=(function(R){var P=R.date,z=R.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var H=P.match(m);if(H){var L=H[2]-1||0,T=(H[7]||"0").substring(0,3);return z?new Date(Date.UTC(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)):new Date(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)}}return new Date(P)})(M),this.init()},j.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},j.$utils=function(){return I},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(M,R){var P=$(M);return this.startOf(R)<=P&&P<=this.endOf(R)},j.isAfter=function(M,R){return $(M)<this.startOf(R)},j.isBefore=function(M,R){return this.endOf(R)<$(M)},j.$g=function(M,R,P){return I.u(M)?this[R]:this.set(P,M)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(M,R){var P=this,z=!!I.u(R)||R,H=I.p(M),L=function(Q,U){var J=I.w(P.$u?Date.UTC(P.$y,U,Q):new Date(P.$y,U,Q),P);return z?J:J.endOf(c)},T=function(Q,U){return I.w(P.toDate()[Q].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),P)},_=this.$W,D=this.$M,B=this.$D,V="set"+(this.$u?"UTC":"");switch(H){case v:return z?L(1,0):L(31,11);case f:return z?L(1,D):L(0,D+1);case u:var W=this.$locale().weekStart||0,q=(_<W?_+7:_)-W;return L(z?B-q:B+(6-q),D);case c:case h:return T(V+"Hours",0);case l:return T(V+"Minutes",1);case s:return T(V+"Seconds",2);case i:return T(V+"Milliseconds",3);default:return this.clone()}},j.endOf=function(M){return this.startOf(M,!1)},j.$set=function(M,R){var P,z=I.p(M),H="set"+(this.$u?"UTC":""),L=(P={},P[c]=H+"Date",P[h]=H+"Date",P[f]=H+"Month",P[v]=H+"FullYear",P[l]=H+"Hours",P[s]=H+"Minutes",P[i]=H+"Seconds",P[a]=H+"Milliseconds",P)[z],T=z===c?this.$D+(R-this.$W):R;if(z===f||z===v){var _=this.clone().set(h,1);_.$d[L](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else L&&this.$d[L](T);return this.init(),this},j.set=function(M,R){return this.clone().$set(M,R)},j.get=function(M){return this[I.p(M)]()},j.add=function(M,R){var P,z=this;M=Number(M);var H=I.p(R),L=function(D){var B=$(z);return I.w(B.date(B.date()+Math.round(D*M)),z)};if(H===f)return this.set(f,this.$M+M);if(H===v)return this.set(v,this.$y+M);if(H===c)return L(1);if(H===u)return L(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[H]||1,_=this.$d.getTime()+M*T;return I.w(_,this)},j.subtract=function(M,R){return this.add(-1*M,R)},j.format=function(M){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var z=M||"YYYY-MM-DDTHH:mm:ssZ",H=I.z(this),L=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,V=P.meridiem,W=function(U,J,X,Y){return U&&(U[J]||U(R,z))||X[J].slice(0,Y)},q=function(U){return I.s(L%12||12,U,"0")},Q=V||function(U,J,X){var Y=U<12?"AM":"PM";return X?Y.toLowerCase():Y};return z.replace(b,(function(U,J){return J||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return I.s(R.$y,4,"0");case"M":return _+1;case"MM":return I.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return R.$D;case"DD":return I.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(P.weekdaysMin,R.$W,D,2);case"ddd":return W(P.weekdaysShort,R.$W,D,3);case"dddd":return D[R.$W];case"H":return String(L);case"HH":return I.s(L,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return Q(L,T,!0);case"A":return Q(L,T,!1);case"m":return String(T);case"mm":return I.s(T,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.s(R.$ms,3,"0");case"Z":return H}return null})(U)||H.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(M,R,P){var z,H=this,L=I.p(R),T=$(M),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return I.m(H,T)};switch(L){case v:z=B()/12;break;case f:z=B();break;case p:z=B()/3;break;case u:z=(D-_)/6048e5;break;case c:z=(D-_)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case i:z=D/n;break;default:z=D}return P?z:I.a(z)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return E[this.$L]},j.locale=function(M,R){if(!M)return this.$L;var P=this.clone(),z=O(M,R,!0);return z&&(P.$L=z),P},j.clone=function(){return I.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},F})(),A=N.prototype;return $.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(F){A[F[1]]=function(j){return this.$g(j,F[0],F[1])}})),$.extend=function(F,j){return F.$i||(F(j,N,$),F.$i=!0),$},$.locale=O,$.isDayjs=k,$.unix=function(F){return $(1e3*F)},$.en=E[w],$.Ls=E,$.p={},$}))})(nf)),nf.exports}var $6=E6();const Un=so($6);var rf={exports:{}},k6=rf.exports,pv;function O6(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r()})(k6,(function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}}))})(rf)),rf.exports}var I6=O6();const M6=so(I6);var of={exports:{}},F6=of.exports,mv;function N6(){return mv||(mv=1,(function(e,t){(function(n,r){e.exports=r()})(F6,(function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,p,v,h,g){var m=f.name?f:f.$locale(),b=i(m[p]),y=i(m[v]),x=b||y.map((function(w){return w.slice(0,h)}));if(!g)return x;var C=m.weekStart;return x.map((function(w,E){return x[(E+(C||0))%7]}))},l=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,g,m){return g||m.slice(1)}))})(f.formats[p.toUpperCase()])},u=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):s(f,"months")},monthsShort:function(p){return p?p.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return u.bind(this)()},o.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(f){return s(l(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}}))})(of)),of.exports}var j6=N6();const P6=so(j6);var af={exports:{}},A6=af.exports,gv;function R6(){return gv||(gv=1,(function(e,t){(function(n,r){e.exports=r()})(A6,(function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(p,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(af)),af.exports}var T6=R6();const D6=so(T6);var sf={exports:{}},_6=sf.exports,hv;function B6(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r()})(_6,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(sf)),sf.exports}var z6=B6();const H6=so(z6);var lf={exports:{}},L6=lf.exports,vv;function V6(){return vv||(vv=1,(function(e,t){(function(n,r){e.exports=r()})(L6,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}}));return a.bind(this)(u)}}}))})(lf)),lf.exports}var W6=V6();const q6=so(W6);var cf={exports:{}},U6=cf.exports,bv;function Y6(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(U6,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(m)}],p=function(m){var b=l[m];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(m,b){var y,x=l.meridiem;if(x){for(var C=1;C<=24;C+=1)if(m.indexOf(x(C,0,b))>-1){y=C>12;break}}else y=m===(b?"pm":"PM");return y},h={A:[s,function(m){this.afternoon=v(m,!1)}],a:[s,function(m){this.afternoon=v(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[s,function(m){var b=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],w:[i,u("week")],ww:[a,u("week")],M:[i,u("month")],MM:[a,u("month")],MMM:[s,function(m){var b=p("months"),y=(p("monthsShort")||b.map((function(x){return x.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(m){var b,y;b=m,y=l&&l.formats;for(var x=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,I,N){var A=N&&N.toUpperCase();return I||y[N]||n[N]||y[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,j,M){return j||M.slice(1)}))}))).match(r),C=x.length,w=0;w<C;w+=1){var E=x[w],S=h[E],k=S&&S[0],O=S&&S[1];x[w]=O?{regex:k,parser:O}:E.replace(/^\[|\]$/g,"")}return function($){for(var I={},N=0,A=0;N<C;N+=1){var F=x[N];if(typeof F=="string")A+=F.length;else{var j=F.regex,M=F.parser,R=$.slice(A),P=j.exec(R)[0];M.call(I,P),$=$.replace(P,"")}}return(function(z){var H=z.afternoon;if(H!==void 0){var L=z.hours;H?L<12&&(z.hours+=12):L===12&&(z.hours=0),delete z.afternoon}})(I),I}}return function(m,b,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var x=b.prototype,C=x.parse;x.parse=function(w){var E=w.date,S=w.utc,k=w.args;this.$u=S;var O=k[1];if(typeof O=="string"){var $=k[2]===!0,I=k[3]===!0,N=$||I,A=k[2];I&&(A=k[2]),l=this.$locale(),!$&&A&&(l=y.Ls[A]),this.$d=(function(R,P,z,H){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*R);var L=g(P)(R),T=L.year,_=L.month,D=L.day,B=L.hours,V=L.minutes,W=L.seconds,q=L.milliseconds,Q=L.zone,U=L.week,J=new Date,X=D||(T||_?1:J.getDate()),Y=T||J.getFullYear(),ae=0;T&&!_||(ae=_>0?_-1:J.getMonth());var oe,ne=B||0,ue=V||0,pe=W||0,be=q||0;return Q?new Date(Date.UTC(Y,ae,X,ne,ue,pe,be+60*Q.offset*1e3)):z?new Date(Date.UTC(Y,ae,X,ne,ue,pe,be)):(oe=new Date(Y,ae,X,ne,ue,pe,be),U&&(oe=H(oe).week(U).toDate()),oe)}catch{return new Date("")}})(E,O,S,y),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),N&&E!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var F=O.length,j=1;j<=F;j+=1){k[1]=O[j-1];var M=y.apply(this,k);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}j===F&&(this.$d=new Date(""))}else C.call(this,w)}}}))})(cf)),cf.exports}var X6=Y6();const G6=so(X6);Un.extend(G6);Un.extend(q6);Un.extend(M6);Un.extend(P6);Un.extend(D6);Un.extend(H6);Un.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var K6={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Do=function(e){var t=K6[e];return t||e.split("_")[0]},Q6={getNow:function(){var e=Un();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return Un(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Un().locale(Do(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(Do(e)).weekday(0)},getWeek:function(e,t){return t.locale(Do(e)).week()},getShortWeekDays:function(e){return Un().locale(Do(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Un().locale(Do(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(Do(e)).format(n)},parse:function(e,t,n){for(var r=Do(e),o=0;o<n.length;o+=1){var a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){for(var s=i.split("-")[0],l=i.split("-")[1],c=Un(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var f=c.add(u,"week");if(f.format("Wo")===l)return f}return null}var p=Un(i,a,!0).locale(r);if(p.isValid())return p}return null}}};function Z6(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Vr=d.createContext(null),J6={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Fx(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,f=u===void 0?J6:u,p=e.direction,v=e.visible,h=e.onClose,g=d.useContext(Vr),m=g.prefixCls,b="".concat(m,"-dropdown"),y=Z6(c,p==="rtl");return d.createElement(pm,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:me(r,G(G({},"".concat(b,"-range"),l),"".concat(b,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(x){x||h()}},s)}function bm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function ua(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ai(e,t,n){var r=_e(e);return r[t]=n,r}function $c(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function Nx(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function jx(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function Px(e){return $c(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ym(e,t,n,r){var o=d.useMemo(function(){return e||function(i,s){var l=i;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),a=d.useCallback(function(i,s){return o(i,K(K({},s),{},{range:r}))},[o,r]);return a}function Ax(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=te(r,2),a=o[0],i=o[1],s=function(c,u){i(function(f){return Ai(f,u,c)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Rx(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function eP(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,b=e.cellDateFormat,y=Rx(t,n,r,o,a);return K(K({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||m||"D"})}function Tx(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return fe.useMemo(function(){return eP(e,n,r,o,a,i)},[e,n,r,o,a,i])}function wi(e,t,n){return n??t.some(function(r){return e.includes(r)})}var tP=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nP(e){var t=$c(e,tP),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=dt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function rP(e){return e&&typeof e=="string"}function Dx(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function _x(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var l,c,u,f=[a,i,s].some(function(h){return h===!1}),p=[a,i,s].some(function(h){return h===!0}),v=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:v,i=(c=i)!==null&&c!==void 0?c:v,s=(u=s)!==null&&u!==void 0?u:v}return[a,i,s,o]}function Bx(e){var t=e.showTime,n=nP(e),r=te(n,2),o=r[0],a=r[1],i=t&&dt(t)==="object"?t:{},s=K(K({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=Dx(c,u,f,l),v=_x(p,c,u,f,l),h=te(v,3);return c=h[0],u=h[1],f=h[2],[s,K(K({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function zx(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=Nx(e,o,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var f=ua(c[u])[0];if(rP(f)){l=f;break}}var p=i.showHour,v=i.showMinute,h=i.showSecond,g=i.showMillisecond,m=i.use12Hours,b=wi(l,["a","A","LT","LLL","LTS"],m),y=Dx(p,v,h,g);y||(p=wi(l,["H","h","k","LT","LLL"]),v=wi(l,["m","LT","LLL"]),h=wi(l,["s","LTS"]),g=wi(l,["SSS"]));var x=_x(y,p,v,h,g),C=te(x,3);p=C[0],v=C[1],h=C[2];var w=t||Rx(p,v,h,g,b);return K(K({},i),{},{format:w,showHour:p,showMinute:v,showSecond:h,showMillisecond:g,use12Hours:b})}return null}function oP(e,t,n){if(t===!1)return null;var r=t&&dt(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var wu=7;function To(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function uf(e,t,n){return To(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function ra(e,t,n){return To(t,n,function(){return e.getYear(t)===e.getYear(n)})}function yv(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function aP(e,t,n){return To(t,n,function(){return ra(e,t,n)&&yv(e,t)===yv(e,n)})}function xm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function wm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&xm(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Hx(e,t,n){return To(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Lx(e,t,n){return To(t,n,function(){return wm(e,t,n)&&Hx(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Oi(e,t,n,r){return To(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return ra(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Yn(e,t,n,r,o){switch(o){case"date":return wm(e,n,r);case"week":return Oi(e,t.locale,n,r);case"month":return xm(e,n,r);case"quarter":return aP(e,n,r);case"year":return ra(e,n,r);case"decade":return uf(e,n,r);case"time":return Hx(e,n,r);default:return Lx(e,n,r)}}function kc(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Ts(e,t,n,r,o){return Yn(e,t,n,r,o)?!0:e.isAfter(n,r)}function iP(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function Pn(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function _l(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function sP(e,t,n,r,o){var a=Vt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Yn(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!Yn(e,t,o,i,s.type))});return a}function lP(e,t,n){return d.useMemo(function(){var r=Nx(e,t,n),o=ua(r),a=o[0],i=dt(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function cP(e,t,n){return typeof e[0]=="function"||n?!0:t}function uP(e,t,n,r){var o=Vt(function(a,i){var s=K({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=i&&i.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,v=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=f||g,x=p||m,C=v||b,w=e.getHour(a),E=e.getMinute(a),S=e.getSecond(a),k=e.getMillisecond(a);if(y&&y().includes(w)||x&&x(w).includes(E)||C&&C(w,E).includes(S)||h&&h(w,E,S).includes(k))return!0}return!1});return o}function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&ua(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Vx(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,v=p===void 0?!0:p,h=e.components,g=h===void 0?{}:h,m=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,C=e.multiple,w=e.format,E=e.inputReadOnly,S=e.disabledDate,k=e.minDate,O=e.maxDate,$=e.showTime,I=e.value,N=e.defaultValue,A=e.pickerValue,F=e.defaultPickerValue,j=Ds(I),M=Ds(N),R=Ds(A),P=Ds(F),z=a==="date"&&$?"datetime":a,H=z==="time"||z==="datetime",L=H||C,T=x??H,_=Bx(e),D=te(_,4),B=D[0],V=D[1],W=D[2],q=D[3],Q=Tx(r,V),U=d.useMemo(function(){return zx(z,W,q,B,Q)},[z,W,q,B,Q]),J=d.useMemo(function(){return K(K({},e),{},{prefixCls:s,locale:Q,picker:a,styles:c,classNames:f,order:v,components:K({input:m},g),clearIcon:oP(s,b,y),showTime:U,value:j,defaultValue:M,pickerValue:R,defaultPickerValue:P},t==null?void 0:t())},[e]),X=lP(z,Q,w),Y=te(X,2),ae=Y[0],oe=Y[1],ne=cP(ae,E,C),ue=sP(n,r,S,k,O),pe=uP(n,a,ue,U),be=d.useMemo(function(){return K(K({},J),{},{needConfirm:T,inputReadOnly:ne,disabledDate:ue})},[J,T,ne,ue]);return[be,z,L,ae,oe,pe]}function dP(e,t,n){var r=bn(t,{value:e}),o=te(r,2),a=o[0],i=o[1],s=fe.useRef(e),l=fe.useRef(),c=function(){Tt.cancel(l.current)},u=Vt(function(){i(s.current),n&&a!==s.current&&n(s.current)}),f=Vt(function(p,v){c(),s.current=p,p||v?u():l.current=Tt(u)});return fe.useEffect(function(){return c},[]),[a,f]}function Wx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,a=dP(o,t||!1,r),i=te(a,2),s=i[0],l=i[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function qx(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var o;(o=t.current)===null||o===void 0||o.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function Ux(e,t){return d.useMemo(function(){return e||(t?(Hn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function Cm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Ra(function(){if(e)r.current(e);else{var o=Tt(function(){r.current(e)},n);return function(){Tt.cancel(o)}}},[e])}function Yx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=te(r,2),a=o[0],i=o[1],s=d.useState(!1),l=te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),v=d.useRef(null),h=function(x){p.current=x},g=function(x){return p.current===x},m=function(x){u(x)},b=function(x){return x&&(v.current=x),v.current},y=function(x){var C=f.current,w=new Set(C.filter(function(S){return x[S]||t[S]})),E=C[C.length-1]===0?1:0;return w.size>=2||e[E]?null:E};return Cm(c||n,function(){c||(f.current=[],h(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,m,b,a,i,y,f.current,h,g]}function fP(e,t,n,r,o,a){var i=n[n.length-1],s=function(l,c){var u=te(e,2),f=u[0],p=u[1],v=K(K({},c),{},{from:jx(e,n)});return i===1&&t[0]&&f&&!Yn(r,o,f,l,v.type)&&r.isAfter(f,l)||i===0&&t[1]&&p&&!Yn(r,o,p,l,v.type)&&r.isAfter(l,p)?!0:a==null?void 0:a(l,v)};return s}function Ii(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Cu=[];function Xx(e,t,n,r,o,a,i,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Cu,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Cu,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Cu,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",g=a||0,m=function(M){var R=e.getNow();return h&&(R=_l(e,R)),l[M]||n[M]||R},b=te(c,2),y=b[0],x=b[1],C=bn(function(){return m(0)},{value:y}),w=te(C,2),E=w[0],S=w[1],k=bn(function(){return m(1)},{value:x}),O=te(k,2),$=O[0],I=O[1],N=d.useMemo(function(){var M=[E,$][g];return h?M:_l(e,M,u[g])},[h,E,$,g,e,u]),A=function(M){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",P=[S,I][g];P(M);var z=[E,$];z[g]=M,f&&(!Yn(e,t,E,z[0],i)||!Yn(e,t,$,z[1],i))&&f(z,{source:R,range:g===1?"end":"start",mode:r})},F=function(M,R){if(s){var P={date:"month",week:"month",month:"year",quarter:"year"},z=P[i];if(z&&!Yn(e,t,M,R,z))return Ii(e,i,R,-1);if(i==="year"&&M){var H=Math.floor(e.getYear(M)/10),L=Math.floor(e.getYear(R)/10);if(H!==L)return Ii(e,i,R,-1)}}return R},j=d.useRef(null);return Ut(function(){if(o&&!l[g]){var M=h?null:e.getNow();if(j.current!==null&&j.current!==g?M=[E,$][g^1]:n[g]?M=g===0?n[0]:F(n[0],n[1]):n[g^1]&&(M=n[g^1]),M){p&&e.isAfter(p,M)&&(M=p);var R=s?Ii(e,i,M,1):M;v&&e.isAfter(R,v)&&(M=s?Ii(e,i,v,-1):v),A(M,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?j.current=g:j.current=null},[o,g]),Ut(function(){o&&l&&l[g]&&A(l[g],"reset")},[o,g]),[N,A]}function Gx(e,t){var n=d.useRef(e),r=d.useState({}),o=te(r,2),a=o[1],i=function(l){return l&&t!==void 0?t:n.current},s=function(l){n.current=l,a({})};return[i,s,i(!0)]}var pP=[];function Kx(e,t,n){var r=function(a){return a.map(function(i){return Pn(i,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,i){for(var s=Math.max(a.length,i.length),l=-1,c=0;c<s;c+=1){var u=a[c]||null,f=i[c]||null;if(u!==f&&!Lx(e,u,f)){l=c;break}}return[l<0,l!==0]};return[r,o]}function Qx(e,t){return _e(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function mP(e){var t=Gx(e),n=te(t,2),r=n[0],o=n[1],a=Vt(function(){o(e)});return d.useEffect(function(){a()},[e]),[r,o]}function Zx(e,t,n,r,o,a,i,s,l){var c=bn(a,{value:i}),u=te(c,2),f=u[0],p=u[1],v=f||pP,h=mP(v),g=te(h,2),m=g[0],b=g[1],y=Kx(e,t,n),x=te(y,2),C=x[0],w=x[1],E=Vt(function(k){var O=_e(k);if(r)for(var $=0;$<2;$+=1)O[$]=O[$]||null;else o&&(O=Qx(O.filter(function(M){return M}),e));var I=w(m(),O),N=te(I,2),A=N[0],F=N[1];if(!A&&(b(O),s)){var j=C(O);s(O,j,{range:F?"end":"start"})}}),S=function(){l&&l(m())};return[v,p,m,E,S]}function Jx(e,t,n,r,o,a,i,s,l,c){var u=e.generateConfig,f=e.locale,p=e.picker,v=e.onChange,h=e.allowEmpty,g=e.order,m=a.some(function(A){return A})?!1:g,b=Kx(u,f,i),y=te(b,2),x=y[0],C=y[1],w=Gx(t),E=te(w,2),S=E[0],k=E[1],O=Vt(function(){k(t)});d.useEffect(function(){O()},[t]);var $=Vt(function(A){var F=A===null,j=_e(A||S());if(F)for(var M=Math.max(a.length,j.length),R=0;R<M;R+=1)a[R]||(j[R]=null);m&&j[0]&&j[1]&&(j=Qx(j,u)),o(j);var P=j,z=te(P,2),H=z[0],L=z[1],T=!H,_=!L,D=h?(!T||h[0])&&(!_||h[1]):!0,B=!g||T||_||Yn(u,f,H,L,p)||u.isAfter(L,H),V=(a[0]||!H||!c(H,{activeIndex:0}))&&(a[1]||!L||!c(L,{from:H,activeIndex:1})),W=F||D&&B&&V;if(W){n(j);var q=C(j,t),Q=te(q,1),U=Q[0];v&&!U&&v(F&&j.every(function(J){return!J})?null:j,x(j))}return W}),I=Vt(function(A,F){var j=Ai(S(),A,r()[A]);k(j),F&&$()}),N=!s&&!l;return Cm(!N,function(){N&&($(),o(t),O())},2),[I,$]}function ew(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function gP(e,t,n,r,o,a){var i=e;function s(f,p,v){var h=a[f](i),g=v.find(function(x){return x.value===h});if(!g||g.disabled){var m=v.filter(function(x){return!x.disabled}),b=_e(m).reverse(),y=b.find(function(x){return x.value<=h})||m[0];y&&(h=y.value,i=a[p](i,h))}return h}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",o(l,c,u)),i}function _s(){return[]}function Bs(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=o.includes(l);(!c||!r)&&i.push({label:bm(l,a),value:l,disabled:c})}return i}function Sm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),x=d.useCallback(function(P){var z=(h==null?void 0:h(P))||{};return[z.disabledHours||g||_s,z.disabledMinutes||m||_s,z.disabledSeconds||b||_s,z.disabledMilliseconds||_s]},[h,g,m,b]),C=d.useMemo(function(){return x(y)},[y,x]),w=te(C,4),E=w[0],S=w[1],k=w[2],O=w[3],$=d.useCallback(function(P,z,H,L){var T=Bs(0,23,i,v,P()),_=o?T.map(function(W){return K(K({},W),{},{label:bm(W.value%12||12,2)})}):T,D=function(W){return Bs(0,59,l,v,z(W))},B=function(W,q){return Bs(0,59,u,v,H(W,q))},V=function(W,q,Q){return Bs(0,999,p,v,L(W,q,Q),3)};return[_,D,B,V]},[v,i,o,p,l,u]),I=d.useMemo(function(){return $(E,S,k,O)},[$,E,S,k,O]),N=te(I,4),A=N[0],F=N[1],j=N[2],M=N[3],R=function(P,z){var H=function(){return A},L=F,T=j,_=M;if(z){var D=x(z),B=te(D,4),V=B[0],W=B[1],q=B[2],Q=B[3],U=$(V,W,q,Q),J=te(U,4),X=J[0],Y=J[1],ae=J[2],oe=J[3];H=function(){return X},L=Y,T=ae,_=oe}var ne=gP(P,H,L,T,_,e);return ne};return[R,A,F,j,M]}function hP(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Vr),v=p.prefixCls,h=p.locale,g=p.button,m=g===void 0?"button":g,b=u.getNow(),y=Sm(u,a,b),x=te(y,1),C=x[0],w=r==null?void 0:r(t),E=f(b,{type:t}),S=function(){if(!E){var A=C(b);s(A)}},k="".concat(v,"-now"),O="".concat(k,"-btn"),$=o&&d.createElement("li",{className:k},d.createElement("a",{className:me(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:S},n==="date"?h.today:h.now)),I=c&&d.createElement("li",{className:"".concat(v,"-ok")},d.createElement(m,{disabled:l,onClick:i},h.ok)),N=($||I)&&d.createElement("ul",{className:"".concat(v,"-ranges")},$,I);return!w&&!N?null:d.createElement("div",{className:"".concat(v,"-footer")},w&&d.createElement("div",{className:"".concat(v,"-footer-extra")},w),N)}function tw(e,t,n){function r(o,a){var i=o.findIndex(function(l){return Yn(e,t,l,a,n)});if(i===-1)return[].concat(_e(o),[a]);var s=_e(o);return s.splice(i,1),s}return r}var da=d.createContext(null);function Oc(){return d.useContext(da)}function oi(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,v=e.pickerValue,h=e.onSelect,g=e.prevIcon,m=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),C={now:x,values:p,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:b,superNextIcon:y};return[C,x]}var Oo=d.createContext({});function vs(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,v=e.disabledDate,h=Oc(),g=h.prefixCls,m=h.panelType,b=h.now,y=h.disabledDate,x=h.cellRender,C=h.onHover,w=h.hoverValue,E=h.hoverRangeValue,S=h.generateConfig,k=h.values,O=h.locale,$=h.onSelect,I=v||y,N="".concat(g,"-cell"),A=d.useContext(Oo),F=A.onCellDblClick,j=function(T){return k.some(function(_){return _&&Yn(S,O,T,_,m)})},M=[],R=0;R<t;R+=1){for(var P=[],z=void 0,H=function(){var T=R*n+L,_=o(r,T),D=I==null?void 0:I(_,{type:m});L===0&&(z=_,a&&P.push(a(z)));var B=!1,V=!1,W=!1;if(p&&E){var q=te(E,2),Q=q[0],U=q[1];B=kc(S,Q,U,_),V=Yn(S,O,_,Q,m),W=Yn(S,O,_,U,m)}var J=s?Pn(_,{locale:O,format:s,generateConfig:S}):void 0,X=d.createElement("div",{className:"".concat(N,"-inner")},l(_));P.push(d.createElement("td",{key:L,title:J,className:me(N,K(G(G(G(G(G(G({},"".concat(N,"-disabled"),D),"".concat(N,"-hover"),(w||[]).some(function(Y){return Yn(S,O,_,Y,m)})),"".concat(N,"-in-range"),B&&!V&&!W),"".concat(N,"-range-start"),V),"".concat(N,"-range-end"),W),"".concat(g,"-cell-selected"),!E&&m!=="week"&&j(_)),c(_))),onClick:function(){D||$(_)},onDoubleClick:function(){!D&&F&&F()},onMouseEnter:function(){D||(C==null||C(_))},onMouseLeave:function(){D||(C==null||C(null))}},x?x(_,{prefixCls:g,originNode:X,today:b,type:m,locale:O}):X))},L=0;L<n;L+=1)H();M.push(d.createElement("tr",{key:R,className:i==null?void 0:i(z)},P))}return d.createElement("div",{className:"".concat(g,"-body")},d.createElement("table",{className:"".concat(g,"-content")},u&&d.createElement("thead",null,d.createElement("tr",null,u)),d.createElement("tbody",null,M)))}var zs={visibility:"hidden"};function ai(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=Oc(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"\u2039":c,f=s.nextIcon,p=f===void 0?"\u203A":f,v=s.superPrevIcon,h=v===void 0?"\xAB":v,g=s.superNextIcon,m=g===void 0?"\xBB":g,b=s.minDate,y=s.maxDate,x=s.generateConfig,C=s.locale,w=s.pickerValue,E=s.panelType,S="".concat(l,"-header"),k=d.useContext(Oo),O=k.hidePrev,$=k.hideNext,I=k.hideHeader,N=d.useMemo(function(){if(!b||!t||!a)return!1;var T=a(t(-1,w));return!Ts(x,C,T,b,E)},[b,t,w,a,x,C,E]),A=d.useMemo(function(){if(!b||!n||!a)return!1;var T=a(n(-1,w));return!Ts(x,C,T,b,E)},[b,n,w,a,x,C,E]),F=d.useMemo(function(){if(!y||!t||!o)return!1;var T=o(t(1,w));return!Ts(x,C,y,T,E)},[y,t,w,o,x,C,E]),j=d.useMemo(function(){if(!y||!n||!o)return!1;var T=o(n(1,w));return!Ts(x,C,y,T,E)},[y,n,w,o,x,C,E]),M=function(T){t&&r(t(T,w))},R=function(T){n&&r(n(T,w))};if(I)return null;var P="".concat(S,"-prev-btn"),z="".concat(S,"-next-btn"),H="".concat(S,"-super-prev-btn"),L="".concat(S,"-super-next-btn");return d.createElement("div",{className:S},n&&d.createElement("button",{type:"button","aria-label":C.previousYear,onClick:function(){return R(-1)},tabIndex:-1,className:me(H,A&&"".concat(H,"-disabled")),disabled:A,style:O?zs:{}},h),t&&d.createElement("button",{type:"button","aria-label":C.previousMonth,onClick:function(){return M(-1)},tabIndex:-1,className:me(P,N&&"".concat(P,"-disabled")),disabled:N,style:O?zs:{}},u),d.createElement("div",{className:"".concat(S,"-view")},i),t&&d.createElement("button",{type:"button","aria-label":C.nextMonth,onClick:function(){return M(1)},tabIndex:-1,className:me(z,F&&"".concat(z,"-disabled")),disabled:F,style:$?zs:{}},p),n&&d.createElement("button",{type:"button","aria-label":C.nextYear,onClick:function(){return R(1)},tabIndex:-1,className:me(L,j&&"".concat(L,"-disabled")),disabled:j,style:$?zs:{}},m))}function Ic(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,f=e.disabledDate,p=e.onSelect,v=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),m="".concat(t,"-cell"),b=u==="week",y=oi(e,u),x=te(y,2),C=x[0],w=x[1],E=a.locale.getWeekFirstDay(o.locale),S=a.setDate(i,1),k=iP(o.locale,a,S),O=a.getMonth(i),$=h===void 0?b:h,I=$?function(T){var _=f==null?void 0:f(T,{type:"week"});return d.createElement("td",{key:"week",className:me(m,"".concat(m,"-week"),G({},"".concat(m,"-disabled"),_)),onClick:function(){_||p(T)},onMouseEnter:function(){_||(v==null||v(T))},onMouseLeave:function(){_||(v==null||v(null))}},d.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(o.locale,T)))}:null,N=[],A=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);I&&N.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var F=0;F<wu;F+=1)N.push(d.createElement("th",{key:F},A[(F+E)%wu]));var j=function(T,_){return a.addDate(T,_)},M=function(T){return Pn(T,{locale:o,format:o.cellDateFormat,generateConfig:a})},R=function(T){var _=G(G({},"".concat(t,"-cell-in-view"),xm(a,T,i)),"".concat(t,"-cell-today"),wm(a,T,w));return _},P=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),z=d.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){l("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},Pn(i,{locale:o,format:o.yearFormat,generateConfig:a})),H=d.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){l("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?Pn(i,{locale:o,format:o.monthFormat,generateConfig:a}):P[O]),L=o.monthBeforeYear?[H,z]:[z,H];return d.createElement(da.Provider,{value:C},d.createElement("div",{className:me(g,h&&"".concat(g,"-show-week"))},d.createElement(ai,{offset:function(T){return a.addMonth(i,T)},superOffset:function(T){return a.addYear(i,T)},onChange:s,getStart:function(T){return a.setDate(T,1)},getEnd:function(T){var _=a.setDate(T,1);return _=a.addMonth(_,1),a.addDate(_,-1)}},L),d.createElement(vs,Ge({titleFormat:o.fieldDateFormat},e,{colNum:wu,rowNum:6,baseDate:k,headerCells:N,getCellDate:j,getCellText:M,getCellClassName:R,prefixColumn:I,cellSelection:!b}))))}var vP=1/3;function bP(e,t){var n=d.useRef(!1),r=d.useRef(null),o=d.useRef(null),a=function(){return n.current},i=function(){Tt.cancel(r.current),n.current=!1},s=d.useRef(),l=function(){var u=e.current;if(o.current=null,s.current=0,u){var f=u.querySelector('[data-value="'.concat(t,'"]')),p=u.querySelector("li"),v=function h(){i(),n.current=!0,s.current+=1;var g=u.scrollTop,m=p.offsetTop,b=f.offsetTop,y=b-m;if(b===0&&f!==p||!pc(u)){s.current<=5&&(r.current=Tt(h));return}var x=g+(y-g)*vP,C=Math.abs(y-x);if(o.current!==null&&o.current<C){i();return}if(o.current=C,C<=1){u.scrollTop=y,i();return}u.scrollTop=x,r.current=Tt(h)};f&&p&&v()}},c=Vt(l);return[c,i,a]}var yP=300;function xP(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ci(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=Oc(),u=c.prefixCls,f=c.cellRender,p=c.now,v=c.locale,h="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),m=d.useRef(null),b=d.useRef(),y=function(){clearTimeout(b.current)},x=bP(m,n??r),C=te(x,3),w=C[0],E=C[1],S=C[2];Ut(function(){return w(),y(),function(){E(),y()}},[n,r,xP(t)]);var k=function($){y();var I=$.target;!S()&&l&&(b.current=setTimeout(function(){var N=m.current,A=N.querySelector("li").offsetTop,F=Array.from(N.querySelectorAll("li")),j=F.map(function(H){return H.offsetTop-A}),M=j.map(function(H,L){return t[L].disabled?Number.MAX_SAFE_INTEGER:Math.abs(H-I.scrollTop)}),R=Math.min.apply(Math,_e(M)),P=M.findIndex(function(H){return H===R}),z=t[P];z&&!z.disabled&&a(z.value)},yP))},O="".concat(h,"-column");return d.createElement("ul",{className:O,ref:m,"data-type":o,onScroll:k},t.map(function($){var I=$.label,N=$.value,A=$.disabled,F=d.createElement("div",{className:"".concat(g,"-inner")},I);return d.createElement("li",{key:N,className:me(g,G(G({},"".concat(g,"-selected"),n===N),"".concat(g,"-disabled"),A)),onClick:function(){A||a(N)},onDoubleClick:function(){!A&&s&&s()},onMouseEnter:function(){i(N)},onMouseLeave:function(){i(null)},"data-value":N},f?f(N,{prefixCls:u,originNode:F,today:p,type:"time",subType:o,locale:v}):F)}))}function go(e){return e<12}function wP(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=Oc(),l=s.prefixCls,c=s.values,u=s.generateConfig,f=s.locale,p=s.onSelect,v=s.onHover,h=v===void 0?function(){}:v,g=s.pickerValue,m=(c==null?void 0:c[0])||null,b=d.useContext(Oo),y=b.onCellDblClick,x=Sm(u,e,m),C=te(x,5),w=C[0],E=C[1],S=C[2],k=C[3],O=C[4],$=function(ve){var it=m&&u[ve](m),pt=g&&u[ve](g);return[it,pt]},I=$("getHour"),N=te(I,2),A=N[0],F=N[1],j=$("getMinute"),M=te(j,2),R=M[0],P=M[1],z=$("getSecond"),H=te(z,2),L=H[0],T=H[1],_=$("getMillisecond"),D=te(_,2),B=D[0],V=D[1],W=A===null?null:go(A)?"am":"pm",q=d.useMemo(function(){return a?go(A)?E.filter(function(ve){return go(ve.value)}):E.filter(function(ve){return!go(ve.value)}):E},[A,E,a]),Q=function(ve,it){var pt,yt=ve.filter(function(Pt){return!Pt.disabled});return it??(yt==null||(pt=yt[0])===null||pt===void 0?void 0:pt.value)},U=Q(E,A),J=d.useMemo(function(){return S(U)},[S,U]),X=Q(J,R),Y=d.useMemo(function(){return k(U,X)},[k,U,X]),ae=Q(Y,L),oe=d.useMemo(function(){return O(U,X,ae)},[O,U,X,ae]),ne=Q(oe,B),ue=d.useMemo(function(){if(!a)return[];var ve=u.getNow(),it=u.setHour(ve,6),pt=u.setHour(ve,18),yt=function(Pt,He){var Xe=f.cellMeridiemFormat;return Xe?Pn(Pt,{generateConfig:u,locale:f,format:Xe}):He};return[{label:yt(it,"AM"),value:"am",disabled:E.every(function(Pt){return Pt.disabled||!go(Pt.value)})},{label:yt(pt,"PM"),value:"pm",disabled:E.every(function(Pt){return Pt.disabled||go(Pt.value)})}]},[E,a,u,f]),pe=function(ve){var it=w(ve);p(it)},be=d.useMemo(function(){var ve=m||g||u.getNow(),it=function(pt){return pt!=null};return it(A)?(ve=u.setHour(ve,A),ve=u.setMinute(ve,R),ve=u.setSecond(ve,L),ve=u.setMillisecond(ve,B)):it(F)?(ve=u.setHour(ve,F),ve=u.setMinute(ve,P),ve=u.setSecond(ve,T),ve=u.setMillisecond(ve,V)):it(U)&&(ve=u.setHour(ve,U),ve=u.setMinute(ve,X),ve=u.setSecond(ve,ae),ve=u.setMillisecond(ve,ne)),ve},[m,g,A,R,L,B,U,X,ae,ne,F,P,T,V,u]),Se=function(ve,it){return ve===null?null:u[it](be,ve)},he=function(ve){return Se(ve,"setHour")},ke=function(ve){return Se(ve,"setMinute")},ce=function(ve){return Se(ve,"setSecond")},de=function(ve){return Se(ve,"setMillisecond")},Ae=function(ve){return ve===null?null:ve==="am"&&!go(A)?u.setHour(be,A-12):ve==="pm"&&go(A)?u.setHour(be,A+12):be},ie=function(ve){pe(he(ve))},We=function(ve){pe(ke(ve))},ze=function(ve){pe(ce(ve))},De=function(ve){pe(de(ve))},Ee=function(ve){pe(Ae(ve))},Ve=function(ve){h(he(ve))},Ne=function(ve){h(ke(ve))},Fe=function(ve){h(ce(ve))},$e=function(ve){h(de(ve))},je=function(ve){h(Ae(ve))},qe={onDblClick:y,changeOnScroll:i};return d.createElement("div",{className:"".concat(l,"-content")},t&&d.createElement(Ci,Ge({units:q,value:A,optionalValue:F,type:"hour",onChange:ie,onHover:Ve},qe)),n&&d.createElement(Ci,Ge({units:J,value:R,optionalValue:P,type:"minute",onChange:We,onHover:Ne},qe)),r&&d.createElement(Ci,Ge({units:Y,value:L,optionalValue:T,type:"second",onChange:ze,onHover:Fe},qe)),o&&d.createElement(Ci,Ge({units:oe,value:B,optionalValue:V,type:"millisecond",onChange:De,onHover:$e},qe)),a&&d.createElement(Ci,Ge({units:ue,value:W,type:"meridiem",onChange:Ee,onHover:je},qe)))}function nw(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,l="".concat(t,"-time-panel"),c=oi(e,"time"),u=te(c,1),f=u[0];return d.createElement(da.Provider,{value:f},d.createElement("div",{className:me(l)},d.createElement(ai,null,n?Pn(n,{locale:r,format:s,generateConfig:o}):"\xA0"),d.createElement(wP,a)))}function CP(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=Sm(n,r),u=te(c,1),f=u[0],p=function(g){return a?_l(n,g,a):_l(n,g,i)},v=function(g){s==null||s(g&&p(g))},h=function(g){var m=p(g);o(f(m,m))};return d.createElement("div",{className:l},d.createElement(Ic,Ge({},e,{onSelect:h,onHover:v})),d.createElement(nw,e))}function SP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=oi(e,"decade"),c=te(l,1),u=c[0],f=function(w){var E=Math.floor(r.getYear(w)/100)*100;return r.setYear(w,E)},p=function(w){var E=f(w);return r.addYear(E,99)},v=f(o),h=p(o),g=r.addYear(v,-10),m=function(w,E){return r.addYear(w,E*10)},b=function(w){var E=n.cellYearFormat,S=Pn(w,{locale:n,format:E,generateConfig:r}),k=Pn(r.addYear(w,9),{locale:n,format:E,generateConfig:r});return"".concat(S,"-").concat(k)},y=function(w){return G({},"".concat(t,"-cell-in-view"),uf(r,w,v)||uf(r,w,h)||kc(r,v,h,w))},x=a?function(w,E){var S=r.setDate(w,1),k=r.setMonth(S,0),O=r.setYear(k,Math.floor(r.getYear(k)/10)*10),$=r.addYear(O,10),I=r.addDate($,-1);return a(O,E)&&a(I,E)}:null,C="".concat(Pn(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Pn(h,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ai,{superOffset:function(w){return r.addYear(o,w*100)},onChange:i,getStart:f,getEnd:p},C),d.createElement(vs,Ge({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:g,getCellDate:m,getCellText:b,getCellClassName:y}))))}function EP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=oi(e,"month"),u=te(c,1),f=u[0],p=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(x,C){return r.addMonth(x,C)},g=function(x){var C=r.getMonth(x);return n.monthFormat?Pn(x,{locale:n,format:n.monthFormat,generateConfig:r}):v[C]},m=function(){return G({},"".concat(t,"-cell-in-view"),!0)},b=a?function(x,C){var w=r.setDate(x,1),E=r.setMonth(w,r.getMonth(w)+1),S=r.addDate(E,-1);return a(w,C)&&a(S,C)}:null,y=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Pn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ai,{superOffset:function(x){return r.addYear(o,x)},onChange:i,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},y),d.createElement(vs,Ge({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:g,getCellClassName:m}))))}function $P(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),l=oi(e,"quarter"),c=te(l,1),u=c[0],f=r.setMonth(o,0),p=function(m,b){return r.addMonth(m,b*3)},v=function(m){return Pn(m,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return G({},"".concat(t,"-cell-in-view"),!0)},g=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Pn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ai,{superOffset:function(m){return r.addYear(o,m)},onChange:a,getStart:function(m){return r.setMonth(m,0)},getEnd:function(m){return r.setMonth(m,11)}},g),d.createElement(vs,Ge({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:v,getCellClassName:h}))))}function kP(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(u){var f={};if(i){var p=te(i,2),v=p[0],h=p[1],g=Oi(n,s,v,u),m=Oi(n,s,h,u);f["".concat(l,"-range-start")]=g,f["".concat(l,"-range-end")]=m,f["".concat(l,"-range-hover")]=!g&&!m&&kc(n,v,h,u)}return a&&(f["".concat(l,"-hover")]=a.some(function(b){return Oi(n,s,u,b)})),me(l,G({},"".concat(l,"-selected"),!i&&Oi(n,s,o,u)),f)};return d.createElement(Ic,Ge({},e,{mode:"week",panelName:"week",rowClassName:c}))}function OP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=oi(e,"year"),u=te(c,1),f=u[0],p=function(E){var S=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,S)},v=function(E){var S=p(E);return r.addYear(S,9)},h=p(o),g=v(o),m=r.addYear(h,-1),b=function(E,S){return r.addYear(E,S)},y=function(E){return Pn(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(E){return G({},"".concat(t,"-cell-in-view"),ra(r,E,h)||ra(r,E,g)||kc(r,h,g,E))},C=a?function(E,S){var k=r.setMonth(E,0),O=r.setDate(k,1),$=r.addYear(O,1),I=r.addDate($,-1);return a(O,S)&&a(I,S)}:null,w=d.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Pn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Pn(g,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ai,{superOffset:function(E){return r.addYear(o,E*10)},onChange:i,getStart:p,getEnd:v},w),d.createElement(vs,Ge({},e,{disabledDate:C,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:b,getCellText:y,getCellClassName:x}))))}var IP={date:Ic,datetime:CP,week:kP,month:EP,quarter:$P,year:OP,decade:SP,time:nw};function MP(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,f=e.value,p=e.onChange,v=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,m=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,C=x===void 0?"date":x,w=e.showTime,E=e.hoverValue,S=e.hoverRangeValue,k=e.cellRender,O=e.dateRender,$=e.monthCellRender,I=e.components,N=I===void 0?{}:I,A=e.hideHeader,F=((n=d.useContext(Vr))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:j.current}});var M=Bx(e),R=te(M,4),P=R[0],z=R[1],H=R[2],L=R[3],T=Tx(r,z),_=C==="date"&&w?"datetime":C,D=d.useMemo(function(){return zx(_,H,L,P,T)},[_,H,L,P,T]),B=o.getNow(),V=bn(C,{value:b,postState:function($e){return $e||"date"}}),W=te(V,2),q=W[0],Q=W[1],U=q==="date"&&D?"datetime":q,J=tw(o,r,_),X=bn(u,{value:f}),Y=te(X,2),ae=Y[0],oe=Y[1],ne=d.useMemo(function(){var $e=ua(ae).filter(function(je){return je});return c?$e:$e.slice(0,1)},[ae,c]),ue=Vt(function($e){oe($e),p&&($e===null||ne.length!==$e.length||ne.some(function(je,qe){return!Yn(o,r,je,$e[qe],_)}))&&(p==null||p(c?$e:$e[0]))}),pe=Vt(function($e){if(v==null||v($e),q===C){var je=c?J(ne,$e):[$e];ue(je)}}),be=bn(h||ne[0]||B,{value:g}),Se=te(be,2),he=Se[0],ke=Se[1];d.useEffect(function(){ne[0]&&!g&&ke(ne[0])},[ne[0]]);var ce=function($e,je){y==null||y($e||g,je||q)},de=function($e){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ke($e),m==null||m($e),je&&ce($e)},Ae=function($e,je){Q($e),je&&de(je),ce(je,$e)},ie=function($e){if(pe($e),de($e),q!==C){var je=["decade","year"],qe=[].concat(je,["month"]),ve={quarter:[].concat(je,["quarter"]),week:[].concat(_e(qe),["week"]),date:[].concat(_e(qe),["date"])},it=ve[C]||qe,pt=it.indexOf(q),yt=it[pt+1];yt&&Ae(yt,$e)}},We=d.useMemo(function(){var $e,je;if(Array.isArray(S)){var qe=te(S,2);$e=qe[0],je=qe[1]}else $e=S;return!$e&&!je?null:($e=$e||je,je=je||$e,o.isAfter($e,je)?[je,$e]:[$e,je])},[S,o]),ze=ym(k,O,$),De=N[U]||IP[U]||Ic,Ee=d.useContext(Oo),Ve=d.useMemo(function(){return K(K({},Ee),{},{hideHeader:A})},[Ee,A]),Ne="".concat(F,"-panel"),Fe=$c(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Oo.Provider,{value:Ve},d.createElement("div",{ref:j,tabIndex:l,className:me(Ne,G({},"".concat(Ne,"-rtl"),a==="rtl"))},d.createElement(De,Ge({},Fe,{showTime:D,prefixCls:F,locale:T,generateConfig:o,onModeChange:Ae,pickerValue:he,onPickerValueChange:function($e){de($e,!0)},value:ne[0],onSelect:ie,values:ne,cellRender:ze,hoverRangeValue:We,hoverValue:E}))))}var Su=d.memo(d.forwardRef(MP));function FP(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Vr),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(y,x){return Ii(f,t,y,x)},[f,t]),v=d.useMemo(function(){return p(r,1)},[r,p]),h=function(y){o(p(y,-1))},g={onCellDblClick:function(){a&&i()}},m=t==="time",b=K(K({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Oo.Provider,{value:K(K({},g),{},{hideNext:!0})},d.createElement(Su,b)),d.createElement(Oo.Provider,{value:K(K({},g),{},{hidePrev:!0})},d.createElement(Su,Ge({},b,{pickerValue:v,onPickerValueChange:h})))):d.createElement(Oo.Provider,{value:K({},g)},d.createElement(Su,b))}function xv(e){return typeof e=="function"?e():e}function NP(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,i){var s=a.label,l=a.value;return d.createElement("li",{key:i,onClick:function(){r(xv(l))},onMouseEnter:function(){o(xv(l))},onMouseLeave:function(){o(null)}},s)}))):null}function rw(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,g=e.direction,m=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,C=e.onOk,w=e.onSubmit,E=d.useContext(Vr),S=E.prefixCls,k="".concat(S,"-panel"),O=g==="rtl",$=d.useRef(null),I=d.useRef(null),N=d.useState(0),A=te(N,2),F=A[0],j=A[1],M=d.useState(0),R=te(M,2),P=R[0],z=R[1],H=d.useState(0),L=te(H,2),T=L[0],_=L[1],D=function(Ae){Ae.width&&j(Ae.width)},B=te(l,3),V=B[0],W=B[1],q=B[2],Q=d.useState(0),U=te(Q,2),J=U[0],X=U[1];d.useEffect(function(){X(10)},[V]),d.useEffect(function(){if(a&&I.current){var Ae,ie=((Ae=$.current)===null||Ae===void 0?void 0:Ae.offsetWidth)||0,We=I.current.getBoundingClientRect();if(!We.height||We.right<0){X(function(Ve){return Math.max(0,Ve-1)});return}var ze=(O?W-ie:V)-We.left;if(_(ze),F&&F<q){var De=O?We.right-(W-ie+F):V+ie-We.left-F,Ee=Math.max(0,De);z(Ee)}else z(0)}},[J,O,F,V,W,q,a]);function Y(Ae){return Ae.filter(function(ie){return ie})}var ae=d.useMemo(function(){return Y(ua(m))},[m]),oe=r==="time"&&!ae.length,ne=d.useMemo(function(){return oe?Y([x]):ae},[oe,ae,x]),ue=oe?x:ae,pe=d.useMemo(function(){return ne.length?ne.some(function(Ae){return y(Ae)}):!0},[ne,y]),be=function(){oe&&b(x),C(),w()},Se=d.createElement("div",{className:"".concat(S,"-panel-layout")},d.createElement(NP,{prefixCls:S,presets:c,onClick:f,onHover:u}),d.createElement("div",null,d.createElement(FP,Ge({},e,{value:ue})),d.createElement(hP,Ge({},e,{showNow:i?!1:o,invalid:pe,onSubmit:be}))));t&&(Se=t(Se));var he="".concat(k,"-container"),ke="marginLeft",ce="marginRight",de=d.createElement("div",{onMouseDown:h,tabIndex:-1,className:me(he,"".concat(S,"-").concat(n,"-panel-container")),style:G(G({},O?ce:ke,P),O?ke:ce,"auto"),onFocus:p,onBlur:v},Se);return a&&(de=d.createElement("div",{onMouseDown:h,ref:I,className:me("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:$,className:"".concat(S,"-range-arrow"),style:{left:T}}),d.createElement(eo,{onResize:D},de))),de}function ow(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,v=e.onInputChange,h=e.onInvalid,g=e.open,m=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,C=e.name,w=e.autoComplete,E=e.id,S=e.value,k=e.invalid,O=e.placeholder,$=e.disabled,I=e.activeIndex,N=e.allHelp,A=e.picker,F=function(L,T){var _=o.locale.parse(a.locale,L,[T]);return _&&o.isValidate(_)?_:null},j=n[0],M=d.useCallback(function(L){return Pn(L,{locale:a,format:j,generateConfig:o})},[a,o,j]),R=d.useMemo(function(){return S.map(M)},[S,M]),P=d.useMemo(function(){var L=A==="time"?8:10,T=typeof j=="function"?j(o.getNow()).length:j.length;return Math.max(L,T)+2},[j,A,o]),z=function(L){for(var T=0;T<n.length;T+=1){var _=n[T];if(typeof _=="string"){var D=F(L,_);if(D)return D}}return!1},H=function(L){function T(B){return L!==void 0?B[L]:B}var _=Br(e,{aria:!0,data:!0}),D=K(K({},_),{},{format:r,validateFormat:function(B){return!!z(B)},preserveInvalidOnBlur:i,readOnly:s,required:l,"aria-required":c,name:C,autoComplete:w,size:P,id:T(E),value:T(R)||"",invalid:T(k),placeholder:T(O),active:I===L,helped:N||x&&I===L,disabled:T($),onFocus:function(B){f(B,L)},onBlur:function(B){p(B,L)},onSubmit:u,onChange:function(B){v();var V=z(B);if(V){h(!1,L),y(V,L);return}h(!!B,L)},onHelp:function(){m(!0,{index:L})},onKeyDown:function(B){var V=!1;if(b==null||b(B,function(){V=!0}),!B.defaultPrevented&&!V)switch(B.key){case"Escape":m(!1,{index:L});break;case"Enter":g||m(!0);break}}},t==null?void 0:t({valueTexts:R}));return Object.keys(D).forEach(function(B){D[B]===void 0&&delete D[B]}),D};return[H,M]}var jP=["onMouseEnter","onMouseLeave"];function aw(e){return d.useMemo(function(){return $c(e,jP)},[e])}var PP=["icon","type"],AP=["onClear"];function Mc(e){var t=e.icon,n=e.type,r=Dt(e,PP),o=d.useContext(Vr),a=o.prefixCls;return t?d.createElement("span",Ge({className:"".concat(a,"-").concat(n)},r),t):null}function df(e){var t=e.onClear,n=Dt(e,AP);return d.createElement(Mc,Ge({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var Eu=["YYYY","MM","DD","HH","mm","ss","SSS"],wv="\u9867",RP=(function(){function e(t){xn(this,e),G(this,"format",void 0),G(this,"maskFormat",void 0),G(this,"cells",void 0),G(this,"maskCells",void 0),this.format=t;var n=Eu.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return wv.repeat(s.length)});var o=new RegExp("(".concat(Eu.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var l=Eu.includes(s),c=i,u=i+s.length;return i=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return wn(e,[{key:"getSelection",value:function(t){var n=this.maskCells[t]||{},r=n.start,o=n.end;return[r||0,o||0]}},{key:"match",value:function(t){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],o=t[n];if(!o||r!==wv&&r!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],i=a.start,s=a.end;if(t>=i&&t<=s)return o;var l=Math.min(Math.abs(t-i),Math.abs(t-s));l<n&&(n=l,r=o)}return r}}]),e})();function TP(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var DP=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ff=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,l=e.onChange,c=e.helped,u=e.onHelp,f=e.onSubmit,p=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,g=e.invalid,m=e.clearIcon,b=Dt(e,DP),y=e.value,x=e.onFocus,C=e.onBlur,w=e.onMouseUp,E=d.useContext(Vr),S=E.prefixCls,k=E.input,O=k===void 0?"input":k,$="".concat(S,"-input"),I=d.useState(!1),N=te(I,2),A=N[0],F=N[1],j=d.useState(y),M=te(j,2),R=M[0],P=M[1],z=d.useState(""),H=te(z,2),L=H[0],T=H[1],_=d.useState(null),D=te(_,2),B=D[0],V=D[1],W=d.useState(null),q=te(W,2),Q=q[0],U=q[1],J=R||"";d.useEffect(function(){P(y)},[y]);var X=d.useRef(),Y=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:X.current,inputElement:Y.current,focus:function(Fe){Y.current.focus(Fe)},blur:function(){Y.current.blur()}}});var ae=d.useMemo(function(){return new RP(i||"")},[i]),oe=d.useMemo(function(){return c?[0,0]:ae.getSelection(B)},[ae,B,c]),ne=te(oe,2),ue=ne[0],pe=ne[1],be=function(Fe){Fe&&Fe!==i&&Fe!==y&&u()},Se=Vt(function(Fe){s(Fe)&&l(Fe),P(Fe),be(Fe)}),he=function(Fe){if(!i){var $e=Fe.target.value;be($e),P($e),l($e)}},ke=function(Fe){var $e=Fe.clipboardData.getData("text");s($e)&&Se($e)},ce=d.useRef(!1),de=function(){ce.current=!0},Ae=function(Fe){var $e=Fe.target,je=$e.selectionStart,qe=ae.getMaskCellIndex(je);V(qe),U({}),w==null||w(Fe),ce.current=!1},ie=function(Fe){F(!0),V(0),T(""),x(Fe)},We=function(Fe){C(Fe)},ze=function(Fe){F(!1),We(Fe)};Cm(n,function(){!n&&!h&&P(y)});var De=function(Fe){Fe.key==="Enter"&&s(J)&&f(),p==null||p(Fe)},Ee=function(Fe){De(Fe);var $e=Fe.key,je=null,qe=null,ve=pe-ue,it=i.slice(ue,pe),pt=function(He){V(function(Xe){var Ye=Xe+He;return Ye=Math.max(Ye,0),Ye=Math.min(Ye,ae.size()-1),Ye})},yt=function(He){var Xe=TP(it),Ye=te(Xe,3),Je=Ye[0],tt=Ye[1],Ot=Ye[2],Nt=J.slice(ue,pe),et=Number(Nt);if(isNaN(et))return String(Ot||(He>0?Je:tt));var st=et+He,Ct=tt-Je+1;return String(Je+(Ct+st-Je)%Ct)};switch($e){case"Backspace":case"Delete":je="",qe=it;break;case"ArrowLeft":je="",pt(-1);break;case"ArrowRight":je="",pt(1);break;case"ArrowUp":je="",qe=yt(1);break;case"ArrowDown":je="",qe=yt(-1);break;default:isNaN(Number($e))||(je=L+$e,qe=je);break}if(je!==null&&(T(je),je.length>=ve&&(pt(1),T(""))),qe!==null){var Pt=J.slice(0,ue)+bm(qe,ve)+J.slice(pe);Se(Pt.slice(0,i.length))}U({})},Ve=d.useRef();Ut(function(){if(!(!A||!i||ce.current)){if(!ae.match(J)){Se(i);return}return Y.current.setSelectionRange(ue,pe),Ve.current=Tt(function(){Y.current.setSelectionRange(ue,pe)}),function(){Tt.cancel(Ve.current)}}},[ae,i,A,J,B,ue,pe,Q,Se]);var Ne=i?{onFocus:ie,onBlur:ze,onKeyDown:Ee,onMouseDown:de,onMouseUp:Ae,onPaste:ke}:{};return d.createElement("div",{ref:X,className:me($,G(G({},"".concat($,"-active"),n&&o),"".concat($,"-placeholder"),c))},d.createElement(O,Ge({ref:Y,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:De,onBlur:We},Ne,{value:J,onChange:he})),d.createElement(Mc,{type:"suffix",icon:a}),m)}),_P=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],BP=["index"];function zP(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,l=e.activeIndex,c=e.focused,u=e.placeholder,f=e.className,p=e.style,v=e.onClick,h=e.onClear,g=e.value,m=e.disabled,b=e.invalid,y=e.direction,x=e.onActiveInfo,C=e.onMouseDown,w=e.autoFocus,E=e.tabIndex,S=Dt(e,_P),k=y==="rtl",O=d.useContext(Vr),$=O.prefixCls,I=d.useMemo(function(){if(typeof n=="string")return[n];var Q=n||{};return[Q.start,Q.end]},[n]),N=d.useRef(),A=d.useRef(),F=d.useRef(),j=function(Q){var U;return(U=[A,F][Q])===null||U===void 0?void 0:U.current};d.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(Q){if(dt(Q)==="object"){var U,J=Q||{},X=J.index,Y=X===void 0?0:X,ae=Dt(J,BP);(U=j(Y))===null||U===void 0||U.focus(ae)}else{var oe;(oe=j(Q??0))===null||oe===void 0||oe.focus()}},blur:function(){var Q,U;(Q=j(0))===null||Q===void 0||Q.blur(),(U=j(1))===null||U===void 0||U.blur()}}});var M=aw(S),R=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),P=ow(K(K({},e),{},{id:I,placeholder:R})),z=te(P,1),H=z[0],L=d.useState({position:"absolute",width:0}),T=te(L,2),_=T[0],D=T[1],B=Vt(function(){var Q=j(l);if(Q){var U=Q.nativeElement.getBoundingClientRect(),J=N.current.getBoundingClientRect(),X=U.left-J.left;D(function(Y){return K(K({},Y),{},{width:U.width,left:X})}),x([U.left,U.right,J.width])}});d.useEffect(function(){B()},[l]);var V=o&&(g[0]&&!m[0]||g[1]&&!m[1]),W=w&&!m[0],q=w&&!W&&!m[1];return d.createElement(eo,{onResize:B},d.createElement("div",Ge({},M,{className:me($,"".concat($,"-range"),G(G(G(G({},"".concat($,"-focused"),c),"".concat($,"-disabled"),m.every(function(Q){return Q})),"".concat($,"-invalid"),b.some(function(Q){return Q})),"".concat($,"-rtl"),k),f),style:p,ref:N,onClick:v,onMouseDown:function(Q){var U=Q.target;U!==A.current.inputElement&&U!==F.current.inputElement&&Q.preventDefault(),C==null||C(Q)}}),r&&d.createElement("div",{className:"".concat($,"-prefix")},r),d.createElement(ff,Ge({ref:A},H(0),{autoFocus:W,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat($,"-range-separator")},s),d.createElement(ff,Ge({ref:F},H(1),{autoFocus:q,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat($,"-active-bar"),style:_}),d.createElement(Mc,{type:"suffix",icon:a}),V&&d.createElement(df,{icon:o,onClear:h})))}var HP=d.forwardRef(zP);function Cv(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Hs(e){return e===1?"end":"start"}function LP(e,t){var n=Vx(e,function(){var vt=e.disabled,jt=e.allowEmpty,un=Cv(vt,!1),fn=Cv(jt,!1);return{disabled:un,allowEmpty:fn}}),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,p=o.classNames,v=o.defaultValue,h=o.value,g=o.needConfirm,m=o.onKeyDown,b=o.disabled,y=o.allowEmpty,x=o.disabledDate,C=o.minDate,w=o.maxDate,E=o.defaultOpen,S=o.open,k=o.onOpenChange,O=o.locale,$=o.generateConfig,I=o.picker,N=o.showNow,A=o.showToday,F=o.showTime,j=o.mode,M=o.onPanelChange,R=o.onCalendarChange,P=o.onOk,z=o.defaultPickerValue,H=o.pickerValue,L=o.onPickerValueChange,T=o.inputReadOnly,_=o.suffixIcon,D=o.onFocus,B=o.onBlur,V=o.presets,W=o.ranges,q=o.components,Q=o.cellRender,U=o.dateRender,J=o.monthCellRender,X=o.onClick,Y=qx(t),ae=Wx(S,E,b,k),oe=te(ae,2),ne=oe[0],ue=oe[1],pe=function(vt,jt){(b.some(function(un){return!un})||!vt)&&ue(vt,jt)},be=Zx($,O,s,!0,!1,v,h,R,P),Se=te(be,5),he=Se[0],ke=Se[1],ce=Se[2],de=Se[3],Ae=Se[4],ie=ce(),We=Yx(b,y,ne),ze=te(We,9),De=ze[0],Ee=ze[1],Ve=ze[2],Ne=ze[3],Fe=ze[4],$e=ze[5],je=ze[6],qe=ze[7],ve=ze[8],it=function(vt,jt){Ee(!0),D==null||D(vt,{range:Hs(jt??Ne)})},pt=function(vt,jt){Ee(!1),B==null||B(vt,{range:Hs(jt??Ne)})},yt=d.useMemo(function(){if(!F)return null;var vt=F.disabledTime,jt=vt?function(un){var fn=Hs(Ne),Nn=jx(ie,je,Ne);return vt(un,fn,{from:Nn})}:void 0;return K(K({},F),{},{disabledTime:jt})},[F,Ne,ie,je]),Pt=bn([I,I],{value:j}),He=te(Pt,2),Xe=He[0],Ye=He[1],Je=Xe[Ne]||I,tt=Je==="date"&&yt?"datetime":Je,Ot=tt===I&&tt!=="time",Nt=ew(I,Je,N,A,!0),et=Jx(o,he,ke,ce,de,b,s,De,ne,c),st=te(et,2),Ct=st[0],Le=st[1],Pe=fP(ie,b,je,$,O,x),ye=Ax(ie,c,y),Te=te(ye,2),nt=Te[0],Qe=Te[1],ot=Xx($,O,ie,Xe,ne,Ne,a,Ot,z,H,yt==null?void 0:yt.defaultOpenValue,L,C,w),gt=te(ot,2),kt=gt[0],Mt=gt[1],Jt=Vt(function(vt,jt,un){var fn=Ai(Xe,Ne,jt);if((fn[0]!==Xe[0]||fn[1]!==Xe[1])&&Ye(fn),M&&un!==!1){var Nn=_e(ie);vt&&(Nn[Ne]=vt),M(Nn,fn)}}),Ht=function(vt,jt){return Ai(ie,jt,vt)},Z=function(vt,jt){var un=ie;vt&&(un=Ht(vt,Ne)),qe(Ne);var fn=$e(un);de(un),Ct(Ne,fn===null),fn===null?pe(!1,{force:!0}):jt||Y.current.focus({index:fn})},ee=function(vt){var jt,un=vt.target.getRootNode();if(!Y.current.nativeElement.contains((jt=un.activeElement)!==null&&jt!==void 0?jt:document.activeElement)){var fn=b.findIndex(function(Nn){return!Nn});fn>=0&&Y.current.focus({index:fn})}pe(!0),X==null||X(vt)},we=function(){Le(null),pe(!1,{force:!0})},Ie=d.useState(null),le=te(Ie,2),Ce=le[0],Me=le[1],Oe=d.useState(null),Ue=te(Oe,2),bt=Ue[0],Re=Ue[1],St=d.useMemo(function(){return bt||ie},[ie,bt]);d.useEffect(function(){ne||Re(null)},[ne]);var xt=d.useState([0,0,0]),Et=te(xt,2),lt=Et[0],Yt=Et[1],ft=Ux(V,W),It=function(vt){Re(vt),Me("preset")},Rt=function(vt){var jt=Le(vt);jt&&pe(!1,{force:!0})},_t=function(vt){Z(vt)},Lt=function(vt){Re(vt?Ht(vt,Ne):null),Me("cell")},hn=function(vt){pe(!0),it(vt)},pn=function(){Ve("panel")},Dn=function(vt){var jt=Ai(ie,Ne,vt);de(jt),!g&&!i&&a===tt&&Z(vt)},tr=function(){pe(!1)},ht=ym(Q,U,J,Hs(Ne)),tn=ie[Ne]||null,mn=Vt(function(vt){return c(vt,{activeIndex:Ne})}),Ze=d.useMemo(function(){var vt=Br(o,!1),jt=to(o,[].concat(_e(Object.keys(vt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return jt},[o]),Bt=d.createElement(rw,Ge({},Ze,{showNow:Nt,showTime:yt,range:!0,multiplePanel:Ot,activeInfo:lt,disabledDate:Pe,onFocus:hn,onBlur:pt,onPanelMouseDown:pn,picker:I,mode:Je,internalMode:tt,onPanelChange:Jt,format:l,value:tn,isInvalid:mn,onChange:null,onSelect:Dn,pickerValue:kt,defaultOpenValue:ua(F==null?void 0:F.defaultOpenValue)[Ne],onPickerValueChange:Mt,hoverValue:St,onHover:Lt,needConfirm:g,onSubmit:Z,onOk:Ae,presets:ft,onPresetHover:It,onPresetSubmit:Rt,onNow:_t,cellRender:ht})),dn=function(vt,jt){var un=Ht(vt,jt);de(un)},Cn=function(){Ve("input")},nr=function(vt,jt){var un=je.length,fn=je[un-1];if(un&&fn!==jt&&g&&!y[fn]&&!ve(fn)&&ie[fn]){Y.current.focus({index:fn});return}Ve("input"),pe(!0,{inherit:!0}),Ne!==jt&&ne&&!g&&i&&Z(null,!0),Fe(jt),it(vt,jt)},rr=function(vt,jt){if(pe(!1),!g&&Ve()==="input"){var un=$e(ie);Ct(Ne,un===null)}pt(vt,jt)},or=function(vt,jt){vt.key==="Tab"&&Z(null,!0),m==null||m(vt,jt)},Wr=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:$,button:q.button,input:q.input}},[u,O,$,q.button,q.input]);return Ut(function(){ne&&Ne!==void 0&&Jt(null,I,!1)},[ne,Ne,I]),Ut(function(){var vt=Ve();!ne&&vt==="input"&&(pe(!1),Z(null,!0)),!ne&&i&&!g&&vt==="panel"&&(pe(!0),Z())},[ne]),d.createElement(Vr.Provider,{value:Wr},d.createElement(Fx,Ge({},Px(o),{popupElement:Bt,popupStyle:f.popup,popupClassName:p.popup,visible:ne,onClose:tr,range:!0}),d.createElement(HP,Ge({},o,{ref:Y,suffixIcon:_,activeIndex:De||ne?Ne:null,activeHelp:!!bt,allHelp:!!bt&&Ce==="preset",focused:De,onFocus:nr,onBlur:rr,onKeyDown:or,onSubmit:Z,value:St,maskFormat:l,onChange:dn,onInputChange:Cn,format:s,inputReadOnly:T,disabled:b,open:ne,onOpenChange:pe,onClick:ee,onClear:we,invalid:nt,onInvalid:Qe,onActiveInfo:Yt}))))}var VP=d.forwardRef(LP);function WP(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"\xD7":o,i=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(m,b){return d.createElement("span",{className:me("".concat(f,"-item")),title:typeof m=="string"?m:null},d.createElement("span",{className:"".concat(f,"-item-content")},m),!s&&b&&d.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},a))}function h(m){var b=i(m),y=function(x){x&&x.stopPropagation(),r(m)};return v(b,y)}function g(m){var b="+ ".concat(m.length," ...");return v(b)}return d.createElement("div",{className:u},d.createElement(ni,{prefixCls:p,data:n,renderItem:h,renderRest:g,itemKey:function(m){return i(m)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var qP=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function UP(e,t){var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.focused,s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,v=e.onClear,h=e.internalPicker,g=e.value,m=e.onChange,b=e.onSubmit,y=e.multiple,x=e.maxTagCount,C=e.disabled,w=e.invalid,E=e.direction,S=e.onMouseDown,k=e.autoFocus,O=e.tabIndex,$=e.removeIcon,I=Dt(e,qP),N=E==="rtl",A=d.useContext(Vr),F=A.prefixCls,j=d.useRef(),M=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(V){var W;(W=M.current)===null||W===void 0||W.focus(V)},blur:function(){var V;(V=M.current)===null||V===void 0||V.blur()}}});var R=aw(I),P=function(V){m([V])},z=function(V){var W=g.filter(function(q){return q&&!Yn(l,s,q,V,h)});m(W),n||b()},H=ow(K(K({},e),{},{onChange:P}),function(V){var W=V.valueTexts;return{value:W[0]||"",active:i}}),L=te(H,2),T=L[0],_=L[1],D=!!(o&&g.length&&!C),B=y?d.createElement(d.Fragment,null,d.createElement(WP,{prefixCls:F,value:g,onRemove:z,formatDate:_,maxTagCount:x,disabled:C,removeIcon:$,placeholder:c}),d.createElement("input",{className:"".concat(F,"-multiple-input"),value:g.map(_).join(","),ref:M,readOnly:!0,autoFocus:k,tabIndex:O}),d.createElement(Mc,{type:"suffix",icon:a}),D&&d.createElement(df,{icon:o,onClear:v})):d.createElement(ff,Ge({ref:M},T(),{autoFocus:k,tabIndex:O,suffixIcon:a,clearIcon:D&&d.createElement(df,{icon:o,onClear:v}),showActiveCls:!1}));return d.createElement("div",Ge({},R,{className:me(F,G(G(G(G(G({},"".concat(F,"-multiple"),y),"".concat(F,"-focused"),i),"".concat(F,"-disabled"),C),"".concat(F,"-invalid"),w),"".concat(F,"-rtl"),N),u),style:f,ref:j,onClick:p,onMouseDown:function(V){var W,q=V.target;q!==((W=M.current)===null||W===void 0?void 0:W.inputElement)&&V.preventDefault(),S==null||S(V)}}),r&&d.createElement("div",{className:"".concat(F,"-prefix")},r),B)}var YP=d.forwardRef(UP);function XP(e,t){var n=Vx(e),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,p=u.styles,v=u.classNames,h=u.order,g=u.defaultValue,m=u.value,b=u.needConfirm,y=u.onChange,x=u.onKeyDown,C=u.disabled,w=u.disabledDate,E=u.minDate,S=u.maxDate,k=u.defaultOpen,O=u.open,$=u.onOpenChange,I=u.locale,N=u.generateConfig,A=u.picker,F=u.showNow,j=u.showToday,M=u.showTime,R=u.mode,P=u.onPanelChange,z=u.onCalendarChange,H=u.onOk,L=u.multiple,T=u.defaultPickerValue,_=u.pickerValue,D=u.onPickerValueChange,B=u.inputReadOnly,V=u.suffixIcon,W=u.removeIcon,q=u.onFocus,Q=u.onBlur,U=u.presets,J=u.components,X=u.cellRender,Y=u.dateRender,ae=u.monthCellRender,oe=u.onClick,ne=qx(t);function ue(Ze){return Ze===null?null:L?Ze:Ze[0]}var pe=tw(N,I,a),be=Wx(O,k,[C],$),Se=te(be,2),he=Se[0],ke=Se[1],ce=function(Ze,Bt,dn){if(z){var Cn=K({},dn);delete Cn.range,z(ue(Ze),ue(Bt),Cn)}},de=function(Ze){H==null||H(ue(Ze))},Ae=Zx(N,I,s,!1,h,g,m,ce,de),ie=te(Ae,5),We=ie[0],ze=ie[1],De=ie[2],Ee=ie[3],Ve=ie[4],Ne=De(),Fe=Yx([C]),$e=te(Fe,4),je=$e[0],qe=$e[1],ve=$e[2],it=$e[3],pt=function(Ze){qe(!0),q==null||q(Ze,{})},yt=function(Ze){qe(!1),Q==null||Q(Ze,{})},Pt=bn(A,{value:R}),He=te(Pt,2),Xe=He[0],Ye=He[1],Je=Xe==="date"&&M?"datetime":Xe,tt=ew(A,Xe,F,j),Ot=y&&function(Ze,Bt){y(ue(Ze),ue(Bt))},Nt=Jx(K(K({},o),{},{onChange:Ot}),We,ze,De,Ee,[],s,je,he,c),et=te(Nt,2),st=et[1],Ct=Ax(Ne,c),Le=te(Ct,2),Pe=Le[0],ye=Le[1],Te=d.useMemo(function(){return Pe.some(function(Ze){return Ze})},[Pe]),nt=function(Ze,Bt){if(D){var dn=K(K({},Bt),{},{mode:Bt.mode[0]});delete dn.range,D(Ze[0],dn)}},Qe=Xx(N,I,Ne,[Xe],he,it,a,!1,T,_,ua(M==null?void 0:M.defaultOpenValue),nt,E,S),ot=te(Qe,2),gt=ot[0],kt=ot[1],Mt=Vt(function(Ze,Bt,dn){if(Ye(Bt),P&&dn!==!1){var Cn=Ze||Ne[Ne.length-1];P(Cn,Bt)}}),Jt=function(){st(De()),ke(!1,{force:!0})},Ht=function(Ze){!C&&!ne.current.nativeElement.contains(document.activeElement)&&ne.current.focus(),ke(!0),oe==null||oe(Ze)},Z=function(){st(null),ke(!1,{force:!0})},ee=d.useState(null),we=te(ee,2),Ie=we[0],le=we[1],Ce=d.useState(null),Me=te(Ce,2),Oe=Me[0],Ue=Me[1],bt=d.useMemo(function(){var Ze=[Oe].concat(_e(Ne)).filter(function(Bt){return Bt});return L?Ze:Ze.slice(0,1)},[Ne,Oe,L]),Re=d.useMemo(function(){return!L&&Oe?[Oe]:Ne.filter(function(Ze){return Ze})},[Ne,Oe,L]);d.useEffect(function(){he||Ue(null)},[he]);var St=Ux(U),xt=function(Ze){Ue(Ze),le("preset")},Et=function(Ze){var Bt=L?pe(De(),Ze):[Ze],dn=st(Bt);dn&&!L&&ke(!1,{force:!0})},lt=function(Ze){Et(Ze)},Yt=function(Ze){Ue(Ze),le("cell")},ft=function(Ze){ke(!0),pt(Ze)},It=function(Ze){if(ve("panel"),!(L&&Je!==A)){var Bt=L?pe(De(),Ze):[Ze];Ee(Bt),!b&&!i&&a===Je&&Jt()}},Rt=function(){ke(!1)},_t=ym(X,Y,ae),Lt=d.useMemo(function(){var Ze=Br(o,!1),Bt=to(o,[].concat(_e(Object.keys(Ze)),["onChange","onCalendarChange","style","className","onPanelChange"]));return K(K({},Bt),{},{multiple:o.multiple})},[o]),hn=d.createElement(rw,Ge({},Lt,{showNow:tt,showTime:M,disabledDate:w,onFocus:ft,onBlur:yt,picker:A,mode:Xe,internalMode:Je,onPanelChange:Mt,format:l,value:Ne,isInvalid:c,onChange:null,onSelect:It,pickerValue:gt,defaultOpenValue:M==null?void 0:M.defaultOpenValue,onPickerValueChange:kt,hoverValue:bt,onHover:Yt,needConfirm:b,onSubmit:Jt,onOk:Ve,presets:St,onPresetHover:xt,onPresetSubmit:Et,onNow:lt,cellRender:_t})),pn=function(Ze){Ee(Ze)},Dn=function(){ve("input")},tr=function(Ze){ve("input"),ke(!0,{inherit:!0}),pt(Ze)},ht=function(Ze){ke(!1),yt(Ze)},tn=function(Ze,Bt){Ze.key==="Tab"&&Jt(),x==null||x(Ze,Bt)},mn=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:N,button:J.button,input:J.input}},[f,I,N,J.button,J.input]);return Ut(function(){he&&it!==void 0&&Mt(null,A,!1)},[he,it,A]),Ut(function(){var Ze=ve();!he&&Ze==="input"&&(ke(!1),Jt()),!he&&i&&!b&&Ze==="panel"&&Jt()},[he]),d.createElement(Vr.Provider,{value:mn},d.createElement(Fx,Ge({},Px(o),{popupElement:hn,popupStyle:p.popup,popupClassName:v.popup,visible:he,onClose:Rt}),d.createElement(YP,Ge({},o,{ref:ne,suffixIcon:V,removeIcon:W,activeHelp:!!Oe,allHelp:!!Oe&&Ie==="preset",focused:je,onFocus:tr,onBlur:ht,onKeyDown:tn,onSubmit:Jt,value:Re,maskFormat:l,onChange:pn,onInputChange:Dn,internalPicker:a,format:s,inputReadOnly:B,disabled:C,open:he,onOpenChange:ke,onClick:Ht,onClear:Z,invalid:Te,onInvalid:function(Ze){ye(Ze,0)}}))))}var GP=d.forwardRef(XP);const iw=d.createContext(null),KP=iw.Provider,sw=d.createContext(null),QP=sw.Provider;var ZP=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],JP=zr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,v=e.onChange,h=Dt(e,ZP),g=Ke(null),m=Ke(null),b=bn(c,{value:i}),y=te(b,2),x=y[0],C=y[1];Qa(t,function(){return{focus:function(S){var k;(k=g.current)===null||k===void 0||k.focus(S)},blur:function(){var S;(S=g.current)===null||S===void 0||S.blur()},input:g.current,nativeElement:m.current}});var w=me(r,o,G(G({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),E=function(S){s||("checked"in e||C(S.target.checked),v==null||v({target:K(K({},e),{},{type:f,checked:S.target.checked}),stopPropagation:function(){S.stopPropagation()},preventDefault:function(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return d.createElement("span",{className:w,title:p,style:a,ref:m},d.createElement("input",Ge({},h,{className:"".concat(r,"-input"),ref:g,onChange:E,disabled:s,checked:!!x,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function eA(e){const t=fe.useRef(null),n=()=>{Tt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Tt(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const tA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},yn(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"}})}},nA=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:v,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:b,calc:y}=e,x=`${t}-inner`,C=y(o).sub(y(4).mul(2)),w=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},yn(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:`${xe(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},yn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
319
|
-
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Up(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:w,height:w,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(C).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},rA=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:h,borderRadius:g,borderRadiusSM:m,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:S,colorPrimary:k,colorPrimaryHover:O,colorPrimaryActive:$,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:A,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:xe(F(n).sub(F(o).mul(2)).equal()),background:u,border:`${xe(o)} ${a} ${i}`,borderBlockStartWidth:F(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:F(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${xe(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:xe(F(p).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:F(h).sub(o).equal(),paddingBlock:0,lineHeight:xe(F(v).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Up(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:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:N,borderColor:N},"&:active":{color:x,background:A,borderColor:A}},"&-disabled":{color:C,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},oA=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:h}=e,g=4,m=a,b=t?m-g*2:m-(g+o)*2;return{radioSize:m,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},lw=Fn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${xe(n)} ${t}`,o=rn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[tA(o),nA(o),rA(o)]},oA,{unitless:{radioSize:!0,dotSize:!0}});var aA=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 iA=(e,t)=>{var n,r;const o=d.useContext(iw),a=d.useContext(sw),{getPrefixCls:i,direction:s,radio:l}=d.useContext(qt),c=d.useRef(null),u=kr(t,c),{isFormItemInput:f}=d.useContext(Ln),p=M=>{var R,P;(R=e.onChange)===null||R===void 0||R.call(e,M),(P=o==null?void 0:o.onChange)===null||P===void 0||P.call(o,M)},{prefixCls:v,className:h,rootClassName:g,children:m,style:b,title:y}=e,x=aA(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",v),w=((o==null?void 0:o.optionType)||a)==="button",E=w?`${C}-button`:C,S=pr(C),[k,O,$]=lw(C,S),I=Object.assign({},x),N=d.useContext(Kn);o&&(I.name=o.name,I.onChange=p,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:N;const A=me(`${E}-wrapper`,{[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:I.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,h,g,O,$,S),[F,j]=eA(I.onClick);return k(d.createElement(mc,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:F},d.createElement(JP,Object.assign({},I,{className:me(I.className,{[Zp]:!w}),type:"radio",prefixCls:E,ref:u,onClick:j})),m!==void 0?d.createElement("span",{className:`${E}-label`},m):null)))},Bl=d.forwardRef(iA),sA=["parentNode"],lA="form_item";function Ri(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function cw(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:sA.includes(n)?`${lA}_${n}`:n}function uw(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var cA=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 pf(e){return Ri(e).join("_")}function Sv(e,t){const n=t.getFieldInstance(e),r=iy(n);if(r)return r;const o=cw(Ri(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function dw(e){const[t]=cm(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=pf(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=cA(a,["focus"]),l=Sv(o,r);l&&(QO(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Sv(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=pf(o);return n.current[a]}}),[e,t]);return[r]}const uA=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(qt),{name:o}=d.useContext(Ln),a=im(pf(o)),{prefixCls:i,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:p,size:v,style:h,id:g,optionType:m,name:b=a,defaultValue:y,value:x,block:C=!1,onChange:w,onMouseEnter:E,onMouseLeave:S,onFocus:k,onBlur:O}=e,[$,I]=bn(y,{value:x}),N=d.useCallback(_=>{const D=$,B=_.target.value;"value"in e||I(B),B!==D&&(w==null||w(_))},[$,I,w]),A=n("radio",i),F=`${A}-group`,j=pr(A),[M,R,P]=lw(A,j);let z=p;c&&c.length>0&&(z=c.map(_=>typeof _=="string"||typeof _=="number"?d.createElement(Bl,{key:_.toString(),prefixCls:A,disabled:f,value:_,checked:$===_},_):d.createElement(Bl,{key:`radio-group-value-options-${_.value}`,prefixCls:A,disabled:_.disabled||f,value:_.value,checked:$===_.value,title:_.title,style:_.style,className:_.className,id:_.id,required:_.required},_.label)));const H=Ir(v),L=me(F,`${F}-${u}`,{[`${F}-${H}`]:H,[`${F}-rtl`]:r==="rtl",[`${F}-block`]:C},s,l,R,P,j),T=d.useMemo(()=>({onChange:N,value:$,disabled:f,name:b,optionType:m,block:C}),[N,$,f,b,m,C]);return M(d.createElement("div",Object.assign({},Br(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:E,onMouseLeave:S,onFocus:k,onBlur:O,id:g,ref:t}),d.createElement(KP,{value:T},z)))}),dA=d.memo(uA);var fA=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 pA=(e,t)=>{const{getPrefixCls:n}=d.useContext(qt),{prefixCls:r}=e,o=fA(e,["prefixCls"]),a=n("radio",r);return d.createElement(QP,{value:"button"},d.createElement(Bl,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},mA=d.forwardRef(pA),Fc=Bl;Fc.Button=mA;Fc.Group=dA;Fc.__ANT_RADIO=!0;function ii(e){return rn(e,{inputAffixPadding:e.paddingXXS})}const si=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:x,inputFontSize:C,inputFontSizeLG:w,inputFontSizeSM:E}=e,S=C||n,k=E||S,O=w||s,$=Math.round((t-S*r)/2*10)/10-o,I=Math.round((a-k*r)/2*10)/10-o,N=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max($,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(N,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:S,inputFontSizeLG:O,inputFontSizeSM:k}},gA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Em=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({},gA(rn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fw=(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}}),Ev=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),$m=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),Ev(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ev(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$v=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$v(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$v(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Em(e))}})}),km=(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)}},mw=(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}}},kv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Om=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),kv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),kv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ov=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ov(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ov(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:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${xe(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.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hw(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`}}),Im=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hw(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${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"}}),Iv(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),Iv(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),Mm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vw=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xe(t)} ${xe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bw=e=>({padding:`${xe(e.paddingBlockSM)} ${xe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Nc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xe(e.paddingBlock)} ${xe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Mm(e.colorTextPlaceholder)),{"&-lg":Object.assign({},vw(e)),"&-sm":Object.assign({},bw(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yw=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({},vw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bw(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 ${xe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xe(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:`${xe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${xe(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"},_k()),{[`${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},[`
|
|
320
|
-
& > ${t}-affix-wrapper,
|
|
321
|
-
& > ${t}-number-affix-wrapper,
|
|
322
|
-
& > ${n}-picker-range
|
|
323
|
-
`]:{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,
|
|
324
|
-
& > ${n}-select-auto-complete ${t},
|
|
325
|
-
& > ${n}-cascader-picker ${t},
|
|
326
|
-
& > ${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,
|
|
327
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
328
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
329
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
330
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
331
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
332
|
-
& > ${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}}}})}},hA=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),Nc(e)),$m(e)),Om(e)),km(e)),Im(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"}})}},vA=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 ${xe(e.inputAffixPadding)}`}}}},bA=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Nc(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}}}),vA(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},yA=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},yn(e)),yw(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}}},pw(e)),gw(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}}})})}},xA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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,
|
|
333
|
-
> ${t},
|
|
334
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wA=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xw=Fn(["Input","Shared"],e=>{const t=rn(e,ii(e));return[hA(t),bA(t)]},si,{resetFont:!1}),ww=Fn(["Input","Component"],e=>{const t=rn(e,ii(e));return[yA(t),xA(t),wA(t),ms(t)]},si,{resetFont:!1}),$u=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=dx(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:xe(a.itemLineHeight)}}}]},CA=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=rn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=rn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[$u(o,"small"),$u(e),$u(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},fx(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},SA=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:xe(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
335
|
-
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${xe(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
|
|
336
|
-
&-in-view${t}-range-start,
|
|
337
|
-
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
|
338
|
-
&-in-view${t}-range-start,
|
|
339
|
-
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},EA=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:v,colorPrimary:h,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:C,colorIconHover:w,fontWeightStrong:E,cellHeight:S,pickerCellPaddingVertical:k,colorTextDisabled:O,colorText:$,fontSize:I,motionDurationSlow:N,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:F,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:R,timeColumnHeight:P,timeColumnWidth:z,timeCellHeight:H,controlItemBgActive:L,marginXXS:T,pickerDatePanelPaddingHorizontal:_,pickerControlIconMargin:D}=e,B=e.calc(i).mul(7).add(e.calc(_).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
|
|
340
|
-
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
341
|
-
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${xe(l)}`,color:g,borderBottom:`${xe(f)} ${p} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:xe(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:xe(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:D,insetInlineStart:D,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc(k).mul(2)).equal(),color:$,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${xe(k)} 0`,color:O,cursor:"pointer","&-in-view":{color:$}},SA(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${xe(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},"&-decade-panel":{[r]:{padding:`0 ${xe(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${xe(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${xe(l)} ${xe(_)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:R},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Qt(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${xe(l)} ${xe(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${xe(f)} ${p} ${m}`},[`${t}-date-panel,
|
|
342
|
-
${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
|
|
343
|
-
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:P},"&-column":{flex:"1 0 auto",width:z,margin:`${xe(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${xe(H)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${xe(f)} ${p} ${m}`},"&-active":{background:new Qt(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:T,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(T).mul(2)).equal(),height:H,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(H).div(2).equal(),color:$,lineHeight:xe(H),borderRadius:j,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},$A=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${xe(r)} ${c} ${u}`,"&-extra":{padding:`0 ${xe(o)}`,lineHeight:xe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${xe(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:xe(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:xe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},kA=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},OA=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,l=i*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Qt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Qt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},IA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},si(e)),OA(e)),wx(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),MA=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},$m(e)),Im(e)),Om(e)),km(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},ku=(e,t)=>({padding:`${xe(e)} ${xe(t)}`}),FA=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},NA=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,colorTextQuaternary:p,fontSizeLG:v,inputFontSizeLG:h,fontSizeSM:g,inputFontSizeSM:m,controlHeightSM:b,paddingInlineSM:y,paddingXS:x,marginXS:C,colorIcon:w,lineWidthBold:E,colorPrimary:S,motionDurationSlow:k,zIndexPopup:O,paddingXXS:$,sizePopupArrow:I,colorBgElevated:N,borderRadiusLG:A,boxShadowSecondary:F,borderRadiusSM:j,colorSplit:M,cellHoverBg:R,presetsWidth:P,presetsMaxWidth:z,boxShadowPopoverArrow:H,fontHeight:L,lineHeightLG:T}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},yn(e)),ku(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Mm(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},ku(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??v,lineHeight:T}}),"&-small":Object.assign(Object.assign({},ku(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:m??g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:p,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:E,background:S,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${xe(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},yn(e)),EA(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
344
|
-
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
345
|
-
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
346
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
347
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
348
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:nm},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
349
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
350
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
351
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:em},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
352
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:rm},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
353
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:tm},[`${n}-panel > ${n}-time-panel`]:{paddingTop:$},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},Cx(e,N,H)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:A,boxShadow:F,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${xe(a)} ${i} ${M}`,li:Object.assign(Object.assign({},Nl),{borderRadius:j,paddingInline:x,paddingBlock:e.calc(b).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:C},"&:hover":{background:R}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${xe(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},Cw=Fn("DatePicker",e=>{const t=rn(ii(e),kA(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[$A(t),NA(t),MA(t),FA(t),CA(t),ms(e,{focusElCls:`${e.componentCls}-focused`})]},IA),Sw=Hr({});var jA=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 Mv(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const PA=["xs","sm","md","lg","xl","xxl"],zl=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(qt),{gutter:o,wrap:a}=d.useContext(Sw),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:f,className:p,children:v,flex:h,style:g}=e,m=jA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[y,x,C]=yN(b),w={};let E={};PA.forEach(O=>{let $={};const I=e[O];typeof I=="number"?$.span=I:typeof I=="object"&&($=I||{}),delete m[O],E=Object.assign(Object.assign({},E),{[`${b}-${O}-${$.span}`]:$.span!==void 0,[`${b}-${O}-order-${$.order}`]:$.order||$.order===0,[`${b}-${O}-offset-${$.offset}`]:$.offset||$.offset===0,[`${b}-${O}-push-${$.push}`]:$.push||$.push===0,[`${b}-${O}-pull-${$.pull}`]:$.pull||$.pull===0,[`${b}-rtl`]:r==="rtl"}),$.flex&&(E[`${b}-${O}-flex`]=!0,w[`--${b}-${O}-flex`]=Mv($.flex))});const S=me(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},p,E,x,C),k={};if(o&&o[0]>0){const O=o[0]/2;k.paddingLeft=O,k.paddingRight=O}return h&&(k.flex=Mv(h),a===!1&&!k.minWidth&&(k.minWidth=0)),y(d.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},k),g),w),className:S,ref:t}),v))});function AA(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((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Qi.length;s++){const l=Qi[s];if(o[l]&&a[l]!==void 0){n[i]=a[l];break}}else n[i]=a}),n}var RA=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 Fv(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Qi.length;a++){const i=Qi[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Ew=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=RA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(qt),v=Lj(!0,null),h=Fv(o,v),g=Fv(r,v),m=f("row",n),[b,y,x]=vN(m),C=AA(l,v),w=me(m,{[`${m}-no-wrap`]:c===!1,[`${m}-${g}`]:g,[`${m}-${h}`]:h,[`${m}-rtl`]:p==="rtl"},a,y,x),E={},S=C[0]!=null&&C[0]>0?C[0]/-2:void 0;S&&(E.marginLeft=S,E.marginRight=S);const[k,O]=C;E.rowGap=O;const $=d.useMemo(()=>({gutter:[k,O],wrap:c}),[k,O,c]);return b(d.createElement(Sw.Provider,{value:$},d.createElement("div",Object.assign({},u,{className:w,style:Object.assign(Object.assign({},E),i),ref:t}),s)))});var TA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},DA=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:TA}))},_A=d.forwardRef(DA);function mf(){return typeof BigInt=="function"}function $w(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ko(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Fm(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Wo(e){var t=String(e);if(Fm(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Nm(t)?t.length-t.indexOf(".")-1:0}function jc(e){var t=String(e);if(Fm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Wo(t))}return Ko(t).fullStr}function Nm(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var BA=(function(){function e(t){if(xn(this,e),G(this,"origin",""),G(this,"negative",void 0),G(this,"integer",void 0),G(this,"decimal",void 0),G(this,"decimalLen",void 0),G(this,"empty",void 0),G(this,"nan",void 0),$w(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Fm(n)&&(n=Number(n)),n=typeof n=="string"?n:jc(n),Nm(n)){var r=Ko(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return wn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(n)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=this.alignDecimal(o),i=t.alignDecimal(o),s=n(a,i).toString(),l=r(o),c=Ko(s),u=c.negativeStr,f=c.trimStr,p="".concat(u).concat(f.padStart(l+1,"0"));return new e("".concat(p.slice(0,-l),".").concat(p.slice(-l)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(r,o){return r+o},function(r){return r})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(r,o){return r*o},function(r){return r*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":Ko("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),zA=(function(){function e(t){if(xn(this,e),G(this,"origin",""),G(this,"number",void 0),G(this,"empty",void 0),$w(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return wn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Wo(this.number),Wo(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Wo(this.number),Wo(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":jc(this.number):this.origin}}]),e})();function Mr(e){return mf()?new BA(e):new zA(e)}function ul(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ko(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Mr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return ul(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function HA(e){return!!(e.addonBefore||e.addonAfter)}function LA(e){return!!(e.prefix||e.suffix||e.allowClear)}function Nv(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 Hl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Nv(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Nv(t,e,r),n(o);return}n(o)}}function jm(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 Pm=fe.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,v=e.style,h=e.disabled,g=e.readOnly,m=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,C=e.handleReset,w=e.hidden,E=e.classes,S=e.classNames,k=e.dataAttrs,O=e.styles,$=e.components,I=e.onClear,N=i??a,A=($==null?void 0:$.affixWrapper)||"span",F=($==null?void 0:$.groupWrapper)||"span",j=($==null?void 0:$.wrapper)||"span",M=($==null?void 0:$.groupAddon)||"span",R=Ke(null),P=function(ae){var oe;(oe=R.current)!==null&&oe!==void 0&&oe.contains(ae.target)&&(b==null||b())},z=LA(e),H=Pb(N,{value:x,className:me((n=N.props)===null||n===void 0?void 0:n.className,!z&&(S==null?void 0:S.variant))||null}),L=Ke(null);if(fe.useImperativeHandle(t,function(){return{nativeElement:L.current||R.current}}),z){var T=null;if(y){var _=!h&&!g&&x,D="".concat(s,"-clear-icon"),B=dt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";T=fe.createElement("button",{type:"button",tabIndex:-1,onClick:function(ae){C==null||C(ae),I==null||I()},onMouseDown:function(ae){return ae.preventDefault()},className:me(D,G(G({},"".concat(D,"-hidden"),!_),"".concat(D,"-has-suffix"),!!c))},B)}var V="".concat(s,"-affix-wrapper"),W=me(V,G(G(G(G(G({},"".concat(s,"-disabled"),h),"".concat(V,"-disabled"),h),"".concat(V,"-focused"),m),"".concat(V,"-readonly"),g),"".concat(V,"-input-with-clear-btn"),c&&y&&x),E==null?void 0:E.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),q=(c||y)&&fe.createElement("span",{className:me("".concat(s,"-suffix"),S==null?void 0:S.suffix),style:O==null?void 0:O.suffix},T,c);H=fe.createElement(A,Ge({className:W,style:O==null?void 0:O.affixWrapper,onClick:P},k==null?void 0:k.affixWrapper,{ref:R}),l&&fe.createElement("span",{className:me("".concat(s,"-prefix"),S==null?void 0:S.prefix),style:O==null?void 0:O.prefix},l),H,q)}if(HA(e)){var Q="".concat(s,"-group"),U="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),X=me("".concat(s,"-wrapper"),Q,E==null?void 0:E.wrapper,S==null?void 0:S.wrapper),Y=me(J,G({},"".concat(J,"-disabled"),h),E==null?void 0:E.group,S==null?void 0:S.groupWrapper);H=fe.createElement(F,{className:Y,ref:L},fe.createElement(j,{className:X},u&&fe.createElement(M,{className:U},u),H,f&&fe.createElement(M,{className:U},f)))}return fe.cloneElement(H,{className:me((r=H.props)===null||r===void 0?void 0:r.className,p)||null,style:K(K({},(o=H.props)===null||o===void 0?void 0:o.style),v),hidden:w})}),VA=["show"];function kw(e,t){return d.useMemo(function(){var n={};t&&(n.show=dt(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,o=r.show,a=Dt(r,VA);return K(K({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var WA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qA=zr(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,v=e.className,h=e.maxLength,g=e.suffix,m=e.showCount,b=e.count,y=e.type,x=y===void 0?"text":y,C=e.classes,w=e.classNames,E=e.styles,S=e.onCompositionStart,k=e.onCompositionEnd,O=Dt(e,WA),$=ct(!1),I=te($,2),N=I[0],A=I[1],F=Ke(!1),j=Ke(!1),M=Ke(null),R=Ke(null),P=function(ce){M.current&&jm(M.current,ce)},z=bn(e.defaultValue,{value:e.value}),H=te(z,2),L=H[0],T=H[1],_=L==null?"":String(L),D=ct(null),B=te(D,2),V=B[0],W=B[1],q=kw(b,m),Q=q.max||h,U=q.strategy(_),J=!!Q&&U>Q;Qa(t,function(){var ce;return{focus:P,blur:function(){var de;(de=M.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,Ae,ie){var We;(We=M.current)===null||We===void 0||We.setSelectionRange(de,Ae,ie)},select:function(){var de;(de=M.current)===null||de===void 0||de.select()},input:M.current,nativeElement:((ce=R.current)===null||ce===void 0?void 0:ce.nativeElement)||M.current}}),mt(function(){j.current&&(j.current=!1),A(function(ce){return ce&&f?!1:ce})},[f]);var X=function(ce,de,Ae){var ie=de;if(!F.current&&q.exceedFormatter&&q.max&&q.strategy(de)>q.max){if(ie=q.exceedFormatter(de,{max:q.max}),de!==ie){var We,ze;W([((We=M.current)===null||We===void 0?void 0:We.selectionStart)||0,((ze=M.current)===null||ze===void 0?void 0:ze.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;T(ie),M.current&&Hl(M.current,ce,r,ie)};mt(function(){if(V){var ce;(ce=M.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,_e(V))}},[V]);var Y=function(ce){X(ce,ce.target.value,{source:"change"})},ae=function(ce){F.current=!1,X(ce,ce.currentTarget.value,{source:"compositionEnd"}),k==null||k(ce)},oe=function(ce){i&&ce.key==="Enter"&&!j.current&&(j.current=!0,i(ce)),s==null||s(ce)},ne=function(ce){ce.key==="Enter"&&(j.current=!1),l==null||l(ce)},ue=function(ce){A(!0),o==null||o(ce)},pe=function(ce){j.current&&(j.current=!1),A(!1),a==null||a(ce)},be=function(ce){T(""),P(),M.current&&Hl(M.current,ce,r)},Se=J&&"".concat(u,"-out-of-range"),he=function(){var ce=to(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return fe.createElement("input",Ge({autoComplete:n},ce,{onChange:Y,onFocus:ue,onBlur:pe,onKeyDown:oe,onKeyUp:ne,className:me(u,G({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:M,size:p,type:x,onCompositionStart:function(de){F.current=!0,S==null||S(de)},onCompositionEnd:ae}))},ke=function(){var ce=Number(Q)>0;if(g||q.show){var de=q.showFormatter?q.showFormatter({value:_,count:U,maxLength:Q}):"".concat(U).concat(ce?" / ".concat(Q):"");return fe.createElement(fe.Fragment,null,q.show&&fe.createElement("span",{className:me("".concat(u,"-show-count-suffix"),G({},"".concat(u,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:K({},E==null?void 0:E.count)},de),g)}return null};return fe.createElement(Pm,Ge({},O,{prefixCls:u,className:me(v,Se),handleReset:be,value:_,focused:N,triggerFocus:P,suffix:ke(),disabled:f,classes:C,classNames:w,styles:E,ref:R}),he())});function UA(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,r){if(t[r])return t[r];var o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function YA(e,t){var n=Ke(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(v){Hn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var XA=function(){var e=ct(!1),t=te(e,2),n=t[0],r=t[1];return Ut(function(){r(fm())},[]),n},GA=200,KA=600;function QA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=i;var u=function(){clearTimeout(s.current)},f=function(y,x){y.preventDefault(),u(),c.current(x);function C(){c.current(x),s.current=setTimeout(C,GA)}s.current=setTimeout(C,KA)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Tt.cancel(y)})}},[]);var p=XA();if(p)return null;var v="".concat(t,"-handler"),h=me(v,"".concat(v,"-up"),G({},"".concat(v,"-up-disabled"),o)),g=me(v,"".concat(v,"-down"),G({},"".concat(v,"-down-disabled"),a)),m=function(){return l.current.push(Tt(u))},b={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return d.createElement("div",{className:"".concat(v,"-wrap")},d.createElement("span",Ge({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Ge({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function jv(e){var t=typeof e=="number"?jc(e):Ko(e).fullStr,n=t.includes(".");return n?Ko(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ZA=(function(){var e=Ke(0),t=function(){Tt.cancel(e.current)};return mt(function(){return t},[]),function(n){t(),e.current=Tt(function(){n()})}});var JA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],eR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Pv=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Av=function(e){var t=Mr(e);return t.isInvalidate()?null:t},tR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,v=e.upHandler,h=e.downHandler,g=e.keyboard,m=e.changeOnWheel,b=m===void 0?!1:m,y=e.controls,x=y===void 0?!0:y,C=e.stringMode,w=e.parser,E=e.formatter,S=e.precision,k=e.decimalSeparator,O=e.onChange,$=e.onInput,I=e.onPressEnter,N=e.onStep,A=e.changeOnBlur,F=A===void 0?!0:A,j=e.domRef,M=Dt(e,JA),R="".concat(n,"-input"),P=d.useRef(null),z=d.useState(!1),H=te(z,2),L=H[0],T=H[1],_=d.useRef(!1),D=d.useRef(!1),B=d.useRef(!1),V=d.useState(function(){return Mr(u??c)}),W=te(V,2),q=W[0],Q=W[1];function U(He){u===void 0&&Q(He)}var J=d.useCallback(function(He,Xe){if(!Xe)return S>=0?S:Math.max(Wo(He),Wo(l))},[S,l]),X=d.useCallback(function(He){var Xe=String(He);if(w)return w(Xe);var Ye=Xe;return k&&(Ye=Ye.replace(k,".")),Ye.replace(/[^\w.-]+/g,"")},[w,k]),Y=d.useRef(""),ae=d.useCallback(function(He,Xe){if(E)return E(He,{userTyping:Xe,input:String(Y.current)});var Ye=typeof He=="number"?jc(He):He;if(!Xe){var Je=J(Ye,Xe);if(Nm(Ye)&&(k||Je>=0)){var tt=k||".";Ye=ul(Ye,tt,Je)}}return Ye},[E,J,k]),oe=d.useState(function(){var He=c??u;return q.isInvalidate()&&["string","number"].includes(dt(He))?Number.isNaN(He)?"":He:ae(q.toString(),!1)}),ne=te(oe,2),ue=ne[0],pe=ne[1];Y.current=ue;function be(He,Xe){pe(ae(He.isInvalidate()?He.toString(!1):He.toString(!Xe),Xe))}var Se=d.useMemo(function(){return Av(i)},[i,S]),he=d.useMemo(function(){return Av(a)},[a,S]),ke=d.useMemo(function(){return!Se||!q||q.isInvalidate()?!1:Se.lessEquals(q)},[Se,q]),ce=d.useMemo(function(){return!he||!q||q.isInvalidate()?!1:q.lessEquals(he)},[he,q]),de=YA(P.current,L),Ae=te(de,2),ie=Ae[0],We=Ae[1],ze=function(He){return Se&&!He.lessEquals(Se)?Se:he&&!he.lessEquals(He)?he:null},De=function(He){return!ze(He)},Ee=function(He,Xe){var Ye=He,Je=De(Ye)||Ye.isEmpty();if(!Ye.isEmpty()&&!Xe&&(Ye=ze(Ye)||Ye,Je=!0),!p&&!f&&Je){var tt=Ye.toString(),Ot=J(tt,Xe);return Ot>=0&&(Ye=Mr(ul(tt,".",Ot)),De(Ye)||(Ye=Mr(ul(tt,".",Ot,!0)))),Ye.equals(q)||(U(Ye),O==null||O(Ye.isEmpty()?null:Pv(C,Ye)),u===void 0&&be(Ye,Xe)),Ye}return q},Ve=ZA(),Ne=function He(Xe){if(ie(),Y.current=Xe,pe(Xe),!D.current){var Ye=X(Xe),Je=Mr(Ye);Je.isNaN()||Ee(Je,!0)}$==null||$(Xe),Ve(function(){var tt=Xe;w||(tt=Xe.replace(/。/g,".")),tt!==Xe&&He(tt)})},Fe=function(){D.current=!0},$e=function(){D.current=!1,Ne(P.current.value)},je=function(He){Ne(He.target.value)},qe=function(He){var Xe;if(!(He&&ke||!He&&ce)){_.current=!1;var Ye=Mr(B.current?jv(l):l);He||(Ye=Ye.negate());var Je=(q||Mr(0)).add(Ye.toString()),tt=Ee(Je,!1);N==null||N(Pv(C,tt),{offset:B.current?jv(l):l,type:He?"up":"down"}),(Xe=P.current)===null||Xe===void 0||Xe.focus()}},ve=function(He){var Xe=Mr(X(ue)),Ye;Xe.isNaN()?Ye=Ee(q,He):Ye=Ee(Xe,He),u!==void 0?be(q,!1):Ye.isNaN()||be(Ye,!1)},it=function(){_.current=!0},pt=function(He){var Xe=He.key,Ye=He.shiftKey;_.current=!0,B.current=Ye,Xe==="Enter"&&(D.current||(_.current=!1),ve(!1),I==null||I(He)),g!==!1&&!D.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xe)&&(qe(Xe==="Up"||Xe==="ArrowUp"),He.preventDefault())},yt=function(){_.current=!1,B.current=!1};d.useEffect(function(){if(b&&L){var He=function(Ye){qe(Ye.deltaY<0),Ye.preventDefault()},Xe=P.current;if(Xe)return Xe.addEventListener("wheel",He,{passive:!1}),function(){return Xe.removeEventListener("wheel",He)}}});var Pt=function(){F&&ve(!1),T(!1),_.current=!1};return Ra(function(){q.isInvalidate()||be(q,!1)},[S,E]),Ra(function(){var He=Mr(u);Q(He);var Xe=Mr(X(ue));(!He.equals(Xe)||!_.current||E)&&be(He,_.current)},[u]),Ra(function(){E&&We()},[ue]),d.createElement("div",{ref:j,className:me(n,r,G(G(G(G(G({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),q.isNaN()),"".concat(n,"-out-of-range"),!q.isInvalidate()&&!De(q))),style:o,onFocus:function(){T(!0)},onBlur:Pt,onKeyDown:pt,onKeyUp:yt,onCompositionStart:Fe,onCompositionEnd:$e,onBeforeInput:it},x&&d.createElement(QA,{prefixCls:n,upNode:v,downNode:h,upDisabled:ke,downDisabled:ce,onStep:qe}),d.createElement("div",{className:"".concat(R,"-wrap")},d.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:l},M,{ref:kr(P,t),className:R,value:ue,onChange:je,disabled:f,readOnly:p}))))}),nR=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,v=Dt(e,eR),h=d.useRef(null),g=d.useRef(null),m=d.useRef(null),b=function(y){m.current&&jm(m.current,y)};return d.useImperativeHandle(t,function(){return UA(m.current,{focus:b,nativeElement:h.current.nativeElement||g.current})}),d.createElement(Pm,{className:f,triggerFocus:b,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},d.createElement(tR,Ge({prefixCls:a,disabled:n,ref:m,domRef:g,className:p==null?void 0:p.input},v)))});const rR=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},si(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Qt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Rv=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},oR=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:v,colorIcon:h,motionDurationMid:g,handleHoverColor:m,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:C,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:k,controlWidth:O,handleBorderColor:$,filledHandleBg:I,lineHeightLG:N,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),Nc(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),$m(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${xe(n)} ${r} ${$}`}}})),Om(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${xe(n)} ${r} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),Im(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${xe(n)} ${r} ${$}`}}})),km(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:N,borderRadius:k,[`input${t}-input`]:{height:A(s).sub(A(n).mul(2)).equal(),padding:`${xe(p)} ${xe(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:A(l).sub(A(n).mul(2)).equal(),padding:`${xe(f)} ${xe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},yn(e)),yw(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},pw(e)),gw(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),{width:"100%",padding:`${xe(x)} ${xe(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Mm(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
354
|
-
${t}-handler-up-inner,
|
|
355
|
-
${t}-handler-down-inner
|
|
356
|
-
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${xe(n)} ${r} ${$}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
|
|
357
|
-
${t}-handler-up-inner,
|
|
358
|
-
${t}-handler-down-inner
|
|
359
|
-
`]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ds()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Rv(e,"lg")),Rv(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
360
|
-
${t}-handler-up-disabled,
|
|
361
|
-
${t}-handler-down-disabled
|
|
362
|
-
`]:{cursor:"not-allowed"},[`
|
|
363
|
-
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
364
|
-
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
365
|
-
`]:{color:E}})}]},aR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${xe(n)} 0`}},Nc(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:l,[`input${t}-input`]:{padding:`${xe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${xe(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},iR=Fn("InputNumber",e=>{const t=rn(e,ii(e));return[oR(t),aR(t),ms(t)]},rR,{unitless:{handleOpacity:!0},resetFont:!1});var sR=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 Ow=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(qt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:v,bordered:h,readOnly:g,status:m,controls:b,variant:y}=e,x=sR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),w=pr(C),[E,S,k]=iR(C,w),{compactSize:O,compactItemClassnames:$}=Ro(C,r);let I=d.createElement(_A,{className:`${C}-handler-up-inner`}),N=d.createElement(hx,{className:`${C}-handler-down-inner`});const A=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:d.createElement("span",{className:`${C}-handler-up-inner`},b.upIcon),N=typeof b.downIcon>"u"?N:d.createElement("span",{className:`${C}-handler-down-inner`},b.downIcon));const{hasFeedback:F,status:j,isFormItemInput:M,feedbackIcon:R}=d.useContext(Ln),P=la(j,m),z=Ir(q=>{var Q;return(Q=s??O)!==null&&Q!==void 0?Q:q}),H=d.useContext(Kn),L=l??H,[T,_]=ri("inputNumber",y,h),D=F&&d.createElement(d.Fragment,null,R),B=me({[`${C}-lg`]:z==="large",[`${C}-sm`]:z==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:M},S),V=`${C}-group`,W=d.createElement(nR,Object.assign({ref:o,disabled:L,className:me(k,w,a,i,$),upHandler:I,downHandler:N,prefixCls:C,readOnly:g,controls:A,prefix:p,suffix:D||v,addonBefore:u&&d.createElement(Fo,{form:!0,space:!0},u),addonAfter:f&&d.createElement(Fo,{form:!0,space:!0},f),classNames:{input:B,variant:me({[`${C}-${T}`]:_},No(C,P,F)),affixWrapper:me({[`${C}-affix-wrapper-sm`]:z==="small",[`${C}-affix-wrapper-lg`]:z==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:b===!1||L||g},S),wrapper:me({[`${V}-rtl`]:r==="rtl"},S),groupWrapper:me({[`${C}-group-wrapper-sm`]:z==="small",[`${C}-group-wrapper-lg`]:z==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${T}`]:_},No(`${C}-group-wrapper`,P,F),S)}},x));return E(W)}),gf=Ow,lR=e=>d.createElement(Ao,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Ow,Object.assign({},e)));gf._InternalPanelDoNotUseOrYouWillBeFired=lR;const Iw=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:fe.createElement(uc,null)}),t};function Mw(e,t){const n=Ke([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value")&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return mt(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function cR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var uR=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 Pc=zr((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:p,className:v,style:h,styles:g,rootClassName:m,onChange:b,classNames:y,variant:x}=e,C=uR(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:E,allowClear:S,autoComplete:k,className:O,style:$,classNames:I,styles:N}=lo("input"),A=w("input",n),F=Ke(null),j=pr(A),[M,R,P]=xw(A,m),[z]=ww(A,j),{compactSize:H,compactItemClassnames:L}=Ro(A,E),T=Ir(pe=>{var be;return(be=a??H)!==null&&be!==void 0?be:pe}),_=fe.useContext(Kn),D=i??_,{status:B,hasFeedback:V,feedbackIcon:W}=nn(Ln),q=la(B,o),Q=cR(e)||!!V;Ke(Q);const U=Mw(F,!0),J=pe=>{U(),s==null||s(pe)},X=pe=>{U(),l==null||l(pe)},Y=pe=>{U(),b==null||b(pe)},ae=(V||c)&&fe.createElement(fe.Fragment,null,c,V&&W),oe=Iw(u??S),[ne,ue]=ri("input",x,r);return M(z(fe.createElement(qA,Object.assign({ref:kr(t,F),prefixCls:A,autoComplete:k},C,{disabled:D,onBlur:J,onFocus:X,style:Object.assign(Object.assign({},$),h),styles:Object.assign(Object.assign({},N),g),suffix:ae,allowClear:oe,className:me(v,m,P,j,L,O),onChange:Y,addonBefore:p&&fe.createElement(Fo,{form:!0,space:!0},p),addonAfter:f&&fe.createElement(Fo,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),I),{input:me({[`${A}-sm`]:T==="small",[`${A}-lg`]:T==="large",[`${A}-rtl`]:E==="rtl"},y==null?void 0:y.input,I.input,R),variant:me({[`${A}-${ne}`]:ue},No(A,q)),affixWrapper:me({[`${A}-affix-wrapper-sm`]:T==="small",[`${A}-affix-wrapper-lg`]:T==="large",[`${A}-affix-wrapper-rtl`]:E==="rtl"},R),wrapper:me({[`${A}-group-rtl`]:E==="rtl"},R),groupWrapper:me({[`${A}-group-wrapper-sm`]:T==="small",[`${A}-group-wrapper-lg`]:T==="large",[`${A}-group-wrapper-rtl`]:E==="rtl",[`${A}-group-wrapper-${ne}`]:ue},No(`${A}-group-wrapper`,q,V),R)})}))))});function hf(e,t,n){return(e-t)/(n-t)}function Am(e,t,n,r){var o=hf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function zo(e,t){return Array.isArray(e)?e[t]:e}var fa=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),dR=d.createContext({}),fR=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,g=Dt(e,fR),m=d.useContext(fa),b=m.min,y=m.max,x=m.direction,C=m.disabled,w=m.keyboard,E=m.range,S=m.tabIndex,k=m.ariaLabelForHandle,O=m.ariaLabelledByForHandle,$=m.ariaRequired,I=m.ariaValueTextFormatterForHandle,N=m.styles,A=m.classNames,F="".concat(n,"-handle"),j=function(D){C||a(D,o)},M=function(D){v==null||v(D,o)},R=function(D){h(D,o)},P=function(D){if(!C&&w){var B=null;switch(D.which||D.keyCode){case ut.LEFT:B=x==="ltr"||x==="btt"?-1:1;break;case ut.RIGHT:B=x==="ltr"||x==="btt"?1:-1;break;case ut.UP:B=x!=="ttb"?1:-1;break;case ut.DOWN:B=x!=="ttb"?-1:1;break;case ut.HOME:B="min";break;case ut.END:B="max";break;case ut.PAGE_UP:B=2;break;case ut.PAGE_DOWN:B=-2;break;case ut.BACKSPACE:case ut.DELETE:i==null||i(o);break}B!==null&&(D.preventDefault(),f(B,o))}},z=function(D){switch(D.which||D.keyCode){case ut.LEFT:case ut.RIGHT:case ut.UP:case ut.DOWN:case ut.HOME:case ut.END:case ut.PAGE_UP:case ut.PAGE_DOWN:p==null||p();break}},H=Am(x,r,b,y),L={};if(o!==null){var T;L={tabIndex:C?null:zo(S,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":C,"aria-label":zo(k,o),"aria-labelledby":zo(O,o),"aria-required":zo($,o),"aria-valuetext":(T=zo(I,o))===null||T===void 0?void 0:T(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:M,onMouseEnter:R,onKeyDown:P,onKeyUp:z}}var _=d.createElement("div",Ge({ref:t,className:me(F,G(G(G({},"".concat(F,"-").concat(o+1),o!==null&&E),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),A.handle),style:K(K(K({},H),s),N.handle)},L,g));return l&&(_=l(_,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),_}),pR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Dt(e,pR),v=d.useRef({}),h=d.useState(!1),g=te(h,2),m=g[0],b=g[1],y=d.useState(-1),x=te(y,2),C=x[0],w=x[1],E=function($){w($),b(!0)},S=function($,I){E(I),f==null||f($)},k=function($,I){E(I)};d.useImperativeHandle(t,function(){return{focus:function($){var I;(I=v.current[$])===null||I===void 0||I.focus()},hideHelp:function(){ed(function(){b(!1)})}}});var O=K({prefixCls:n,onStartMove:o,onOffsetChange:a,render:s,onFocus:S,onMouseEnter:k},p);return d.createElement(d.Fragment,null,i.map(function($,I){var N=c===I;return d.createElement(Tv,Ge({ref:function(A){A?v.current[I]=A:delete v.current[I]},dragging:N,draggingDelete:N&&u,style:zo(r,I),key:I,value:$,valueIndex:I},O))}),l&&m&&d.createElement(Tv,Ge({key:"a11y"},O,{value:i[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gR=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=d.useContext(fa),s=i.min,l=i.max,c=i.direction,u=i.includedStart,f=i.includedEnd,p=i.included,v="".concat(t,"-text"),h=Am(c,o,s,l);return d.createElement("span",{className:me(v,G({},"".concat(v,"-active"),p&&u<=o&&o<=f)),style:K(K({},h),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(o)}},r)},hR=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?d.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return d.createElement(gR,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null},vR=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=d.useContext(fa),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),v=c&&u<=n&&n<=f,h=K(K({},Am(l,n,i,s)),typeof r=="function"?r(n):r);return v&&(h=K(K({},h),typeof o=="function"?o(n):o)),d.createElement("span",{className:me(p,G({},"".concat(p,"-active"),v)),style:h})},bR=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=d.useContext(fa),s=i.min,l=i.max,c=i.step,u=d.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var p=s;p<=l;)f.add(p),p+=c;return Array.from(f)},[s,l,c,r,n]);return d.createElement("div",{className:"".concat(t,"-step")},u.map(function(f){return d.createElement(vR,{prefixCls:t,key:f,value:f,style:o,activeStyle:a})}))},Dv=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,s=e.replaceCls,l=d.useContext(fa),c=l.direction,u=l.min,f=l.max,p=l.disabled,v=l.range,h=l.classNames,g="".concat(t,"-track"),m=hf(r,u,f),b=hf(o,u,f),y=function(w){!p&&i&&i(w,-1)},x={};switch(c){case"rtl":x.right="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%");break;case"btt":x.bottom="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;case"ttb":x.top="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;default:x.left="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%")}var C=s||me(g,G(G({},"".concat(g,"-").concat(a+1),a!==null&&v),"".concat(t,"-track-draggable"),i),h.track);return d.createElement("div",{className:C,style:K(K({},x),n),onMouseDown:y,onTouchStart:y})},yR=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=d.useContext(fa),s=i.included,l=i.range,c=i.min,u=i.styles,f=i.classNames,p=d.useMemo(function(){if(!l){if(r.length===0)return[];var h=o??c,g=r[0];return[{start:Math.min(h,g),end:Math.max(h,g)}]}for(var m=[],b=0;b<r.length-1;b+=1)m.push({start:r[b],end:r[b+1]});return m},[r,l,o,c]);if(!s)return null;var v=p!=null&&p.length&&(f.tracks||u.tracks)?d.createElement(Dv,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:me(f.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return d.createElement(d.Fragment,null,v,p.map(function(h,g){var m=h.start,b=h.end;return d.createElement(Dv,{index:g,prefixCls:t,style:K(K({},zo(n,g)),u.track),start:m,end:b,key:g,onStartMove:a})}))},xR=130;function _v(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function wR(e,t,n,r,o,a,i,s,l,c,u){var f=d.useState(null),p=te(f,2),v=p[0],h=p[1],g=d.useState(-1),m=te(g,2),b=m[0],y=m[1],x=d.useState(!1),C=te(x,2),w=C[0],E=C[1],S=d.useState(n),k=te(S,2),O=k[0],$=k[1],I=d.useState(n),N=te(I,2),A=N[0],F=N[1],j=d.useRef(null),M=d.useRef(null),R=d.useRef(null),P=d.useContext(dR),z=P.onDragStart,H=P.onDragChange;Ut(function(){b===-1&&$(n)},[n,b]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",j.current),document.removeEventListener("mouseup",M.current),R.current&&(R.current.removeEventListener("touchmove",j.current),R.current.removeEventListener("touchend",M.current))}},[]);var L=function(B,V,W){V!==void 0&&h(V),$(B);var q=B;W&&(q=B.filter(function(Q,U){return U!==b})),i(q),H&&H({rawValues:B,deleteIndex:W?b:-1,draggingIndex:b,draggingValue:V})},T=Vt(function(B,V,W){if(B===-1){var q=A[0],Q=A[A.length-1],U=r-q,J=o-Q,X=V*(o-r);X=Math.max(X,U),X=Math.min(X,J);var Y=a(q+X);X=Y-q;var ae=A.map(function(pe){return pe+X});L(ae)}else{var oe=(o-r)*V,ne=_e(O);ne[B]=A[B];var ue=l(ne,oe,B,"dist");L(ue.values,ue.value,W)}}),_=function(B,V,W){B.stopPropagation();var q=W||n,Q=q[V];y(V),h(Q),F(q),$(q),E(!1);var U=_v(B),J=U.pageX,X=U.pageY,Y=!1;z&&z({rawValues:q,draggingIndex:V,draggingValue:Q});var ae=function(ne){ne.preventDefault();var ue=_v(ne),pe=ue.pageX,be=ue.pageY,Se=pe-J,he=be-X,ke=e.current.getBoundingClientRect(),ce=ke.width,de=ke.height,Ae,ie;switch(t){case"btt":Ae=-he/de,ie=Se;break;case"ttb":Ae=he/de,ie=Se;break;case"rtl":Ae=-Se/ce,ie=he;break;default:Ae=Se/ce,ie=he}Y=c?Math.abs(ie)>xR&&u<O.length:!1,E(Y),T(V,Ae,Y)},oe=function ne(ue){ue.preventDefault(),document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",ae),R.current&&(R.current.removeEventListener("touchmove",j.current),R.current.removeEventListener("touchend",M.current)),j.current=null,M.current=null,R.current=null,s(Y),y(-1),E(!1)};document.addEventListener("mouseup",oe),document.addEventListener("mousemove",ae),B.currentTarget.addEventListener("touchend",oe),B.currentTarget.addEventListener("touchmove",ae),j.current=ae,M.current=oe,R.current=B.currentTarget},D=d.useMemo(function(){var B=_e(n).sort(function(U,J){return U-J}),V=_e(O).sort(function(U,J){return U-J}),W={};V.forEach(function(U){W[U]=(W[U]||0)+1}),B.forEach(function(U){W[U]=(W[U]||0)-1});var q=c?1:0,Q=Object.values(W).reduce(function(U,J){return U+Math.abs(J)},0);return Q<=q?O:n},[n,O,c]);return[b,v,w,D,_]}function CR(e,t,n,r,o,a){var i=d.useCallback(function(v){return Math.max(e,Math.min(t,v))},[e,t]),s=d.useCallback(function(v){if(n!==null){var h=e+Math.round((i(v)-e)/n)*n,g=function(y){return(String(y).split(".")[1]||"").length},m=Math.max(g(n),g(t),g(e)),b=Number(h.toFixed(m));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=d.useCallback(function(v){var h=i(v),g=r.map(function(y){return y.value});n!==null&&g.push(s(v)),g.push(e,t);var m=g[0],b=t-e;return g.forEach(function(y){var x=Math.abs(h-y);x<=b&&(m=y,b=x)}),m},[e,t,r,n,i,s]),c=function v(h,g,m){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,x=h[m],C=x+g,w=[];r.forEach(function($){w.push($.value)}),w.push(e,t),w.push(s(x));var E=g>0?1:-1;b==="unit"?w.push(s(x+E*n)):w.push(s(C)),w=w.filter(function($){return $!==null}).filter(function($){return g<0?$<=x:$>=x}),b==="unit"&&(w=w.filter(function($){return $!==x}));var S=b==="unit"?x:C;y=w[0];var k=Math.abs(y-S);if(w.forEach(function($){var I=Math.abs($-S);I<k&&(y=$,k=I)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=_e(h);return O[m]=y,v(O,g-E,m,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[g],y=c(v,h,g,m);return{value:y,changed:y!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v<a},p=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(l),y=b[g],x=c(b,h,g,m);if(b[g]=x,o===!1){var C=a||0;g>0&&b[g-1]!==y&&(b[g]=Math.max(b[g],b[g-1]+C)),g<b.length-1&&b[g+1]!==y&&(b[g]=Math.min(b[g],b[g+1]-C))}else if(typeof a=="number"||a===null){for(var w=g+1;w<b.length;w+=1)for(var E=!0;f(b[w]-b[w-1])&&E;){var S=u(b,1,w);b[w]=S.value,E=S.changed}for(var k=g;k>0;k-=1)for(var O=!0;f(b[k]-b[k-1])&&O;){var $=u(b,-1,k-1);b[k-1]=$.value,O=$.changed}for(var I=b.length-1;I>0;I-=1)for(var N=!0;f(b[I]-b[I-1])&&N;){var A=u(b,-1,I-1);b[I-1]=A.value,N=A.changed}for(var F=0;F<b.length-1;F+=1)for(var j=!0;f(b[F+1]-b[F])&&j;){var M=u(b,1,F+1);b[F+1]=M.value,j=M.changed}}return{value:b[g],values:b}};return[l,p]}function SR(e){return en(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return[!0,t,!t&&n,r||0,o]},[e])}var ER=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=m===void 0?0:m,y=e.max,x=y===void 0?100:y,C=e.step,w=C===void 0?1:C,E=e.value,S=e.defaultValue,k=e.range,O=e.count,$=e.onChange,I=e.onBeforeChange,N=e.onAfterChange,A=e.onChangeComplete,F=e.allowCross,j=F===void 0?!0:F,M=e.pushable,R=M===void 0?!1:M,P=e.reverse,z=e.vertical,H=e.included,L=H===void 0?!0:H,T=e.startPoint,_=e.trackStyle,D=e.handleStyle,B=e.railStyle,V=e.dotStyle,W=e.activeDotStyle,q=e.marks,Q=e.dots,U=e.handleRender,J=e.activeHandleRender,X=e.track,Y=e.tabIndex,ae=Y===void 0?0:Y,oe=e.ariaLabelForHandle,ne=e.ariaLabelledByForHandle,ue=e.ariaRequired,pe=e.ariaValueTextFormatterForHandle,be=d.useRef(null),Se=d.useRef(null),he=d.useMemo(function(){return z?P?"ttb":"btt":P?"rtl":"ltr"},[P,z]),ke=SR(k),ce=te(ke,5),de=ce[0],Ae=ce[1],ie=ce[2],We=ce[3],ze=ce[4],De=d.useMemo(function(){return isFinite(b)?b:0},[b]),Ee=d.useMemo(function(){return isFinite(x)?x:100},[x]),Ve=d.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Ne=d.useMemo(function(){return typeof R=="boolean"?R?Ve:!1:R>=0?R:!1},[R,Ve]),Fe=d.useMemo(function(){return Object.keys(q||{}).map(function(Me){var Oe=q[Me],Ue={value:Number(Me)};return Oe&&dt(Oe)==="object"&&!d.isValidElement(Oe)&&("label"in Oe||"style"in Oe)?(Ue.style=Oe.style,Ue.label=Oe.label):Ue.label=Oe,Ue}).filter(function(Me){var Oe=Me.label;return Oe||typeof Oe=="number"}).sort(function(Me,Oe){return Me.value-Oe.value})},[q]),$e=CR(De,Ee,Ve,Fe,j,Ne),je=te($e,2),qe=je[0],ve=je[1],it=bn(S,{value:E}),pt=te(it,2),yt=pt[0],Pt=pt[1],He=d.useMemo(function(){var Me=yt==null?[]:Array.isArray(yt)?yt:[yt],Oe=te(Me,1),Ue=Oe[0],bt=Ue===void 0?De:Ue,Re=yt===null?[]:[bt];if(de){if(Re=_e(Me),O||yt===void 0){var St=O>=0?O+1:2;for(Re=Re.slice(0,St);Re.length<St;){var xt;Re.push((xt=Re[Re.length-1])!==null&&xt!==void 0?xt:De)}}Re.sort(function(Et,lt){return Et-lt})}return Re.forEach(function(Et,lt){Re[lt]=qe(Et)}),Re},[yt,de,De,O,qe]),Xe=function(Me){return de?Me:Me[0]},Ye=Vt(function(Me){var Oe=_e(Me).sort(function(Ue,bt){return Ue-bt});$&&!Il(Oe,He,!0)&&$(Xe(Oe)),Pt(Oe)}),Je=Vt(function(Me){Me&&be.current.hideHelp();var Oe=Xe(He);N==null||N(Oe),Hn(!N,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(Oe)}),tt=function(Me){if(!(u||!Ae||He.length<=We)){var Oe=_e(He);Oe.splice(Me,1),I==null||I(Xe(Oe)),Ye(Oe);var Ue=Math.max(0,Me-1);be.current.hideHelp(),be.current.focus(Ue)}},Ot=wR(Se,he,He,De,Ee,qe,Ye,Je,ve,Ae,We),Nt=te(Ot,5),et=Nt[0],st=Nt[1],Ct=Nt[2],Le=Nt[3],Pe=Nt[4],ye=function(Me,Oe){if(!u){var Ue=_e(He),bt=0,Re=0,St=Ee-De;He.forEach(function(ft,It){var Rt=Math.abs(Me-ft);Rt<=St&&(St=Rt,bt=It),ft<Me&&(Re=It)});var xt=bt;Ae&&St!==0&&(!ze||He.length<ze)?(Ue.splice(Re+1,0,Me),xt=Re+1):Ue[bt]=Me,de&&!He.length&&O===void 0&&Ue.push(Me);var Et=Xe(Ue);if(I==null||I(Et),Ye(Ue),Oe){var lt,Yt;(lt=document.activeElement)===null||lt===void 0||(Yt=lt.blur)===null||Yt===void 0||Yt.call(lt),be.current.focus(xt),Pe(Oe,xt,Ue)}else N==null||N(Et),Hn(!N,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(Et)}},Te=function(Me){Me.preventDefault();var Oe=Se.current.getBoundingClientRect(),Ue=Oe.width,bt=Oe.height,Re=Oe.left,St=Oe.top,xt=Oe.bottom,Et=Oe.right,lt=Me.clientX,Yt=Me.clientY,ft;switch(he){case"btt":ft=(xt-Yt)/bt;break;case"ttb":ft=(Yt-St)/bt;break;case"rtl":ft=(Et-lt)/Ue;break;default:ft=(lt-Re)/Ue}var It=De+ft*(Ee-De);ye(qe(It),Me)},nt=d.useState(null),Qe=te(nt,2),ot=Qe[0],gt=Qe[1],kt=function(Me,Oe){if(!u){var Ue=ve(He,Me,Oe);I==null||I(Xe(He)),Ye(Ue.values),gt(Ue.value)}};d.useEffect(function(){if(ot!==null){var Me=He.indexOf(ot);Me>=0&&be.current.focus(Me)}gt(null)},[ot]);var Mt=d.useMemo(function(){return ie&&Ve===null?!1:ie},[ie,Ve]),Jt=Vt(function(Me,Oe){Pe(Me,Oe),I==null||I(Xe(He))}),Ht=et!==-1;d.useEffect(function(){if(!Ht){var Me=He.lastIndexOf(st);be.current.focus(Me)}},[Ht]);var Z=d.useMemo(function(){return _e(Le).sort(function(Me,Oe){return Me-Oe})},[Le]),ee=d.useMemo(function(){return de?[Z[0],Z[Z.length-1]]:[De,Z[0]]},[Z,de,De]),we=te(ee,2),Ie=we[0],le=we[1];d.useImperativeHandle(t,function(){return{focus:function(){be.current.focus(0)},blur:function(){var Me,Oe=document,Ue=Oe.activeElement;(Me=Se.current)!==null&&Me!==void 0&&Me.contains(Ue)&&(Ue==null||Ue.blur())}}}),d.useEffect(function(){v&&be.current.focus(0)},[]);var Ce=d.useMemo(function(){return{min:De,max:Ee,direction:he,disabled:u,keyboard:p,step:Ve,included:L,includedStart:Ie,includedEnd:le,range:de,tabIndex:ae,ariaLabelForHandle:oe,ariaLabelledByForHandle:ne,ariaRequired:ue,ariaValueTextFormatterForHandle:pe,styles:s||{},classNames:i||{}}},[De,Ee,he,u,p,Ve,L,Ie,le,de,ae,oe,ne,ue,pe,s,i]);return d.createElement(fa.Provider,{value:Ce},d.createElement("div",{ref:Se,className:me(r,o,G(G(G(G({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),Fe.length)),style:a,onMouseDown:Te,id:l},d.createElement("div",{className:me("".concat(r,"-rail"),i==null?void 0:i.rail),style:K(K({},B),s==null?void 0:s.rail)}),X!==!1&&d.createElement(yR,{prefixCls:r,style:_,values:He,startPoint:T,onStartMove:Mt?Jt:void 0}),d.createElement(bR,{prefixCls:r,marks:Fe,dots:Q,style:V,activeStyle:W}),d.createElement(mR,{ref:be,prefixCls:r,style:D,values:Le,draggingIndex:et,draggingDelete:Ct,onStartMove:Jt,onOffsetChange:kt,onFocus:h,onBlur:g,handleRender:U,activeHandleRender:J,onChangeComplete:Je,onDelete:Ae?tt:void 0}),d.createElement(hR,{prefixCls:r,marks:Fe,onClick:ye})))});const $R=Hr({}),Bv=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=Ke(null),i=n&&!r,s=Ke(null);function l(){Tt.cancel(s.current),s.current=null}function c(){s.current=Tt(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),s.current=null})}return d.useEffect(()=>(i?c():l(),l),[i,e.title,o]),d.createElement(Ec,Object.assign({ref:kr(a,t)},e,{open:i}))}),kR=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:g,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},yn(e)),{position:"relative",height:r,margin:`${xe(i)} ${xe(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${xe(a)} ${xe(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${xe(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${xe(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
366
|
-
inset-inline-start ${m},
|
|
367
|
-
inset-block-start ${m},
|
|
368
|
-
width ${m},
|
|
369
|
-
height ${m},
|
|
370
|
-
box-shadow ${m},
|
|
371
|
-
outline ${m}
|
|
372
|
-
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${xe(g)} ${p}`,outline:`6px solid ${v}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${xe(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
373
|
-
${t}-dot
|
|
374
|
-
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${xe(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
375
|
-
${t}-mark-text,
|
|
376
|
-
${t}-dot
|
|
377
|
-
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Fw=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",v=s(r).mul(3).sub(o).div(2).equal(),h=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${xe(h)} 0`,transform:`translateY(${xe(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${xe(h)}`,transform:`translateX(${xe(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},OR=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Fw(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},IR=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Fw(e,!1)),{height:"100%"})}},MR=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,i=new Qt(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:i,handleColorDisabled:new Qt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},FR=Fn("Slider",e=>{const t=rn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[kR(t),OR(t),IR(t)]},MR);function Ou(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{Tt.cancel(n.current)},o=a=>{r(),a?t(a):n.current=Tt(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,o]}var NR=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 jR(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const PR=fe.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:v={},onChangeComplete:h,classNames:g,styles:m}=e,b=NR(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:C,className:w,style:E,classNames:S,styles:k,getPopupContainer:O}=lo("slider"),$=fe.useContext(Kn),I=s??$,{handleRender:N,direction:A}=fe.useContext($R),F=(A||C)==="rtl",[j,M]=Ou(),[R,P]=Ou(),z=Object.assign({},v),{open:H,placement:L,getPopupContainer:T,prefixCls:_,formatter:D}=z,B=H??u,V=(j||R)&&B!==!1,W=jR(D,c),[q,Q]=Ou(),U=ce=>{h==null||h(ce),Q(!1)},J=(ce,de)=>ce||(de?F?"left":"right":"top"),X=x("slider",n),[Y,ae,oe]=FR(X),ne=me(o,w,S.root,g==null?void 0:g.root,a,{[`${X}-rtl`]:F,[`${X}-lock`]:q},ae,oe);F&&!b.vertical&&(b.reverse=!b.reverse),fe.useEffect(()=>{const ce=()=>{Tt(()=>{P(!1)},1)};return document.addEventListener("mouseup",ce),()=>{document.removeEventListener("mouseup",ce)}},[]);const ue=r&&!B,pe=N||((ce,de)=>{const{index:Ae}=de,ie=ce.props;function We(Ve,Ne,Fe){var $e,je,qe,ve;Fe&&((je=($e=b)[Ve])===null||je===void 0||je.call($e,Ne)),(ve=(qe=ie)[Ve])===null||ve===void 0||ve.call(qe,Ne)}const ze=Object.assign(Object.assign({},ie),{onMouseEnter:Ve=>{M(!0),We("onMouseEnter",Ve)},onMouseLeave:Ve=>{M(!1),We("onMouseLeave",Ve)},onMouseDown:Ve=>{P(!0),Q(!0),We("onMouseDown",Ve)},onFocus:Ve=>{var Ne;P(!0),(Ne=b.onFocus)===null||Ne===void 0||Ne.call(b,Ve),We("onFocus",Ve,!0)},onBlur:Ve=>{var Ne;P(!1),(Ne=b.onBlur)===null||Ne===void 0||Ne.call(b,Ve),We("onBlur",Ve,!0)}}),De=fe.cloneElement(ce,ze),Ee=(!!B||V)&&W!==null;return ue?De:fe.createElement(Bv,Object.assign({},z,{prefixCls:x("tooltip",_??l),title:W?W(de.value):"",value:de.value,open:Ee,placement:J(L??p,y),key:Ae,classNames:{root:`${X}-tooltip`},getPopupContainer:T||f||O}),De)}),be=ue?(ce,de)=>{const Ae=fe.cloneElement(ce,{style:Object.assign(Object.assign({},ce.props.style),{visibility:"hidden"})});return fe.createElement(Bv,Object.assign({},z,{prefixCls:x("tooltip",_??l),title:W?W(de.value):"",open:W!==null&&V,placement:J(L??p,y),key:"tooltip",classNames:{root:`${X}-tooltip`},getPopupContainer:T||f||O,draggingDelete:de.draggingDelete}),Ae)}:void 0,Se=Object.assign(Object.assign(Object.assign(Object.assign({},k.root),E),m==null?void 0:m.root),i),he=Object.assign(Object.assign({},k.tracks),m==null?void 0:m.tracks),ke=me(S.tracks,g==null?void 0:g.tracks);return Y(fe.createElement(ER,Object.assign({},b,{classNames:Object.assign({handle:me(S.handle,g==null?void 0:g.handle),rail:me(S.rail,g==null?void 0:g.rail),track:me(S.track,g==null?void 0:g.track)},ke?{tracks:ke}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},k.handle),m==null?void 0:m.handle),rail:Object.assign(Object.assign({},k.rail),m==null?void 0:m.rail),track:Object.assign(Object.assign({},k.track),m==null?void 0:m.track)},Object.keys(he).length?{tracks:he}:{}),step:b.step,range:r,className:ne,style:Se,disabled:I,ref:t,prefixCls:X,handleRender:pe,activeHandleRender:be,onChangeComplete:U})))});var AR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},RR=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:AR}))},Nw=d.forwardRef(RR),TR={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"},DR=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:TR}))},jw=d.forwardRef(DR),_R={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},BR=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:_R}))},zR=d.forwardRef(BR);function HR(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function LR(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Pw(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=bx(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[VR,WR]=["week","WeekPicker"],[qR,UR]=["month","MonthPicker"],[YR,XR]=["year","YearPicker"],[GR,KR]=["quarter","QuarterPicker"],[vf,zv]=["time","TimePicker"],QR=e=>d.createElement(wc,Object.assign({size:"small",type:"primary"},e));function Aw(e){return en(()=>Object.assign({button:QR},e),[e])}function Rw(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=Rw(i,r[a],s);else{const{_default:l}=i;l&&(r[a]=r[a]||{},r[a][l]=me(r[a][l],s))}else r[a]=me(r[a],s)}),r),{})}function ZR(e,...t){return d.useMemo(()=>Rw.apply(void 0,[e].concat(t)),[t,e])}function JR(...e){return d.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function bf(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?bf(a,o):a}}),n}function eT(e,t,n){const r=ZR.apply(void 0,[n].concat(_e(e))),o=JR.apply(void 0,_e(t));return d.useMemo(()=>[bf(r,n),bf(o,n)],[r,o,n])}const Tw=(e,t,n,r,o)=>{const{classNames:a,styles:i}=lo(e),[s,l]=eT([a,t],[i,n],{popup:{_default:"root"}});return d.useMemo(()=>{var c,u;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:me((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),p=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),o)})});return[f,p]},[s,l,r,o])};var tT=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 nT=e=>zr((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:v=!0,placeholder:h,popupStyle:g,popupClassName:m,dropdownClassName:b,status:y,rootClassName:x,variant:C,picker:w,styles:E,classNames:S}=n,k=tT(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=w===vf?"timePicker":"datePicker",$=d.useRef(null),{getPrefixCls:I,direction:N,getPopupContainer:A,rangePicker:F}=nn(qt),j=I("picker",a),{compactSize:M,compactItemClassnames:R}=Ro(j,N),P=I(),[z,H]=ri("rangePicker",C,v),L=pr(j),[T,_,D]=Cw(j,L),[B,V]=Tw(O,S,E,m||b,g),[W]=Pw(n,j),q=Aw(s),Q=Ir(Se=>{var he;return(he=f??M)!==null&&he!==void 0?he:Se}),U=d.useContext(Kn),J=p??U,X=nn(Ln),{hasFeedback:Y,status:ae,feedbackIcon:oe}=X,ne=d.createElement(d.Fragment,null,w===vf?d.createElement(jw,null):d.createElement(Nw,null),Y&&oe);Qa(r,()=>$.current);const[ue]=aa("Calendar",Ml),pe=Object.assign(Object.assign({},ue),n.locale),[be]=dc("DatePicker",(o=V.popup.root)===null||o===void 0?void 0:o.zIndex);return T(d.createElement(Fo,{space:!0},d.createElement(VP,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${j}-separator`},d.createElement(zR,null)),disabled:J,ref:$,placement:u,placeholder:LR(pe,w,h),suffixIcon:ne,prevIcon:d.createElement("span",{className:`${j}-prev-icon`}),nextIcon:d.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${P}-slide-up`,picker:w},k,{className:me({[`${j}-${Q}`]:Q,[`${j}-${z}`]:H},No(j,la(ae,y),Y),_,R,l,F==null?void 0:F.className,D,L,x,B.root),style:Object.assign(Object.assign(Object.assign({},F==null?void 0:F.style),c),V.root),locale:pe.lang,prefixCls:j,getPopupContainer:i||A,generateConfig:e,components:q,direction:N,classNames:{popup:me(_,D,L,x,B.popup.root)},styles:{popup:Object.assign(Object.assign({},V.popup.root),{zIndex:be})},allowClear:W}))))});var rT=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 oT=e=>{const t=(l,c)=>{const u=c===zv?"timePicker":"datePicker";return zr((p,v)=>{var h;const{prefixCls:g,getPopupContainer:m,components:b,style:y,className:x,rootClassName:C,size:w,bordered:E,placement:S,placeholder:k,popupStyle:O,popupClassName:$,dropdownClassName:I,disabled:N,status:A,variant:F,onCalendarChange:j,styles:M,classNames:R}=p,P=rT(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:z,direction:H,getPopupContainer:L,[u]:T}=nn(qt),_=z("picker",g),{compactSize:D,compactItemClassnames:B}=Ro(_,H),V=d.useRef(null),[W,q]=ri("datePicker",F,E),Q=pr(_),[U,J,X]=Cw(_,Q);Qa(v,()=>V.current);const Y={showToday:!0},ae=l||p.picker,oe=z(),{onSelect:ne,multiple:ue}=P,pe=ne&&l==="time"&&!ue,be=(qe,ve,it)=>{j==null||j(qe,ve,it),pe&&ne(qe)},[Se,he]=Tw(u,R,M,$||I,O),[ke,ce]=Pw(p,_),de=Aw(b),Ae=Ir(qe=>{var ve;return(ve=w??D)!==null&&ve!==void 0?ve:qe}),ie=d.useContext(Kn),We=N??ie,ze=nn(Ln),{hasFeedback:De,status:Ee,feedbackIcon:Ve}=ze,Ne=d.createElement(d.Fragment,null,ae==="time"?d.createElement(jw,null):d.createElement(Nw,null),De&&Ve),[Fe]=aa("DatePicker",Ml),$e=Object.assign(Object.assign({},Fe),p.locale),[je]=dc("DatePicker",(h=he.popup.root)===null||h===void 0?void 0:h.zIndex);return U(d.createElement(Fo,{space:!0},d.createElement(GP,Object.assign({ref:V,placeholder:HR($e,ae,k),suffixIcon:Ne,placement:S,prevIcon:d.createElement("span",{className:`${_}-prev-icon`}),nextIcon:d.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:l,onCalendarChange:be},Y,P,{locale:$e.lang,className:me({[`${_}-${Ae}`]:Ae,[`${_}-${W}`]:q},No(_,la(Ee,A),De),J,B,T==null?void 0:T.className,x,X,Q,C,Se.root),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),y),he.root),prefixCls:_,getPopupContainer:m||L,generateConfig:e,components:de,direction:H,disabled:We,classNames:{popup:me(J,X,Q,C,Se.popup.root)},styles:{popup:Object.assign(Object.assign({},he.popup.root),{zIndex:je})},allowClear:ke,removeIcon:ce}))))})},n=t(),r=t(VR,WR),o=t(qR,UR),a=t(YR,XR),i=t(GR,KR),s=t(vf,zv);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},Dw=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=oT(e),s=nT(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=i,l},li=Dw(Q6),aT=dm(li,"popupAlign",void 0,"picker");li._InternalPanelDoNotUseOrYouWillBeFired=aT;const iT=dm(li.RangePicker,"popupAlign",void 0,"picker");li._InternalRangePanelDoNotUseOrYouWillBeFired=iT;li.generatePicker=Dw;function sT(e){return e==null?null:typeof e=="object"&&!yp(e)?e:{title:e}}function Ll(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const lT=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},
|
|
378
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
379
|
-
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)"}}}}},cT=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${xe(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 ${xe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Hv=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},uT=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},yn(e)),cT(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Hv(e,e.controlHeightSM)),"&-large":Object.assign({},Hv(e,e.controlHeightLG))})}},dT=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},yn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
380
|
-
&-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:l,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:c,marginInlineEnd:u},[`&${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%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:om,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ho=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),fT=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-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"}},[`${t}-col-24${n}-label,
|
|
381
|
-
${t}-col-xl-24${n}-label`]:Ho(e)}}},pT=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
382
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},mT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ho(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gT=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
383
|
-
${r}-col-24${n}-label,
|
|
384
|
-
${r}-col-xl-24${n}-label`]:Ho(e)},[`@media (max-width: ${xe(e.screenXSMax)})`]:[mT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ho(e)}}}],[`@media (max-width: ${xe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ho(e)}}},[`@media (max-width: ${xe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ho(e)}}},[`@media (max-width: ${xe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ho(e)}}}}},hT=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}),_w=(e,t)=>rn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Rm=Fn("Form",(e,{rootPrefixCls:t})=>{const n=_w(e,t);return[uT(n),dT(n),lT(n),fT(n),pT(n),gT(n),aM(n),om]},hT,{order:-1e3}),Lv=[];function Iu(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Bw=({help:e,helpStatus:t,errors:n=Lv,warnings:r=Lv,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=d.useContext(um),l=`${s}-item-explain`,c=pr(s),[u,f,p]=Rm(s,c),v=d.useMemo(()=>hh(s),[s]),h=Ll(n),g=Ll(r),m=d.useMemo(()=>e!=null?[Iu(e,"help",t)]:[].concat(_e(h.map((x,C)=>Iu(x,"error","error",C))),_e(g.map((x,C)=>Iu(x,"warning","warning",C)))),[e,t,h,g]),b=d.useMemo(()=>{const x={};return m.forEach(({key:C})=>{x[C]=(x[C]||0)+1}),m.map((C,w)=>Object.assign(Object.assign({},C),{key:x[C.key]>1?`${C.key}-fallback-${w}`:C.key}))},[m]),y={};return a&&(y.id=`${a}_help`),u(d.createElement(ia,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},x=>{const{className:C,style:w}=x;return d.createElement("div",Object.assign({},y,{className:me(l,C,p,c,o,f),style:w}),d.createElement(c1,Object.assign({keys:b},hh(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:S,error:k,errorStatus:O,className:$,style:I}=E;return d.createElement("div",{key:S,className:me($,{[`${l}-${O}`]:O}),style:I},k)}))}))};var vT=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 bT=(e,t)=>{const n=d.useContext(Kn),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=lo("form"),{prefixCls:u,className:f,rootClassName:p,size:v,disabled:h=n,form:g,colon:m,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:C,hideRequiredMark:w,layout:E="horizontal",scrollToFirstError:S,requiredMark:k,onFinishFailed:O,name:$,style:I,feedbackIcons:N,variant:A}=e,F=vT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),j=Ir(v),M=d.useContext(Dy),R=d.useMemo(()=>k!==void 0?k:w?!1:a!==void 0?a:!0,[w,k,a]),P=m??i,z=r("form",u),H=pr(z),[L,T,_]=Rm(z,H),D=me(z,`${z}-${E}`,{[`${z}-hide-required-mark`]:R===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${j}`]:j},_,H,T,l,f,p),[B]=dw(g),{__INTERNAL__:V}=B;V.name=$;const W=d.useMemo(()=>({name:$,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:C,layout:E,colon:P,requiredMark:R,itemRef:V.itemRef,form:B,feedbackIcons:N}),[$,b,x,C,E,P,R,B,N]),q=d.useRef(null);d.useImperativeHandle(t,()=>{var J;return Object.assign(Object.assign({},B),{nativeElement:(J=q.current)===null||J===void 0?void 0:J.nativeElement})});const Q=(J,X)=>{if(J){let Y={block:"nearest"};typeof J=="object"&&(Y=Object.assign(Object.assign({},Y),J)),B.scrollToField(X,Y)}},U=J=>{if(O==null||O(J),J.errorFields.length){const X=J.errorFields[0].name;if(S!==void 0){Q(S,X);return}s!==void 0&&Q(s,X)}};return L(d.createElement(G1.Provider,{value:A},d.createElement(Wy,{disabled:h},d.createElement(ea.Provider,{value:j},d.createElement(Y1,{validateMessages:M},d.createElement(oo.Provider,{value:W},d.createElement(X1,{status:!0},d.createElement(ti,Object.assign({id:$},F,{name:$,onFinishFailed:U,form:B,ref:q,style:Object.assign(Object.assign({},c),I),className:D})))))))))},yT=d.forwardRef(bT);function xT(e){if(typeof e=="function")return e;const t=Ha(e);return t.length<=1?t[0]:t}const zw=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Ln);return{status:e,errors:t,warnings:n}};zw.Context=Ln;function wT(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,Tt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=Tt(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,i]}function CT(){const{itemRef:e}=d.useContext(oo),t=d.useRef({});function n(r,o){const a=o&&typeof o=="object"&&cs(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=kr(e(r),a)),t.current.ref}return n}const ST=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ET=lc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=_w(e,t);return ST(n)});var $T=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 kT=24,OT=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:v,label:h}=e,g=`${t}-item`,m=d.useContext(oo),b=d.useMemo(()=>{let F=Object.assign({},o||m.wrapperCol||{});return h===null&&!r&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const M=j?[j]:[],R=Sr(m.labelCol,M),P=typeof R=="object"?R:{},z=Sr(F,M),H=typeof z=="object"?z:{};"span"in P&&!("offset"in H)&&P.span<kT&&(F=Cr(F,[].concat(M,["offset"]),P.span))}),F},[o,m.wrapperCol,m.labelCol,h,r]),y=me(`${g}-control`,b.className),x=d.useMemo(()=>$T(m,["labelCol","wrapperCol"]),[m]),C=d.useRef(null),[w,E]=d.useState(0);Ut(()=>{c&&C.current?E(C.current.clientHeight):E(0)},[c]);const S=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),k=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=p!==null||i.length||s.length?d.createElement(um.Provider,{value:k},d.createElement(Bw,{fieldId:f,errors:i,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:v})):null,$={};f&&($.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},$,{className:`${g}-extra`,ref:C}),c):null,N=O||I?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+w}:{}},O,I):null,A=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:S,errorList:O,extra:I}):d.createElement(d.Fragment,null,S,N);return d.createElement(oo.Provider,{value:x},d.createElement(zl,Object.assign({},b,{className:y}),A),d.createElement(ET,{prefixCls:t}))};var IT={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"},MT=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:IT}))},FT=d.forwardRef(MT),NT=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 jT=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[f]=aa("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:g}=d.useContext(oo);if(!t)return null;const m=r||v||{},b=o||p,y=`${e}-item-label`,x=me(y,b==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!h});let C=t;const w=a===!0||g!==!1&&a!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const E=sT(l);if(E){const{icon:N=d.createElement(FT,null)}=E,A=NT(E,["icon"]),F=d.createElement(Ec,Object.assign({},A),d.cloneElement(N,{className:`${e}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,F)}const S=s==="optional",k=typeof s=="function",O=s===!1;k?C=s(C,{required:!!i}):S&&!i&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Io.Form)===null||u===void 0?void 0:u.optional))));let $;O?$="hidden":(S||k)&&($="optional");const I=me({[`${e}-item-required`]:i,[`${e}-item-required-mark-${$}`]:$,[`${e}-item-no-colon`]:!w});return d.createElement(zl,Object.assign({},m,{className:x}),d.createElement("label",{htmlFor:n,className:I,title:typeof t=="string"?t:""},C))},PT={success:v1,warning:b1,error:uc,validating:fs};function Hw({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:u}=d.useContext(oo),f=uw(t,n,i,null,!!r,o),{isFormItemInput:p,status:v,hasFeedback:h,feedbackIcon:g,name:m}=d.useContext(Ln),b=d.useMemo(()=>{var y;let x;if(r){const w=r!==!0&&r.icons||u,E=f&&((y=w==null?void 0:w({status:f,errors:t,warnings:n}))===null||y===void 0?void 0:y[f]),S=f?PT[f]:null;x=E!==!1&&S?d.createElement("span",{className:me(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(S,null)):null}const C={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:l};return s&&(C.status=(f??v)||"",C.isFormItemInput=p,C.hasFeedback=!!(r??h),C.feedbackIcon=r!==void 0?C.feedbackIcon:g,C.name=l??m),C},[f,r,s,p,v]);return d.createElement(Ln.Provider,{value:b},e)}var AT=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 RT(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:p,fieldId:v,required:h,isRequired:g,onSubItemMetaChange:m,layout:b,name:y}=e,x=AT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:w,layout:E}=d.useContext(oo),S=b||E,k=S==="vertical",O=d.useRef(null),$=Ll(i),I=Ll(s),N=a!=null,A=!!(N||i.length||s.length),F=!!O.current&&pc(O.current),[j,M]=d.useState(null);Ut(()=>{if(A&&O.current){const H=getComputedStyle(O.current);M(Number.parseInt(H.marginBottom,10))}},[A,F]);const R=H=>{H||M(null)},P=((H=!1)=>{const L=H?$:c.errors,T=H?I:c.warnings;return uw(L,T,c,"",!!u,l)})(),z=me(C,n,r,{[`${C}-with-help`]:N||$.length||I.length,[`${C}-has-feedback`]:P&&u,[`${C}-has-success`]:P==="success",[`${C}-has-warning`]:P==="warning",[`${C}-has-error`]:P==="error",[`${C}-is-validating`]:P==="validating",[`${C}-hidden`]:f,[`${C}-${S}`]:S});return d.createElement("div",{className:z,style:o,ref:O},d.createElement(Ew,Object.assign({className:`${C}-row`},to(x,["_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"])),d.createElement(jT,Object.assign({htmlFor:v},e,{requiredMark:w,required:h??g,prefixCls:t,vertical:k})),d.createElement(OT,Object.assign({},e,c,{errors:$,warnings:I,prefixCls:t,status:P,help:a,marginBottom:j,onErrorVisibleChanged:R}),d.createElement(U1.Provider,{value:m},d.createElement(Hw,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P,name:y},p)))),!!j&&d.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-j}}))}const TT="__SPLIT__";function DT(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const _T=d.memo(({children:e})=>e,(e,t)=>DT(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Vv(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function BT(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:v,hidden:h,help:g,layout:m}=e,{getPrefixCls:b}=d.useContext(qt),{name:y}=d.useContext(oo),x=xT(l),C=typeof x=="function",w=d.useContext(U1),{validateTrigger:E}=d.useContext(na),S=v!==void 0?v:E,k=t!=null,O=b("form",a),$=pr(O),[I,N,A]=Rm(O,$);ic();const F=d.useContext(Gi),j=d.useRef(null),[M,R]=wT({}),[P,z]=qa(()=>Vv()),H=W=>{const q=F==null?void 0:F.getKey(W.name);if(z(W.destroy?Vv():W,!0),n&&g!==!1&&w){let Q=W.name;if(W.destroy)Q=j.current||Q;else if(q!==void 0){const[U,J]=q;Q=[U].concat(_e(J)),j.current=Q}w(W,Q)}},L=(W,q)=>{R(Q=>{const U=Object.assign({},Q),J=[].concat(_e(W.name.slice(0,-1)),_e(q)).join(TT);return W.destroy?delete U[J]:U[J]=W,U})},[T,_]=d.useMemo(()=>{const W=_e(P.errors),q=_e(P.warnings);return Object.values(M).forEach(Q=>{W.push.apply(W,_e(Q.errors||[])),q.push.apply(q,_e(Q.warnings||[]))}),[W,q]},[M,P.errors,P.warnings]),D=CT();function B(W,q,Q){return n&&!h?d.createElement(Hw,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:T,warnings:_,noStyle:!0,name:t},W):d.createElement(RT,Object.assign({key:"row"},e,{className:me(r,A,$,N),prefixCls:O,fieldId:q,isRequired:Q,errors:T,warnings:_,meta:P,onSubItemMetaChange:L,layout:m,name:t}),W)}if(!k&&!C&&!o)return I(B(x));let V={};return typeof u=="string"?V.label=u:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),I(d.createElement(lm,Object.assign({},e,{messageVariables:V,trigger:p,validateTrigger:S,onMetaChange:H}),(W,q,Q)=>{const U=Ri(t).length&&q?q.name:[],J=cw(U,y),X=c!==void 0?c:!!(s!=null&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const ne=oe(Q);return(ne==null?void 0:ne.required)&&!(ne!=null&&ne.warningOnly)}return!1})),Y=Object.assign({},W);let ae=null;if(Array.isArray(x)&&k)ae=x;else if(!(C&&(!(i||o)||k))){if(!(o&&!C&&!k))if(d.isValidElement(x)){const oe=Object.assign(Object.assign({},x.props),Y);if(oe.id||(oe.id=J),g||T.length>0||_.length>0||e.extra){const ue=[];(g||T.length>0)&&ue.push(`${J}_help`),e.extra&&ue.push(`${J}_extra`),oe["aria-describedby"]=ue.join(" ")}T.length>0&&(oe["aria-invalid"]="true"),X&&(oe["aria-required"]="true"),Za(x)&&(oe.ref=D(U,x)),new Set([].concat(_e(Ri(p)),_e(Ri(S)))).forEach(ue=>{oe[ue]=(...pe)=>{var be,Se,he,ke,ce;(he=Y[ue])===null||he===void 0||(be=he).call.apply(be,[Y].concat(pe)),(ce=(ke=x.props)[ue])===null||ce===void 0||(Se=ce).call.apply(Se,[ke].concat(pe))}});const ne=[oe["aria-required"],oe["aria-invalid"],oe["aria-describedby"]];ae=d.createElement(_T,{control:Y,update:x,childProps:ne},Mo(x,oe))}else C&&(i||o)&&!k?ae=x(Q):ae=x}return B(ae,J,X)}))}const Lw=BT;Lw.useStatus=zw;var zT=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 HT=e=>{var{prefixCls:t,children:n}=e,r=zT(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(qt),a=o("form",t),i=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(L1,Object.assign({},r),(s,l,c)=>d.createElement(um.Provider,{value:i},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function LT(){const{form:e}=d.useContext(oo);return e}const On=yT;On.Item=Lw;On.List=HT;On.ErrorList=Bw;On.useForm=dw;On.useFormInstance=LT;On.useWatch=q1;On.Provider=Y1;On.create=()=>{};var VT={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"},WT=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:VT}))},qT=d.forwardRef(WT);const UT=e=>{const{getPrefixCls:t,direction:n}=nn(qt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l,c]=ww(i),u=me(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),f=nn(Ln),p=en(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Ln.Provider,{value:p},e.children)))},YT=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:e.colorText},[`${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}}}},XT=Fn(["Input","OTP"],e=>{const t=rn(e,ii(e));return YT(t)},si);var GT=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 KT=d.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=GT(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(qt),u=c("otp"),f=typeof s=="string"?s:r,p=d.useRef(null);d.useImperativeHandle(t,()=>p.current);const v=m=>{o(i,m.target.value)},h=()=>{Tt(()=>{var m;const b=(m=p.current)===null||m===void 0?void 0:m.input;document.activeElement===b&&b&&b.select()})},g=m=>{const{key:b,ctrlKey:y,metaKey:x}=m;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(y||x)?m.preventDefault():b==="Backspace"&&!r&&a(i-1),h()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Pc,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:p,value:r,onInput:v,onFocus:h,onKeyDown:g,onMouseDown:h,onMouseUp:h,className:me(n,{[`${u}-mask-input`]:s})})))});var QT=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 Ls(e){return(e||"").split("")}const ZT=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?d.createElement("span",{className:`${n}-separator`},o):null},JT=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:p,autoFocus:v,mask:h,type:g,onInput:m,inputMode:b}=e,y=QT(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:C}=d.useContext(qt),w=x("otp",n),E=Br(y,{aria:!0,data:!0,attr:!0}),[S,k,O]=XT(w),$=Ir(D=>o??D),I=d.useContext(Ln),N=la(I.status,p),A=d.useMemo(()=>Object.assign(Object.assign({},I),{status:N,hasFeedback:!1,feedbackIcon:null}),[I,N]),F=d.useRef(null),j=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var D;(D=j.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let B=0;B<r;B+=1)(D=j.current[B])===null||D===void 0||D.blur()},nativeElement:F.current}));const M=D=>l?l(D):D,[R,P]=d.useState(()=>Ls(M(a||"")));d.useEffect(()=>{i!==void 0&&P(Ls(i))},[i]);const z=Vt(D=>{P(D),m&&m(D),s&&D.length===r&&D.every(B=>B)&&D.some((B,V)=>R[V]!==B)&&s(D.join(""))}),H=Vt((D,B)=>{let V=_e(R);for(let q=0;q<D;q+=1)V[q]||(V[q]="");B.length<=1?V[D]=B:V=V.slice(0,D).concat(Ls(B)),V=V.slice(0,r);for(let q=V.length-1;q>=0&&!V[q];q-=1)V.pop();const W=M(V.map(q=>q||" ").join(""));return V=Ls(W).map((q,Q)=>q===" "&&!V[Q]?V[Q]:q),V}),L=(D,B)=>{var V;const W=H(D,B),q=Math.min(D+B.length,r-1);q!==D&&W[D]!==void 0&&((V=j.current[q])===null||V===void 0||V.focus()),z(W)},T=D=>{var B;(B=j.current[D])===null||B===void 0||B.focus()},_={variant:u,disabled:f,status:N,mask:h,type:g,inputMode:b};return S(d.createElement("div",Object.assign({},E,{ref:F,className:me(w,{[`${w}-sm`]:$==="small",[`${w}-lg`]:$==="large",[`${w}-rtl`]:C==="rtl"},O,k),role:"group"}),d.createElement(Ln.Provider,{value:A},Array.from({length:r}).map((D,B)=>{const V=`otp-${B}`,W=R[B]||"";return d.createElement(d.Fragment,{key:V},d.createElement(KT,Object.assign({ref:q=>{j.current[B]=q},index:B,size:$,htmlSize:1,className:`${w}-input`,onChange:L,value:W,onActiveChange:T,autoFocus:B===0&&v},_)),B<r-1&&d.createElement(ZT,{separator:c,index:B,prefixCls:w}))}))))});var e3={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"},t3=function(e,t){return d.createElement(Tn,Ge({},e,{ref:t,icon:e3}))},n3=d.forwardRef(t3),r3=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 o3=e=>e?d.createElement(qT,null):d.createElement(n3,null),a3={click:"onClick",hover:"onMouseOver"},i3=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=o3,suffix:i}=e,s=d.useContext(Kn),l=n??s,c=typeof o=="object"&&o.visible!==void 0,[u,f]=ct(()=>c?o.visible:!1),p=Ke(null);d.useEffect(()=>{c&&f(o.visible)},[c,o]);const v=Mw(p),h=()=>{var I;if(l)return;u&&v();const N=!u;f(N),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,N))},g=I=>{const N=a3[r]||"",A=a(u),F={[N]:h,className:`${I}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return d.cloneElement(d.isValidElement(A)?A:d.createElement("span",null,A),F)},{className:m,prefixCls:b,inputPrefixCls:y,size:x}=e,C=r3(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(qt),E=w("input",y),S=w("input-password",b),k=o&&g(S),O=me(S,m,{[`${S}-${x}`]:!!x}),$=Object.assign(Object.assign({},to(C,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:E,suffix:d.createElement(d.Fragment,null,k,i)});return x&&($.size=x),d.createElement(Pc,Object.assign({ref:kr(t,p)},$))});var s3=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 l3=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:v,onCompositionEnd:h,variant:g,onPressEnter:m}=e,b=s3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:x}=d.useContext(qt),C=d.useRef(!1),w=y("input-search",n),E=y("input",r),{compactSize:S}=Ro(w,x),k=Ir(_=>{var D;return(D=a??S)!==null&&D!==void 0?D:_}),O=d.useRef(null),$=_=>{_!=null&&_.target&&_.type==="click"&&f&&f(_.target.value,_,{source:"clear"}),p==null||p(_)},I=_=>{var D;document.activeElement===((D=O.current)===null||D===void 0?void 0:D.input)&&_.preventDefault()},N=_=>{var D,B;f&&f((B=(D=O.current)===null||D===void 0?void 0:D.input)===null||B===void 0?void 0:B.value,_,{source:"input"})},A=_=>{C.current||c||(m==null||m(_),N(_))},F=typeof s=="boolean"?d.createElement(vx,null):null,j=`${w}-button`;let M;const R=s||{},P=R.type&&R.type.__ANT_BUTTON===!0;P||R.type==="button"?M=Mo(R,Object.assign({onMouseDown:I,onClick:_=>{var D,B;(B=(D=R==null?void 0:R.props)===null||D===void 0?void 0:D.onClick)===null||B===void 0||B.call(D,_),N(_)},key:"enterButton"},P?{className:j,size:k}:{})):M=d.createElement(wc,{className:j,color:s?"primary":"default",size:k,disabled:u,key:"enterButton",onMouseDown:I,onClick:N,loading:c,icon:F,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(M=[M,Mo(l,{key:"addonAfter"})]);const z=me(w,{[`${w}-rtl`]:x==="rtl",[`${w}-${k}`]:!!k,[`${w}-with-button`]:!!s},o),H=_=>{C.current=!0,v==null||v(_)},L=_=>{C.current=!1,h==null||h(_)},T=Object.assign(Object.assign({},b),{className:z,prefixCls:E,type:"search",size:k,variant:g,onPressEnter:A,onCompositionStart:H,onCompositionEnd:L,addonAfter:M,suffix:i,onChange:$,disabled:u});return d.createElement(Pc,Object.assign({ref:kr(O,t)},T))});var c3=`
|
|
385
|
-
min-height:0 !important;
|
|
386
|
-
max-height:none !important;
|
|
387
|
-
height:0 !important;
|
|
388
|
-
visibility:hidden !important;
|
|
389
|
-
overflow:hidden !important;
|
|
390
|
-
position:absolute !important;
|
|
391
|
-
z-index:-1000 !important;
|
|
392
|
-
top:0 !important;
|
|
393
|
-
right:0 !important;
|
|
394
|
-
pointer-events: none !important;
|
|
395
|
-
`,u3=["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"],Mu={},sr;function d3(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&&Mu[n])return Mu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=u3.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Mu[n]=l),l}function f3(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;sr||(sr=document.createElement("textarea"),sr.setAttribute("tab-index","-1"),sr.setAttribute("aria-hidden","true"),sr.setAttribute("name","hiddenTextarea"),document.body.appendChild(sr)),e.getAttribute("wrap")?sr.setAttribute("wrap",e.getAttribute("wrap")):sr.removeAttribute("wrap");var o=d3(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;sr.setAttribute("style","".concat(l,";").concat(c3)),sr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=sr.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=a),n!==null||r!==null){sr.value=" ";var v=sr.scrollHeight-a;n!==null&&(c=v*n,s==="border-box"&&(c=c+a+i),p=Math.max(c,p)),r!==null&&(u=v*r,s==="border-box"&&(u=u+a+i),f=p>u?"":"hidden",p=Math.min(u,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var p3=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fu=0,Nu=1,ju=2,m3=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Dt(n,p3),v=bn(o,{value:a,postState:function(T){return T??""}}),h=te(v,2),g=h[0],m=h[1],b=function(T){m(T.target.value),f==null||f(T)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var x=d.useMemo(function(){return i&&dt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=te(x,2),w=C[0],E=C[1],S=!!i,k=d.useState(ju),O=te(k,2),$=O[0],I=O[1],N=d.useState(),A=te(N,2),F=A[0],j=A[1],M=function(){I(Fu)};Ut(function(){S&&M()},[a,w,E,S]),Ut(function(){if($===Fu)I(Nu);else if($===Nu){var T=f3(y.current,!1,w,E);I(ju),j(T)}},[$]);var R=d.useRef(),P=function(){Tt.cancel(R.current)},z=function(T){$===ju&&(s==null||s(T),i&&(P(),R.current=Tt(function(){M()})))};d.useEffect(function(){return P},[]);var H=S?F:null,L=K(K({},c),H);return($===Fu||$===Nu)&&(L.overflowY="hidden",L.overflowX="hidden"),d.createElement(eo,{onResize:z,disabled:!(i||s)},d.createElement("textarea",Ge({},p,{ref:y,style:L,className:me(r,l,G({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),g3=["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"],h3=fe.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,g=e.showCount,m=e.count,b=e.className,y=e.style,x=e.disabled,C=e.hidden,w=e.classNames,E=e.styles,S=e.onResize,k=e.onClear,O=e.onPressEnter,$=e.readOnly,I=e.autoSize,N=e.onKeyDown,A=Dt(e,g3),F=bn(r,{value:o,defaultValue:r}),j=te(F,2),M=j[0],R=j[1],P=M==null?"":String(M),z=fe.useState(!1),H=te(z,2),L=H[0],T=H[1],_=fe.useRef(!1),D=fe.useState(null),B=te(D,2),V=B[0],W=B[1],q=Ke(null),Q=Ke(null),U=function(){var Fe;return(Fe=Q.current)===null||Fe===void 0?void 0:Fe.textArea},J=function(){U().focus()};Qa(t,function(){var Fe;return{resizableTextArea:Q.current,focus:J,blur:function(){U().blur()},nativeElement:((Fe=q.current)===null||Fe===void 0?void 0:Fe.nativeElement)||U()}}),mt(function(){T(function(Fe){return!x&&Fe})},[x]);var X=fe.useState(null),Y=te(X,2),ae=Y[0],oe=Y[1];fe.useEffect(function(){if(ae){var Fe;(Fe=U()).setSelectionRange.apply(Fe,_e(ae))}},[ae]);var ne=kw(m,g),ue=(n=ne.max)!==null&&n!==void 0?n:c,pe=Number(ue)>0,be=ne.strategy(P),Se=!!ue&&be>ue,he=function(Fe,$e){var je=$e;!_.current&&ne.exceedFormatter&&ne.max&&ne.strategy($e)>ne.max&&(je=ne.exceedFormatter($e,{max:ne.max}),$e!==je&&oe([U().selectionStart||0,U().selectionEnd||0])),R(je),Hl(Fe.currentTarget,Fe,s,je)},ke=function(Fe){_.current=!0,u==null||u(Fe)},ce=function(Fe){_.current=!1,he(Fe,Fe.currentTarget.value),f==null||f(Fe)},de=function(Fe){he(Fe,Fe.target.value)},Ae=function(Fe){Fe.key==="Enter"&&O&&O(Fe),N==null||N(Fe)},ie=function(Fe){T(!0),a==null||a(Fe)},We=function(Fe){T(!1),i==null||i(Fe)},ze=function(Fe){R(""),J(),Hl(U(),Fe,s)},De=p,Ee;ne.show&&(ne.showFormatter?Ee=ne.showFormatter({value:P,count:be,maxLength:ue}):Ee="".concat(be).concat(pe?" / ".concat(ue):""),De=fe.createElement(fe.Fragment,null,De,fe.createElement("span",{className:me("".concat(h,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},Ee)));var Ve=function(Fe){var $e;S==null||S(Fe),($e=U())!==null&&$e!==void 0&&$e.style.height&&W(!0)},Ne=!I&&!g&&!l;return fe.createElement(Pm,{ref:q,value:P,allowClear:l,handleReset:ze,suffix:De,prefixCls:h,classNames:K(K({},w),{},{affixWrapper:me(w==null?void 0:w.affixWrapper,G(G({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:L,className:me(b,Se&&"".concat(h,"-out-of-range")),style:K(K({},y),V&&!Ne?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:C,readOnly:$,onClear:k},fe.createElement(m3,Ge({},A,{autoSize:I,maxLength:c,onKeyDown:Ae,onChange:de,onFocus:ie,onBlur:We,onCompositionStart:ke,onCompositionEnd:ce,className:me(w==null?void 0:w.textarea),style:K(K({},E==null?void 0:E.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:h,onResize:Ve,ref:Q,readOnly:$})))});const v3=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"}},[`
|
|
396
|
-
&-allow-clear > ${t},
|
|
397
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
398
|
-
`]:{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}}}}}},b3=Fn(["Input","TextArea"],e=>{const t=rn(e,ii(e));return v3(t)},si,{resetFont:!1});var y3=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 x3=zr((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:p,styles:v,variant:h,showCount:g,onMouseDown:m,onResize:b}=e,y=y3(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:C,allowClear:w,autoComplete:E,className:S,style:k,classNames:O,styles:$}=lo("textArea"),I=d.useContext(Kn),N=i??I,{status:A,hasFeedback:F,feedbackIcon:j}=d.useContext(Ln),M=la(A,s),R=d.useRef(null);d.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=R.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:ue=>{var pe,be;jm((be=(pe=R.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||be===void 0?void 0:be.textArea,ue)},blur:()=>{var ue;return(ue=R.current)===null||ue===void 0?void 0:ue.blur()}}});const P=x("input",r),z=pr(P),[H,L,T]=xw(P,u),[_]=b3(P,z),{compactSize:D,compactItemClassnames:B}=Ro(P,C),V=Ir(ne=>{var ue;return(ue=a??D)!==null&&ue!==void 0?ue:ne}),[W,q]=ri("textArea",h,o),Q=Iw(l??w),[U,J]=d.useState(!1),[X,Y]=d.useState(!1),ae=ne=>{J(!0),m==null||m(ne);const ue=()=>{J(!1),document.removeEventListener("mouseup",ue)};document.addEventListener("mouseup",ue)},oe=ne=>{var ue,pe;if(b==null||b(ne),U&&typeof getComputedStyle=="function"){const be=(pe=(ue=R.current)===null||ue===void 0?void 0:ue.nativeElement)===null||pe===void 0?void 0:pe.querySelector("textarea");be&&getComputedStyle(be).resize==="both"&&Y(!0)}};return H(_(d.createElement(h3,Object.assign({autoComplete:E},y,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},$),v),disabled:N,allowClear:Q,className:me(T,z,f,u,B,S,X&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:me({[`${P}-sm`]:V==="small",[`${P}-lg`]:V==="large"},L,c==null?void 0:c.textarea,O.textarea,U&&`${P}-mouse-active`),variant:me({[`${P}-${W}`]:q},No(P,M)),affixWrapper:me(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:C==="rtl",[`${P}-affix-wrapper-sm`]:V==="small",[`${P}-affix-wrapper-lg`]:V==="large",[`${P}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:P,suffix:F&&d.createElement("span",{className:`${P}-textarea-suffix`},j),showCount:g,ref:R,onResize:oe,onMouseDown:ae}))))}),oa=Pc;oa.Group=UT;oa.Search=l3;oa.TextArea=x3;oa.Password=i3;oa.OTP=JT;let xr=null,qo=e=>e(),Zi=[],Ji={};function Wv(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ji,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const w3=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=nn(qt),a=Ji.prefixCls||o("message"),i=nn(xN),[s,l]=O1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),C3=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(Wv),o=()=>{r(Wv)};fe.useEffect(o,[]);const a=wO(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(w3,{ref:t,sync:o,messageConfig:n});return fe.createElement(Ao,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Ac=()=>{if(!xr){const e=document.createDocumentFragment(),t={fragment:e};xr=t,qo(()=>{F1()(fe.createElement(C3,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ac())})}}),e)});return}xr.instance&&(Zi.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{qo(()=>{const r=xr.instance.open(Object.assign(Object.assign({},Ji),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":qo(()=>{xr==null||xr.instance.destroy(e.key)});break;default:qo(()=>{var r;const o=(r=xr.instance)[t].apply(r,_e(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Zi=[])};function S3(e){Ji=Object.assign(Object.assign({},Ji),e),qo(()=>{var t;(t=xr==null?void 0:xr.sync)===null||t===void 0||t.call(xr)})}function E3(e){const t=Kp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Zi.push(o),()=>{r?qo(()=>{r()}):o.skipped=!0}});return Ac(),t}function $3(e,t){const n=Kp(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Zi.push(a),()=>{o?qo(()=>{o()}):a.skipped=!0}});return Ac(),n}const k3=e=>{Zi.push({type:"destroy",key:e}),Ac()},O3=["success","info","warning","error","loading"],I3={open:E3,destroy:k3,config:S3,useMessage:$I,_InternalPanelDoNotUseOrYouWillBeFired:vI},dl=I3;O3.forEach(e=>{dl[e]=(...t)=>$3(e,t)});var M3=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Vw=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,v=e.onChange,h=e.onKeyDown,g=Dt(e,M3),m=bn(!1,{value:i,defaultValue:s}),b=te(m,2),y=b[0],x=b[1];function C(k,O){var $=y;return l||($=k,x($),v==null||v($,O)),$}function w(k){k.which===ut.LEFT?C(!1,k):k.which===ut.RIGHT&&C(!0,k),h==null||h(k)}function E(k){var O=C(!y,k);p==null||p(O,k)}var S=me(o,a,(n={},G(n,"".concat(o,"-checked"),y),G(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ge({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:w,onClick:E}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Vw.displayName="Switch";const F3=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=xe(l(s).add(l(r).mul(2)).equal()),f=xe(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:xe(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${xe(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},N3=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}}}},j3=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${xe(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},P3=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=xe(s(i).add(s(r).mul(2)).equal()),u=xe(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},A3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:xe(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}}),Qy(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"}})}},R3=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Qt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},T3=Fn("Switch",e=>{const t=rn(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[A3(t),P3(t),j3(t),N3(t),F3(t)]},R3);var D3=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 _3=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:v}=e,h=D3(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=bn(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:b,direction:y,switch:x}=d.useContext(qt),C=d.useContext(Kn),w=(o??C)||a,E=b("switch",n),S=d.createElement("div",{className:`${E}-handle`},a&&d.createElement(fs,{className:`${E}-loading-icon`})),[k,O,$]=T3(E),I=Ir(r),N=me(x==null?void 0:x.className,{[`${E}-small`]:I==="small",[`${E}-loading`]:a,[`${E}-rtl`]:y==="rtl"},i,s,O,$),A=Object.assign(Object.assign({},x==null?void 0:x.style),l),F=(...j)=>{m(j[0]),v==null||v.apply(void 0,j)};return k(d.createElement(mc,{component:"Switch",disabled:w},d.createElement(Vw,Object.assign({},h,{checked:g,onChange:F,prefixCls:E,className:N,style:A,disabled:w,ref:t,loadingIcon:S}))))}),Ww=_3;Ww.__ANT_SWITCH=!0;const B3=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},yn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${xe(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:s,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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Tm=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return rn(e,{tagFontSize:o,tagLineHeight:xe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Dm=e=>({defaultBg:new Qt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),qw=Fn("Tag",e=>{const t=Tm(e);return B3(t)},Dm);var z3=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 H3=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:l,onClick:c}=e,u=z3(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:p}=d.useContext(qt),v=x=>{l==null||l(!a),c==null||c(x)},h=f("tag",n),[g,m,b]=qw(h),y=me(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},p==null?void 0:p.className,o,m,b);return g(d.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:y,onClick:v}),s,d.createElement("span",null,i)))}),L3=e=>cc(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),V3=lc(["Tag","preset"],e=>{const t=Tm(e);return L3(t)},Dm);function W3(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Vs=(e,t,n)=>{const r=W3(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"}}}},q3=lc(["Tag","status"],e=>{const t=Tm(e);return[Vs(t,"success","Success"),Vs(t,"processing","Info"),Vs(t,"error","Error"),Vs(t,"warning","Warning")]},Dm);var U3=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 Y3=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=U3(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:g}=d.useContext(qt),[m,b]=d.useState(!0),y=to(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const x=Sc(l),C=n6(l),w=x||C,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},g==null?void 0:g.style),a),S=v("tag",n),[k,O,$]=qw(S),I=me(S,g==null?void 0:g.className,{[`${S}-${l}`]:w,[`${S}-has-color`]:l&&!w,[`${S}-hidden`]:!m,[`${S}-rtl`]:h==="rtl",[`${S}-borderless`]:!u},r,o,O,$),N=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&b(!1)},[,A]=uN(Bh(e),Bh(g),{closable:!1,closeIconRender:P=>{const z=d.createElement("span",{className:`${S}-close-icon`,onClick:N},P);return x1(P,z,H=>({onClick:L=>{var T;(T=H==null?void 0:H.onClick)===null||T===void 0||T.call(H,L),N(L)},className:me(H==null?void 0:H.className,`${S}-close-icon`)}))}}),F=typeof p.onClick=="function"||i&&i.type==="a",j=s||null,M=j?d.createElement(d.Fragment,null,j,i&&d.createElement("span",null,i)):i,R=d.createElement("span",Object.assign({},y,{ref:t,className:I,style:E}),M,A,x&&d.createElement(V3,{key:"preset",prefixCls:S}),C&&d.createElement(q3,{key:"status",prefixCls:S}));return k(F?d.createElement(mc,{component:"Tag"},R):R)}),Uw=Y3;Uw.CheckableTag=H3;function X3(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?se.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?se.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?se.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?se.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/excel",size:18});case"pdf":return n.pdf?se.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/pdf",size:18});case"txt":return n.txt?se.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/txt",size:18});case"md":return n.md?se.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/document",size:18});case"json":return n.json?se.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/json",size:18});case"html":case"htm":return n.html?se.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):se.jsx(gn,{type:"rag/url",size:18});case"xml":default:return se.jsx(gn,{type:"rag/file",size:18})}}const G3=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",K3=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>se.jsxs("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[se.jsx("div",{className:"pt-1",children:n}),se.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[se.jsxs("div",{className:"flex items-center justify-between gap-1",children:[se.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),se.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:G3(t)})]}),se.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,se.jsx("span",{children:r})]})]}),p,c&&!u&&se.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:se.jsx(Bb,{className:"w-3.5 h-3.5"})})]});function Q3({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return mt(()=>{e.forEach((o,a)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),mt(()=>{e.length>0&&e.every(o=>o.status==="finished")&&cn({targets:".file-display-card",opacity:0,scale:.8,delay:cn.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),se.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,a)=>{var p,v;if(!o||!o.file)return null;const i=o.name||o.file.name,s=(p=o.file)==null?void 0:p.size;let{status:l}=o;l==="finished"&&(l="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:se.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:se.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:se.jsx(pE,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:se.jsx(fE,{className:"w-3 h-3"}),color:"text-red-500"}}[l||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},u=i.split(".").pop()||"",f=X3(u,r);return se.jsx(K3,{cardId:`file-card-${a}`,fileName:i,fileSize:s,icon:f,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:l!=="parsing"&&l!=="uploading",onRemoveWithAnim:h=>{cn({targets:`#${h}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(a)}})},themeColors:(v=r==null?void 0:r.theme)==null?void 0:v.colors},i+a)})})}function Z3({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:a}){var v,h,g,m,b,y,x,C,w,E,S,k,O,$;const i=((h=(v=o==null?void 0:o.theme)==null?void 0:v.colors)==null?void 0:h.primary)||"#00C26A",s=((m=(g=o==null?void 0:o.theme)==null?void 0:g.colors)==null?void 0:m.text)||"#343a40",l=((y=(b=o==null?void 0:o.theme)==null?void 0:b.colors)==null?void 0:y.background)||"#fff",c=((C=(x=o==null?void 0:o.theme)==null?void 0:x.colors)==null?void 0:C.border)||"#dee2e6",u=((E=(w=o==null?void 0:o.theme)==null?void 0:w.colors)==null?void 0:E.disabledBackground)||"#F5F5F5",f=((k=(S=o==null?void 0:o.theme)==null?void 0:S.colors)==null?void 0:k.disabledText)||"#808080",p=(($=(O=o==null?void 0:o.theme)==null?void 0:O.colors)==null?void 0:$.disabled)||"#808080";return se.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:a,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:a?"not-allowed":"pointer",minWidth:0,background:a?u:e?i:"transparent",color:a?f:e?l:s,borderColor:a?p:e?i:c},children:[n,se.jsx("span",{children:r})]})}function J3({value:e,onChange:t,options:n,styles:r,disabled:o,placeholder:a="\u8BF7\u9009\u62E9"}){var f,p,v,h,g,m,b,y,x,C;const i=((p=(f=r==null?void 0:r.theme)==null?void 0:f.colors)==null?void 0:p.text)||"#343a40",s=((h=(v=r==null?void 0:r.theme)==null?void 0:v.colors)==null?void 0:h.border)||"#dee2e6",l=((m=(g=r==null?void 0:r.theme)==null?void 0:g.colors)==null?void 0:m.disabledBackground)||"#F5F5F5",c=((y=(b=r==null?void 0:r.theme)==null?void 0:b.colors)==null?void 0:y.disabledText)||"#808080",u=((C=(x=r==null?void 0:r.theme)==null?void 0:x.colors)==null?void 0:C.disabled)||"#808080";return se.jsx("div",{style:{display:"inline-block"},children:se.jsx(ca,{value:e,onChange:t,disabled:o,placeholder:a,size:"small",style:{minWidth:120,fontSize:"12px !important",height:"28px",borderRadius:"14px",border:`1.5px solid ${o?u:s}`,backgroundColor:o?l:"white",color:o?c:i,fontWeight:"500",transition:"all 0.2s ease"},className:"yuanbao-select",styles:{popup:{root:{fontSize:"12px",borderRadius:"8px"}}},options:n})})}function eD({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:a,uploadedFiles:i,onRemoveFile:s,senderConfig:l={},recommandQuestions:c=[],fileUploadStatus:u=[]}={}){var B;const{badgeCounts:f}=KE(),p=Ke(null),v=l.switchs||[],[h,g]=ct(()=>{const V={};return v.forEach(W=>{var q,Q;W.type==="switch"?V[W.name]=W.defaultValue??!1:W.type==="select"&&(V[W.name]=W.defaultValue??((Q=(q=W.options)==null?void 0:q[0])==null?void 0:Q.value)??"")}),V});mt(()=>{t&&t("sender:configChange",{all:h})},[h]);const[m,b]=ct(e||"");mt(()=>{b(e||"")},[e]);const y=()=>{const V=p.current;if(V){V.style.height="auto";const W=144,q=V.scrollHeight;q<=W?(V.style.height=`${q}px`,V.style.overflowY="hidden"):(V.style.height=`${W}px`,V.style.overflowY="auto")}},x=V=>{b(V.target.value),t&&t("sender:change",V.target.value),y()},C=V=>{V.key==="Enter"&&!V.shiftKey&&(console.log("enter"),V.preventDefault(),t&&t("sender:send"))};mt(()=>{y()},[m]),mt(()=>{let V;try{V=typeof c=="string"?JSON.parse(c):c}catch{V=[]}},[c]);const w=en(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const V=JSON.parse(c);return Array.isArray(V)?V:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[E,S]=ct(!1);mt(()=>{if(!w||w.length===0){S(!1);return}S(!1),setTimeout(()=>{S(!0)},0)},[w]),mt(()=>{if(!E)return;const V=document.querySelectorAll(".recommand-question-btn");V.forEach(W=>{const q=W;q.style.visibility="visible",q.style.opacity="0",q.style.transform="translateY(20px)"}),cn.remove(V),cn({targets:V,opacity:[0,1],translateY:[20,0],delay:cn.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{V.forEach(W=>{const q=W;q.removeAttribute("style"),q.style.color=L})}})},[E,w]);const k=en(()=>u&&u.length>0?u:i||[],[u,i]),O=en(()=>m&&m.trim().length>0,[m]),$=en(()=>{const V=m&&m.trim().length>0,W=k&&k.length>0;return V||W},[m,k]),I=en(()=>{const V=$?[{icon:se.jsx(Bb,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],W=(l.actions||[]).map(q=>({...q,badgeCount:f[q.name]??q.badgeCount??0}));return[...V,...W]},[$,l.actions,f]),N=(B=n==null?void 0:n.theme)==null?void 0:B.colors,A=(N==null?void 0:N.primary)||"#007bff",F=(N==null?void 0:N.text)||"#343a40",j=(N==null?void 0:N.background)||"#ffffff",M=(N==null?void 0:N.border)||"#dee2e6",R=(N==null?void 0:N.background)||"#ffffff",P=(N==null?void 0:N.disabled)||"#808080",z=(N==null?void 0:N.disabledBackground)||"#F5F5F5",H=(N==null?void 0:N.error)||"#FF0000",L=(N==null?void 0:N.disabledText)||"#808080",T="rgba(255, 255, 255, 0.9)",_=(N==null?void 0:N.text)||"#000",D="dynamic-placeholder-style";return mt(()=>{const V=document.getElementById(D)||document.createElement("style");V.id=D,V.innerHTML=`
|
|
399
|
-
.dynamic-placeholder::placeholder {
|
|
400
|
-
color: ${P};
|
|
401
|
-
opacity: 1; /* Firefox */
|
|
402
|
-
}
|
|
403
|
-
.dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
404
|
-
color: ${P};
|
|
405
|
-
}
|
|
406
|
-
.dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
|
|
407
|
-
color: ${P};
|
|
408
|
-
}
|
|
409
|
-
.yuanbao-select .ant-select-selection-item {
|
|
410
|
-
font-size: 12px !important;
|
|
411
|
-
}
|
|
412
|
-
.yuanbao-select .ant-select-selection-placeholder {
|
|
413
|
-
font-size: 12px !important;
|
|
414
|
-
}
|
|
415
|
-
`,document.head.appendChild(V)},[P]),se.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[se.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),se.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),se.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[se.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:E&&w.map((V,W)=>se.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:V,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:T,color:L,border:"none"},onMouseEnter:q=>{q.currentTarget.style.color=_},onMouseOut:q=>{q.currentTarget.style.color=L},children:V},W))}),k.length>0&&se.jsx(Q3,{styles:n,uploadedFiles:k,onRemoveFile:s||(()=>{}),eventsEmit:t}),se.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:R,border:`1px solid ${M}`,padding:"0 12px 8px 12px"},children:[se.jsx("textarea",{ref:p,value:m,onChange:x,onKeyDown:C,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]
|
|
416
|
-
max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:F}}),se.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[I.filter(V=>V.enabled!==!1).map((V,W)=>se.jsx(Mx,{count:V.badgeCount,size:"small",style:{backgroundColor:A,color:j,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:se.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:F,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:V.tip||V.name,onClick:()=>{V.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${V.name}`)},children:V.icon})},V.name||W)),se.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:M}}),se.jsx("div",{className:`
|
|
417
|
-
relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
|
|
418
|
-
transition-all duration-200
|
|
419
|
-
${r==="processing"?"animate-pulse":""}
|
|
420
|
-
`,style:{cursor:r==="processing"||O?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${H}, ${(N==null?void 0:N.error)||"#d9534f"})`:O?`linear-gradient(to bottom right, ${A}, ${(N==null?void 0:N.primary)||"#0275d8"})`:z},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):O&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:se.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!O&&r!=="processing"?L:j},children:r==="processing"?se.jsxs(se.Fragment,{children:[se.jsx(gE,{className:"w-[18px] h-[18px]"}),se.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):se.jsxs(se.Fragment,{children:[se.jsx(bE,{size:12}),se.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),se.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[se.jsx("span",{className:"text-[10px]",style:{color:P}}),se.jsx("div",{className:"flex items-center gap-4",children:v.filter(V=>V.enabled!==!1).map(V=>V.type==="select"?se.jsxs("div",{className:"flex items-center gap-2",children:[se.jsxs("span",{className:"text-xs",style:{color:P},children:[V.label,":"]}),se.jsx(J3,{value:h[V.name],onChange:W=>{g(q=>({...q,[V.name]:W}))},options:V.options||[],styles:n,disabled:!V.enabled,placeholder:V.label})]},V.name):se.jsx(Z3,{styles:n,checked:h[V.name],disabled:!V.enabled,onChange:W=>{g(q=>({...q,[V.name]:W}))},icon:V.icon,children:V.label},V.name))})]})]})]})}function tD({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return se.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[se.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:se.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),se.jsx("div",{className:"flex-1",children:se.jsxs("div",{className:"flex-col",children:[se.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Un(t).format("YYYY-MM-DD HH:mm:ss")}),se.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:se.jsx("span",{className:"text-gray-700 break-words",children:e})}),se.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:se.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[se.jsx(vE,{className:"w-4 h-4"}),se.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function nD({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const a=l=>{r==null||r("action_copy:click",{content:e,event:l})},i=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},s=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return se.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[se.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:se.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),se.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:se.jsxs("div",{className:"flex flex-col w-full relative",children:[se.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Un(t).format("YYYY-MM-DD HH:mm:ss")}),se.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:se.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),se.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[se.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u590D\u5236",children:[se.jsx(hE,{className:"w-4 h-4"}),se.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),se.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[se.jsx(xE,{className:"w-4 h-4"}),se.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),se.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===0?"text-blue-700":""}`,onClick:s,title:"\u70B9\u8E29",children:[se.jsx(yE,{className:"w-4 h-4"}),se.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function rD({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:a,scrollOld:i}){const s=Ke(null);return se.jsxs("div",{style:{direction:i?"ltr":"rtl",transform:i?"":"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((l,c)=>se.jsx("div",{className:"mb-6",children:l.istype==="user"?n?se.jsx("div",{style:{direction:"ltr"},children:n(l,c)}):se.jsx("div",{style:{direction:"ltr"},children:se.jsx(tD,{...l,sessionContext:r,eventsEmit:a})}):t?se.jsx("div",{style:{direction:"ltr"},children:t(l,c)}):se.jsx("div",{style:{direction:"ltr"},children:se.jsx(nD,{...l,sessionContext:r,eventsEmit:a})})},l.istype==="user"?l.queryId:"relatedTo-"+l.queryId)),se.jsx("div",{ref:s})]})}var Uo=256,Yw=[],qv=256,Ws;for(;Uo--;)Yw[Uo]=(Uo+256).toString(16).substring(1);function oD(e){var t=0,n=e;if(!Ws||Uo+n>qv*2)for(Ws="",Uo=0;t<qv;t++)Ws+=Yw[Math.random()*256|0];return Ws.substring(Uo,Uo+++n)}var yf={exports:{}};/*!
|
|
421
|
-
* clipboard.js v2.0.11
|
|
422
|
-
* https://clipboardjs.com/
|
|
423
|
-
*
|
|
424
|
-
* Licensed MIT © Zeno Rocha
|
|
425
|
-
*/var aD=yf.exports,Uv;function iD(){return Uv||(Uv=1,(function(e,t){(function(n,r){e.exports=r()})(aD,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return L}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(T){var _=v()(T);return h("cut"),_},m=g;function b(T){var _=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(T,_){var D=b(T);_.container.appendChild(D);var B=v()(D);return h("copy"),D.remove(),B},x=function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof T=="string"?D=y(T,_):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?D=y(T.value,_):(D=v()(T),h("copy")),D},C=x;function w(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(_){return typeof _}:w=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},w(T)}var E=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=T.action,D=_===void 0?"copy":_,B=T.container,V=T.target,W=T.text;if(D!=="copy"&&D!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(V!==void 0)if(V&&w(V)==="object"&&V.nodeType===1){if(D==="copy"&&V.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(D==="cut"&&(V.hasAttribute("readonly")||V.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(W)return C(W,{container:B});if(V)return D==="cut"?m(V):C(V,{container:B})},S=E;function k(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(_){return typeof _}:k=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},k(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function $(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function I(T,_,D){return _&&$(T.prototype,_),D&&$(T,D),T}function N(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&A(T,_)}function A(T,_){return A=Object.setPrototypeOf||function(D,B){return D.__proto__=B,D},A(T,_)}function F(T){var _=R();return function(){var D=P(T),B;if(_){var V=P(this).constructor;B=Reflect.construct(D,arguments,V)}else B=D.apply(this,arguments);return j(this,B)}}function j(T,_){return _&&(k(_)==="object"||typeof _=="function")?_:M(T)}function M(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},P(T)}function z(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var H=(function(T){N(D,T);var _=F(D);function D(B,V){var W;return O(this,D),W=_.call(this),W.resolveOptions(V),W.listenClick(B),W}return I(D,[{key:"resolveOptions",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof B.action=="function"?B.action:this.defaultAction,this.target=typeof B.target=="function"?B.target:this.defaultTarget,this.text=typeof B.text=="function"?B.text:this.defaultText,this.container=k(B.container)==="object"?B.container:document.body}},{key:"listenClick",value:function(B){var V=this;this.listener=f()(B,"click",function(W){return V.onClick(W)})}},{key:"onClick",value:function(B){var V=B.delegateTarget||B.currentTarget,W=this.action(V)||"copy",q=S({action:W,container:this.container,target:this.target(V),text:this.text(V)});this.emit(q?"success":"error",{action:W,text:q,trigger:V,clearSelection:function(){V&&V.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(B){return z("action",B)}},{key:"defaultTarget",value:function(B){var V=z("target",B);if(V)return document.querySelector(V)}},{key:"defaultText",value:function(B){return z("text",B)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(B,V)}},{key:"cut",value:function(B){return m(B)}},{key:"isSupported",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],V=typeof B=="string"?[B]:B,W=!!document.queryCommandSupported;return V.forEach(function(q){W=W&&!!document.queryCommandSupported(q)}),W}}]),D})(c()),L=H}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(yf)),yf.exports}var sD=iD();const lD=so(sD),cD=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new lD(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{dl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{dl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),dl.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function ho(e){return se.jsxs("span",{className:"flex items-center gap-1",children:[se.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&se.jsx(Ec,{title:e.description,className:" cursor-help",children:se.jsx(mE,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&se.jsx(Uw,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function uD(e=[],t,n={}){const[r,o]=fe.useState(()=>{const c={};return e.forEach(u=>{u.type==="switch"&&(c[u.name]=n[u.name]??u.defaultValue??!1)}),c}),a=fe.useRef(),i=(c,u,f)=>{o(p=>({...p,[c]:u})),a.current&&f&&(u||f.forEach(p=>{a.current.setFieldsValue({[p]:void 0})}))},s=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(u=>s.add(u))});const l=e.map(c=>{var u,f,p,v,h,g;return s.has(c.name)?null:c.type==="divider"?se.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:se.jsx(oa,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:se.jsx(ca,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:se.jsx(gf,{addonAfter:c.unit?se.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(u=c.range)==null?void 0:u.min,max:(f=c.range)==null?void 0:f.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?se.jsxs("div",{className:"mb-6",children:[se.jsxs("div",{className:"flex items-center justify-between mb-3",children:[se.jsx("div",{className:"flex items-center text-sm",children:ho(c)}),se.jsx(On.Item,{name:c.name,noStyle:!0,children:se.jsx(gf,{min:(p=c.range)==null?void 0:p.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&se.jsx("span",{className:"ml-2",children:c.unit})]}),se.jsx(On.Item,{name:c.name,noStyle:!0,children:se.jsx(PR,{min:(h=c.range)==null?void 0:h.min,max:(g=c.range)==null?void 0:g.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?se.jsx(On.Item,{label:null,colon:!1,style:{marginBottom:16},children:se.jsxs(Ew,{align:"middle",justify:"space-between",children:[se.jsx(zl,{children:ho(c)}),se.jsx(zl,{children:se.jsx(On.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:se.jsx(Ww,{disabled:c.disabled,checked:r[c.name],onChange:m=>i(c.name,m,c.controlledItems)})})})]})},c.name):c.type==="textarea"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:se.jsx(oa.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:se.jsx(li,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?se.jsx(On.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:se.jsx(Fc.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return fe.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(a)},[t]),l}function dD({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=uD(e,r,t),[a]=On.useForm();return se.jsx(On,{form:a,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,s)=>n==null?void 0:n(s),requiredMark:!1,style:{padding:16},children:o})}function fD(){return se.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:se.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function pD(){return se.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:se.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function mD(){return se.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:se.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function gD(){return se.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:se.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function hD(){return se.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[se.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),se.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function vD(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function bD(e){return{...e,size:td[e.size]||e.size,radius:Db[e.radius]||e.radius,padding:aE[e.padding]||e.padding,margin:iE[e.margin]||e.margin,shadow:sE[e.shadow]||e.shadow,lineHeight:lE[e.lineHeight]||e.lineHeight,sidebar:oE[e.sidebar]||e.sidebar}}function yD({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:a=[],styles:i,senderConfig:s,fileUploadStatus:l,onSenderConfigChange:c,activeSessionId:u,scrollOld:f}){const p=Ke(null),[v,h]=ct(""),[g,m]=ct([]),[b,y]=ct(!1),x=(t&&t.length>0?t:[]).filter(X=>X.enabled!==!1),[C,w]=ct(()=>{var X;return(X=x[0])==null?void 0:X.key}),E=Ke({}),[S]=ct(0),k=(e==null?void 0:e.messages)||[],[O,$]=ct({});mt(()=>{n==null||n("fileManager:change",{uploadedFiles:g,removeFile:(X,Y,ae)=>{m(oe=>oe.filter((ne,ue)=>ue!==Y))},setUploadedFiles:X=>{m(Y=>typeof X=="function"?X(Y):[...Y,...X])}})},[g]);const I=()=>{h(""),m([])},N=(X,Y)=>{if(n)switch(console.log(X,Y,"core\u5185\u90E8\u8F6C\u53D1"),X){case"action_copy:click":Y&&cD(Y.content,Y.event);break;case"sender:configChange":$(Y.all),c==null||c(Y),n(X,Y);break;case"conversation:create":const ae=oD(3);n==null||n("conversation:create",{id:ae});break;case"sender:change":Y&&h(Y);break;case"sender:clear":I();break;case"sender:send_recommandQuestion":{const oe={};x.forEach(ne=>{ne.type==="form"&&(oe[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:Y.content,files:g,status:r,currentData:e,senderConfig:O,formData:oe,clearFn:I}),setTimeout(()=>{p.current&&p.current.scrollTo&&p.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const oe={};x.forEach(ne=>{ne.type==="form"&&(oe[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:v,files:g,status:r,currentData:e,senderConfig:O,formData:oe,clearFn:I});break}default:n(X,Y)}},A=X=>{X.preventDefault(),y(!1);const Y=Array.from(X.dataTransfer.files||[]);if(Y.length>0){const ae=Y.filter(oe=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(oe.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(oe.name));ae.length>0&&m(oe=>[...oe,...ae.map(ne=>({file:ne,type:M(ne)}))])}},F=X=>{X.preventDefault(),b||y(!0)},j=X=>{X.preventDefault(),y(!1)};function M(X){return X.type.startsWith("image")?"image":"document"}const R=X=>{$(X.all),c==null||c(X)},P=()=>{p.current.addEventListener("wheel",X=>{X.preventDefault();const{deltaY:Y}=X;p.current.scrollTop-=Y})},z=Ke(null);mt(()=>{if(!f&&!z.current)return z.current=setInterval(()=>{var X;(X=p==null?void 0:p.current)!=null&&X.scrollTo&&(P(),clearInterval(z.current),z.current=null)},100),()=>{var X;clearInterval(z.current),z.current=null,(X=p==null?void 0:p.current)!=null&&X.removeEventListener&&p.current.removeEventListener("wheel",P)}},[u]),mt(()=>{var X;!f||!((X=p==null?void 0:p.current)!=null&&X.scrollTo)||!p.current.scrollHeight||p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[k]);const H=vD(rE,i==null?void 0:i.theme),L=bD(H.space),T={...H,space:L,colors:{...H.colors,info:H.colors.info||"#0000FF",background:H.colors.background||"#ffffff",text:H.colors.text||"#343a40",border:H.colors.border||"#dee2e6",disabled:H.colors.disabled||"#808080",disabledBackground:H.colors.disabledBackground||"#F5F5F5",disabledText:H.colors.disabledText||"#808080"}},_={...i,theme:T},D=T.space.radius,B=T.colors.appBackground,V="",W=T.space.shadow,q=x.length===0?0:T.space.sidebar,Q=T.space.size,U=T.space.padding,J=T.colors.text;return se.jsxs(se.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?se.jsx(o.AppLoading,{}):se.jsx(fD,{})),r.app==="error"&&(o!=null&&o.AppError?se.jsx(o.AppError,{}):se.jsx(mD,{})),r.app==="ready"&&se.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[x.length===0?null:se.jsxs("div",{style:{width:q,borderRadius:D,boxShadow:W,background:V,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&se.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${H.colors.border}`,padding:U,fontSize:td.lg,fontWeight:700,color:H.colors.primary,background:V,borderTopLeftRadius:D,borderTopRightRadius:D},children:se.jsx(o.LogoBox,{})}),se.jsxs("div",{style:{width:q,borderRadius:D,background:V,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:x.length>1?55:0,borderBottomRightRadius:D},children:[(()=>{const X=x.find(Y=>Y.key===C);if(!X)return null;if(X.type==="custom")return X.component;if(X.type==="form"){const Y=E.current[X.key]||X.initialValues||{};return se.jsx(dD,{config:X.formConfig,initialValues:Y,onChange:ae=>{var oe;E.current[X.key]=ae,(oe=X.onChange)==null||oe.call(X,ae),typeof n=="function"&&n("form:change",{...E.current})},styles:i},X.key+"_"+S)}return null})(),x.length>1&&se.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${H.colors.border}`,borderTop:`1px solid ${H.colors.border}`,borderBottomRightRadius:D,background:V},children:x.map(X=>{const Y=X.icon,ae=C===X.key;return se.jsx("button",{onClick:()=>w(X.key),style:{padding:8,borderRadius:Db.md,background:ae?H.colors.primary+"22":"transparent",color:ae?H.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:ae?600:400,transition:"all 0.2s"},title:X.label,children:Y},X.key)})})]})]}),se.jsxs("div",{className:"relative ",style:{width:q===0?"100%":`calc(100% - ${q})`,borderRadius:D,background:B,fontSize:Q,color:J,position:"relative",height:"100%",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},onDrop:A,onDragOver:F,onDragLeave:j,children:[b&&se.jsx("div",{style:{position:"absolute",inset:0,background:H.colors.primary+"14",border:`4px dashed ${H.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:D},children:se.jsx("div",{style:{color:H.colors.primary,fontSize:td.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),se.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},children:se.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?o!=null&&o.WelcomeComponent?se.jsx(o.WelcomeComponent,{}):se.jsx(hD,{}):r.display==="loading"?o!=null&&o.DisplayLoading?se.jsx(o.DisplayLoading,{}):se.jsx(pD,{}):r.display==="error"?o!=null&&o.DisplayError?se.jsx(o.DisplayError,{}):se.jsx(gD,{}):se.jsxs("div",{ref:p,className:"relative px-8",style:{direction:f?"ltr":"rtl",transform:f?"":"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[se.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),se.jsx("div",{style:{width:"100%",maxWidth:1200},children:se.jsx(rD,{status:r.display,messages:k,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox,scrollOld:f})})]})})}),se.jsx(eD,{value:v,status:r.sender,styles:_,recommandQuestions:a,eventsEmit:(X,Y)=>{N(X,Y)},uploadedFiles:g,fileUploadStatus:l,onUpload:X=>{X&&X.length>0&&m(Y=>[...Y,...Array.from(X).map(ae=>({file:ae,type:M(ae)}))])},onRemoveFile:X=>{m(Y=>Y.filter((ae,oe)=>oe!==X))},senderConfig:s,onSenderConfigChange:R})]})]})]})}const Yv={actions:[{icon:re(gn,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(gn,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(gn,{type:"rag/think",size:12})}]};function Vn(){return Vn=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},Vn.apply(null,arguments)}function zt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ua(e,t)}function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ua(e,t)}var Xv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function wD(e,t){return!!(e===t||Xv(e)&&Xv(t))}function CD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!wD(e[n],t[n]))return!1;return!0}function Pu(e,t){t===void 0&&(t=CD);var n,r=[],o,a=!1;function i(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(o=e.apply(this,s),a=!0,n=this,r=s),o}return i}function SD(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}var ED=typeof performance=="object"&&typeof performance.now=="function",Gv=ED?function(){return performance.now()}:function(){return Date.now()};function Kv(e){cancelAnimationFrame(e.id)}function $D(e,t){var n=Gv();function r(){Gv()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Au=-1;function Qv(e){if(e===void 0&&(e=!1),Au===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Au=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Au}var Ca=null;function Zv(e){if(e===void 0&&(e=!1),Ca===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ca="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ca="negative":Ca="positive-ascending"),document.body.removeChild(t),Ca}return Ca}var kD=150,OD=function(t,n){return t};function ID(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=(function(f){xD(p,f);function p(h){var g;return g=f.call(this,h)||this,g._instanceProps=l(g.props,zt(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:zt(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Pu(function(m,b,y,x){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:b,visibleStartIndex:y,visibleStopIndex:x})}),g._callOnScroll=void 0,g._callOnScroll=Pu(function(m,b,y){return g.props.onScroll({scrollDirection:m,scrollOffset:b,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var b=g.props,y=b.direction,x=b.itemSize,C=b.layout,w=g._getItemStyleCache(c&&x,c&&C,c&&y),E;if(w.hasOwnProperty(m))E=w[m];else{var S=n(g.props,m,g._instanceProps),k=o(g.props,m,g._instanceProps),O=y==="horizontal"||C==="horizontal",$=y==="rtl",I=O?S:0;w[m]=E={position:"absolute",left:$?void 0:I,right:$?I:void 0,top:O?0:S,height:O?"100%":k,width:O?k:"100%"}}return E},g._getItemStyleCache=void 0,g._getItemStyleCache=Pu(function(m,b,y){return{}}),g._onScrollHorizontal=function(m){var b=m.currentTarget,y=b.clientWidth,x=b.scrollLeft,C=b.scrollWidth;g.setState(function(w){if(w.scrollOffset===x)return null;var E=g.props.direction,S=x;if(E==="rtl")switch(Zv()){case"negative":S=-x;break;case"positive-descending":S=C-y-x;break}return S=Math.max(0,Math.min(S,C-y)),{isScrolling:!0,scrollDirection:w.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(m){var b=m.currentTarget,y=b.clientHeight,x=b.scrollHeight,C=b.scrollTop;g.setState(function(w){if(w.scrollOffset===C)return null;var E=Math.max(0,Math.min(C,x-y));return{isScrolling:!0,scrollDirection:w.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(m){var b=g.props.outerRef;g._outerRef=m,typeof b=="function"?b(m):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=m)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Kv(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=$D(g._resetIsScrolling,kD)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}p.getDerivedStateFromProps=function(g,m){return MD(g,m),u(g),null};var v=p.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(m){return m.scrollOffset===g?null:{scrollDirection:m.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,m){m===void 0&&(m="auto");var b=this.props,y=b.itemCount,x=b.layout,C=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var w=0;if(this._outerRef){var E=this._outerRef;x==="vertical"?w=E.scrollWidth>E.clientWidth?Qv():0:w=E.scrollHeight>E.clientHeight?Qv():0}this.scrollTo(a(this.props,g,m,C,this._instanceProps,w))},v.componentDidMount=function(){var g=this.props,m=g.direction,b=g.initialScrollOffset,y=g.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;m==="horizontal"||y==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,m=g.direction,b=g.layout,y=this.state,x=y.scrollOffset,C=y.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var w=this._outerRef;if(m==="horizontal"||b==="horizontal")if(m==="rtl")switch(Zv()){case"negative":w.scrollLeft=-x;break;case"positive-ascending":w.scrollLeft=x;break;default:var E=w.clientWidth,S=w.scrollWidth;w.scrollLeft=S-E-x;break}else w.scrollLeft=x;else w.scrollTop=x}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kv(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,m=g.children,b=g.className,y=g.direction,x=g.height,C=g.innerRef,w=g.innerElementType,E=g.innerTagName,S=g.itemCount,k=g.itemData,O=g.itemKey,$=O===void 0?OD:O,I=g.layout,N=g.outerElementType,A=g.outerTagName,F=g.style,j=g.useIsScrolling,M=g.width,R=this.state.isScrolling,P=y==="horizontal"||I==="horizontal",z=P?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),L=H[0],T=H[1],_=[];if(S>0)for(var D=L;D<=T;D++)_.push(Aa(m,{data:k,key:$(D,k),index:D,isScrolling:j?R:void 0,style:this._getItemStyle(D)}));var B=r(this.props,this._instanceProps);return Aa(N||A||"div",{className:b,onScroll:z,ref:this._outerRefSetter,style:Vn({position:"relative",height:x,width:M,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},F)},Aa(w||E||"div",{children:_,ref:C,style:{height:P?"100%":B,pointerEvents:R?"none":void 0,width:P?B:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),b=m[0],y=m[1],x=m[2],C=m[3];this._callOnItemsRendered(b,y,x,C)}}if(typeof this.props.onScroll=="function"){var w=this.state,E=w.scrollDirection,S=w.scrollOffset,k=w.scrollUpdateWasRequested;this._callOnScroll(E,S,k)}},v._getRangeToRender=function(){var g=this.props,m=g.itemCount,b=g.overscanCount,y=this.state,x=y.isScrolling,C=y.scrollDirection,w=y.scrollOffset;if(m===0)return[0,0,0,0];var E=i(this.props,w,this._instanceProps),S=s(this.props,E,w,this._instanceProps),k=!x||C==="backward"?Math.max(1,b):1,O=!x||C==="forward"?Math.max(1,b):1;return[Math.max(0,E-k),Math.max(0,Math.min(m-1,S+O)),E,S]},p})(TS),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MD=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},FD=50,Fa=function(t,n,r){var o=t,a=o.itemSize,i=r.itemMetadataMap,s=r.lastMeasuredIndex;if(n>s){var l=0;if(s>=0){var c=i[s];l=c.offset+c.size}for(var u=s+1;u<=n;u++){var f=a(u);i[u]={offset:l,size:f},l+=f}r.lastMeasuredIndex=n}return i[n]},ND=function(t,n,r){var o=n.itemMetadataMap,a=n.lastMeasuredIndex,i=a>0?o[a].offset:0;return i>=r?Xw(t,n,a,0,r):jD(t,n,Math.max(0,a),r)},Xw=function(t,n,r,o,a){for(;o<=r;){var i=o+Math.floor((r-o)/2),s=Fa(t,i,n).offset;if(s===a)return i;s<a?o=i+1:s>a&&(r=i-1)}return o>0?o-1:0},jD=function(t,n,r,o){for(var a=t.itemCount,i=1;r<a&&Fa(t,r,n).offset<o;)r+=i,i*=2;return Xw(t,n,Math.min(r,a-1),Math.floor(r/2),o)},Jv=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,a=n.estimatedItemSize,i=n.lastMeasuredIndex,s=0;if(i>=r&&(i=r-1),i>=0){var l=o[i];s=l.offset+l.size}var c=r-i-1,u=c*a;return s+u},PD=ID({getItemOffset:function(t,n,r){return Fa(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Jv,getOffsetForIndexAndAlignment:function(t,n,r,o,a,i){var s=t.direction,l=t.height,c=t.layout,u=t.width,f=s==="horizontal"||c==="horizontal",p=f?u:l,v=Fa(t,n,a),h=Jv(t,a),g=Math.max(0,Math.min(h-p,v.offset)),m=Math.max(0,v.offset-p+v.size+i);switch(r==="smart"&&(o>=m-p&&o<=g+p?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return o>=m&&o<=g?o:o<m?m:g}},getStartIndexForOffset:function(t,n,r){return ND(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var a=t.direction,i=t.height,s=t.itemCount,l=t.layout,c=t.width,u=a==="horizontal"||l==="horizontal",f=u?c:i,p=Fa(t,n,o),v=r+f,h=p.offset+p.size,g=n;g<s-1&&h<v;)g++,h+=Fa(t,g,o).size;return g},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:o||FD,lastMeasuredIndex:-1};return n.resetAfterIndex=function(i,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,i-1),n._getItemStyleCache(-1),s&&n.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),fl={exports:{}},AD=fl.exports,e0;function RD(){return e0||(e0=1,(function(e,t){(function(n,r){e.exports=r()})(AD,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var j=["th","st","nd","rd"],M=F%100;return"["+F+(j[(M-20)%10]||j[M]||j[0])+"]"}},x=function(F,j,M){var R=String(F);return!R||R.length>=j?F:""+Array(j+1-R.length).join(M)+F},C={s:x,z:function(F){var j=-F.utcOffset(),M=Math.abs(j),R=Math.floor(M/60),P=M%60;return(j<=0?"+":"-")+x(R,2,"0")+":"+x(P,2,"0")},m:function F(j,M){if(j.date()<M.date())return-F(M,j);var R=12*(M.year()-j.year())+(M.month()-j.month()),P=j.clone().add(R,f),z=M-P<0,H=j.clone().add(R+(z?-1:1),f);return+(-(R+(M-P)/(z?P-H:H-P))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},w="en",E={};E[w]=y;var S="$isDayjsObject",k=function(F){return F instanceof N||!(!F||!F[S])},O=function F(j,M,R){var P;if(!j)return w;if(typeof j=="string"){var z=j.toLowerCase();E[z]&&(P=z),M&&(E[z]=M,P=z);var H=j.split("-");if(!P&&H.length>1)return F(H[0])}else{var L=j.name;E[L]=j,P=L}return!R&&P&&(w=P),P||!R&&w},$=function(F,j){if(k(F))return F.clone();var M=typeof j=="object"?j:{};return M.date=F,M.args=arguments,new N(M)},I=C;I.l=O,I.i=k,I.w=function(F,j){return $(F,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var N=(function(){function F(M){this.$L=O(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[S]=!0}var j=F.prototype;return j.parse=function(M){this.$d=(function(R){var P=R.date,z=R.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var H=P.match(m);if(H){var L=H[2]-1||0,T=(H[7]||"0").substring(0,3);return z?new Date(Date.UTC(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)):new Date(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)}}return new Date(P)})(M),this.init()},j.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},j.$utils=function(){return I},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(M,R){var P=$(M);return this.startOf(R)<=P&&P<=this.endOf(R)},j.isAfter=function(M,R){return $(M)<this.startOf(R)},j.isBefore=function(M,R){return this.endOf(R)<$(M)},j.$g=function(M,R,P){return I.u(M)?this[R]:this.set(P,M)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(M,R){var P=this,z=!!I.u(R)||R,H=I.p(M),L=function(Q,U){var J=I.w(P.$u?Date.UTC(P.$y,U,Q):new Date(P.$y,U,Q),P);return z?J:J.endOf(c)},T=function(Q,U){return I.w(P.toDate()[Q].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),P)},_=this.$W,D=this.$M,B=this.$D,V="set"+(this.$u?"UTC":"");switch(H){case v:return z?L(1,0):L(31,11);case f:return z?L(1,D):L(0,D+1);case u:var W=this.$locale().weekStart||0,q=(_<W?_+7:_)-W;return L(z?B-q:B+(6-q),D);case c:case h:return T(V+"Hours",0);case l:return T(V+"Minutes",1);case s:return T(V+"Seconds",2);case i:return T(V+"Milliseconds",3);default:return this.clone()}},j.endOf=function(M){return this.startOf(M,!1)},j.$set=function(M,R){var P,z=I.p(M),H="set"+(this.$u?"UTC":""),L=(P={},P[c]=H+"Date",P[h]=H+"Date",P[f]=H+"Month",P[v]=H+"FullYear",P[l]=H+"Hours",P[s]=H+"Minutes",P[i]=H+"Seconds",P[a]=H+"Milliseconds",P)[z],T=z===c?this.$D+(R-this.$W):R;if(z===f||z===v){var _=this.clone().set(h,1);_.$d[L](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else L&&this.$d[L](T);return this.init(),this},j.set=function(M,R){return this.clone().$set(M,R)},j.get=function(M){return this[I.p(M)]()},j.add=function(M,R){var P,z=this;M=Number(M);var H=I.p(R),L=function(D){var B=$(z);return I.w(B.date(B.date()+Math.round(D*M)),z)};if(H===f)return this.set(f,this.$M+M);if(H===v)return this.set(v,this.$y+M);if(H===c)return L(1);if(H===u)return L(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[H]||1,_=this.$d.getTime()+M*T;return I.w(_,this)},j.subtract=function(M,R){return this.add(-1*M,R)},j.format=function(M){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var z=M||"YYYY-MM-DDTHH:mm:ssZ",H=I.z(this),L=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,V=P.meridiem,W=function(U,J,X,Y){return U&&(U[J]||U(R,z))||X[J].slice(0,Y)},q=function(U){return I.s(L%12||12,U,"0")},Q=V||function(U,J,X){var Y=U<12?"AM":"PM";return X?Y.toLowerCase():Y};return z.replace(b,(function(U,J){return J||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return I.s(R.$y,4,"0");case"M":return _+1;case"MM":return I.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return R.$D;case"DD":return I.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(P.weekdaysMin,R.$W,D,2);case"ddd":return W(P.weekdaysShort,R.$W,D,3);case"dddd":return D[R.$W];case"H":return String(L);case"HH":return I.s(L,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return Q(L,T,!0);case"A":return Q(L,T,!1);case"m":return String(T);case"mm":return I.s(T,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.s(R.$ms,3,"0");case"Z":return H}return null})(U)||H.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(M,R,P){var z,H=this,L=I.p(R),T=$(M),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return I.m(H,T)};switch(L){case v:z=B()/12;break;case f:z=B();break;case p:z=B()/3;break;case u:z=(D-_)/6048e5;break;case c:z=(D-_)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case i:z=D/n;break;default:z=D}return P?z:I.a(z)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return E[this.$L]},j.locale=function(M,R){if(!M)return this.$L;var P=this.clone(),z=O(M,R,!0);return z&&(P.$L=z),P},j.clone=function(){return I.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},F})(),A=N.prototype;return $.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(F){A[F[1]]=function(j){return this.$g(j,F[0],F[1])}})),$.extend=function(F,j){return F.$i||(F(j,N,$),F.$i=!0),$},$.locale=O,$.isDayjs=k,$.unix=function(F){return $(1e3*F)},$.en=E[w],$.Ls=E,$.p={},$}))})(fl)),fl.exports}var TD=RD();const t0=Sp(TD);function DD({isActive:e,isNew:t,isDisabled:n,data:r,eventsEmit:o,styles:a={},assistantList:i=[]}){const[s,l]=ct(!1),c=(a==null?void 0:a.colors)||{},u=en(()=>{const m=r==null?void 0:r.configId;if(!m||!i||i.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const b=i.find(y=>String(y==null?void 0:y.id)===String(m));if(!b)return"\u672A\u9009\u62E9\u52A9\u624B";if(b!=null&&b.name)return b.name;try{const y=typeof b.configJson=="string"?JSON.parse(b.configJson):b.configJson;return(y==null?void 0:y.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[i,r==null?void 0:r.configId]),f=[{key:"rename",icon:re(ZS,{size:12}),label:"\u91CD\u547D\u540D",onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:rename_icon_clicked",r)}},{key:"delete",icon:re(eE,{size:12}),label:"\u5220\u9664",danger:!0,onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:delete_icon_clicked",r)}}],p=e?c.activeItemBg||"#f0f4ff":s?c.itemHoverBg||"#f5f7fa":c.itemBg||"transparent",v=e?c.activeItemText||c.primary||"#0122ff":c.itemText||"#333",h=e?c.activeItemBorder||c.primary||"#0122ff":"transparent",g=m=>{const b=t0(),y=t0(m);return b.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return rt("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!n&&o&&o("conversation:item_click",r),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{minHeight:48,background:p,color:v,border:`1px solid ${h}`,...a.item,opacity:n?.5:1},children:[rt("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[re("span",{className:"truncate text-sm max-w-[160px] font-medium",title:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:v,fontSize:"14px",lineHeight:"1.4"},children:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),rt("div",{className:"flex items-center justify-between gap-2",children:[re("span",{className:"text-xs truncate flex-1",style:{color:e?c.activeItemTextSecondary||"#666":c.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:u}),r.gmtModified&&re("span",{className:"text-xs flex-shrink-0",style:{color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:g(r.gmtModified)})]})]}),!n&&s&&!t&&re("div",{className:"absolute top-2 right-3",children:re(HS,{menu:{items:f},trigger:["click"],placement:"bottomRight",children:re(XS,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999"},onClick:m=>m.stopPropagation()})})})]})}function _D(e,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const n=new Date,r={other:[]};return e.forEach(o=>{const a=new Date(o.gmtModified),i=Math.floor((+n-+a)/(1e3*60*60*24));let s=!1;for(const l of t)if(i<=l.dayPeriod){r[l.label]||(r[l.label]=[]),r[l.label].push(o),s=!0;break}s||r.other.push(o)}),r}/*! @license Rematrix v0.2.2
|
|
426
|
-
|
|
427
|
-
Copyright 2018 Fisssion LLC.
|
|
428
|
-
|
|
429
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
430
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
431
|
-
in the Software without restriction, including without limitation the rights
|
|
432
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
433
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
434
|
-
furnished to do so, subject to the following conditions:
|
|
435
|
-
|
|
436
|
-
The above copyright notice and this permission notice shall be included in
|
|
437
|
-
all copies or substantial portions of the Software.
|
|
438
|
-
|
|
439
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
440
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
441
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
442
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
443
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
444
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
445
|
-
THE SOFTWARE.
|
|
446
|
-
*/function xf(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=ci();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function ci(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function BD(e,t){for(var n=xf(e),r=xf(t),o=[],a=0;a<4;a++)for(var i=[n[a],n[a+4],n[a+8],n[a+12]],s=0;s<4;s++){var l=s*4,c=[r[l],r[l+1],r[l+2],r[l+3]],u=i[0]*c[0]+i[1]*c[1]+i[2]*c[2]+i[3]*c[3];o[a+l]=u}return o}function zD(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return xf(n)}}return ci()}function HD(e){var t=ci();return t[0]=e,t}function LD(e){var t=ci();return t[5]=e,t}function VD(e){var t=ci();return t[12]=e,t}function WD(e){var t=ci();return t[13]=e,t}var pl=function(e){return typeof e=="number"},Gw=function(e){return typeof e=="function"},Kw=function(e){return Object.prototype.toString.call(e)==="[object Object]"},_a=function(e){return Array.prototype.slice.apply(e)},Qw=function(e){var t=e.reduce(function(n,r){return n[r]=(n[r]||0)+1,n},{});return Object.keys(t).filter(function(n){return t[n]>1})};function wo(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var wf,Cf=function(e,t,n){return e+(t-e)*n},Zw={__proto__:null,isNumber:pl,isFunction:Gw,isObject:Kw,toArray:_a,getDuplicateValsAsStrings:Qw,assign:wo,tweenProp:Cf},_m="data-flip-id",Bm="data-inverse-flip-id",zm="data-portal-key",qD="data-exit-container",qs={__proto__:null,DATA_FLIP_ID:_m,DATA_INVERSE_FLIP_ID:Bm,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:zm},Sf={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},n0=function(e){return Kw(e)?e:Object.keys(Sf).indexOf(e)>-1?Sf[e]:{}};typeof window<"u"&&(wf=window.requestAnimationFrame);var UD=wf=wf||function(e){window.setTimeout(e,1e3/60)},YD=Date.now(),XD=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-YD};function Jw(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var GD=(function(){function e(){}return e.prototype.run=function(){var t=this;UD(function(){t.springSystem.loop(XD())})},e})(),Ru=function(){this.position=0,this.velocity=0},KD=0,vr=.001,QD=(function(){function e(n){this._id="s"+KD++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Ru,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Ru,this._restSpeedThreshold=.001,this._tempState=new Ru,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r].onSpringEndStateChange;a&&a(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r];a.onSpringUpdate&&a.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var a=r;r>.064&&(a=.064),this._timeAccumulator+=a;for(var i,s,l,c,u,f,p=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,g=this._currentState.velocity,m=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=vr;)this._timeAccumulator-=vr,this._timeAccumulator<vr&&(this._previousState.position=h,this._previousState.velocity=g),s=p*(this._endValue-m)-v*g,c=p*(this._endValue-(m=h+(i=g)*vr*.5))-v*(b=g+s*vr*.5),f=p*(this._endValue-(m=h+(l=b)*vr*.5))-v*(b=g+c*vr*.5),m=h+(u=b)*vr,h+=1/6*(i+2*(l+u)+(b=g+f*vr))*vr,g+=1/6*(s+2*(c+f)+(p*(this._endValue-m)-v*b))*vr;this._tempState.position=m,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=g,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/vr),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var y=!1;this._wasAtRest&&(this._wasAtRest=!1,y=!0);var x=!1;o&&(this._wasAtRest=!0,x=!0),this.notifyPositionUpdated(y,x)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(a){n&&a.onSpringActivate&&!o._onActivateCalled&&(a.onSpringActivate(o),o._onActivateCalled=!0),a.onSpringUpdate&&a.onSpringUpdate(o),r&&a.onSpringAtRest&&a.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var a;n[o]=(a=n[o],function(){a.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return Jw(this.listeners,n),this},e})(),eC=(function(){function e(n){this.looper=n||new GD,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new QD(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){Jw(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(i){i.systemShouldAdvance()?i.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(i))});this._idleSpringIndices.length>0;){var a=this._idleSpringIndices.pop();a>=0&&this._activeSprings.splice(a,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var a=0,i=this.listeners.length;for(a=0;a<i;a++)(r=this.listeners[a]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),a=0;a<i;a++)(r=this.listeners[a]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})(),ZD=new eC,tC=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,a=e.onSpringActivate,i=ZD.createSpring(t.stiffness,t.damping);i.setOvershootClampingEnabled(!!n);var s={onSpringActivate:a,onSpringAtRest:function(){i.destroy(),o()},onSpringUpdate:r({spring:i,onAnimationEnd:o})};return i.addListener(s),i},r0=function(e){var t=tC(e);return t.setEndValue(1),t},o0=function(e,t){if(t===void 0&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r=typeof(n=t.speed)!="number"?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),a=e.map(function(i,s){var l=i.getOnUpdateFunc;return i.getOnUpdateFunc=function(c){var u=l(c);return function(f){var p=f.getCurrentValue();(p=p<.01?0:p>.99?1:p)>=o&&a[s+1]&&a[s+1](Math.max(Math.min(p*r,1),0)),u(f)}},i}).map(function(i){var s=tC(i);if(s)return s.setEndValue.bind(s)}).filter(Boolean);a[0]&&a[0](1)}},a0=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},i0=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function s0(e){return JSON.parse(e.dataset.flipConfig||"{}")}var nC=function(e,t){var n;return wo(e,((n={})[t[0]]=t[1],n))},rC=function(e,t){return _a(t?document.querySelectorAll("["+zm+'="'+t+'"]'):e.querySelectorAll("["+_m+"]"))},oC=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},JD=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,a=e.flippedElementPositionsBeforeUpdate,i=a===void 0?{}:a,s=e.flipCallbacks,l=s===void 0?{}:s,c=e.containerEl,u=e.applyTransformOrigin,f=e.spring,p=e.debug,v=e.portalKey,h=e.staggerConfig,g=h===void 0?{}:h,m=e.decisionData,b=m===void 0?{}:m,y=e.handleEnterUpdateDelete,x=e.onComplete,C=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var w,E=oC(rC((w={element:c,portalKey:v}).element,w.portalKey)).map(function(P){var z=P[0],H=P[1],L=window.getComputedStyle(z);return[z.dataset.flipId,{element:z,rect:H,opacity:parseFloat(L.opacity),transform:L.transform}]}).reduce(nC,{}),S=(function(P){var z=P.containerEl,H=P.portalKey;return H?(function(L){return function(T){return _a(document.querySelectorAll("["+zm+'="'+L+'"]'+T))}})(H):z?(function(L){var T=Math.random().toFixed(5);return L.dataset.flipperId=T,function(_){return _a(L.querySelectorAll('[data-flipper-id="'+T+'"] '+_))}})(z):function(){return[]}})({containerEl:c,portalKey:v}),k=(function(P){return function(z){return P("["+_m+'="'+z+'"]')[0]}})(S),O=function(P){return i[P]&&E[P]},$=Object.keys(i).concat(Object.keys(E)).filter(function(P){return!O(P)}),I={flipCallbacks:l,getElement:k,flippedElementPositionsBeforeUpdate:i,flippedElementPositionsAfterUpdate:E,inProgressAnimations:o,decisionData:b},N=(function(P){var z,H=P.unflippedIds,L=P.flipCallbacks,T=P.getElement,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.inProgressAnimations,V=P.decisionData,W=H.filter(function(Y){return D[Y]}).filter(function(Y){return L[Y]&&L[Y].onAppear}),q=H.filter(function(Y){return _[Y]&&L[Y]&&L[Y].onExit}),Q=new Promise(function(Y){z=Y}),U=[],J=0,X=q.map(function(Y,ae){var oe=_[Y].domDataForExitAnimations,ne=oe.element,ue=oe.parent,pe=oe.childPosition,be=pe.top,Se=pe.left,he=pe.width,ke=pe.height;getComputedStyle(ue).position==="static"&&(ue.style.position="relative"),ne.style.transform="matrix(1, 0, 0, 1, 0, 0)",ne.style.position="absolute",ne.style.top=be+"px",ne.style.left=Se+"px",ne.style.height=ke+"px",ne.style.width=he+"px";var ce=U.filter(function(Ae){return Ae[0]===ue})[0];ce||(ce=[ue,document.createDocumentFragment()],U.push(ce)),ce[1].appendChild(ne),J+=1;var de=function(){try{ue.removeChild(ne)}catch{}finally{(J-=1)==0&&z()}};return B[Y]={stop:de},function(){return L[Y].onExit(ne,ae,de,V)}});return U.forEach(function(Y){Y[0].appendChild(Y[1])}),X.length||z(),{hideEnteringElements:function(){W.forEach(function(Y){var ae=T(Y);ae&&(ae.style.opacity="0")})},animateEnteringElements:function(){W.forEach(function(Y,ae){var oe=T(Y);oe&&L[Y].onAppear(oe,ae,V)})},animateExitingElements:function(){return X.forEach(function(Y){return Y()}),Q}}})(wo({},I,{unflippedIds:$})),A=N.hideEnteringElements,F=N.animateEnteringElements,j=N.animateExitingElements,M=wo({},I,{containerEl:c,flippedIds:n.filter(O),applyTransformOrigin:u,spring:f,debug:p,staggerConfig:g,scopedSelector:S,onComplete:x});C&&C(c,b);var R=(function(P){var z,H=P.flippedIds,L=P.flipCallbacks,T=P.inProgressAnimations,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.applyTransformOrigin,V=P.spring,W=P.getElement,q=P.debug,Q=P.staggerConfig,U=Q===void 0?{}:Q,J=P.decisionData,X=J===void 0?{}:J,Y=P.onComplete,ae=P.containerEl,oe=new Promise(function(ie){z=ie});if(Y&&oe.then(function(){return Y(ae,X)}),!H.length)return function(){return z([]),oe};var ne=[],ue=W(H[0]),pe=ue?ue.ownerDocument.querySelector("body"):document.querySelector("body");Qw(H);var be=H.map(function(ie){var We=_[ie].rect,ze=D[ie].rect,De=_[ie].opacity,Ee=D[ie].opacity,Ve=ze.width<1||ze.height<1,Ne=D[ie].element;if(!i0(We)&&!i0(ze)||!Ne)return!1;var Fe,$e,je,qe=s0(Ne),ve=(je=($e=(Fe={flipperSpring:V,flippedSpring:qe.spring})===void 0?{}:Fe).flippedSpring,wo({},Sf.noWobble,n0($e.flipperSpring),n0(je))),it=qe.stagger===!0?"default":qe.stagger,pt={element:Ne,id:ie,stagger:it,springConfig:ve};if(L[ie]&&L[ie].shouldFlip&&!L[ie].shouldFlip(X.previous,X.current))return!1;var yt=Math.abs(We.left-ze.left)+Math.abs(We.top-ze.top),Pt=Math.abs(We.width-ze.width)+Math.abs(We.height-ze.height),He=Math.abs(Ee-De);if(We.height===0&&ze.height===0||We.width===0&&ze.width===0||yt<.5&&Pt<.5&&He<.01)return!1;var Xe=zD(D[ie].transform),Ye={matrix:Xe},Je={matrix:[]},tt=[Xe];qe.translate&&(tt.push(VD(We.left-ze.left)),tt.push(WD(We.top-ze.top))),qe.scale&&(tt.push(HD(Math.max(We.width,1)/Math.max(ze.width,1))),tt.push(LD(Math.max(We.height,1)/Math.max(ze.height,1)))),qe.opacity&&(Je.opacity=De,Ye.opacity=Ee);var Ot=[];if(!L[ie]||!L[ie].shouldInvert||L[ie].shouldInvert(X.previous,X.current)){var Nt=(function(ye,Te){return _a(ye.querySelectorAll("["+Bm+'="'+Te+'"]'))})(Ne,ie);Ot=Nt.map(function(ye){return[ye,s0(ye)]})}Je.matrix=a0(tt.reduce(BD)),Ye.matrix=a0(Ye.matrix);var et,st=(function(ye){var Te=ye.element,nt=ye.invertedChildren,Qe=ye.body;return function(ot){var gt=ot.matrix,kt=ot.opacity,Mt=ot.forceMinVals;if(pl(kt)&&(Te.style.opacity=kt+""),Mt&&(Te.style.minHeight="1px",Te.style.minWidth="1px"),gt){var Jt=(function(Ht){return"matrix("+Ht.join(", ")+")"})(gt);Te.style.transform=Jt,nt&&(function(Ht){var Z=Ht.matrix,ee=Ht.body;Ht.invertedChildren.forEach(function(we){var Ie=we[0],le=we[1];if(ee.contains(Ie)){var Ce=Z[0],Me=Z[3],Oe=Z[5],Ue={translateX:0,translateY:0,scaleX:1,scaleY:1},bt="";le.translate&&(Ue.translateX=-Z[4]/Ce,Ue.translateY=-Oe/Me,bt+="translate("+Ue.translateX+"px, "+Ue.translateY+"px)"),le.scale&&(Ue.scaleX=1/Ce,Ue.scaleY=1/Me,bt+=" scale("+Ue.scaleX+", "+Ue.scaleY+")"),Ie.style.transform=bt}})})({invertedChildren:nt,matrix:gt,body:Qe})}}})({element:Ne,invertedChildren:Ot,body:pe});if(L[ie]&&L[ie].onComplete){var Ct=L[ie].onComplete;et=function(){return Ct(Ne,X)}}var Le=pl(Je.opacity)&&pl(Ye.opacity)&&Je.opacity!==Ye.opacity,Pe=!1;return wo({},pt,{stagger:it,springConfig:ve,getOnUpdateFunc:function(ye){var Te=ye.spring,nt=ye.onAnimationEnd;return T[ie]={destroy:Te.destroy.bind(Te),onAnimationEnd:nt},function(Qe){L[ie]&&L[ie].onSpringUpdate&&L[ie].onSpringUpdate(Qe.getCurrentValue()),Pe||(Pe=!0,L[ie]&&L[ie].onStart&&L[ie].onStart(Ne,X));var ot=Qe.getCurrentValue();if(pe.contains(Ne)){var gt={matrix:[]};gt.matrix=Je.matrix.map(function(kt,Mt){return Cf(kt,Ye.matrix[Mt],ot)}),Le&&(gt.opacity=Cf(Je.opacity,Ye.opacity,ot)),st(gt)}else Qe.destroy()}},initializeFlip:function(){st({matrix:Je.matrix,opacity:Le?Je.opacity:void 0,forceMinVals:Ve}),L[ie]&&L[ie].onStartImmediate&&L[ie].onStartImmediate(Ne,X),qe.transformOrigin?Ne.style.transformOrigin=qe.transformOrigin:B&&(Ne.style.transformOrigin="0 0"),Ot.forEach(function(ye){var Te=ye[0],nt=ye[1];nt.transformOrigin?Te.style.transformOrigin=nt.transformOrigin:B&&(Te.style.transformOrigin="0 0")})},onAnimationEnd:function(ye){delete T[ie],Gw(et)&&et(),Ne.style.transform="",Ot.forEach(function(Te){Te[0].style.transform=""}),Ve&&Ne&&(Ne.style.minHeight="",Ne.style.minWidth=""),ye||(ne.push(ie),ne.length>=be.length&&z(ne))},delayUntil:qe.delayUntil})}).filter(Boolean);if(be.forEach(function(ie){return(0,ie.initializeFlip)()}),q)return function(){};var Se=be.filter(function(ie){return ie.delayUntil&&(We=ie.delayUntil,be.filter(function(ze){return ze.id===We}).length);var We}),he={},ke={},ce={};Se.forEach(function(ie){ie.stagger?(ce[ie.stagger]=!0,ke[ie.delayUntil]?ke[ie.delayUntil].push(ie.stagger):ke[ie.delayUntil]=[ie.stagger]):he[ie.delayUntil]?he[ie.delayUntil].push(ie):he[ie.delayUntil]=[ie]});var de=be.filter(function(ie){return ie.stagger}).reduce(function(ie,We){return ie[We.stagger]?ie[We.stagger].push(We):ie[We.stagger]=[We],ie},{}),Ae=be.filter(function(ie){return Se.indexOf(ie)===-1});return Ae.forEach(function(ie){ie.onSpringActivate=function(){he[ie.id]&&he[ie.id].forEach(r0),ke[ie.id]&&Object.keys(ke[ie.id].reduce(function(We,ze){var De;return wo(We,((De={})[ze]=!0,De))},{})).forEach(function(We){o0(de[We],U[We])})}}),function(){return be.length||z([]),Ae.filter(function(ie){return!ie.stagger}).forEach(r0),Object.keys(de).forEach(function(ie){ce[ie]||o0(de[ie],U[ie])}),oe}})(M);y?y({hideEnteringElements:A,animateEnteringElements:F,animateExitingElements:j,animateFlippedElements:R}):(A(),j().then(F),R())}},e8=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,a=o===void 0?{}:o,i=rC(t,e.portalKey),s=_a(t.querySelectorAll("["+Bm+"]")),l={},c=[],u={};i.filter(function(v){return r&&r[v.dataset.flipId]&&r[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var g=v.closest("["+qD+"]");g&&(h=g)}var m=c.findIndex(function(b){return b[0]===h});m===-1&&(c.push([h,h.getBoundingClientRect()]),m=c.length-1),l[v.dataset.flipId]=c[m][1],u[v.dataset.flipId]=h});var f=oC(i),p=f.map(function(v){var h=v[0],g=v[1],m={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=l[h.dataset.flipId];wo(m,{element:h,parent:u[h.dataset.flipId],childPosition:{top:g.top-b.top,left:g.left-b.left,width:g.width,height:g.height}})}return[h.dataset.flipId,{rect:g,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:m}]}).reduce(nC,{});return(function(v,h){Object.keys(v).forEach(function(g){v[g].destroy&&v[g].destroy(),v[g].onAnimationEnd&&v[g].onAnimationEnd(!0),delete v[g]}),h.forEach(function(g){g.style.transform="",g.style.opacity=""})})(a,i.concat(s)),{flippedElementPositions:p,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new eC;function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ef(e,t)}function aC(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var iC=Hr({}),sC=Hr("portal"),lC=(function(e){var t,n;function r(){for(var a,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return(a=e.call.apply(e,[this].concat(s))||this).inProgressAnimations={},a.flipCallbacks={},a.el=void 0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ef(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(a){return a.flipKey!==this.props.flipKey&&this.el?e8({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(a,i,s){this.props.flipKey!==a.flipKey&&this.el&&JD({flippedElementPositionsBeforeUpdate:s.flippedElementPositions,cachedOrderedFlipIds:s.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:a.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var a=this,i=this.props,s=i.portalKey,l=fe.createElement(iC.Provider,{value:this.flipCallbacks},fe.createElement(i.element,{className:i.className,ref:function(c){return a.el=c}},this.props.children));return s&&(l=fe.createElement(sC.Provider,{value:s},l)),l},r})(DS);lC.defaultProps={applyTransformOrigin:!0,element:"div"};var t8=["children","flipId","inverseFlipId","portalKey"],n8=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],l0=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,a=e.portalKey,i=aC(e,t8),s=n,l=(function(u){return typeof u=="function"})(s);if(!l)try{s=Nb.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}i.scale||i.translate||i.opacity||Zw.assign(i,{translate:!0,scale:!0,opacity:!0});var c=((t={})[qs.DATA_FLIP_CONFIG]=JSON.stringify(i),t);return r!==void 0?c[qs.DATA_FLIP_ID]=String(r):o&&(c[qs.DATA_INVERSE_FLIP_ID]=String(o)),a!==void 0&&(c[qs.DATA_PORTAL_KEY]=a),l?s(c):Pb(s,c)},cC=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,a=e.onAppear,i=e.onStart,s=e.onStartImmediate,l=e.onComplete,c=e.onExit,u=e.onSpringUpdate,f=aC(e,n8);return t?f.inverseFlipId?fe.createElement(l0,Vl({},f),t):fe.createElement(sC.Consumer,null,function(p){return fe.createElement(iC.Consumer,null,function(v){return Zw.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:a,onStart:i,onStartImmediate:s,onComplete:l,onExit:c,onSpringUpdate:u}),fe.createElement(l0,Vl({flipId:n},f,{portalKey:p}),t)})}):null};cC.displayName="Flipped";function r8(e){const{data:t,activedItem:n,onChange:r,onDelete:o,sortRules:a=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:i,assistantList:s,height:l=400,styles:c={},hasMore:u=!1,loadingMore:f=!1}=e,p=t.map(O=>O.sessionId+"-"+O.gmtModified).join(","),v=en(()=>{const O=a.length>0?a:[{label:"\u5F53\u5929",dayPeriod:1}],$=_D(t,O),I=O.every(A=>!$[A.label]||$[A.label].length===0),N=[];return O.forEach(A=>{$[A.label]&&$[A.label].length>0&&(N.push({type:"group",label:A.label}),$[A.label].forEach(F=>N.push({type:"item",data:F})))}),$.other.length>0&&!I&&(N.push({type:"group",label:"\u5176\u4ED6"}),$.other.forEach(A=>N.push({type:"item",data:A}))),I&&$.other.length>0&&$.other.forEach(A=>N.push({type:"item",data:A})),N},[t,a,p]),h=en(()=>v.map(O=>O.type==="group"?`g:${O.label}`:`i:${O.data.sessionId}`).join("|"),[v]),g=56,m=14,b=36,y=O=>O===v.length?b:v[O].type==="group"?32:g+m,x=Ke(null),C=en(()=>v.findIndex(O=>{var $;return O.type==="item"&&(($=O.data)==null?void 0:$.sessionId)===n}),[v,n]),w=en(()=>v.findIndex(O=>O.type==="item"),[v]),E=Ke(void 0);mt(()=>{const O=E.current;n!==O&&C>-1&&C===w&&x.current&&x.current.scrollToItem(C,"start"),E.current=n},[n,C,w]);const S=Ke(0);if(mt(()=>{if(x.current){const O=S.current,$=v.length;S.current=$,$!==O&&x.current.resetAfterIndex(Math.max(0,Math.min(O,$)-1),!1)}},[v.length]),mt(()=>{x.current&&x.current.resetAfterIndex(0,!1)},[h]),v.length===0)return re("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const k=(c==null?void 0:c.colors)||{};return re(lC,{flipKey:p,spring:{stiffness:180,damping:18},children:re(PD,{ref:x,height:l,width:"100%",itemCount:v.length+1,itemSize:y,itemKey:O=>{if(O===v.length)return"footer";const $=v[O];return $.type==="item"?$.data.sessionId:`group-${$.label}`},onItemsRendered:({visibleStopIndex:O})=>{u&&!f&&O>=v.length-1-3&&typeof i=="function"&&i("conversations:load_more")},style:{overflowX:"hidden"},children:({index:O,style:$})=>{if(O===v.length){const N=(c==null?void 0:c.colors)||{};return re("div",{style:{...$,height:b,lineHeight:`${b}px`,textAlign:"center",fontSize:"10px",color:N.textMuted||"#9ca3af",background:N.groupBg||"white"},children:f?"\u52A0\u8F7D\u4E2D...":u?"":"\u6CA1\u6709\u66F4\u591A\u4E86"})}const I=v[O];return I.type==="group"?re("div",{style:{...$,background:k.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:I.label}):re(cC,{flipId:I.data.sessionId,children:re("div",{style:$,className:"px-[12px] py-[2px]",children:re(DD,{isActive:n===I.data.sessionId,isDisabled:!1,isNew:I.data.isNew,data:I.data,eventsEmit:i,assistantList:s,styles:c})})},I.data.sessionId)}})})}const o8=({value:e,eventsEmit:t,setSearch:n,style:r,styles:o={}})=>{const a=o.colors||{},i=o.radius||"12px",s=a.border||"#e5e7eb",l=a.primary||"#2563eb",c=o.headerBg||a.sidebarBg||a.background||"#fff",[u,f]=fe.useState(!1);return rt("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:c,borderTopLeftRadius:i,borderTopRightRadius:i},children:[re("button",{className:"border-none flex items-center justify-center",onClick:()=>{f(!1),t&&t("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:l,color:a.buttonText||"#fff",fontWeight:600,boxShadow:o.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:u?"0 0":"0 14px",minWidth:u?0:180,width:u?0:void 0,opacity:u?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease"},children:rt("div",{className:"flex items-center gap-2",children:[re(Rb,{size:18}),re("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),u?rt("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[re("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:p=>n(p.target.value),onBlur:()=>f(!1),onKeyDown:p=>{p.key==="Enter"&&f(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:i,background:a.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:a.text||"#222",outline:"none"}}),re("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:a.text||"#222",flexShrink:0},onClick:()=>f(!1),title:"\u6536\u8D77\u641C\u7D22",children:re(Ep,{size:16})})]}):re("button",{className:"ml-auto flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:l,flexShrink:0},onClick:()=>f(!0),title:"\u641C\u7D22",children:re(JS,{size:18})})]})};function a8(e){const{data:t,sortRules:n,activedItem:r,eventsEmit:o,assistantList:a,styles:i={},hasMore:s=!1,loadingMore:l=!1}=e,[c,u]=ct(""),f=en(()=>c?t.filter(w=>(w.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(c.toLowerCase())):t,[t,c]),p=en(()=>[...f].sort((w,E)=>new Date(E.gmtModified).getTime()-new Date(w.gmtModified).getTime()),[f]),v=Ke(null),[h,g]=ct(400);mt(()=>{function w(){v.current&&g(v.current.clientHeight)}return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[]);const m=(i==null?void 0:i.colors)||{};i!=null&&i.radius;const b=(i==null?void 0:i.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",y=m.border||"#e5e7eb",x=m.sidebarBg||m.background||"#EAEEFF",C=m.text||"#222";return rt("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:x,color:C,boxShadow:b,border:`1px solid ${y}`,...i.container},children:[re(o8,{value:c,setSearch:u,eventsEmit:o,style:i.header,styles:i}),rt("div",{className:"flex-1 min-h-0 relative",ref:v,style:i.list,children:[re(r8,{eventsEmit:o,data:p,assistantList:a,activedItem:r,sortRules:n,height:h,styles:i,hasMore:s,loadingMore:l}),re("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${x}cc, transparent)`}})]})]})}function $f(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 i8(e){if(Array.isArray(e))return $f(e)}function uC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hm(e,t){if(e){if(typeof e=="string")return $f(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)?$f(e,t):void 0}}function s8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
447
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ft(e){return i8(e)||uC(e)||Hm(e)||s8()}const l8=fe.createContext({});function dC(e){if(Array.isArray(e))return e}function c8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function fC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
448
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e,t){return dC(e)||c8(e,t)||Hm(e,t)||fC()}function At(e){"@babel/helpers - typeof";return At=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},At(e)}function u8(e,t){if(At(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(At(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pC(e){var t=u8(e,"string");return At(t)=="symbol"?t:t+""}function ge(e,t,n){return(t=pC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0(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 Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function es(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 co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function d8(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 u0="data-rc-order",d0="data-rc-priority",f8="rc-util-key",kf=new Map;function mC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):f8}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function p8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lm(e){return Array.from((kf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=p8(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(u0,i),s&&a&&l.setAttribute(d0,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Lm(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(u0)))return!1;var v=Number(p.getAttribute(d0)||0);return a>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function hC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return(t.styles||Lm(n)).find(function(r){return r.getAttribute(mC(t))===e})}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hC(e,t);if(n){var r=Rc(t);r.removeChild(n)}}function m8(e,t){var n=kf.get(e);if(!n||!d8(document,n)){var r=gC("",t),o=r.parentNode;kf.set(e,o),e.removeChild(r)}}function Qo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n),o=Lm(r),a=Be(Be({},n),{},{styles:o});m8(r,a);var i=hC(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=gC(e,a);return u.setAttribute(mC(a),t),u}function Jr(e,t){if(e==null)return{};var n,r,o=SD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bC(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Of={},g8=function(t){};function h8(e,t){}function v8(e,t){}function b8(){Of={}}function yC(e,t,n){!t&&!Of[n]&&(e(!1,n),Of[n]=!0)}function fr(e,t){yC(h8,e,t)}function y8(e,t){yC(v8,e,t)}fr.preMessage=g8;fr.resetWarned=b8;fr.noteOnce=y8;function If(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(fr(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&At(a)==="object"&&At(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f0(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,pC(r.key),r)}}function Zn(e,t,n){return t&&f0(e.prototype,t),n&&f0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var x8="%";function Mf(e){return e.join(x8)}var w8=(function(){function e(t){Qn(this,e),ge(this,"instanceId",void 0),ge(this,"cache",new Map),ge(this,"extracted",new Set),this.instanceId=t}return Zn(e,[{key:"get",value:function(n){return this.opGet(Mf(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Mf(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),Ya="data-token-hash",Rr="data-css-hash",$o="__cssinjs_instance__";function C8(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Rr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[$o]=o[$o]||e,o[$o]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Rr,"]"))).forEach(function(o){var a=o.getAttribute(Rr);if(r[a]){if(o[$o]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new w8(e)}var bs=d.createContext({hashPriority:"low",cache:C8(),defaultCache:!0});function ui(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&&Ua(e,t)}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ts(e)}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vm=function(){return!!e})()}function S8(e,t){if(t&&(At(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zt(e)}function di(e){var t=Vm();return function(){var n,r=ts(e);if(t){var o=ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S8(this,n)}}function E8(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 Wm=(function(){function e(){Qn(this,e),ge(this,"cache",void 0),ge(this,"keys",void 0),ge(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,u){var f=$t(c,2),p=f[1];return o.internalGet(u)[1]<p?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=$t(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!E8(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();ge(Wm,"MAX_CACHE_SIZE",20);ge(Wm,"MAX_CACHE_OFFSET",5);var p0=0,xC=(function(){function e(t){Qn(this,e),ge(this,"derivatives",void 0),ge(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=p0,t.length===0&&(t.length>0,void 0),p0+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Tu=new Wm;function Ff(e){var t=Array.isArray(e)?e:[e];return Tu.has(t)||Tu.set(t,new xC(t)),Tu.get(t)}var $8=new WeakMap,Du={};function k8(e,t){for(var n=$8,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(Du)||n.set(Du,e()),n.get(Du)}var m0=new WeakMap;function Ti(e){var t=m0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xC?t+=r.id:r&&At(r)==="object"?t+=Ti(r):t+=r}),t=es(t),m0.set(e,t)),t}function g0(e,t){return es("".concat(t,"_").concat(Ti(e)))}var Nf=co();function h0(e){return typeof e=="number"?"".concat(e,"px"):e}function Wl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=Be(Be({},r),{},ge(ge({},Ya,t),Rr,n)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ml=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()},O8=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 a=$t(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},wC=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=$t(i,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,v=ml(u,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(v,")")}}),[a,O8(o,n,{scope:r==null?void 0:r.scope})]},v0=co()?d.useLayoutEffect:d.useEffect,I8=function(t,n){var r=d.useRef(!0);v0(function(){return t(r.current)},n),v0(function(){return r.current=!1,function(){r.current=!0}},[])},M8=Be({},d),b0=M8.useInsertionEffect,F8=function(t,n,r){d.useMemo(t,r),I8(function(){return n(!0)},r)},N8=b0?function(e,t,n){return b0(function(){return e(),t()},n)}:F8,j8=Be({},d),P8=j8.useInsertionEffect,A8=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},R8=function(){return function(t){t()}},T8=typeof P8<"u"?A8:R8;function qm(e,t,n,r,o){var a=d.useContext(bs),i=a.cache,s=[e].concat(Ft(t)),l=Mf(s),c=T8([l]),u=function(h){i.opUpdate(l,function(g){var m=g||[void 0,void 0],b=$t(m,2),y=b[0],x=y===void 0?0:y,C=b[1],w=C,E=w||n(),S=[x,E];return h?h(S):S})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return N8(function(){o==null||o(p)},function(v){return u(function(h){var g=$t(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=$t(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=y-1;return C===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var D8={},_8="css",Lo=new Map;function B8(e){Lo.set(e,(Lo.get(e)||0)+1)}function z8(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[$o]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var H8=0;function L8(e,t){Lo.set(e,(Lo.get(e)||0)-1);var n=new Set;Lo.forEach(function(r,o){r<=0&&n.add(o)}),Lo.size-n.size>H8&&n.forEach(function(r){z8(r,t),Lo.delete(r)})}var V8=function(t,n,r,o){var a=r.getDerivativeToken(t),i=Be(Be({},a),n);return o&&(i=o(i)),i},CC="token";function W8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=nn(bs),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?D8:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=k8(function(){return Object.assign.apply(Object,[{}].concat(Ft(t)))},t),h=Ti(v),g=Ti(c),m=p?Ti(p):"",b=qm(CC,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):V8(v,c,e,u),C=Be({},x),w="";if(p){var E=wC(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=$t(E,2);x=S[0],w=S[1]}var k=g0(x,s);x._tokenKey=k,C._tokenKey=g0(C,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:k;x._themeKey=O,B8(O);var $="".concat(_8,"-").concat(es(k));return x._hashId=$,[x,$,C,w,(p==null?void 0:p.key)||""]},function(y){L8(y[0]._themeKey,o)},function(y){var x=$t(y,4),C=x[0],w=x[3];if(p&&w){var E=Qo(w,es("css-variables-".concat(C._themeKey)),{mark:Rr,prepend:"queue",attachTo:a,priority:-999});E[$o]=o,E.setAttribute(Ya,C._themeKey)}});return b}var q8=function(t,n,r){var o=$t(t,5),a=o[2],i=o[3],s=o[4],l=r||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Wl(i,s,u,p,c);return[f,u,v]},U8={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},SC="comm",EC="rule",$C="decl",Y8="@import",X8="@namespace",G8="@keyframes",K8="@layer",kC=Math.abs,Um=String.fromCharCode;function OC(e){return e.trim()}function gl(e,t,n){return e.replace(t,n)}function Q8(e,t,n){return e.indexOf(t,n)}function Ba(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function Z8(e){return e.length}function Us(e,t){return t.push(e),e}var Tc=1,Ga=1,IC=0,$r=0,Mn=0,fi="";function Ym(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Tc,column:Ga,length:i,return:"",siblings:s}}function J8(){return Mn}function e_(){return Mn=$r>0?Ba(fi,--$r):0,Ga--,Mn===10&&(Ga=1,Tc--),Mn}function Tr(){return Mn=$r<IC?Ba(fi,$r++):0,Ga++,Mn===10&&(Ga=1,Tc++),Mn}function ko(){return Ba(fi,$r)}function hl(){return $r}function Dc(e,t){return Xa(fi,e,t)}function ns(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 t_(e){return Tc=Ga=1,IC=Yr(fi=e),$r=0,[]}function n_(e){return fi="",e}function _u(e){return OC(Dc($r-1,jf(e===91?e+2:e===40?e+1:e)))}function r_(e){for(;(Mn=ko())&&Mn<33;)Tr();return ns(e)>2||ns(Mn)>3?"":" "}function o_(e,t){for(;--t&&Tr()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Dc(e,hl()+(t<6&&ko()==32&&Tr()==32))}function jf(e){for(;Tr();)switch(Mn){case e:return $r;case 34:case 39:e!==34&&e!==39&&jf(Mn);break;case 40:e===41&&jf(e);break;case 92:Tr();break}return $r}function a_(e,t){for(;Tr()&&e+Mn!==57;)if(e+Mn===84&&ko()===47)break;return"/*"+Dc(t,$r-1)+"*"+Um(e===47?e:Tr())}function i_(e){for(;!ns(ko());)Tr();return Dc(e,$r)}function s_(e){return n_(vl("",null,null,null,[""],e=t_(e),0,[0],e))}function vl(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",C=o,w=a,E=r,S=x;m;)switch(h=y,y=Tr()){case 40:if(h!=108&&Ba(S,f-1)==58){Q8(S+=gl(_u(y),"&","&\f"),"&\f",kC(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=_u(y);break;case 9:case 10:case 13:case 32:S+=r_(h);break;case 92:S+=o_(hl()-1,7);continue;case 47:switch(ko()){case 42:case 47:Us(l_(a_(Tr(),hl()),t,n,l),l),(ns(h||1)==5||ns(ko()||1)==5)&&Yr(S)&&Xa(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Yr(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=gl(S,/\f/g,"")),v>0&&(Yr(S)-f||g===0&&h===47)&&Us(v>32?x0(S+";",r,n,f-1,l):x0(gl(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(Us(E=y0(S,t,n,c,u,o,s,x,C=[],w=[],f,a),a),y===123)if(u===0)vl(S,t,E,E,C,a,f,s,w);else{switch(p){case 99:if(Ba(S,3)===110)break;case 108:if(Ba(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vl(e,E,E,r&&Us(y0(e,E,E,0,0,o,s,x,o,C=[],f,w),w),o,w,f,s,r?C:w):vl(S,E,E,E,[""],w,0,s,w)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Yr(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&e_()==125)continue}switch(S+=Um(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Yr(S)-1)*b,b=1;break;case 64:ko()===45&&(S+=_u(Tr())),p=ko(),u=f=Yr(x=S+=i_(hl())),y++;break;case 45:h===45&&Yr(S)==2&&(g=0)}}return a}function y0(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=Z8(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=Xa(e,p+1,p=kC(m=i[g])),C=e;y<h;++y)(C=OC(m>0?v[y]+" "+x:gl(x,/&\f/g,v[y])))&&(l[b++]=C);return Ym(e,t,n,o===0?EC:s,l,c,u,f)}function l_(e,t,n,r){return Ym(e,t,n,SC,Um(J8()),Xa(e,2,-2),0,r)}function x0(e,t,n,r,o){return Ym(e,t,n,$C,Xa(e,0,r),Xa(e,r+1,-1),r,o)}function Pf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function c_(e,t,n,r){switch(e.type){case K8:if(e.children.length)break;case Y8:case X8:case $C:return e.return=e.return||e.value;case SC:return"";case G8:return e.return=e.value+"{"+Pf(e.children,r)+"}";case EC:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Pf(e.children,r))?e.return=e.value+"{"+n+"}":""}var w0="data-ant-cssinjs-cache-path",MC="_FILE_STYLE__",Zo,FC=!0;function u_(){if(!Zo&&(Zo={},co())){var e=document.createElement("div");e.className=w0,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 a=o.split(":"),i=$t(a,2),s=i[0],l=i[1];Zo[s]=l});var n=document.querySelector("style[".concat(w0,"]"));if(n){var r;FC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function d_(e){return u_(),!!Zo[e]}function f_(e){var t=Zo[e],n=null;if(t&&co())if(FC)n=MC;else{var r=document.querySelector("style[".concat(Rr,'="').concat(Zo[e],'"]'));r?n=r.innerHTML:delete Zo[e]}return[n,t]}var p_="_skip_check_",NC="_multi_value_";function bl(e){var t=Pf(s_(e),c_);return t.replace(/\{%%%\:[^;];}/g,";")}function m_(e){return At(e)==="object"&&e&&(p_ in e||NC in e)}function C0(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ft(l.slice(1))).join(" ")});return a.join(",")}var g_=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,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),C=$t(x,1),w=C[0];v[y]="@keyframes ".concat(b.getName(s)).concat(w)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
|
|
449
|
-
`);else if(y._keyframe)h(y);else{var x=f.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},y);Object.keys(x).forEach(function(C){var w=x[C];if(At(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!m_(w)){var E=!1,S=C.trim(),k=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=C0("",s,c):S=C0(C,s,c):o&&!s&&(S==="&"||S==="")&&(S="",k=!0);var O=e(w,n,{root:k,injectHash:E,parentSelectors:[].concat(Ft(i),[S])}),$=$t(O,2),I=$[0],N=$[1];v=Be(Be({},v),N),p+="".concat(S).concat(I)}else{let j=function(M,R){var P=M.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=R;!U8[M]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),M==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(h(R),z=R.getName(s)),p+="".concat(P,":").concat(z,";")};var A,F=(A=w==null?void 0:w.value)!==null&&A!==void 0?A:w;At(w)==="object"&&w!==null&&w!==void 0&&w[NC]&&Array.isArray(F)?F.forEach(function(M){j(C,M)}):j(C,F)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
|
|
450
|
-
`))):p="{".concat(p,"}"),[p,v]};function jC(e,t){return es("".concat(e.join("%")).concat(t))}function h_(){return null}var PC="style";function Af(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(bs),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,C=n._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,Ft(r));var E=Nf,S=qm(PC,w,function(){var N=w.join("|");if(d_(N)){var A=f_(N),F=$t(A,2),j=F[0],M=F[1];if(j)return[j,C,M,{},s,c]}var R=t(),P=g_(R,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),z=$t(P,2),H=z[0],L=z[1],T=bl(H),_=jC(w,T);return[T,C,_,L,s,c]},function(N,A){var F=$t(N,3),j=F[2];(A||f)&&Nf&&vC(j,{mark:Rr,attachTo:h})},function(N){var A=$t(N,4),F=A[0];A[1];var j=A[2],M=A[3];if(E&&F!==MC){var R={mark:Rr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(R.csp={nonce:P});var z=[],H=[];Object.keys(M).forEach(function(T){T.startsWith("@layer")?z.push(T):H.push(T)}),z.forEach(function(T){Qo(bl(M[T]),"_layer-".concat(T),Be(Be({},R),{},{prepend:!0}))});var L=Qo(F,j,R);L[$o]=y.instanceId,L.setAttribute(Ya,C),H.forEach(function(T){Qo(bl(M[T]),"_effect-".concat(T),R)})}}),k=$t(S,3),O=k[0],$=k[1],I=k[2];return function(N){var A;return!g||E||!p?A=d.createElement(h_,null):A=d.createElement("style",Vn({},ge(ge({},Ya,$),Rr,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,A,N)}}var v_=function(t,n,r){var o=$t(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},p=f.plain;if(c)return null;var v=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return v=Wl(a,i,s,h,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var m=bl(l[g]),b=Wl(m,i,"_effect-".concat(g),h,p);g.startsWith("@layer")?v=b+v:v+=b}}),[u,s,v]},AC="cssVar",b_=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=nn(bs),f=u.cache.instanceId,p=u.container,v=s._tokenKey,h=[].concat(Ft(t.path),[r,c,v]),g=qm(AC,h,function(){var m=n(),b=wC(m,r,{prefix:o,unitless:a,ignore:i,scope:c}),y=$t(b,2),x=y[0],C=y[1],w=jC(h,C);return[x,C,w,r]},function(m){var b=$t(m,3),y=b[2];Nf&&vC(y,{mark:Rr,attachTo:p})},function(m){var b=$t(m,3),y=b[1],x=b[2];if(y){var C=Qo(y,x,{mark:Rr,prepend:"queue",attachTo:p,priority:-999});C[$o]=f,C.setAttribute(Ya,r)}});return g},y_=function(t,n,r){var o=$t(t,4),a=o[1],i=o[2],s=o[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Wl(a,s,i,f,c);return[u,i,p]};ge(ge(ge({},PC,v_),CC,q8),AC,y_);var S0=(function(){function e(t,n){Qn(this,e),ge(this,"name",void 0),ge(this,"style",void 0),ge(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(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 Sa(e){return e.notSplit=!0,e}Sa(["borderTop","borderBottom"]),Sa(["borderTop"]),Sa(["borderBottom"]),Sa(["borderLeft","borderRight"]),Sa(["borderLeft"]),Sa(["borderRight"]);var Xm=Hr({});function x_(e){return dC(e)||uC(e)||Hm(e)||fC()}function Kr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function RC(e,t,n,r){if(!t.length)return n;var o=x_(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Ft(e):s=Be({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=RC(s[a],i,n,r),s}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Kr(e,t.slice(0,-1))?e:RC(e,t,n,r)}function w_(e){return At(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function E0(e){return Array.isArray(e)?[]:{}}var C_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Na(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=E0(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Kr(o,i),u=Array.isArray(c);if(u||w_(c)){if(!l.has(c)){l.add(c);var f=Kr(r,i);u?r=Nr(r,i,[]):(!f||At(f)!=="object")&&(r=Nr(r,i,E0(c))),C_(c).forEach(function(p){a([].concat(Ft(i),[p]),l)})}}else r=Nr(r,i,c)}a([])}),r}const S_=d.createContext({}),E_=Hr(void 0),lr="${label} is not a valid ${type}",_c={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},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:lr,method:lr,array:lr,object:lr,number:lr,date:lr,boolean:lr,integer:lr,float:lr,regexp:lr,email:lr,url:lr,hex:lr},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}"}}}};Object.assign({},_c.Modal);let yl=[];const $0=()=>yl.reduce((e,t)=>Object.assign(Object.assign({},e),t),_c.Modal);function $_(e){if(e){const t=Object.assign({},e);return yl.push(t),$0(),()=>{yl=yl.filter(n=>n!==t),$0()}}Object.assign({},_c.Modal)}const TC=Hr(void 0),k_="internalMark",O_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>$_(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(TC.Provider,{value:o},n)},DC={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"},rs=Object.assign(Object.assign({},DC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
451
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
452
|
-
'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}),zn=Math.round;function Bu(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 k0=(e,t,n)=>n===0?e:e/100;function Si(e,t){const n=t||255;return e>n?n:e<0?0:e}class $n{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 o=function(a){return r.startsWith(a)};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 $n)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=Si(t.r),this.g=Si(t.g),this.b=Si(t.b),this.a=typeof t.a=="number"?Si(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.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>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=zn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let 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,a=s=>(r[s]-this[s])*o+this[s],i={r:zn(a("r")),g:zn(a("g")),b:zn(a("b")),a:zn(a("a")*100)/100};return this._c(i)}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=a=>zn((this[a]*this.a+n[a]*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 a=zn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=zn(this.getSaturation()*100),r=zn(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]=Si(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||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 p=zn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=zn((a+f)*255),this.g=zn((i+f)*255),this.b=zn((s+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 a=zn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=zn(r*(1-n)*255),u=zn(r*(1-n*l)*255),f=zn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Bu(t,k0);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Bu(t,k0);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Bu(t,(r,o)=>o.includes("%")?zn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Ys=2,O0=.16,I_=.05,M_=.05,F_=.15,_C=5,BC=4,N_=[{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 I0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ys*t:Math.round(e.h)+Ys*t:r=n?Math.round(e.h)+Ys*t:Math.round(e.h)-Ys*t,r<0?r+=360:r>=360&&(r-=360),r}function M0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-O0*t:t===BC?r=e.s+O0:r=e.s+I_*t,r>1&&(r=1),n&&t===_C&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function F0(e,t,n){var r;return n?r=e.v+M_*t:r=e.v-F_*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function os(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new $n(e),o=r.toHsv(),a=_C;a>0;a-=1){var i=new $n({h:I0(o,a,!0),s:M0(o,a,!0),v:F0(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=BC;s+=1){var l=new $n({h:I0(o,s),s:M0(o,s),v:F0(o,s)});n.push(l)}return t.theme==="dark"?N_.map(function(c){var u=c.index,f=c.amount;return new $n(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var zu={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"},Rf=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Rf.primary=Rf[5];var Tf=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tf.primary=Tf[5];var Df=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Df.primary=Df[5];var _f=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_f.primary=_f[5];var Bf=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Bf.primary=Bf[5];var zf=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];zf.primary=zf[5];var Hf=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hf.primary=Hf[5];var Lf=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Lf.primary=Lf[5];var ql=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ql.primary=ql[5];var Vf=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vf.primary=Vf[5];var Wf=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wf.primary=Wf[5];var qf=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qf.primary=qf[5];var Uf=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Uf.primary=Uf[5];var Hu={red:Rf,volcano:Tf,orange:Df,gold:_f,yellow:Bf,lime:zf,green:Hf,cyan:Lf,blue:ql,geekblue:Vf,purple:Wf,magenta:qf,grey:Uf};function j_(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new $n(v[1]).mix(new $n(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new $n("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const P_=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 A_(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},P_(r))}const R_=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function T_(e){return(e+8)/e}function D_(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:T_(n)}))}const __=e=>{const t=D_(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function B_(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 br=(e,t)=>new $n(e).setA(t).toRgbString(),Ei=(e,t)=>new $n(e).darken(t).toHexString(),z_=e=>{const t=os(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]}},H_=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:br(r,.88),colorTextSecondary:br(r,.65),colorTextTertiary:br(r,.45),colorTextQuaternary:br(r,.25),colorFill:br(r,.15),colorFillSecondary:br(r,.06),colorFillTertiary:br(r,.04),colorFillQuaternary:br(r,.02),colorBgSolid:br(r,1),colorBgSolidHover:br(r,.75),colorBgSolidActive:br(r,.95),colorBgLayout:Ei(n,4),colorBgContainer:Ei(n,0),colorBgElevated:Ei(n,0),colorBgSpotlight:br(r,.85),colorBgBlur:"transparent",colorBorder:Ei(n,15),colorBorderSecondary:Ei(n,6)}};function L_(e){zu.pink=zu.magenta,Hu.pink=Hu.magenta;const t=Object.keys(DC).map(n=>{const r=e[n]===zu[n]?Hu[n]:os(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),j_(e,{generateColorPalettes:z_,generateNeutralColorPalettes:H_})),__(e.fontSize)),B_(e)),R_(e)),A_(e))}const zC=Ff(L_),Yf={token:rs,override:{override:rs},hashed:!0},HC=fe.createContext(Yf),Xf="ant",Bc="anticon",V_=(e,t)=>t||(e?`${Xf}-${e}`:Xf),ao=d.createContext({getPrefixCls:V_,iconPrefixCls:Bc}),{Consumer:qL}=ao,W_=`-ant-${Date.now()}-${Math.random()}`;function q_(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new $n(i),c=os(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new $n(t.primaryColor),s=os(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setA(c.a*.12));const l=new $n(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.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"),`
|
|
453
|
-
:root {
|
|
454
|
-
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
455
|
-
`)}
|
|
456
|
-
}
|
|
457
|
-
`.trim()}function U_(e,t){const n=q_(e,t);co()&&Qo(n,`${W_}-dynamic-theme`)}const Gf=d.createContext(!1),Y_=({children:e,disabled:t})=>{const n=d.useContext(Gf);return d.createElement(Gf.Provider,{value:t??n},e)},as=d.createContext(void 0),X_=({children:e,size:t})=>{const n=d.useContext(as);return d.createElement(as.Provider,{value:t||n},e)};function G_(){const e=nn(Gf),t=nn(as);return{componentDisabled:e,componentSize:t}}var LC=Zn(function e(){Qn(this,e)}),VC="CALC_UNIT",K_=new RegExp(VC,"g");function Lu(e){return typeof e=="number"?"".concat(e).concat(VC):e}var Q_=(function(e){ui(n,e);var t=di(n);function n(r,o){var a;Qn(this,n),a=t.call(this),ge(zt(a),"result",""),ge(zt(a),"unitlessCssVar",void 0),ge(zt(a),"lowPriority",void 0);var i=At(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Lu(r):i==="string"&&(a.result=r),a}return Zn(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(Lu(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(Lu(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 a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(K_,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(LC),Z_=(function(e){ui(n,e);var t=di(n);function n(r){var o;return Qn(this,n),o=t.call(this),ge(zt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Zn(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})(LC),J_=function(t,n){var r=t==="css"?Q_:Z_;return function(o){return new r(o,n)}},N0=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 Ul(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Kf(e){var t=d.useRef(!1),n=d.useState(e),r=$t(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}var Vu={exports:{}},an={};/**
|
|
458
|
-
* @license React
|
|
459
|
-
* react-is.production.min.js
|
|
460
|
-
*
|
|
461
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
462
|
-
*
|
|
463
|
-
* This source code is licensed under the MIT license found in the
|
|
464
|
-
* LICENSE file in the root directory of this source tree.
|
|
465
|
-
*/var j0;function eB(){if(j0)return an;j0=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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return an.ContextConsumer=i,an.ContextProvider=a,an.Element=e,an.ForwardRef=l,an.Fragment=n,an.Lazy=p,an.Memo=f,an.Portal=t,an.Profiler=o,an.StrictMode=r,an.Suspense=c,an.SuspenseList=u,an.isAsyncMode=function(){return!1},an.isConcurrentMode=function(){return!1},an.isContextConsumer=function(m){return g(m)===i},an.isContextProvider=function(m){return g(m)===a},an.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},an.isForwardRef=function(m){return g(m)===l},an.isFragment=function(m){return g(m)===n},an.isLazy=function(m){return g(m)===p},an.isMemo=function(m){return g(m)===f},an.isPortal=function(m){return g(m)===t},an.isProfiler=function(m){return g(m)===o},an.isStrictMode=function(m){return g(m)===r},an.isSuspense=function(m){return g(m)===c},an.isSuspenseList=function(m){return g(m)===u},an.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},an.typeOf=g,an}var P0;function tB(){return P0||(P0=1,Vu.exports=eB()),Vu.exports}var Wu=tB(),nB=Symbol.for("react.element"),rB=Symbol.for("react.transitional.element"),oB=Symbol.for("react.fragment");function WC(e){return e&&At(e)==="object"&&(e.$$typeof===nB||e.$$typeof===rB)&&e.type===oB}var aB=Number(Fb.split(".")[0]),iB=function(t,n){typeof t=="function"?t(n):At(t)==="object"&&t&&"current"in t&&(t.current=n)},sB=function(t){var n,r;if(!t)return!1;if(qC(t)&&aB>=19)return!0;var o=Wu.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Wu.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Wu.ForwardRef)};function qC(e){return yp(e)&&!WC(e)}var lB=function(t){if(t&&qC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function A0(e,t,n,r){var o=Be({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=$t(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=Be(Be({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var UC=typeof CSSINJS_STATISTIC<"u",Qf=!0;function Gm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!UC)return Object.assign.apply(Object,[{}].concat(t));Qf=!1;var r={};return t.forEach(function(o){if(At(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Qf=!0,r}var R0={};function cB(){}var uB=function(t){var n,r=t,o=cB;return UC&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Qf){var l;(l=n)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;R0[i]={global:Array.from(n),component:Be(Be({},(l=R0[i])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function T0(e,t,n){if(typeof n=="function"){var r;return n(Gm(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function dB(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(a){return h0(a)}).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(a){return h0(a)}).join(","),")")}}}var fB=1e3*60*10,pB=(function(){function e(){Qn(this,e),ge(this,"map",new Map),ge(this,"objectIDMap",new WeakMap),ge(this,"nextID",0),ge(this,"lastAccessBeat",new Map),ge(this,"accessBeat",0)}return Zn(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(a){return a&&At(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(At(a),"_").concat(a)});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,a){r-o>fB&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),D0=new pB;function mB(e,t){return fe.useMemo(function(){var n=D0.get(t);if(n)return n;var r=e();return D0.set(t,r),r},t)}var gB=function(){return{}};function hB(e){var t=e.useCSP,n=t===void 0?gB:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b(k){return"".concat(String(m)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},C=Be(Be({},x),{},ge({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){C[b(k)]=y[k]});var w=Be(Be({},g),{},{unitless:C,prefixToken:b}),E=u(p,v,h,w),S=c(m,h,w);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,$=E(k,O),I=$t($,2),N=I[1],A=S(O),F=$t(A,2),j=F[0],M=F[1];return[j,N,M]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,C=function(S){var k=S.rootCls,O=S.cssVar,$=O===void 0?{}:O,I=r(),N=I.realToken;return b_({path:[p],prefix:$.prefix,key:$.key,unitless:g,ignore:x,token:N,scope:k},function(){var A=T0(p,N,v),F=A0(p,N,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(j){F[y(j)]=F[j],delete F[j]}),F}),null},w=function(S){var k=r(),O=k.cssVar;return[function($){return b&&O?fe.createElement(fe.Fragment,null,fe.createElement(C,{rootCls:S,cssVar:O,component:p}),$):$},O==null?void 0:O.key]};return w}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=$t(m,1),y=b[0],x=m.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),k=S.theme,O=S.realToken,$=S.hashId,I=S.token,N=S.cssVar,A=o(),F=A.rootPrefixCls,j=A.iconPrefixCls,M=n(),R=N?"css":"js",P=mB(function(){var D=new Set;return N&&Object.keys(g.unitless||{}).forEach(function(B){D.add(ml(B,N.prefix)),D.add(ml(B,N0(y,N.prefix)))}),J_(R,D)},[R,y,N==null?void 0:N.prefix]),z=dB(R),H=z.max,L=z.min,T={theme:k,token:I,hashId:$,nonce:function(){return M.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&Af(Be(Be({},T),{},{clientOnly:!1,path:["Shared",F]}),function(){return a(I,{prefix:{rootPrefixCls:F,iconPrefixCls:j},csp:M})});var _=Af(Be(Be({},T),{},{path:[x,w,j]}),function(){if(g.injectStyle===!1)return[];var D=uB(I),B=D.token,V=D.flush,W=T0(y,O,h),q=".".concat(w),Q=A0(y,O,W,{deprecatedTokens:g.deprecatedTokens});N&&W&&At(W)==="object"&&Object.keys(W).forEach(function(Y){W[Y]="var(".concat(ml(Y,N0(y,N.prefix)),")")});var U=Gm(B,{componentCls:q,prefixCls:w,iconCls:".".concat(j),antCls:".".concat(F),calc:P,max:H,min:L},N?W:Q),J=v(U,{hashId:$,prefixCls:w,rootPrefixCls:F,iconPrefixCls:j});V(y,Q);var X=typeof i=="function"?i(U,w,E,g.resetFont):null;return[g.resetStyle===!1?null:X,J]});return[_,$]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,Be({resetStyle:!1,order:-998},g)),b=function(x){var C=x.prefixCls,w=x.rootCls,E=w===void 0?C:w;return m(C,E),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const vB="5.27.6";function qu(e){return e>=0&&e<=255}function Xs(e,t){const{r:n,g:r,b:o,a}=new $n(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new $n(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(qu(u)&&qu(f)&&qu(p))return new $n({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new $n({r:n,g:r,b:o,a:1}).toRgbString()}var bB=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 YC(e){const{override:t}=e,n=bB(e,["override"]),r=Object.assign({},t);Object.keys(rs).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xs(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:Xs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xs(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:Xs(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:`
|
|
466
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
467
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
468
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
469
|
-
`,boxShadowSecondary:`
|
|
470
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
471
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
472
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
473
|
-
`,boxShadowTertiary:`
|
|
474
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
475
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
476
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
477
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
478
|
-
0 1px 2px -2px ${new $n("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
479
|
-
0 3px 6px 0 ${new $n("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
480
|
-
0 5px 12px 4px ${new $n("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
481
|
-
`,boxShadowDrawerRight:`
|
|
482
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
483
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
484
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
485
|
-
`,boxShadowDrawerLeft:`
|
|
486
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
487
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
488
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
489
|
-
`,boxShadowDrawerUp:`
|
|
490
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
491
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
492
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
493
|
-
`,boxShadowDrawerDown:`
|
|
494
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
495
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
496
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
497
|
-
`,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 _0=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 XC={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},yB={motionBase:!0,motionUnit:!0},xB={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},GC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=_0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=YC(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=_0(l,["theme"]);let f=u;c&&(f=GC(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function zc(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(HC),a=`${vB}-${t||""}`,i=n||zC,[s,l,c]=W8(i,[rs,e],{salt:a,override:r,getComputedToken:GC,formatToken:YC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:XC,ignore:yB,preserve:xB}});return[i,c,t?l:"",s,o]}const wB=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),CB=()=>({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"}}),SB=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"}}}),EB=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},KC=e=>({[`.${e}`]:Object.assign(Object.assign({},CB()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:$B}=hB({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=nn(ao);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=zc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=nn(ao);return e??{}},getResetStyles:(e,t)=>{var n;const r=SB(e);return[r,{"&":r},KC((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Bc)]},getCommonStyle:EB,getCompUnitless:()=>XC}),kB=(e,t)=>{const[n,r]=zc();return Af({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>KC(e))},OB=Object.assign({},d),{useId:B0}=OB,IB=()=>"",MB=typeof B0>"u"?IB:B0;function FB(e,t,n){var r;const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Yf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Yf.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=MB();return bC(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!If(c,f,!0)}))}var Uu={exports:{}};/*!
|
|
498
|
-
Copyright (c) 2018 Jed Watson.
|
|
499
|
-
Licensed under the MIT License (MIT), see
|
|
500
|
-
http://jedwatson.github.io/classnames
|
|
501
|
-
*/var z0;function NB(){return z0||(z0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Uu)),Uu.exports}var jB=NB();const Dr=Sp(jB);function H0(e){return e instanceof HTMLElement||e instanceof SVGElement}function QC(e){return e&&At(e)==="object"&&H0(e.nativeElement)?e.nativeElement:H0(e)?e:null}function PB(e){var t=QC(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var AB=["children"],ZC=d.createContext({});function RB(e){var t=e.children,n=Jr(e,AB);return d.createElement(ZC.Provider,{value:n},t)}var TB=(function(e){ui(n,e);var t=di(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function DB(e){var t=d.useReducer(function(s){return s+1},0),n=$t(t,2),r=n[1],o=d.useRef(e),a=Ul(function(){return o.current}),i=Ul(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var yo="none",Gs="appear",Ks="enter",Qs="leave",L0="none",jr="prepare",ja="start",Pa="active",Km="end",JC="prepared";function V0(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 _B(e,t){var n={animationend:V0("Animation","AnimationEnd"),transitionend:V0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var BB=_B(co(),typeof window<"u"?window:{}),eS={};if(co()){var zB=document.createElement("div");eS=zB.style}var Zs={};function tS(e){if(Zs[e])return Zs[e];var t=BB[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in eS)return Zs[e]=t[a],Zs[e]}return""}var nS=tS("animationend"),rS=tS("transitionend"),oS=!!(nS&&rS),W0=nS||"animationend",q0=rS||"transitionend";function U0(e,t){if(!e)return null;if(At(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const HB=(function(e){var t=Ke();function n(o){o&&(o.removeEventListener(q0,e),o.removeEventListener(W0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(q0,e),o.addEventListener(W0,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var aS=co()?jb:mt,iS=function(t){return+setTimeout(t,16)},sS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(iS=function(t){return window.requestAnimationFrame(t)},sS=function(t){return window.cancelAnimationFrame(t)});var Y0=0,Qm=new Map;function lS(e){Qm.delete(e)}var Zf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Y0+=1;var r=Y0;function o(a){if(a===0)lS(r),t();else{var i=iS(function(){o(a-1)});Qm.set(r,i)}}return o(n),r};Zf.cancel=function(e){var t=Qm.get(e);return lS(e),sS(t)};const LB=(function(){var e=d.useRef(null);function t(){Zf.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Zf(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var VB=[jr,ja,Pa,Km],WB=[jr,JC],cS=!1,qB=!0;function uS(e){return e===Pa||e===Km}const UB=(function(e,t,n){var r=Kf(L0),o=$t(r,2),a=o[0],i=o[1],s=LB(),l=$t(s,2),c=l[0],u=l[1];function f(){i(jr,!0)}var p=t?WB:VB;return aS(function(){if(a!==L0&&a!==Km){var v=p.indexOf(a),h=p[v+1],g=n(a);g===cS?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function YB(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,k=r.onVisibleChanged,O=Kf(),$=$t(O,2),I=$[0],N=$[1],A=DB(yo),F=$t(A,2),j=F[0],M=F[1],R=Kf(null),P=$t(R,2),z=P[0],H=P[1],L=j(),T=Ke(!1),_=Ke(null);function D(){return n()}var B=Ke(!1);function V(){M(yo),H(null,!0)}var W=Ul(function(he){var ke=j();if(ke!==yo){var ce=D();if(!(he&&!he.deadline&&he.target!==ce)){var de=B.current,Ae;ke===Gs&&de?Ae=w==null?void 0:w(ce,he):ke===Ks&&de?Ae=E==null?void 0:E(ce,he):ke===Qs&&de&&(Ae=S==null?void 0:S(ce,he)),de&&Ae!==!1&&V()}}}),q=HB(W),Q=$t(q,1),U=Q[0],J=function(ke){switch(ke){case Gs:return ge(ge(ge({},jr,p),ja,g),Pa,y);case Ks:return ge(ge(ge({},jr,v),ja,m),Pa,x);case Qs:return ge(ge(ge({},jr,h),ja,b),Pa,C);default:return{}}},X=d.useMemo(function(){return J(L)},[L]),Y=UB(L,!e,function(he){if(he===jr){var ke=X[jr];return ke?ke(D()):cS}if(ne in X){var ce;H(((ce=X[ne])===null||ce===void 0?void 0:ce.call(X,D(),null))||null)}return ne===Pa&&L!==yo&&(U(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===JC&&V(),qB}),ae=$t(Y,2),oe=ae[0],ne=ae[1],ue=uS(ne);B.current=ue;var pe=Ke(null);aS(function(){if(!(T.current&&pe.current===t)){N(t);var he=T.current;T.current=!0;var ke;!he&&t&&s&&(ke=Gs),he&&t&&a&&(ke=Ks),(he&&!t&&c||!he&&f&&!t&&c)&&(ke=Qs);var ce=J(ke);ke&&(e||ce[jr])?(M(ke),oe()):M(yo),pe.current=t}},[t]),mt(function(){(L===Gs&&!s||L===Ks&&!a||L===Qs&&!c)&&M(yo)},[s,a,c]),mt(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var be=d.useRef(!1);mt(function(){I&&(be.current=!0),I!==void 0&&L===yo&&((be.current||I)&&(k==null||k(I)),be.current=!0)},[I,L]);var Se=z;return X[jr]&&ne===ja&&(Se=Be({transition:"none"},Se)),[L,ne,Se,I??t]}function XB(e){var t=e;At(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(ZC),m=g.motion,b=n(o,m),y=Ke(),x=Ke();function C(){try{return y.current instanceof HTMLElement?y.current:PB(x.current)}catch{return null}}var w=YB(b,s,C,o),E=$t(w,4),S=E[0],k=E[1],O=E[2],$=E[3],I=d.useRef($);$&&(I.current=!0);var N=d.useCallback(function(P){y.current=P,iB(a,P)},[a]),A,F=Be(Be({},h),{},{visible:s});if(!f)A=null;else if(S===yo)$?A=f(Be({},F),N):!c&&I.current&&v?A=f(Be(Be({},F),{},{className:v}),N):u||!c&&!v?A=f(Be(Be({},F),{},{style:{display:"none"}}),N):A=null;else{var j;k===jr?j="prepare":uS(k)?j="active":k===ja&&(j="start");var M=U0(p,"".concat(S,"-").concat(j));A=f(Be(Be({},F),{},{className:Dr(U0(p,S),ge(ge({},M,M&&j),p,typeof p=="string")),style:O}),N)}if(d.isValidElement(A)&&sB(A)){var R=lB(A);R||(A=d.cloneElement(A,{ref:N}))}return d.createElement(TB,{ref:x},A)});return r.displayName="CSSMotion",r}const GB=XB(oS);var Jf="add",ep="keep",tp="remove",Yu="removed";function KB(e){var t;return e&&At(e)==="object"&&"key"in e?t=e:t={key:e},Be(Be({},t),{},{key:String(t.key)})}function np(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KB)}function QB(){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,a=np(e),i=np(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return Be(Be({},v),{},{status:Jf})})),r=f),n.push(Be(Be({},p),{},{status:ep})),r+=1,u=!0;break}}u||n.push(Be(Be({},c),{},{status:tp}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Be(Be({},c),{},{status:Jf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==tp}),n.forEach(function(u){u.key===c&&(u.status=ep)})}),n}var ZB=["component","children","onVisibleChanged","onAllRemoved"],JB=["status"],ez=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:GB,n=(function(r){ui(a,r);var o=di(a);function a(){var i;Qn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),ge(zt(i),"state",{keyEntities:[]}),ge(zt(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:Be(Be({},v),{},{status:Yu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==Yu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Zn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,p=c.onVisibleChanged;c.onAllRemoved;var v=Jr(c,ZB),h=u||d.Fragment,g={};return ez.forEach(function(m){g[m]=v[m],delete v[m]}),delete v.keys,d.createElement(h,v,l.map(function(m,b){var y=m.status,x=Jr(m,JB),C=y===Jf||y===ep;return d.createElement(t,Vn({},g,{key:x.key,visible:C,eventProps:x,onVisibleChanged:function(E){p==null||p(E,{key:x.key}),E||s.removeKey(x.key)}}),function(w,E){return f(Be(Be({},w),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=np(c),p=QB(u,f);return{keyEntities:p.filter(function(v){var h=u.find(function(g){var m=g.key;return v.key===m});return!(h&&h.status===Yu&&v.status===tp)})}}}]),a})(d.Component);return ge(n,"defaultProps",{component:"div"}),n}const nz=tz(oS),X0=d.createContext(!0);function rz(e){const t=d.useContext(X0),{children:n}=e,[,r]=zc(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(X0.Provider,{value:o},d.createElement(RB,{motion:o},n)):n}const oz=()=>null;var az=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 iz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Yl,dS,fS,pS;function xl(){return Yl||Xf}function sz(){return dS||Bc}function lz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const cz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Yl=t),n!==void 0&&(dS=n),"holderRender"in e&&(pS=o),r&&(lz(r)?U_(xl(),r):fS=r)},uz=()=>({getPrefixCls:(e,t)=>t||(e?`${xl()}-${e}`:xl()),getIconPrefixCls:sz,getRootPrefixCls:()=>Yl||xl(),getTheme:()=>fS,holderRender:pS}),dz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:E,spin:S,calendar:k,carousel:O,cascader:$,collapse:I,typography:N,checkbox:A,descriptions:F,divider:j,drawer:M,skeleton:R,steps:P,image:z,layout:H,list:L,mentions:T,modal:_,progress:D,result:B,slider:V,breadcrumb:W,menu:q,pagination:Q,input:U,textArea:J,empty:X,badge:Y,radio:ae,rate:oe,switch:ne,transfer:ue,avatar:pe,message:be,tag:Se,table:he,card:ke,tabs:ce,timeline:de,timePicker:Ae,upload:ie,notification:We,tree:ze,colorPicker:De,datePicker:Ee,rangePicker:Ve,flex:Ne,wave:Fe,dropdown:$e,warning:je,tour:qe,tooltip:ve,popover:it,popconfirm:pt,floatButton:yt,floatButtonGroup:Pt,variant:He,inputNumber:Xe,treeSelect:Ye}=e,Je=d.useCallback((Qe,ot)=>{const{prefixCls:gt}=e;if(ot)return ot;const kt=gt||b.getPrefixCls("");return Qe?`${kt}-${Qe}`:kt},[b.getPrefixCls,e.prefixCls]),tt=y||b.iconPrefixCls||Bc,Ot=n||b.csp;kB(tt,Ot);const Nt=FB(x,b.theme,{prefixCls:Je("")}),et={csp:Ot,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:Je,iconPrefixCls:tt,theme:Nt,segmented:w,statistic:E,spin:S,calendar:k,carousel:O,cascader:$,collapse:I,typography:N,checkbox:A,descriptions:F,divider:j,drawer:M,skeleton:R,steps:P,image:z,input:U,textArea:J,layout:H,list:L,mentions:T,modal:_,progress:D,result:B,slider:V,breadcrumb:W,menu:q,pagination:Q,empty:X,badge:Y,radio:ae,rate:oe,switch:ne,transfer:ue,avatar:pe,message:be,tag:Se,table:he,card:ke,tabs:ce,timeline:de,timePicker:Ae,upload:ie,notification:We,tree:ze,colorPicker:De,datePicker:Ee,rangePicker:Ve,flex:Ne,wave:Fe,dropdown:$e,warning:je,tour:qe,tooltip:ve,popover:it,popconfirm:pt,floatButton:yt,floatButtonGroup:Pt,variant:He,inputNumber:Xe,treeSelect:Ye},st=Object.assign({},b);Object.keys(et).forEach(Qe=>{et[Qe]!==void 0&&(st[Qe]=et[Qe])}),iz.forEach(Qe=>{const ot=e[Qe];ot&&(st[Qe]=ot)}),typeof r<"u"&&(st.button=Object.assign({autoInsertSpace:r},st.button));const Ct=bC(()=>st,st,(Qe,ot)=>{const gt=Object.keys(Qe),kt=Object.keys(ot);return gt.length!==kt.length||gt.some(Mt=>Qe[Mt]!==ot[Mt])}),{layer:Le}=d.useContext(bs),Pe=d.useMemo(()=>({prefixCls:tt,csp:Ot,layer:Le?"antd":void 0}),[tt,Ot,Le]);let ye=d.createElement(d.Fragment,null,d.createElement(oz,{dropdownMatchSelectWidth:v}),t);const Te=d.useMemo(()=>{var Qe,ot,gt,kt;return Na(((Qe=_c.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((gt=(ot=Ct.locale)===null||ot===void 0?void 0:ot.Form)===null||gt===void 0?void 0:gt.defaultValidateMessages)||{},((kt=Ct.form)===null||kt===void 0?void 0:kt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Ct,i==null?void 0:i.validateMessages]);Object.keys(Te).length>0&&(ye=d.createElement(E_.Provider,{value:Te},ye)),s&&(ye=d.createElement(O_,{locale:s,_ANT_MARK__:k_},ye)),ye=d.createElement(Xm.Provider,{value:Pe},ye),l&&(ye=d.createElement(X_,{size:l},ye)),ye=d.createElement(rz,null,ye);const nt=d.useMemo(()=>{const Qe=Nt||{},{algorithm:ot,token:gt,components:kt,cssVar:Mt}=Qe,Jt=az(Qe,["algorithm","token","components","cssVar"]),Ht=ot&&(!Array.isArray(ot)||ot.length>0)?Ff(ot):zC,Z={};Object.entries(kt||{}).forEach(([we,Ie])=>{const le=Object.assign({},Ie);"algorithm"in le&&(le.algorithm===!0?le.theme=Ht:(Array.isArray(le.algorithm)||typeof le.algorithm=="function")&&(le.theme=Ff(le.algorithm)),delete le.algorithm),Z[we]=le});const ee=Object.assign(Object.assign({},rs),gt);return Object.assign(Object.assign({},Jt),{theme:Ht,token:ee,components:Z,override:Object.assign({override:ee},Z),cssVar:Mt})},[Nt]);return x&&(ye=d.createElement(HC.Provider,{value:nt},ye)),Ct.warning&&(ye=d.createElement(S_.Provider,{value:Ct.warning},ye)),C!==void 0&&(ye=d.createElement(Y_,{disabled:C},ye)),d.createElement(ao.Provider,{value:Ct},ye)},pi=e=>{const t=d.useContext(ao),n=d.useContext(TC);return d.createElement(dz,Object.assign({parentContext:t,legacyLocale:n},e))};pi.ConfigContext=ao;pi.SizeContext=as;pi.config=cz;pi.useConfig=G_;Object.defineProperty(pi,"SizeContext",{get:()=>as});function mS(e,t){this.v=e,this.k=t}function qn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}qn=function(i,s,l,c){function u(f,p){qn(i,f,function(v){return this._invoke(f,p,v)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},qn(e,t,n,r)}function Zm(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return qn(y,"_invoke",(function(x,C,w){var E,S,k,O=0,$=w||[],I=!1,N={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(j,M){return E=j,S=0,k=e,N.n=M,i}};function A(F,j){for(S=F,k=j,t=0;!I&&O&&!M&&t<$.length;t++){var M,R=$[t],P=N.p,z=R[2];F>3?(M=z===j)&&(k=R[(S=R[4])?5:(S=3,3)],R[4]=R[5]=e):R[0]<=P&&((M=F<2&&P<R[1])?(S=0,N.v=j,N.n=R[1]):P<z&&(M=F<3||R[0]>j||j>z)&&(R[4]=F,R[5]=j,N.n=z,S=0))}if(M||F>1)return i;throw I=!0,j}return function(F,j,M){if(O>1)throw TypeError("Generator is already running");for(I&&j===1&&A(j,M),S=j,k=M;(t=S<2?e:k)||!I;){E||(S?S<3?(S>1&&(N.n=-1),A(S,k)):N.n=k:N.v=k);try{if(O=2,E){if(S||(F="next"),t=E[F]){if(!(t=t.call(E,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&(k=TypeError("The iterator does not provide a '"+F+"' method"),S=1);E=e}else if((t=(I=N.n<0)?k:x.call(C,N))!==i)break}catch(R){E=e,S=1,k=R}finally{O=1}}return{value:t,done:I}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(qn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,qn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,qn(f,"constructor",c),qn(c,"constructor",l),l.displayName="GeneratorFunction",qn(c,o,"GeneratorFunction"),qn(f),qn(f,o,"Generator"),qn(f,r,function(){return this}),qn(f,"toString",function(){return"[object Generator]"}),(Zm=function(){return{w:a,m:p}})()}function Xl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof mS?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(qn(Xl.prototype),qn(Xl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),qn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function gS(e,t,n,r,o){return new Xl(Zm().w(e,t,n,r),o||Promise)}function fz(e,t,n,r,o){var a=gS(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function pz(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function G0(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(At(e)+" is not iterable")}function Gn(){var e=Zm(),t=e.m(Gn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,p){return l(c.a,o[f],p)},delegateYield:function(f,p,v){return s.resultName=p,l(c.d,G0(f),v)},finish:function(f){return l(c.f,f)}},l=function(f,p,v){c.p=s.prev,c.n=s.next;try{return f(p,v)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Gn=function(){return{wrap:function(l,c,u,f){return e.w(a(l),c,u,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new mS(l,c)},AsyncIterator:Xl,async:function(l,c,u,f,p){return(r(c)?gS:fz)(a(l),c,u,f,p)},keys:pz,values:G0}})()}function K0(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){K0(a,r,o,i,s,"next",l)}function s(l){K0(a,r,o,i,s,"throw",l)}i(void 0)})}}var ys=Be({},Ab),mz=ys.version,Xu=ys.render,gz=ys.unmountComponentAtNode,Hc;try{var hz=Number((mz||"").split(".")[0]);hz>=18&&(Hc=ys.createRoot)}catch{}function Q0(e){var t=ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&At(t)==="object"&&(t.usingClientEntryPoint=e)}var Gl="__rc_react_root__";function vz(e,t){Q0(!0);var n=t[Gl]||Hc(t);Q0(!1),n.render(e),t[Gl]=n}function bz(e,t){Xu==null||Xu(e,t)}function yz(e,t){if(Hc){vz(e,t);return}bz(e,t)}function xz(e){return rp.apply(this,arguments)}function rp(){return rp=pa(Gn().mark(function e(t){return Gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Gl])===null||o===void 0||o.unmount(),delete t[Gl]}));case 1:case"end":return r.stop()}},e)})),rp.apply(this,arguments)}function wz(e){gz(e)}function Cz(e){return op.apply(this,arguments)}function op(){return op=pa(Gn().mark(function e(t){return Gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hc===void 0){r.next=2;break}return r.abrupt("return",xz(t));case 2:wz(t);case 3:case"end":return r.stop()}},e)})),op.apply(this,arguments)}const Sz=(e,t)=>(yz(e,t),()=>Cz(t));let Ez=Sz;function $z(e){return Ez}var kz={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"};function hS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Oz(e){return hS(e)instanceof ShadowRoot}function Iz(e){return Oz(e)?hS(e):null}function Mz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Fz(e,t){fr(e,"[@ant-design/icons] ".concat(t))}function Z0(e){return At(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(At(e.icon)==="object"||typeof e.icon=="function")}function J0(){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[Mz(n)]=r}return t},{})}function ap(e,t,n){return n?fe.createElement(e.tag,Be(Be({key:t},J0(e.attrs)),n),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,Be({key:t},J0(e.attrs)),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vS(e){return os(e)[0]}function bS(e){return e?Array.isArray(e)?e:[e]:[]}var Nz=`
|
|
502
|
-
.anticon {
|
|
503
|
-
display: inline-flex;
|
|
504
|
-
align-items: center;
|
|
505
|
-
color: inherit;
|
|
506
|
-
font-style: normal;
|
|
507
|
-
line-height: 0;
|
|
508
|
-
text-align: center;
|
|
509
|
-
text-transform: none;
|
|
510
|
-
vertical-align: -0.125em;
|
|
511
|
-
text-rendering: optimizeLegibility;
|
|
512
|
-
-webkit-font-smoothing: antialiased;
|
|
513
|
-
-moz-osx-font-smoothing: grayscale;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.anticon > * {
|
|
517
|
-
line-height: 1;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.anticon svg {
|
|
521
|
-
display: inline-block;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.anticon::before {
|
|
525
|
-
display: none;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
.anticon .anticon-icon {
|
|
529
|
-
display: block;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.anticon[tabindex] {
|
|
533
|
-
cursor: pointer;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.anticon-spin::before,
|
|
537
|
-
.anticon-spin {
|
|
538
|
-
display: inline-block;
|
|
539
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
540
|
-
animation: loadingCircle 1s infinite linear;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
@-webkit-keyframes loadingCircle {
|
|
544
|
-
100% {
|
|
545
|
-
-webkit-transform: rotate(360deg);
|
|
546
|
-
transform: rotate(360deg);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
@keyframes loadingCircle {
|
|
551
|
-
100% {
|
|
552
|
-
-webkit-transform: rotate(360deg);
|
|
553
|
-
transform: rotate(360deg);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
`,jz=function(t){var n=nn(Xm),r=n.csp,o=n.prefixCls,a=n.layer,i=Nz;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
557
|
-
`).concat(i,`
|
|
558
|
-
}`)),mt(function(){var s=t.current,l=Iz(s);Qo(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},Pz=["icon","className","onClick","style","primaryColor","secondaryColor"],Di={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Az(e){var t=e.primaryColor,n=e.secondaryColor;Di.primaryColor=t,Di.secondaryColor=n||vS(t),Di.calculated=!!n}function Rz(){return Be({},Di)}var mi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Jr(t,Pz),c=d.useRef(),u=Di;if(i&&(u={primaryColor:i,secondaryColor:s||vS(i)}),jz(c),Fz(Z0(n),"icon should be icon definiton, but got ".concat(n)),!Z0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Be(Be({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),ap(f.icon,"svg-".concat(f.name),Be(Be({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};mi.displayName="IconReact";mi.getTwoToneColors=Rz;mi.setTwoToneColors=Az;function yS(e){var t=bS(e),n=$t(t,2),r=n[0],o=n[1];return mi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Tz(){var e=mi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Dz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yS(ql.primary);var uo=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Jr(e,Dz),u=d.useContext(Xm),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=Dr(v,p,ge(ge({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=bS(l),y=$t(b,2),x=y[0],C=y[1];return d.createElement("span",Vn({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(mi,{icon:r,primaryColor:x,secondaryColor:C,style:m}))});uo.displayName="AntdIcon";uo.getTwoToneColor=Tz;uo.setTwoToneColor=yS;var _z=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:kz}))},Bz=d.forwardRef(_z),zz={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"},Hz=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:zz}))},Lz=d.forwardRef(Hz),Vz={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"},Wz=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:Vz}))},qz=d.forwardRef(Wz),Uz={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"},Yz=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:Uz}))},Xz=d.forwardRef(Yz),Gz={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"},Kz=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:Gz}))},Qz=d.forwardRef(Kz),Zz={ENTER:13},Jz=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
559
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
560
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
561
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
562
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
563
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
564
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
565
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
566
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
567
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
568
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
569
|
-
summary tabIndex target title type useMap value width wmode wrap`,eH=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
570
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
571
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
572
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
573
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
574
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
575
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tH="".concat(Jz," ").concat(eH).split(/[\s\n]+/),nH="aria-",rH="data-";function eb(e,t){return e.indexOf(t)===0}function oH(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=Be({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||eb(o,nH))||n.data&&eb(o,rH)||n.attr&&tH.includes(o))&&(r[o]=e[o])}),r}var xS=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,C=d.useState(!1),w=$t(C,2),E=w[0],S=w[1],k=d.useState(0),O=$t(k,2),$=O[0],I=O[1],N=d.useState(0),A=$t(N,2),F=A[0],j=A[1],M=x||E,R=i>0&&s,P=function(){b(u)},z=function(B){(B.key==="Enter"||B.code==="Enter"||B.keyCode===Zz.ENTER)&&P()};d.useEffect(function(){if(!M&&i>0){var D=Date.now()-F,B=setTimeout(function(){P()},i*1e3-F);return function(){c&&clearTimeout(B),j(Date.now()-D)}}},[i,M,y]),d.useEffect(function(){if(!M&&R&&(c||F===0)){var D=performance.now(),B,V=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(q){var Q=q+F-D,U=Math.min(Q/(i*1e3),1);I(U*100),U<1&&W()})};return V(),function(){c&&cancelAnimationFrame(B)}}},[i,F,M,R,y]);var H=d.useMemo(function(){return At(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),L=oH(H,!0),T=100-(!$||$<0?0:$>100?100:$),_="".concat(n,"-notice");return d.createElement("div",Vn({},g,{ref:t,className:Dr(_,o,ge({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(B){var V;S(!0),g==null||(V=g.onMouseEnter)===null||V===void 0||V.call(g,B)},onMouseLeave:function(B){var V;S(!1),g==null||(V=g.onMouseLeave)===null||V===void 0||V.call(g,B)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Vn({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:z,"aria-label":"Close"},L,{onClick:function(B){B.preventDefault(),B.stopPropagation(),P()}}),H.closeIcon),R&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),wS=fe.createContext({}),aH=function(t){var n=t.children,r=t.classNames;return fe.createElement(wS.Provider,{value:{classNames:r}},n)},tb=8,nb=3,rb=16,iH=function(t){var n={offset:tb,threshold:nb,gap:rb};if(t&&At(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:tb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:nb,n.gap=(a=t.gap)!==null&&a!==void 0?a:rb}return[!!t,n]},sH=["className","style","classNames","styles"],lH=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=nn(wS),p=f.classNames,v=Ke({}),h=ct(null),g=$t(h,2),m=g[0],b=g[1],y=ct([]),x=$t(y,2),C=x[0],w=x[1],E=n.map(function(M){return{config:M,key:String(M.key)}}),S=iH(u),k=$t(S,2),O=k[0],$=k[1],I=$.offset,N=$.threshold,A=$.gap,F=O&&(C.length>0||E.length<=N),j=typeof s=="function"?s(r):s;return mt(function(){O&&C.length>1&&w(function(M){return M.filter(function(R){return E.some(function(P){var z=P.key;return R===z})})})},[C,E,O]),mt(function(){var M;if(O&&v.current[(M=E[E.length-1])===null||M===void 0?void 0:M.key]){var R;b(v.current[(R=E[E.length-1])===null||R===void 0?void 0:R.key])}},[E,O]),fe.createElement(nz,Vn({key:r,className:Dr(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,a,ge(ge({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),F)),style:i,keys:E,motionAppear:!0},j,{onAllRemoved:function(){l(r)}}),function(M,R){var P=M.config,z=M.className,H=M.style,L=M.index,T=P,_=T.key,D=T.times,B=String(_),V=P,W=V.className,q=V.style,Q=V.classNames,U=V.styles,J=Jr(V,sH),X=E.findIndex(function(de){return de.key===B}),Y={};if(O){var ae=E.length-1-(X>-1?X:L-1),oe=r==="top"||r==="bottom"?"-50%":"0";if(ae>0){var ne,ue,pe;Y.height=F?(ne=v.current[B])===null||ne===void 0?void 0:ne.offsetHeight:m==null?void 0:m.offsetHeight;for(var be=0,Se=0;Se<ae;Se++){var he;be+=((he=v.current[E[E.length-1-Se].key])===null||he===void 0?void 0:he.offsetHeight)+A}var ke=(F?be:ae*I)*(r.startsWith("top")?1:-1),ce=!F&&m!==null&&m!==void 0&&m.offsetWidth&&(ue=v.current[B])!==null&&ue!==void 0&&ue.offsetWidth?((m==null?void 0:m.offsetWidth)-I*2*(ae<3?ae:3))/((pe=v.current[B])===null||pe===void 0?void 0:pe.offsetWidth):1;Y.transform="translate3d(".concat(oe,", ").concat(ke,"px, 0) scaleX(").concat(ce,")")}else Y.transform="translate3d(".concat(oe,", 0, 0)")}return fe.createElement("div",{ref:R,className:Dr("".concat(o,"-notice-wrapper"),z,Q==null?void 0:Q.wrapper),style:Be(Be(Be({},H),Y),U==null?void 0:U.wrapper),onMouseEnter:function(){return w(function(Ae){return Ae.includes(B)?Ae:[].concat(Ft(Ae),[B])})},onMouseLeave:function(){return w(function(Ae){return Ae.filter(function(ie){return ie!==B})})}},fe.createElement(xS,Vn({},J,{ref:function(Ae){X>-1?v.current[B]=Ae:delete v.current[B]},prefixCls:o,classNames:Q,styles:U,className:Dr(W,p==null?void 0:p.notice),style:q,times:D,key:_,eventKey:_,onNoticeClose:c,hovering:O&&C.length>0})))})},cH=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=$t(p,2),h=v[0],g=v[1],m=function(O){var $,I=h.find(function(N){return N.key===O});I==null||($=I.onClose)===null||$===void 0||$.call(I),g(function(N){return N.filter(function(A){return A.key!==O})})};d.useImperativeHandle(t,function(){return{open:function(O){g(function($){var I=Ft($),N=I.findIndex(function(j){return j.key===O.key}),A=Be({},O);if(N>=0){var F;A.times=(((F=$[N])===null||F===void 0?void 0:F.times)||0)+1,I[N]=A}else A.times=0,I.push(A);return i>0&&I.length>i&&(I=I.slice(-i)),I})},close:function(O){m(O)},destroy:function(){g([])}}});var b=d.useState({}),y=$t(b,2),x=y[0],C=y[1];d.useEffect(function(){var k={};h.forEach(function(O){var $=O.placement,I=$===void 0?"topRight":$;I&&(k[I]=k[I]||[],k[I].push(O))}),Object.keys(x).forEach(function(O){k[O]=k[O]||[]}),C(k)},[h]);var w=function(O){C(function($){var I=Be({},$),N=I[O]||[];return N.length||delete I[O],I})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return wp(d.createElement(d.Fragment,null,S.map(function(k){var O=x[k],$=d.createElement(lH,{key:k,configList:O,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:u});return f?f($,{prefixCls:r,key:k}):$})),o)}),uH=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],dH=function(){return document.body},ob=0;function fH(){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(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function pH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?dH:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Jr(e,uH),p=d.useState(),v=$t(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(cH,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=$t(y,2),C=x[0],w=x[1],E=Ul(function(k){var O=fH(f,k);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(ob),ob+=1),w(function($){return[].concat(Ft($),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function(O){w(function($){return[].concat(Ft($),[{type:"close",key:O}])})},destroy:function(){w(function(O){return[].concat(Ft(O),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&C.length){C.forEach(function($){switch($.type){case"open":m.current.open($.config);break;case"close":m.current.close($.key);break;case"destroy":m.current.destroy();break}});var k,O;w(function($){return(k!==$||!O)&&(k=$,O=$.filter(function(I){return!C.includes(I)})),O})}},[C]),[S,b]}const CS=e=>{const[,,,,t]=zc();return t?`${e}-css-var`:""},mH=100,gH=10,hH=mH*gH,vH=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new S0("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),C=new S0("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
576
|
-
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},wB(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
577
|
-
${t}-move-up-appear,
|
|
578
|
-
${t}-move-up-enter
|
|
579
|
-
`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
580
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
581
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
582
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},bH=e=>({zIndexPopup:e.zIndexPopupBase+hH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),SS=$B("Message",e=>{const t=Gm(e,{height:150});return vH(t)},bH);var yH=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 xH={info:d.createElement(Xz,null),success:d.createElement(Bz,null),error:d.createElement(Lz,null),warning:d.createElement(qz,null),loading:d.createElement(Qz,null)},ES=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:Dr(`${e}-custom-content`,`${e}-${t}`)},n||xH[t],d.createElement("span",null,r)),wH=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=yH(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(ao),l=t||s("message"),c=CS(l),[u,f,p]=SS(l,c);return u(d.createElement(xS,Object.assign({},i,{prefixCls:l,className:Dr(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(ES,{prefixCls:l,type:r,icon:o},a)})))};var CH={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"},SH=function(t,n){return d.createElement(uo,Vn({},t,{ref:n,icon:CH}))},EH=d.forwardRef(SH);function $H(e,t){return{motionName:t??`${e}-move-up`}}function Jm(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var kH=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 OH=8,IH=3,MH=({children:e,prefixCls:t})=>{const n=CS(t),[r,o,a]=SS(t,n);return r(d.createElement(aH,{classNames:{list:Dr(o,a,n)}},e))},FH=(e,{prefixCls:t,key:n})=>d.createElement(MH,{prefixCls:t,key:n},e),NH=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=IH,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(ao),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??OH}),m=()=>Dr({[`${h}-rtl`]:s??v==="rtl"}),b=()=>$H(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(EH,{className:`${h}-close-icon`})),[x,C]=pH({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:FH});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),C});let ab=0;function $S(e){const t=d.useRef(null);return[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:v,icon:h,type:g,key:m,className:b,style:y,onClose:x}=l,C=kH(l,["content","icon","type","key","className","style","onClose"]);let w=m;return w==null&&(ab+=1,w=`antd-message-${ab}`),Jm(E=>(c(Object.assign(Object.assign({},C),{key:w,content:d.createElement(ES,{prefixCls:u,type:g,icon:h},v),placement:"top",className:Dr(g&&`${p}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),E()}})),()=>{r(w)}))},i={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let v;u&&typeof u=="object"&&"content"in u?v=u:v={content:u};let h,g;typeof f=="function"?g=f:(h=f,g=p);const m=Object.assign(Object.assign({onClose:g,duration:h},v),{type:l});return o(m)};i[l]=c}),i},[]),d.createElement(NH,Object.assign({key:"message-holder"},e,{ref:t}))]}function jH(e){return $S(e)}let wr=null,Yo=e=>e(),is=[],ss={};function ib(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ss,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const PH=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=nn(ao),a=ss.prefixCls||o("message"),i=nn(l8),[s,l]=$S(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),AH=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(ib),o=()=>{r(ib)};fe.useEffect(o,[]);const a=uz(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(PH,{ref:t,sync:o,messageConfig:n});return fe.createElement(pi,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Lc=()=>{if(!wr){const e=document.createDocumentFragment(),t={fragment:e};wr=t,Yo(()=>{$z()(fe.createElement(AH,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,Lc())})}}),e)});return}wr.instance&&(is.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Yo(()=>{const r=wr.instance.open(Object.assign(Object.assign({},ss),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Yo(()=>{wr==null||wr.instance.destroy(e.key)});break;default:Yo(()=>{var r;const o=(r=wr.instance)[t].apply(r,Ft(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),is=[])};function RH(e){ss=Object.assign(Object.assign({},ss),e),Yo(()=>{var t;(t=wr==null?void 0:wr.sync)===null||t===void 0||t.call(wr)})}function TH(e){const t=Jm(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return is.push(o),()=>{r?Yo(()=>{r()}):o.skipped=!0}});return Lc(),t}function DH(e,t){const n=Jm(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return is.push(a),()=>{o?Yo(()=>{o()}):a.skipped=!0}});return Lc(),n}const _H=e=>{is.push({type:"destroy",key:e}),Lc()},BH=["success","info","warning","error","loading"],zH={open:TH,destroy:_H,config:RH,useMessage:jH,_InternalPanelDoNotUseOrYouWillBeFired:wH},wl=zH;BH.forEach(e=>{wl[e]=(...t)=>DH(e,t)});var Cl={exports:{}};/*!
|
|
583
|
-
* clipboard.js v2.0.11
|
|
584
|
-
* https://clipboardjs.com/
|
|
585
|
-
*
|
|
586
|
-
* Licensed MIT © Zeno Rocha
|
|
587
|
-
*/var HH=Cl.exports,sb;function LH(){return sb||(sb=1,(function(e,t){(function(r,o){e.exports=o()})(HH,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return L}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(_){var D=v()(_);return h("cut"),D},m=g;function b(T){var _=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(_,D){var B=b(_);D.container.appendChild(B);var V=v()(B);return h("copy"),B.remove(),V},x=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},B="";return typeof _=="string"?B=y(_,D):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?B=y(_.value,D):(B=v()(_),h("copy")),B},C=x;function w(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(D){return typeof D}:w=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},w(T)}var E=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=_.action,B=D===void 0?"copy":D,V=_.container,W=_.target,q=_.text;if(B!=="copy"&&B!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(W!==void 0)if(W&&w(W)==="object"&&W.nodeType===1){if(B==="copy"&&W.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(B==="cut"&&(W.hasAttribute("readonly")||W.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(q)return C(q,{container:V});if(W)return B==="cut"?m(W):C(W,{container:V})},S=E;function k(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(D){return typeof D}:k=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},k(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function $(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function I(T,_,D){return _&&$(T.prototype,_),D&&$(T,D),T}function N(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&A(T,_)}function A(T,_){return A=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B},A(T,_)}function F(T){var _=R();return function(){var B=P(T),V;if(_){var W=P(this).constructor;V=Reflect.construct(B,arguments,W)}else V=B.apply(this,arguments);return j(this,V)}}function j(T,_){return _&&(k(_)==="object"||typeof _=="function")?_:M(T)}function M(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},P(T)}function z(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var H=(function(T){N(D,T);var _=F(D);function D(B,V){var W;return O(this,D),W=_.call(this),W.resolveOptions(V),W.listenClick(B),W}return I(D,[{key:"resolveOptions",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof V.action=="function"?V.action:this.defaultAction,this.target=typeof V.target=="function"?V.target:this.defaultTarget,this.text=typeof V.text=="function"?V.text:this.defaultText,this.container=k(V.container)==="object"?V.container:document.body}},{key:"listenClick",value:function(V){var W=this;this.listener=f()(V,"click",function(q){return W.onClick(q)})}},{key:"onClick",value:function(V){var W=V.delegateTarget||V.currentTarget,q=this.action(W)||"copy",Q=S({action:q,container:this.container,target:this.target(W),text:this.text(W)});this.emit(Q?"success":"error",{action:q,text:Q,trigger:W,clearSelection:function(){W&&W.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V){return z("action",V)}},{key:"defaultTarget",value:function(V){var W=z("target",V);if(W)return document.querySelector(W)}},{key:"defaultText",value:function(V){return z("text",V)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(V){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(V,W)}},{key:"cut",value:function(V){return m(V)}},{key:"isSupported",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],W=typeof V=="string"?[V]:V,q=!!document.queryCommandSupported;return W.forEach(function(Q){q=q&&!!document.queryCommandSupported(Q)}),q}}]),D})(c()),L=H}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(Cl)),Cl.exports}var VH=LH();const WH=Sp(VH),qH=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new WH(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{wl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{wl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),wl.error("\u590D\u5236\u5931\u8D25: "+o,2)}},lb=e=>{const t=e.toLowerCase().split(".").pop()||"";return/^(jpg|jpeg|png|gif|bmp|webp)$/.test(t)?"image":/^(doc|docx)$/.test(t)?"word":/^(xls|xlsx|csv)$/.test(t)?"excel":/^(ppt|pptx)$/.test(t)?"ppt":t==="pdf"?"pdf":/^(txt|json|md|markdown)$/.test(t)?"text":/^(zip|rar|7z)$/.test(t)?"archive":"file"};function UH(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||Jo(32);t.push({istype:"user",content:n.query.content,time:n.query.gmtCreate,queryId:r,clientSideId:r+"-user",...n.query})}if(n.reply){const r=n.reply.queryId||n.reply.id||n.queryId||n.id||Jo(32);t.push({istype:"ai",content:n.reply.content,isDefault:n.reply.isDefault,time:n.time||n.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...n.reply})}}return t}const cb=async(e,t,n)=>{try{Jn.post(`${e.url}/qa/feedback`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Gu=async(e,t,n)=>{try{Jn.delete(`${e.url}/qa/feedback/cancel?queryId=${t.queryId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},YH=(e,t)=>{try{Jn.get(`${e.url}/qa/feedback/que/list`,{headers:{Authorization:e.token}}).then(n=>{n.data.success&&t&&t(n.data.data)})}catch(n){console.log("error",n)}},XH=async(e,t,n)=>{try{Jn.post(`${e.url}/qa/dialogue/reName`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r):kn.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&kn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},GH=async(e,t,n)=>{try{Jn.delete(`${e.url}/qa/dialogue/delete?sessionId=${t.sessionId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n(r.data)})}catch(r){console.log("error",r)}},KH=async(e,t,n)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:t});try{Jn.post(`${e.url}/qa/dialogue/create`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r.data):kn.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&kn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},QH=async(e,t,n)=>{try{const{uid:r,queryId:o}=t;let a=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;o&&(a+=`&queryId=${o}`),Jn.delete(a,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(i=>{i.data.success?n&&n(!0,i):n&&n(!1,i)}).catch(i=>{n&&n(!1,i)})}catch(r){n&&n(!1,r)}},ZH=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,JH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",e9=(e,t)=>{const n={...xp.colors,...e};return`
|
|
588
|
-
.g-welcome-${t} .g-welcome-title {
|
|
46
|
+
*/const Ni=Pt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var Oi=vt.ESC,Di=vt.TAB;function Pi(e){var n=e.visible,t=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(n){var m,h;(m=t.current)===null||m===void 0||(h=m.focus)===null||h===void 0||h.call(m),r==null||r(!1)}},u=function(){var m;return(m=a.current)!==null&&m!==void 0&&m.focus?(a.current.focus(),i.current=!0,!0):!1},d=function(m){switch(m.keyCode){case Oi:s();break;case Di:{var h=!1;i.current||(h=u()),h?m.preventDefault():s();break}}};l.useEffect(function(){return n?(window.addEventListener("keydown",d),o&&Xt(u,3),function(){window.removeEventListener("keydown",d),i.current=!1}):function(){i.current=!1}},[n])}var Ai=br(function(e,n){var t=e.overlay,r=e.arrow,o=e.prefixCls,a=Ge(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),i=ko(n,yr(a));return Be.createElement(Be.Fragment,null,r&&Be.createElement("div",{className:"".concat(o,"-arrow")}),Be.cloneElement(a,{ref:Mo(a)?i:void 0}))}),Ut={adjustX:1,adjustY:1},Wt=[0,0],ki={topLeft:{points:["bl","tl"],overflow:Ut,offset:[0,-4],targetOffset:Wt},top:{points:["bc","tc"],overflow:Ut,offset:[0,-4],targetOffset:Wt},topRight:{points:["br","tr"],overflow:Ut,offset:[0,-4],targetOffset:Wt},bottomLeft:{points:["tl","bl"],overflow:Ut,offset:[0,4],targetOffset:Wt},bottom:{points:["tc","bc"],overflow:Ut,offset:[0,4],targetOffset:Wt},bottomRight:{points:["tr","br"],overflow:Ut,offset:[0,4],targetOffset:Wt}},Mi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ri(e,n){var t,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,u=e.animation,d=e.align,f=e.placement,m=f===void 0?"bottomLeft":f,h=e.placements,x=h===void 0?ki:h,w=e.getPopupContainer,c=e.showAction,p=e.hideAction,C=e.overlayClassName,b=e.overlayStyle,I=e.visible,S=e.trigger,y=S===void 0?["hover"]:S,F=e.autoFocus,D=e.overlay,O=e.children,N=e.onVisibleChange,E=ot(e,Mi),_=Be.useState(),T=Ke(_,2),k=T[0],M=T[1],B="visible"in e?I:k,V=Be.useRef(null),j=Be.useRef(null),U=Be.useRef(null);Be.useImperativeHandle(n,function(){return V.current});var K=function(Q){M(Q),N==null||N(Q)};Pi({visible:B,triggerRef:U,onVisibleChange:K,autoFocus:F,overlayRef:j});var L=function(Q){var ie=e.onOverlayClick;M(!1),ie&&ie(Q)},q=function(){return Be.createElement(Ai,{ref:j,overlay:D,prefixCls:i,arrow:o})},ee=function(){return typeof D=="function"?q:q()},R=function(){var Q=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!ie},W=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(i,"-open")},J=Be.cloneElement(O,{className:Z((t=O.props)===null||t===void 0?void 0:t.className,B&&W()),ref:Mo(O)?ko(U,yr(O)):void 0}),oe=p;return!oe&&y.indexOf("contextMenu")!==-1&&(oe=["click"]),Be.createElement(Ro,De({builtinPlacements:x},E,{prefixCls:i,ref:V,popupClassName:Z(C,re({},"".concat(i,"-show-arrow"),o)),popupStyle:b,action:y,showAction:c,hideAction:oe,popupPlacement:m,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:B,stretch:R()?"minWidth":"",popup:ee(),onPopupVisibleChange:K,onPopupClick:L,getPopupContainer:w}),J)}const Bi=Be.forwardRef(Ri),Ti=e=>typeof e!="object"&&typeof e!="function"||e===null;var Yo=l.createContext(null);function Qo(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function Zo(e){var n=l.useContext(Yo);return Qo(n,e)}var _i=["children","locked"],ht=l.createContext(null);function zi(e,n){var t=ze({},e);return Object.keys(n).forEach(function(r){var o=n[r];o!==void 0&&(t[r]=o)}),t}function ln(e){var n=e.children,t=e.locked,r=ot(e,_i),o=l.useContext(ht),a=Oa(function(){return zi(o,r)},[o,r],function(i,s){return!t&&(i[0]!==s[0]||!Bo(i[1],s[1],!0))});return l.createElement(ht.Provider,{value:a},n)}var ji=[],ea=l.createContext(null);function Dn(){return l.useContext(ea)}var ta=l.createContext(ji);function Yt(e){var n=l.useContext(ta);return l.useMemo(function(){return e!==void 0?[].concat(Ye(n),[e]):n},[n,e])}var na=l.createContext(null),kr=l.createContext({});function Yr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Da(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||n&&i<0)}return!1}function Li(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=Ye(e.querySelectorAll("*")).filter(function(r){return Yr(r,n)});return Yr(e,n)&&t.unshift(e),t}var cr=vt.LEFT,ur=vt.RIGHT,dr=vt.UP,Cn=vt.DOWN,xn=vt.ENTER,ra=vt.ESC,en=vt.HOME,tn=vt.END,Qr=[dr,Cn,cr,ur];function Hi(e,n,t,r){var o,a="prev",i="next",s="children",u="parent";if(e==="inline"&&r===xn)return{inlineTrigger:!0};var d=re(re({},dr,a),Cn,i),f=re(re(re(re({},cr,t?i:a),ur,t?a:i),Cn,s),xn,s),m=re(re(re(re(re(re({},dr,a),Cn,i),xn,s),ra,u),cr,t?s:u),ur,t?u:s),h={inline:d,horizontal:f,vertical:m,inlineSub:d,horizontalSub:m,verticalSub:m},x=(o=h["".concat(e).concat(n?"":"Sub")])===null||o===void 0?void 0:o[r];switch(x){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function qi(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Ui(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function Mr(e,n){var t=Li(e,!0);return t.filter(function(r){return n.has(r)})}function Zr(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Mr(e,n),a=o.length,i=o.findIndex(function(s){return t===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var pr=function(n,t){var r=new Set,o=new Map,a=new Map;return n.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Qo(t,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function Wi(e,n,t,r,o,a,i,s,u,d){var f=l.useRef(),m=l.useRef();m.current=n;var h=function(){Xt.cancel(f.current)};return l.useEffect(function(){return function(){h()}},[]),function(x){var w=x.which;if([].concat(Qr,[xn,ra,en,tn]).includes(w)){var c=a(),p=pr(c,r),C=p,b=C.elements,I=C.key2element,S=C.element2key,y=I.get(n),F=Ui(y,b),D=S.get(F),O=Hi(e,i(D,!0).length===1,t,w);if(!O&&w!==en&&w!==tn)return;(Qr.includes(w)||[en,tn].includes(w))&&x.preventDefault();var N=function(j){if(j){var U=j,K=j.querySelector("a");K!=null&&K.getAttribute("href")&&(U=K);var L=S.get(j);s(L),h(),f.current=Xt(function(){m.current===L&&U.focus()})}};if([en,tn].includes(w)||O.sibling||!F){var E;!F||e==="inline"?E=o.current:E=qi(F);var _,T=Mr(E,b);w===en?_=T[0]:w===tn?_=T[T.length-1]:_=Zr(E,b,F,O.offset),N(_)}else if(O.inlineTrigger)u(D);else if(O.offset>0)u(D,!0),h(),f.current=Xt(function(){p=pr(c,r);var V=F.getAttribute("aria-controls"),j=document.getElementById(V),U=Zr(j,p.elements);N(U)},5);else if(O.offset<0){var k=i(D,!0),M=k[k.length-2],B=I.get(M);u(M,!1),N(B)}}d==null||d(x)}}function Vi(e){Promise.resolve().then(e)}var Rr="__RC_UTIL_PATH_SPLIT__",eo=function(n){return n.join(Rr)},Ki=function(n){return n.split(Rr)},mr="rc-menu-more";function Xi(){var e=l.useState({}),n=Ke(e,2),t=n[1],r=Xe(new Map),o=Xe(new Map),a=l.useState([]),i=Ke(a,2),s=i[0],u=i[1],d=Xe(0),f=Xe(!1),m=function(){f.current||t({})},h=qt(function(I,S){var y=eo(S);o.current.set(y,I),r.current.set(I,y),d.current+=1;var F=d.current;Vi(function(){F===d.current&&m()})},[]),x=qt(function(I,S){var y=eo(S);o.current.delete(y),r.current.delete(I)},[]),w=qt(function(I){u(I)},[]),c=qt(function(I,S){var y=r.current.get(I)||"",F=Ki(y);return S&&s.includes(F[0])&&F.unshift(mr),F},[s]),p=qt(function(I,S){return I.filter(function(y){return y!==void 0}).some(function(y){var F=c(y,!0);return F.includes(S)})},[c]),C=function(){var S=Ye(r.current.keys());return s.length&&S.push(mr),S},b=qt(function(I){var S="".concat(r.current.get(I)).concat(Rr),y=new Set;return Ye(o.current.keys()).forEach(function(F){F.startsWith(S)&&y.add(o.current.get(F))}),y},[]);return l.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:h,unregisterPath:x,refreshOverflowKeys:w,isSubPathKey:p,getKeyPath:c,getKeys:C,getSubPathKeys:b}}function nn(e){var n=l.useRef(e);n.current=e;var t=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(a))},[]);return e?t:void 0}var Gi=Math.random().toFixed(5).toString().slice(2),to=0;function Ji(e){var n=Lt(e,{value:e}),t=Ke(n,2),r=t[0],o=t[1];return l.useEffect(function(){to+=1;var a="".concat(Gi,"-").concat(to);o("rc-menu-uuid-".concat(a))},[]),r}function oa(e,n,t,r){var o=l.useContext(ht),a=o.activeKey,i=o.onActive,s=o.onInactive,u={active:a===e};return n||(u.onMouseEnter=function(d){t==null||t({key:e,domEvent:d}),i(e)},u.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),s(e)}),u}function aa(e){var n=l.useContext(ht),t=n.mode,r=n.rtl,o=n.inlineIndent;if(t!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function ia(e){var n=e.icon,t=e.props,r=e.children,o;return n===null||n===!1?null:(typeof n=="function"?o=l.createElement(n,ze({},t)):typeof n!="boolean"&&(o=n),o||r||null)}var Yi=["item"];function In(e){var n=e.item,t=ot(e,Yi);return Object.defineProperty(t,"item",{get:function(){return Cr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var Qi=["title","attribute","elementRef"],Zi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],es=["active"],ts=(function(e){xr(t,e);var n=wr(t);function t(){return $r(this,t),n.apply(this,arguments)}return Ir(t,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,u=ot(o,Qi),d=xt(u,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Cr(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(an.Item,De({},i,{title:typeof a=="string"?a:void 0},d,{ref:s}))}}]),t})(l.Component),ns=l.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,i=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,x=e.onFocus,w=ot(e,Zi),c=Zo(o),p=l.useContext(ht),C=p.prefixCls,b=p.onItemClick,I=p.disabled,S=p.overflowDisabled,y=p.itemIcon,F=p.selectedKeys,D=p.onActive,O=l.useContext(kr),N=O._internalRenderMenuItem,E="".concat(C,"-item"),_=l.useRef(),T=l.useRef(),k=I||a,M=To(n,T),B=Yt(o),V=function(ie){return{key:o,keyPath:Ye(B).reverse(),item:_.current,domEvent:ie}},j=i||y,U=oa(o,k,d,f),K=U.active,L=ot(U,es),q=F.includes(o),ee=aa(B.length),R=function(ie){if(!k){var Ce=V(ie);m==null||m(In(Ce)),b(Ce)}},W=function(ie){if(h==null||h(ie),ie.which===vt.ENTER){var Ce=V(ie);m==null||m(In(Ce)),b(Ce)}},J=function(ie){D(o),x==null||x(ie)},oe={};e.role==="option"&&(oe["aria-selected"]=q);var ae=l.createElement(ts,De({ref:_,elementRef:M,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&c?null:c},xt(w,["extra"]),L,oe,{component:"li","aria-disabled":a,style:ze(ze({},ee),t),className:Z(E,re(re(re({},"".concat(E,"-active"),K),"".concat(E,"-selected"),q),"".concat(E,"-disabled"),k),r),onClick:R,onKeyDown:W,onFocus:J}),s,l.createElement(ia,{props:ze(ze({},e),{},{isSelected:q}),icon:j}));return N&&(ae=N(ae,e,{selected:q})),ae});function rs(e,n){var t=e.eventKey,r=Dn(),o=Yt(t);return l.useEffect(function(){if(r)return r.registerPath(t,o),function(){r.unregisterPath(t,o)}},[o]),r?null:l.createElement(ns,De({},e,{ref:n}))}const Pn=l.forwardRef(rs);var os=["className","children"],as=function(n,t){var r=n.className,o=n.children,a=ot(n,os),i=l.useContext(ht),s=i.prefixCls,u=i.mode,d=i.rtl;return l.createElement("ul",De({className:Z(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(u==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:t}),o)},Br=l.forwardRef(as);Br.displayName="SubMenuList";function Tr(e,n){return Sr(e).map(function(t,r){if(l.isValidElement(t)){var o,a,i=t.key,s=(o=(a=t.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,u=s==null;u&&(s="tmp_key-".concat([].concat(Ye(n),[r]).join("-")));var d={key:s,eventKey:s};return l.cloneElement(t,d)}return t})}var Ze={adjustX:1,adjustY:1},is={topLeft:{points:["bl","tl"],overflow:Ze},topRight:{points:["br","tr"],overflow:Ze},bottomLeft:{points:["tl","bl"],overflow:Ze},bottomRight:{points:["tr","br"],overflow:Ze},leftTop:{points:["tr","tl"],overflow:Ze},leftBottom:{points:["br","bl"],overflow:Ze},rightTop:{points:["tl","tr"],overflow:Ze},rightBottom:{points:["bl","br"],overflow:Ze}},ss={topLeft:{points:["bl","tl"],overflow:Ze},topRight:{points:["br","tr"],overflow:Ze},bottomLeft:{points:["tl","bl"],overflow:Ze},bottomRight:{points:["tr","br"],overflow:Ze},rightTop:{points:["tr","tl"],overflow:Ze},rightBottom:{points:["br","bl"],overflow:Ze},leftTop:{points:["tl","tr"],overflow:Ze},leftBottom:{points:["bl","br"],overflow:Ze}};function sa(e,n,t){if(n)return n;if(t)return t[e]||t.other}var ls={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function cs(e){var n=e.prefixCls,t=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,u=e.disabled,d=e.mode,f=e.onVisibleChange,m=l.useContext(ht),h=m.getPopupContainer,x=m.rtl,w=m.subMenuOpenDelay,c=m.subMenuCloseDelay,p=m.builtinPlacements,C=m.triggerSubMenuAction,b=m.forceSubMenuRender,I=m.rootClassName,S=m.motion,y=m.defaultMotions,F=l.useState(!1),D=Ke(F,2),O=D[0],N=D[1],E=x?ze(ze({},ss),p):ze(ze({},is),p),_=ls[d],T=sa(d,S,y),k=l.useRef(T);d!=="inline"&&(k.current=T);var M=ze(ze({},k.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),B=l.useRef();return l.useEffect(function(){return B.current=Xt(function(){N(t)}),function(){Xt.cancel(B.current)}},[t]),l.createElement(Ro,{prefixCls:n,popupClassName:Z("".concat(n,"-popup"),re({},"".concat(n,"-rtl"),x),i,I),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:E,popupPlacement:_,popupVisible:O,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:u?[]:[C],mouseEnterDelay:w,mouseLeaveDelay:c,onPopupVisibleChange:f,forceRender:b,popupMotion:M,fresh:!0},r)}function us(e){var n=e.id,t=e.open,r=e.keyPath,o=e.children,a="inline",i=l.useContext(ht),s=i.prefixCls,u=i.forceSubMenuRender,d=i.motion,f=i.defaultMotions,m=i.mode,h=l.useRef(!1);h.current=m===a;var x=l.useState(!h.current),w=Ke(x,2),c=w[0],p=w[1],C=h.current?t:!1;l.useEffect(function(){h.current&&p(!1)},[m]);var b=ze({},sa(a,d,f));r.length>1&&(b.motionAppear=!1);var I=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!h.current&&!S&&p(!0),I==null?void 0:I(S)},c?null:l.createElement(ln,{mode:a,locked:!h.current},l.createElement(Er,De({visible:C},b,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var y=S.className,F=S.style;return l.createElement(Br,{id:n,className:y,style:F},o)}))}var ds=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ps=["active"],ms=l.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,h=e.popupOffset,x=e.popupStyle,w=e.onClick,c=e.onMouseEnter,p=e.onMouseLeave,C=e.onTitleClick,b=e.onTitleMouseEnter,I=e.onTitleMouseLeave,S=ot(e,ds),y=Zo(a),F=l.useContext(ht),D=F.prefixCls,O=F.mode,N=F.openKeys,E=F.disabled,_=F.overflowDisabled,T=F.activeKey,k=F.selectedKeys,M=F.itemIcon,B=F.expandIcon,V=F.onItemClick,j=F.onOpenChange,U=F.onActive,K=l.useContext(kr),L=K._internalRenderSubMenuItem,q=l.useContext(na),ee=q.isSubPathKey,R=Yt(),W="".concat(D,"-submenu"),J=E||i,oe=l.useRef(),ae=l.useRef(),Q=d??M,ie=f??B,Ce=N.includes(a),xe=!_&&Ce,we=ee(k,a),Te=oa(a,J,b,I),Je=Te.active,Le=ot(Te,ps),ve=l.useState(!1),me=Ke(ve,2),ct=me[0],mt=me[1],$t=function(G){J||mt(G)},It=function(G){$t(!0),c==null||c({key:a,domEvent:G})},At=function(G){$t(!1),p==null||p({key:a,domEvent:G})},et=l.useMemo(function(){return Je||(O!=="inline"?ct||ee([T],a):!1)},[O,Je,T,ct,a,ee]),qe=aa(R.length),St=function(G){J||(C==null||C({key:a,domEvent:G}),O==="inline"&&j(a,!Ce))},kt=nn(function(We){w==null||w(In(We)),V(We)}),Mt=function(G){O!=="inline"&&j(a,G)},Et=function(){U(a)},Ae=y&&"".concat(y,"-popup"),ce=l.useMemo(function(){return l.createElement(ia,{icon:O!=="horizontal"?ie:void 0,props:ze(ze({},e),{},{isOpen:xe,isSubMenu:!0})},l.createElement("i",{className:"".concat(W,"-arrow")}))},[O,ie,e,xe,W]),nt=l.createElement("div",De({role:"menuitem",style:qe,className:"".concat(W,"-title"),tabIndex:J?null:-1,ref:oe,title:typeof o=="string"?o:null,"data-menu-id":_&&y?null:y,"aria-expanded":xe,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":J,onClick:St,onFocus:Et},Le),o,ce),ut=l.useRef(O);if(O!=="inline"&&R.length>1?ut.current="vertical":ut.current=O,!_){var ft=ut.current;nt=l.createElement(cs,{mode:ft,prefixCls:W,visible:!s&&xe&&O!=="inline",popupClassName:m,popupOffset:h,popupStyle:x,popup:l.createElement(ln,{mode:ft==="horizontal"?"vertical":ft},l.createElement(Br,{id:Ae,ref:ae},u)),disabled:J,onVisibleChange:Mt},nt)}var Ue=l.createElement(an.Item,De({ref:n,role:"none"},S,{component:"li",style:t,className:Z(W,"".concat(W,"-").concat(O),r,re(re(re(re({},"".concat(W,"-open"),xe),"".concat(W,"-active"),et),"".concat(W,"-selected"),we),"".concat(W,"-disabled"),J)),onMouseEnter:It,onMouseLeave:At}),nt,!_&&l.createElement(us,{id:Ae,open:xe,keyPath:R},u));return L&&(Ue=L(Ue,e,{selected:we,active:et,open:xe,disabled:J})),l.createElement(ln,{onItemClick:kt,mode:O==="horizontal"?"vertical":O,itemIcon:Q,expandIcon:ie},Ue)}),An=l.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Yt(t),a=Tr(r,o),i=Dn();l.useEffect(function(){if(i)return i.registerPath(t,o),function(){i.unregisterPath(t,o)}},[o]);var s;return i?s=a:s=l.createElement(ms,De({ref:n},e),a),l.createElement(ta.Provider,{value:o},s)});function _r(e){var n=e.className,t=e.style,r=l.useContext(ht),o=r.prefixCls,a=Dn();return a?null:l.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),n),style:t})}var fs=["className","title","eventKey","children"],gs=l.forwardRef(function(e,n){var t=e.className,r=e.title;e.eventKey;var o=e.children,a=ot(e,fs),i=l.useContext(ht),s=i.prefixCls,u="".concat(s,"-item-group");return l.createElement("li",De({ref:n,role:"presentation"},a,{onClick:function(f){return f.stopPropagation()},className:Z(u,t)}),l.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))}),zr=l.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Yt(t),a=Tr(r,o),i=Dn();return i?a:l.createElement(gs,De({ref:n},xt(e,["warnKey"])),a)}),hs=["label","children","key","type","extra"];function fr(e,n,t){var r=n.item,o=n.group,a=n.submenu,i=n.divider;return(e||[]).map(function(s,u){if(s&&jt(s)==="object"){var d=s,f=d.label,m=d.children,h=d.key,x=d.type,w=d.extra,c=ot(d,hs),p=h??"tmp-".concat(u);return m||x==="group"?x==="group"?l.createElement(o,De({key:p},c,{title:f}),fr(m,n,t)):l.createElement(a,De({key:p},c,{title:f}),fr(m,n,t)):x==="divider"?l.createElement(i,De({key:p},c)):l.createElement(r,De({key:p},c,{extra:w}),f,(!!w||w===0)&&l.createElement("span",{className:"".concat(t,"-item-extra")},w))}return null}).filter(function(s){return s})}function no(e,n,t,r,o){var a=e,i=ze({divider:_r,item:Pn,group:zr,submenu:An},r);return n&&(a=fr(n,i,o)),Tr(a,t)}var vs=["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"],zt=[],bs=l.forwardRef(function(e,n){var t,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,u=r.className,d=r.tabIndex,f=d===void 0?0:d,m=r.items,h=r.children,x=r.direction,w=r.id,c=r.mode,p=c===void 0?"vertical":c,C=r.inlineCollapsed,b=r.disabled,I=r.disabledOverflow,S=r.subMenuOpenDelay,y=S===void 0?.1:S,F=r.subMenuCloseDelay,D=F===void 0?.1:F,O=r.forceSubMenuRender,N=r.defaultOpenKeys,E=r.openKeys,_=r.activeKey,T=r.defaultActiveFirst,k=r.selectable,M=k===void 0?!0:k,B=r.multiple,V=B===void 0?!1:B,j=r.defaultSelectedKeys,U=r.selectedKeys,K=r.onSelect,L=r.onDeselect,q=r.inlineIndent,ee=q===void 0?24:q,R=r.motion,W=r.defaultMotions,J=r.triggerSubMenuAction,oe=J===void 0?"hover":J,ae=r.builtinPlacements,Q=r.itemIcon,ie=r.expandIcon,Ce=r.overflowedIndicator,xe=Ce===void 0?"...":Ce,we=r.overflowedIndicatorPopupClassName,Te=r.getPopupContainer,Je=r.onClick,Le=r.onOpenChange,ve=r.onKeyDown;r.openAnimation,r.openTransitionName;var me=r._internalRenderMenuItem,ct=r._internalRenderSubMenuItem,mt=r._internalComponents,$t=ot(r,vs),It=l.useMemo(function(){return[no(h,m,zt,mt,a),no(h,m,zt,{},a)]},[h,m,mt]),At=Ke(It,2),et=At[0],qe=At[1],St=l.useState(!1),kt=Ke(St,2),Mt=kt[0],Et=kt[1],Ae=l.useRef(),ce=Ji(w),nt=x==="rtl",ut=Lt(N,{value:E,postState:function(Ee){return Ee||zt}}),ft=Ke(ut,2),Ue=ft[0],We=ft[1],G=function(Ee){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function it(){We(Ee),Le==null||Le(Ee)}Me?lr(it):it()},pe=l.useState(Ue),Fe=Ke(pe,2),se=Fe[0],be=Fe[1],_e=l.useRef(!1),at=l.useMemo(function(){return(p==="inline"||p==="vertical")&&C?["vertical",C]:[p,!1]},[p,C]),dt=Ke(at,2),tt=dt[0],Ft=dt[1],pn=tt==="inline",Rn=l.useState(tt),mn=Ke(Rn,2),bt=mn[0],Bn=mn[1],Tn=l.useState(Ft),fn=Ke(Tn,2),_n=fn[0],zn=fn[1];l.useEffect(function(){Bn(tt),zn(Ft),_e.current&&(pn?We(se):G(zt))},[tt,Ft]);var jn=l.useState(0),gn=Ke(jn,2),Nt=gn[0],Ln=gn[1],gt=Nt>=et.length-1||bt!=="horizontal"||I;l.useEffect(function(){pn&&be(Ue)},[Ue]),l.useEffect(function(){return _e.current=!0,function(){_e.current=!1}},[]);var Ot=Xi(),Qt=Ot.registerPath,Hn=Ot.unregisterPath,qn=Ot.refreshOverflowKeys,v=Ot.isSubPathKey,g=Ot.getKeyPath,P=Ot.getKeys,A=Ot.getSubPathKeys,H=l.useMemo(function(){return{registerPath:Qt,unregisterPath:Hn}},[Qt,Hn]),X=l.useMemo(function(){return{isSubPathKey:v}},[v]);l.useEffect(function(){qn(gt?zt:et.slice(Nt+1).map(function(ke){return ke.key}))},[Nt,gt]);var ge=Lt(_||T&&((t=et[0])===null||t===void 0?void 0:t.key),{value:_}),te=Ke(ge,2),he=te[0],Se=te[1],z=nn(function(ke){Se(ke)}),ye=nn(function(){Se(void 0)});Po(n,function(){return{list:Ae.current,focus:function(Ee){var Me,it=P(),st=pr(it,ce),hn=st.elements,Un=st.key2element,Ia=st.element2key,Lr=Mr(Ae.current,hn),Hr=he??(Lr[0]?Ia.get(Lr[0]):(Me=et.find(function(Sa){return!Sa.props.disabled}))===null||Me===void 0?void 0:Me.key),Zt=Un.get(Hr);if(Hr&&Zt){var Wn;Zt==null||(Wn=Zt.focus)===null||Wn===void 0||Wn.call(Zt,Ee)}}}});var fe=Lt(j||[],{value:U,postState:function(Ee){return Array.isArray(Ee)?Ee:Ee==null?zt:[Ee]}}),Ne=Ke(fe,2),le=Ne[0],He=Ne[1],ue=function(Ee){if(M){var Me=Ee.key,it=le.includes(Me),st;V?it?st=le.filter(function(Un){return Un!==Me}):st=[].concat(Ye(le),[Me]):st=[Me],He(st);var hn=ze(ze({},Ee),{},{selectedKeys:st});it?L==null||L(hn):K==null||K(hn)}!V&&Ue.length&&bt!=="inline"&&G(zt)},de=nn(function(ke){Je==null||Je(In(ke)),ue(ke)}),$e=nn(function(ke,Ee){var Me=Ue.filter(function(st){return st!==ke});if(Ee)Me.push(ke);else if(bt!=="inline"){var it=A(ke);Me=Me.filter(function(st){return!it.has(st)})}Bo(Ue,Me,!0)||G(Me,!0)}),Pe=function(Ee,Me){var it=Me??!Ue.includes(Ee);$e(Ee,it)},Oe=Wi(bt,he,nt,ce,Ae,P,g,Se,Pe,ve);l.useEffect(function(){Et(!0)},[]);var Dt=l.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:ct}},[me,ct]),yt=bt!=="horizontal"||I?et:et.map(function(ke,Ee){return l.createElement(ln,{key:ke.key,overflowDisabled:Ee>Nt},ke)}),_t=l.createElement(an,De({id:w,ref:Ae,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Pn,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(bt),u,re(re({},"".concat(a,"-inline-collapsed"),_n),"".concat(a,"-rtl"),nt),i),dir:x,style:s,role:"menu",tabIndex:f,data:yt,renderRawItem:function(Ee){return Ee},renderRawRest:function(Ee){var Me=Ee.length,it=Me?et.slice(-Me):null;return l.createElement(An,{eventKey:mr,title:xe,disabled:gt,internalPopupClose:Me===0,popupClassName:we},it)},maxCount:bt!=="horizontal"||I?an.INVALIDATE:an.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ee){Ln(Ee)},onKeyDown:Oe},$t));return l.createElement(kr.Provider,{value:Dt},l.createElement(Yo.Provider,{value:ce},l.createElement(ln,{prefixCls:a,rootClassName:i,mode:bt,openKeys:Ue,rtl:nt,disabled:b,motion:Mt?R:null,defaultMotions:Mt?W:null,activeKey:he,onActive:z,onInactive:ye,selectedKeys:le,inlineIndent:ee,subMenuOpenDelay:y,subMenuCloseDelay:D,forceSubMenuRender:O,builtinPlacements:ae,triggerSubMenuAction:oe,getPopupContainer:Te,itemIcon:Q,expandIcon:ie,onItemClick:de,onOpenChange:$e},l.createElement(na.Provider,{value:X},_t),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(ea.Provider,{value:H},qe)))))}),un=bs;un.Item=Pn;un.SubMenu=An;un.ItemGroup=zr;un.Divider=_r;const la=l.createContext({});var ys={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"},Cs=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:ys}))},ca=l.forwardRef(Cs);const Sn=Fa({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var xs=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const ua=e=>{const{prefixCls:n,className:t,dashed:r}=e,o=xs(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(wt),i=a("menu",n),s=Z({[`${i}-item-divider-dashed`]:!!r},t);return l.createElement(_r,Object.assign({className:s},o))},da=e=>{var n;const{className:t,children:r,icon:o,title:a,danger:i,extra:s}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:m,inlineCollapsed:h}=l.useContext(Sn),x=I=>{const S=r==null?void 0:r[0],y=l.createElement("span",{className:Z(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!s||s===0})},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&I&&d&&typeof S=="string"?l.createElement("div",{className:`${u}-inline-collapsed-noicon`},S.charAt(0)):y},{siderCollapsed:w}=l.useContext(la);let c=a;typeof a>"u"?c=d?r:"":a===!1&&(c="");const p={title:c};!w&&!h&&(p.title=null,p.open=!1);const C=Sr(r).length;let b=l.createElement(Pn,Object.assign({},xt(e,["title","icon","danger"]),{className:Z({[`${u}-item-danger`]:i,[`${u}-item-only-child`]:(o?C+1:C)===1},t),title:typeof a=="string"?a:void 0}),Gt(o,{className:Z(l.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${u}-item-icon`)}),x(h));return m||(b=l.createElement(Fr,Object.assign({},p,{placement:f==="rtl"?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),b)),b};var ws=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const En=l.createContext(null),$s=l.forwardRef((e,n)=>{const{children:t}=e,r=ws(e,["children"]),o=l.useContext(En),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Pa(t),s=To(n,i?yr(t):null);return l.createElement(En.Provider,{value:a},l.createElement(Aa,{space:!0},i?l.cloneElement(t,{ref:s}):t))}),Is=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ne(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
|
|
47
|
+
> ${n}-item-active,
|
|
48
|
+
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},Ss=({componentCls:e,menuArrowOffset:n,calc:t})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
49
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ne(t(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ne(n)})`}}}}),ro=e=>ka(e),oo=(e,n)=>{const{componentCls:t,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:s,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:m,activeBarBorderWidth:h,motionDurationSlow:x,motionEaseInOut:w,motionEaseOut:c,itemPaddingInline:p,motionDurationMid:C,itemHoverColor:b,lineType:I,colorSplit:S,itemDisabledColor:y,dangerItemColor:F,dangerItemHoverColor:D,dangerItemSelectedColor:O,dangerItemActiveBg:N,dangerItemSelectedBg:E,popupBg:_,itemHoverBg:T,itemActiveBg:k,menuSubMenuBg:M,horizontalItemSelectedColor:B,horizontalItemSelectedBg:V,horizontalItemBorderRadius:j,horizontalItemHoverBg:U}=e;return{[`${t}-${n}, ${t}-${n} > ${t}`]:{color:r,background:s,[`&${t}-root:focus-visible`]:Object.assign({},ro(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:i}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:a},[`${t}-item, ${t}-submenu-title`]:{color:r,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},ro(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${y} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:b}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:k}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:k}}},[`${t}-item-danger`]:{color:F,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:D}},[`&${t}-item:active`]:{background:N}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:o,[`&${t}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:E}},[`&${t}-submenu > ${t}`]:{backgroundColor:M},[`&${t}-popup > ${t}`]:{backgroundColor:_},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:_},[`&${t}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${ne(f)} solid transparent`,transition:`border-color ${x} ${w}`,content:'""'},"&:hover, &-active, &-open":{background:U,"&::after":{borderBottomWidth:f,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:V,"&:hover":{backgroundColor:V},"&::after":{borderBottomWidth:f,borderBottomColor:B}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${ne(h)} ${I} ${S}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:u},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ne(m)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${c}`,`opacity ${C} ${c}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${w}`,`opacity ${C} ${w}`].join(",")}}}}}},ao=e=>{const{componentCls:n,itemHeight:t,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:u,itemPaddingInline:d}=e,f=e.calc(a).add(o).add(i).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:ne(t),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:u},[`> ${n}-item,
|
|
50
|
+
> ${n}-submenu > ${n}-submenu-title`]:{height:t,lineHeight:ne(t)},[`${n}-item-group-list ${n}-submenu-title,
|
|
51
|
+
${n}-submenu-title`]:{paddingInlineEnd:f}}},Es=e=>{const{componentCls:n,iconCls:t,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationFast:m,motionDurationSlow:h,paddingXS:x,boxShadowSecondary:w,collapsedWidth:c,collapsedIconSize:p}=e,C={height:r,lineHeight:ne(r),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},ao(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},ao(e)),{boxShadow:w})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ne(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${m} ${s}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:C,[`& ${n}-item-group-title`]:{paddingInlineStart:u}},[`${n}-item`]:C}},{[`${n}-inline-collapsed`]:{width:c,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${n}-item,
|
|
52
|
+
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
53
|
+
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
54
|
+
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ne(e.calc(p).div(2).equal())} - ${ne(d)})`,textOverflow:"clip",[`
|
|
55
|
+
${n}-submenu-arrow,
|
|
56
|
+
${n}-submenu-expand-icon
|
|
57
|
+
`]:{opacity:0},[`${n}-item-icon, ${t}`]:{margin:0,fontSize:p,lineHeight:ne(r),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:o}},[`${n}-item-group-title`]:Object.assign(Object.assign({},Nr),{paddingInline:x})}}]},io=e=>{const{componentCls:n,motionDurationSlow:t,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:u}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${o}`].join(","),[`${n}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${t} ${o}`,`color ${t}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${t} ${o}`,`margin ${t}`,`color ${t}`].join(",")}},[`${n}-item-icon`]:Object.assign({},Ma()),[`&${n}-item-only-child`]:{[`> ${i}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},so=e=>{const{componentCls:n,motionDurationSlow:t,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${r}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${t} ${r}`,`transform ${t} ${r}`,`top ${t} ${r}`,`color ${t} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ne(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ne(i)})`}}}}},Fs=e=>{const{antCls:n,componentCls:t,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:u,colorSplit:d,lineWidth:f,zIndexPopup:m,borderRadiusLG:h,subMenuItemBorderRadius:x,menuArrowSize:w,menuArrowOffset:c,lineType:p,groupTitleLineHeight:C,groupTitleFontSize:b}=e;return[{"":{[t]:Object.assign(Object.assign({},$n()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},On(e)),$n()),{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",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${ne(s)} ${ne(u)}`,fontSize:b,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${t}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:p,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),io(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${ne(e.calc(r).mul(2).equal())} ${ne(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},io(e)),so(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:x},[`${t}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\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}}}),so(e)),{[`&-inline-collapsed ${t}-submenu-arrow,
|
|
58
|
+
&-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ne(c)})`},"&::after":{transform:`rotate(45deg) translateX(${ne(e.calc(c).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${ne(e.calc(w).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ne(e.calc(c).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ne(c)})`}}})},{[`${n}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},Ns=e=>{var n,t,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:u,colorTextDescription:d,colorBgContainer:f,colorFillAlter:m,colorFillContent:h,lineWidth:x,lineWidthBold:w,controlItemBgActive:c,colorBgTextHover:p,controlHeightLG:C,lineHeight:b,colorBgElevated:I,marginXXS:S,padding:y,fontSize:F,controlHeightSM:D,fontSizeLG:O,colorTextLightSolid:N,colorErrorHover:E}=e,_=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,T=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:x,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,M=new or(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:u,itemColor:u,colorItemTextHover:u,itemHoverColor:u,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:f,itemBg:f,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:h,itemActiveBg:c,colorSubItemBg:m,subMenuItemBg:m,colorItemBgSelected:c,itemSelectedBg:c,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:w,activeBarHeight:w,colorActiveBarBorderSize:x,activeBarBorderWidth:T,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:b,collapsedWidth:C*2,popupBg:I,itemMarginBlock:S,itemPaddingInline:y,horizontalLineHeight:`${C*1.15}px`,iconSize:F,iconMarginInlineEnd:D-F,collapsedIconSize:O,groupTitleFontSize:F,darkItemDisabledColor:new or(N).setA(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:N,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:a,itemWidth:_?`calc(100% + ${T}px)`:`calc(100% - ${k*2}px)`}},Os=(e,n=e,t=!0)=>cn("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:u,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:x,darkDangerItemSelectedBg:w,darkItemHoverBg:c,darkGroupTitleColor:p,darkItemHoverColor:C,darkItemDisabledColor:b,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:y,popupBg:F,darkPopupBg:D}=o,O=o.calc(s).div(7).mul(5).equal(),N=sn(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:F}),E=sn(N,{itemColor:u,itemHoverColor:C,groupTitleColor:p,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:f,popupBg:D,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:x,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:c,itemDisabledColor:b,dangerItemColor:d,dangerItemHoverColor:I,dangerItemSelectedColor:S,dangerItemActiveBg:y,dangerItemSelectedBg:w,menuSubMenuBg:m,horizontalItemSelectedColor:h,horizontalItemSelectedBg:x});return[Fs(N),Is(N),Es(N),oo(N,"light"),oo(E,"dark"),Ss(N),_o(N),wn(N,"slide-up"),wn(N,"slide-down"),zo(N,"zoom-big")]},Ns,{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:t,unitless:{groupTitleLineHeight:!0}})(e,n),pa=e=>{var n;const{popupClassName:t,icon:r,title:o,theme:a}=e,i=l.useContext(Sn),{prefixCls:s,inlineCollapsed:u,theme:d}=i,f=Yt();let m;if(!r)m=u&&!f.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const w=l.isValidElement(o)&&o.type==="span";m=l.createElement(l.Fragment,null,Gt(r,{className:Z(l.isValidElement(r)?(n=r.props)===null||n===void 0?void 0:n.className:void 0,`${s}-item-icon`)}),w?o:l.createElement("span",{className:`${s}-title-content`},o))}const h=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[x]=jo("Menu");return l.createElement(Sn.Provider,{value:h},l.createElement(An,Object.assign({},xt(e,["icon"]),{title:m,popupClassName:Z(s,t,`${s}-${a||d}`),popupStyle:Object.assign({zIndex:x},e.popupStyle)})))};var Ds=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};function Xn(e){return e===null||e===!1}const Ps={item:da,submenu:pa,divider:ua},As=br((e,n)=>{var t;const r=l.useContext(En),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:u}=l.useContext(wt),d=a(),{prefixCls:f,className:m,style:h,theme:x="light",expandIcon:w,_internalDisableMenuItemTitleTooltip:c,inlineCollapsed:p,siderCollapsed:C,rootClassName:b,mode:I,selectable:S,onClick:y,overflowedIndicatorPopupClassName:F}=e,D=Ds(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=xt(D,["collapsedWidth"]);(t=o.validator)===null||t===void 0||t.call(o,{mode:I});const N=ar((...ee)=>{var R;y==null||y.apply(void 0,ee),(R=o.onClick)===null||R===void 0||R.call(o)}),E=o.mode||I,_=S??o.selectable,T=p??C,k={horizontal:{motionName:`${d}-slide-up`},inline:Ho(d),other:{motionName:`${d}-zoom-big`}},M=a("menu",f||o.prefixCls),B=Lo(M),[V,j,U]=Os(M,B,!r),K=Z(`${M}-${x}`,u==null?void 0:u.className,m),L=l.useMemo(()=>{var ee,R;if(typeof w=="function"||Xn(w))return w||null;if(typeof o.expandIcon=="function"||Xn(o.expandIcon))return o.expandIcon||null;if(typeof(u==null?void 0:u.expandIcon)=="function"||Xn(u==null?void 0:u.expandIcon))return(u==null?void 0:u.expandIcon)||null;const W=(ee=w??(o==null?void 0:o.expandIcon))!==null&&ee!==void 0?ee:u==null?void 0:u.expandIcon;return Gt(W,{className:Z(`${M}-submenu-expand-icon`,l.isValidElement(W)?(R=W.props)===null||R===void 0?void 0:R.className:void 0)})},[w,o==null?void 0:o.expandIcon,u==null?void 0:u.expandIcon,M]),q=l.useMemo(()=>({prefixCls:M,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:x,mode:E,disableMenuItemTitleTooltip:c}),[M,T,s,c,x]);return V(l.createElement(En.Provider,{value:null},l.createElement(Sn.Provider,{value:q},l.createElement(un,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(ca,null),overflowedIndicatorPopupClassName:Z(M,`${M}-${x}`,F),mode:E,selectable:_,onClick:N},O,{inlineCollapsed:T,style:Object.assign(Object.assign({},u==null?void 0:u.style),h),className:K,prefixCls:M,direction:s,defaultMotions:k,expandIcon:L,ref:n,rootClassName:Z(b,j,o.rootClassName,U,B),_internalComponents:Ps})))))}),dn=br((e,n)=>{const t=Xe(null),r=l.useContext(la);return Po(n,()=>({menu:t.current,focus:o=>{var a;(a=t.current)===null||a===void 0||a.focus(o)}})),l.createElement(As,Object.assign({ref:t},e,r))});dn.Item=da;dn.SubMenu=pa;dn.Divider=ua;dn.ItemGroup=zr;const ks=e=>{const{componentCls:n,menuCls:t,colorError:r,colorTextLightSolid:o}=e,a=`${t}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${t} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Ms=e=>{const{componentCls:n,menuCls:t,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:u,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:m,colorTextDisabled:h,fontSizeIcon:x,controlPaddingHorizontal:w,colorBgElevated:c}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:x}},[`${n}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:x},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${n}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
59
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
60
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
|
|
61
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
|
|
62
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
|
|
63
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:_a},[`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
|
|
64
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
|
|
65
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
|
|
66
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
|
|
67
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
|
|
68
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]:{animationName:Ta},[`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
69
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
|
|
70
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:Ba},[`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
|
|
71
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
|
|
72
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Ra}}},za(e,c,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},On(e)),{[t]:Object.assign(Object.assign({padding:m,listStyleType:"none",backgroundColor:c,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ur(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${ne(d)} ${ne(w)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ne(d)} ${ne(w)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ur(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:c,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:x,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${ne(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(w).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:c,cursor:"not-allowed"}},[`${t}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[wn(e,"slide-up"),wn(e,"slide-down"),qr(e,"move-up"),qr(e,"move-down"),zo(e,"zoom-big")]]},Rs=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ja({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),La(e)),Bs=cn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:t,paddingXXS:r,componentCls:o}=e,a=sn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(n).equal(),dropdownEdgeChildPadding:r});return[Ms(a),ks(a)]},Rs,{resetStyle:!1}),kn=e=>{var n;const{menu:t,arrow:r,prefixCls:o,children:a,trigger:i,disabled:s,dropdownRender:u,popupRender:d,getPopupContainer:f,overlayClassName:m,rootClassName:h,overlayStyle:x,open:w,onOpenChange:c,visible:p,onVisibleChange:C,mouseEnterDelay:b=.15,mouseLeaveDelay:I=.1,autoAdjustOverflow:S=!0,placement:y="",overlay:F,transitionName:D,destroyOnHidden:O,destroyPopupOnHide:N}=e,{getPopupContainer:E,getPrefixCls:_,direction:T,dropdown:k}=l.useContext(wt),M=d||u;Ha();const B=l.useMemo(()=>{const me=_();return D!==void 0?D:y.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[_,y,D]),V=l.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:T==="rtl"?"bottomRight":"bottomLeft",[y,T]),j=_("dropdown",o),U=Lo(j),[K,L,q]=Bs(j,U),[,ee]=qa(),R=l.Children.only(Ti(a)?l.createElement("span",null,a):a),W=Gt(R,{className:Z(`${j}-trigger`,{[`${j}-rtl`]:T==="rtl"},R.props.className),disabled:(n=R.props.disabled)!==null&&n!==void 0?n:s}),J=s?[]:i,oe=!!(J!=null&&J.includes("contextMenu")),[ae,Q]=Lt(!1,{value:w??p}),ie=ar(me=>{c==null||c(me,{source:"trigger"}),C==null||C(me),Q(me)}),Ce=Z(m,h,L,q,U,k==null?void 0:k.className,{[`${j}-rtl`]:T==="rtl"}),xe=Ua({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:ee.marginXXS,arrowWidth:r?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),we=ar(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(c==null||c(!1,{source:"menu"}),Q(!1))}),Te=()=>{let me;return t!=null&&t.items?me=l.createElement(dn,Object.assign({},t)):typeof F=="function"?me=F():me=F,M&&(me=M(me)),me=l.Children.only(typeof me=="string"?l.createElement("span",null,me):me),l.createElement($s,{prefixCls:`${j}-menu`,rootClassName:Z(q,U),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},T==="rtl"?l.createElement(vi,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(bi,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:we,validator:({mode:ct})=>{}},me)},[Je,Le]=jo("Dropdown",x==null?void 0:x.zIndex);let ve=l.createElement(Bi,Object.assign({alignPoint:oe},xt(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:I,visible:ae,builtinPlacements:xe,arrow:!!r,overlayClassName:Ce,prefixCls:j,getPopupContainer:f||E,transitionName:B,trigger:J,overlay:Te,placement:V,onVisibleChange:ie,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),x),{zIndex:Je}),autoDestroy:O??N}),W);return Je&&(ve=l.createElement(Wa.Provider,{value:Le},ve)),K(ve)},Ts=Va(kn,"align",void 0,"dropdown",e=>e),_s=e=>l.createElement(Ts,Object.assign({},e),l.createElement("span",null));kn._InternalPanelDoNotUseOrYouWillBeFired=_s;function lo(e){return["small","middle","large"].includes(e)}function co(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const ma=Be.createContext({latestIndex:0}),zs=ma.Provider,js=({className:e,index:n,children:t,split:r,style:o})=>{const{latestIndex:a}=l.useContext(ma);return t==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},t),n<a&&r&&l.createElement("span",{className:`${e}-split`},r))};var Ls=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const Hs=l.forwardRef((e,n)=>{var t;const{getPrefixCls:r,direction:o,size:a,className:i,style:s,classNames:u,styles:d}=Or("space"),{size:f=a??"small",align:m,className:h,rootClassName:x,children:w,direction:c="horizontal",prefixCls:p,split:C,style:b,wrap:I=!1,classNames:S,styles:y}=e,F=Ls(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[D,O]=Array.isArray(f)?f:[f,f],N=lo(O),E=lo(D),_=co(O),T=co(D),k=Sr(w,{keepEmpty:!0}),M=m===void 0&&c==="horizontal"?"center":m,B=r("space",p),[V,j,U]=Ka(B),K=Z(B,i,j,`${B}-${c}`,{[`${B}-rtl`]:o==="rtl",[`${B}-align-${M}`]:M,[`${B}-gap-row-${O}`]:N,[`${B}-gap-col-${D}`]:E},h,x,U),L=Z(`${B}-item`,(t=S==null?void 0:S.item)!==null&&t!==void 0?t:u.item),q=Object.assign(Object.assign({},d.item),y==null?void 0:y.item),ee=k.map((J,oe)=>{const ae=(J==null?void 0:J.key)||`${L}-${oe}`;return l.createElement(js,{className:L,key:ae,index:oe,split:C,style:q},J)}),R=l.useMemo(()=>({latestIndex:k.reduce((oe,ae,Q)=>ae!=null?Q:oe,0)}),[k]);if(k.length===0)return null;const W={};return I&&(W.flexWrap="wrap"),!E&&T&&(W.columnGap=D),!N&&_&&(W.rowGap=O),V(l.createElement("div",Object.assign({ref:n,className:K,style:Object.assign(Object.assign(Object.assign({},W),s),b)},F),l.createElement(zs,{value:R},ee)))}),fa=Hs;fa.Compact=Xa;var qs=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const ga=e=>{const{getPopupContainer:n,getPrefixCls:t,direction:r}=l.useContext(wt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:u,onClick:d,htmlType:f,children:m,className:h,menu:x,arrow:w,autoFocus:c,overlay:p,trigger:C,align:b,open:I,onOpenChange:S,placement:y,getPopupContainer:F,href:D,icon:O=l.createElement(ca,null),title:N,buttonsRender:E=xe=>xe,mouseEnterDelay:_,mouseLeaveDelay:T,overlayClassName:k,overlayStyle:M,destroyOnHidden:B,destroyPopupOnHide:V,dropdownRender:j,popupRender:U}=e,K=qs(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"]),L=t("dropdown",o),q=`${L}-button`,R={menu:x,arrow:w,autoFocus:c,align:b,disabled:s,trigger:s?[]:C,onOpenChange:S,getPopupContainer:F||n,mouseEnterDelay:_,mouseLeaveDelay:T,overlayClassName:k,overlayStyle:M,destroyOnHidden:B,popupRender:U||j},{compactSize:W,compactItemClassnames:J}=Ga(L,r),oe=Z(q,J,h);"destroyPopupOnHide"in e&&(R.destroyPopupOnHide=V),"overlay"in e&&(R.overlay=p),"open"in e&&(R.open=I),"placement"in e?R.placement=y:R.placement=r==="rtl"?"bottomLeft":"bottomRight";const ae=l.createElement(pt,{type:a,danger:i,disabled:s,loading:u,onClick:d,htmlType:f,href:D,title:N},m),Q=l.createElement(pt,{type:a,danger:i,icon:O}),[ie,Ce]=E([ae,Q]);return l.createElement(fa.Compact,Object.assign({className:oe,size:W,block:!0},K),ie,l.createElement(kn,Object.assign({},R),Ce))};ga.__ANT_BUTTON=!0;const ha=kn;ha.Button=ga;const Us=e=>{const{componentCls:n,iconCls:t,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:u,fontSize:d,fontWeightStrong:f,colorTextHeading:m}=e;return{[n]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${n}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${t}`]:{color:i,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${n}-title`]:{fontWeight:f,color:m,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:s,color:a}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},Ws=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},va=cn("Popconfirm",e=>Us(e),Ws,{resetStyle:!1});var Vs=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const ba=e=>{const{prefixCls:n,okButtonProps:t,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:u="primary",icon:d=l.createElement(qo,null),showCancel:f=!0,close:m,onConfirm:h,onCancel:x,onPopupClick:w}=e,{getPrefixCls:c}=l.useContext(wt),[p]=Uo("Popconfirm",Wo.Popconfirm),C=Jr(o),b=Jr(a);return l.createElement("div",{className:`${n}-inner-content`,onClick:w},l.createElement("div",{className:`${n}-message`},d&&l.createElement("span",{className:`${n}-message-icon`},d),l.createElement("div",{className:`${n}-message-text`},C&&l.createElement("div",{className:`${n}-title`},C),b&&l.createElement("div",{className:`${n}-description`},b))),l.createElement("div",{className:`${n}-buttons`},f&&l.createElement(pt,Object.assign({onClick:x,size:"small"},r),i||(p==null?void 0:p.cancelText)),l.createElement(yi,{buttonProps:Object.assign(Object.assign({size:"small"},Ja(u)),t),actionFn:h,close:m,prefixCls:c("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(p==null?void 0:p.okText))))},Ks=e=>{const{prefixCls:n,placement:t,className:r,style:o}=e,a=Vs(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=l.useContext(wt),s=i("popconfirm",n),[u]=va(s);return u(l.createElement(xi,{placement:t,className:Z(s,r),style:o,content:l.createElement(ba,Object.assign({prefixCls:s},a))}))};var Xs=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const Gs=l.forwardRef((e,n)=>{var t,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:u=l.createElement(qo,null),children:d,overlayClassName:f,onOpenChange:m,onVisibleChange:h,overlayStyle:x,styles:w,classNames:c}=e,p=Xs(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:b,style:I,classNames:S,styles:y}=Or("popconfirm"),[F,D]=Lt(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(j,U)=>{D(j,!0),h==null||h(j),m==null||m(j,U)},N=j=>{O(!1,j)},E=j=>{var U;return(U=e.onConfirm)===null||U===void 0?void 0:U.call(void 0,j)},_=j=>{var U;O(!1,j),(U=e.onCancel)===null||U===void 0||U.call(void 0,j)},T=(j,U)=>{const{disabled:K=!1}=e;K||O(j,U)},k=C("popconfirm",o),M=Z(k,b,f,S.root,c==null?void 0:c.root),B=Z(S.body,c==null?void 0:c.body),[V]=va(k);return V(l.createElement(Go,Object.assign({},xt(p,["title"]),{trigger:i,placement:a,onOpenChange:T,open:F,ref:n,classNames:{root:M,body:B},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),I),x),w==null?void 0:w.root),body:Object.assign(Object.assign({},y.body),w==null?void 0:w.body)},content:l.createElement(ba,Object.assign({okType:s,icon:u},e,{prefixCls:k,close:N,onConfirm:E,onCancel:_})),"data-popover-inject":!0}),d))}),ya=Gs;ya._InternalPanelDoNotUseOrYouWillBeFired=Ks;var Js={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ys=function(){var n=Xe([]),t=Xe(null);return je(function(){var r=Date.now(),o=!1;n.current.forEach(function(a){if(a){o=!0;var i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(i.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),n.current},uo=0,Qs=Ya();function Zs(){var e;return Qs?(e=uo,uo+=1):e="TEST_OR_SSR",e}const el=(function(e){var n=l.useState(),t=Ke(n,2),r=t[0],o=t[1];return l.useEffect(function(){o("rc_progress_".concat(Zs()))},[]),e||r});var po=function(n){var t=n.bg,r=n.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function mo(e,n){return Object.keys(e).map(function(t){var r=parseFloat(t),o="".concat(Math.floor(r*n),"%");return"".concat(e[t]," ").concat(o)})}var tl=l.forwardRef(function(e,n){var t=e.prefixCls,r=e.color,o=e.gradientId,a=e.radius,i=e.style,s=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,f=e.size,m=e.gapDegree,h=r&&jt(r)==="object",x=h?"#FFF":void 0,w=f/2,c=l.createElement("circle",{className:"".concat(t,"-circle-path"),r:a,cx:w,cy:w,stroke:x,strokeLinecap:u,strokeWidth:d,opacity:s===0?0:1,style:i,ref:n});if(!h)return c;var p="".concat(o,"-conic"),C=m?"".concat(180+m/2,"deg"):"0deg",b=mo(r,(360-m)/360),I=mo(r,1),S="conic-gradient(from ".concat(C,", ").concat(b.join(", "),")"),y="linear-gradient(to ".concat(m?"bottom":"top",", ").concat(I.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:p},c),l.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(p,")")},l.createElement(po,{bg:y},l.createElement(po,{bg:S}))))}),rn=100,Gn=function(n,t,r,o,a,i,s,u,d,f){var m=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-i)/360),x=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],w=(100-o)/100*t;d==="round"&&o!==100&&(w+=f/2,w>=t&&(w=t-.01));var c=rn/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(t,"px ").concat(n),strokeDashoffset:w+m,transform:"rotate(".concat(a+h+x,"deg)"),transformOrigin:"".concat(c,"px ").concat(c,"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}},nl=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function fo(e){var n=e??[];return Array.isArray(n)?n:[n]}var rl=function(n){var t=ze(ze({},Js),n),r=t.id,o=t.prefixCls,a=t.steps,i=t.strokeWidth,s=t.trailWidth,u=t.gapDegree,d=u===void 0?0:u,f=t.gapPosition,m=t.trailColor,h=t.strokeLinecap,x=t.style,w=t.className,c=t.strokeColor,p=t.percent,C=ot(t,nl),b=rn/2,I=el(r),S="".concat(I,"-gradient"),y=b-i/2,F=Math.PI*2*y,D=d>0?90+d/2:-90,O=F*((360-d)/360),N=jt(a)==="object"?a:{count:a,gap:2},E=N.count,_=N.gap,T=fo(p),k=fo(c),M=k.find(function(q){return q&&jt(q)==="object"}),B=M&&jt(M)==="object",V=B?"butt":h,j=Gn(F,O,0,100,D,d,f,m,V,i),U=Ys(),K=function(){var ee=0;return T.map(function(R,W){var J=k[W]||k[k.length-1],oe=Gn(F,O,ee,R,D,d,f,J,V,i);return ee+=R,l.createElement(tl,{key:W,color:J,ptg:R,radius:y,prefixCls:o,gradientId:S,style:oe,strokeLinecap:V,strokeWidth:i,gapDegree:d,ref:function(Q){U[W]=Q},size:rn})}).reverse()},L=function(){var ee=Math.round(E*(T[0]/100)),R=100/E,W=0;return new Array(E).fill(null).map(function(J,oe){var ae=oe<=ee-1?k[0]:m,Q=ae&&jt(ae)==="object"?"url(#".concat(S,")"):void 0,ie=Gn(F,O,W,R,D,d,f,ae,"butt",i,_);return W+=(O-ie.strokeDashoffset+_)*100/O,l.createElement("circle",{key:oe,className:"".concat(o,"-circle-path"),r:y,cx:b,cy:b,stroke:Q,strokeWidth:i,opacity:1,style:ie,ref:function(xe){U[oe]=xe}})})};return l.createElement("svg",De({className:Z("".concat(o,"-circle"),w),viewBox:"0 0 ".concat(rn," ").concat(rn),style:x,id:r,role:"presentation"},C),!E&&l.createElement("circle",{className:"".concat(o,"-circle-trail"),r:y,cx:b,cy:b,stroke:m,strokeLinecap:V,strokeWidth:s||i,style:j}),E?L():K())};function Tt(e){return!e||e<0?0:e>100?100:e}function Fn({success:e,successPercent:n}){let t=n;return e&&"progress"in e&&(t=e.progress),e&&"percent"in e&&(t=e.percent),t}const ol=({percent:e,success:n,successPercent:t})=>{const r=Tt(Fn({success:n,successPercent:t}));return[r,Tt(Tt(e)-r)]},al=({success:e={},strokeColor:n})=>{const{strokeColor:t}=e;return[t||ir.green,n||null]},Mn=(e,n,t)=>{var r,o,a,i;let s=-1,u=-1;if(n==="step"){const d=t.steps,f=t.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,u=f??8):typeof e=="number"?[s,u]=[e,e]:[s=14,u=8]=Array.isArray(e)?e:[e.width,e.height],s*=d}else if(n==="line"){const d=t==null?void 0:t.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[s,u]=[e,e]:[s=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(n==="circle"||n==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,u]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,u=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[s,u]},il=3,sl=e=>il/e*100,ll=e=>{const{prefixCls:n,trailColor:t=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:s,children:u,success:d,size:f=i,steps:m}=e,[h,x]=Mn(f,"circle");let{strokeWidth:w}=e;w===void 0&&(w=Math.max(sl(h),6));const c={width:h,height:x,fontSize:h*.15+6},p=l.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),C=ol(e),b=o||s==="dashboard"&&"bottom"||void 0,I=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=al({success:d,strokeColor:e.strokeColor}),y=Z(`${n}-inner`,{[`${n}-circle-gradient`]:I}),F=l.createElement(rl,{steps:m,percent:m?C[1]:C,strokeWidth:w,trailWidth:w,strokeColor:m?S[1]:S,strokeLinecap:r,trailColor:t,prefixCls:n,gapDegree:p,gapPosition:b}),D=h<=20,O=l.createElement("div",{className:y,style:c},F,!D&&u);return D?l.createElement(Fr,{title:u},O):O},Nn="--progress-line-stroke-color",Ca="--progress-percent",go=e=>{const n=e?"100%":"-100%";return new sr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${n}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${n}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},cl=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},On(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${n}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${n}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.defaultColor}},[`${n}-success-bg, ${n}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${n}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${n}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${n}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Nn})`]},height:"100%",width:`calc(1 / var(${Ca}) * 100%)`,display:"block"},[`&${n}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${n}-text-inner`]:{color:e.colorWhite,[`&${n}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${n}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${n}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[t]:{fontSize:e.fontSize},[`&${n}-text-outer`]:{width:"max-content"},[`&${n}-text-outer${n}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${n}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ne(e.paddingXXS)}`,[`&${n}-text-start`]:{justifyContent:"start"},[`&${n}-text-end`]:{justifyContent:"end"}},[`&${n}-status-active`]:{[`${n}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:go(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${n}-rtl${n}-status-active`]:{[`${n}-bg::before`]:{animationName:go(!0)}},[`&${n}-status-exception`]:{[`${n}-bg`]:{backgroundColor:e.colorError},[`${n}-text`]:{color:e.colorError}},[`&${n}-status-exception ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorError}},[`&${n}-status-success`]:{[`${n}-bg`]:{backgroundColor:e.colorSuccess},[`${n}-text`]:{color:e.colorSuccess}},[`&${n}-status-success ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorSuccess}}})}},ul=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:{[`${n}-circle-trail`]:{stroke:e.remainingColor},[`&${n}-circle ${n}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${n}-circle ${n}-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%)",[t]:{fontSize:e.circleIconFontSize}},[`${n}-circle&-status-exception`]:{[`${n}-text`]:{color:e.colorError}},[`${n}-circle&-status-success`]:{[`${n}-text`]:{color:e.colorSuccess}}},[`${n}-inline-circle`]:{lineHeight:1,[`${n}-inner`]:{verticalAlign:"bottom"}}}},dl=e=>{const{componentCls:n}=e;return{[n]:{[`${n}-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}}}}}},pl=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:{[`${n}-small&-line, ${n}-small&-line ${n}-text ${t}`]:{fontSize:e.fontSizeSM}}}},ml=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fl=cn("Progress",e=>{const n=e.calc(e.marginXXS).div(2).equal(),t=sn(e,{progressStepMarginInlineEnd:n,progressStepMinWidth:n,progressActiveMotionDuration:"2.4s"});return[cl(t),ul(t),dl(t),pl(t)]},ml);var gl=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const hl=e=>{let n=[];return Object.keys(e).forEach(t=>{const r=Number.parseFloat(t.replace(/%/g,""));Number.isNaN(r)||n.push({key:r,value:e[t]})}),n=n.sort((t,r)=>t.key-r.key),n.map(({key:t,value:r})=>`${r} ${t}%`).join(", ")},vl=(e,n)=>{const{from:t=ir.blue,to:r=ir.blue,direction:o=n==="rtl"?"to left":"to right"}=e,a=gl(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=hl(a),u=`linear-gradient(${o}, ${s})`;return{background:u,[Nn]:u}}const i=`linear-gradient(${o}, ${t}, ${r})`;return{background:i,[Nn]:i}},bl=e=>{const{prefixCls:n,direction:t,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:f,success:m}=e,{align:h,type:x}=f,w=i&&typeof i!="string"?vl(i,t):{[Nn]:i,background:i},c=s==="square"||s==="butt"?0:void 0,p=o??[-1,a||(o==="small"?6:8)],[C,b]=Mn(p,"line",{strokeWidth:a}),I={backgroundColor:d||void 0,borderRadius:c},S=Object.assign(Object.assign({width:`${Tt(r)}%`,height:b,borderRadius:c},w),{[Ca]:Tt(r)/100}),y=Fn(e),F={width:`${Tt(y)}%`,height:b,borderRadius:c,backgroundColor:m==null?void 0:m.strokeColor},D={width:C<0?"100%":C},O=l.createElement("div",{className:`${n}-inner`,style:I},l.createElement("div",{className:Z(`${n}-bg`,`${n}-bg-${x}`),style:S},x==="inner"&&u),y!==void 0&&l.createElement("div",{className:`${n}-success-bg`,style:F})),N=x==="outer"&&h==="start",E=x==="outer"&&h==="end";return x==="outer"&&h==="center"?l.createElement("div",{className:`${n}-layout-bottom`},O,u):l.createElement("div",{className:`${n}-outer`,style:D},N&&u,O,E&&u)},yl=e=>{const{size:n,steps:t,rounding:r=Math.round,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:u,children:d}=e,f=r(t*(o/100)),h=n??[n==="small"?2:14,a],[x,w]=Mn(h,"step",{steps:t,strokeWidth:a}),c=x/t,p=Array.from({length:t});for(let C=0;C<t;C++){const b=Array.isArray(i)?i[C]:i;p[C]=l.createElement("div",{key:C,className:Z(`${u}-steps-item`,{[`${u}-steps-item-active`]:C<=f-1}),style:{backgroundColor:C<=f-1?b:s,width:c,height:w}})}return l.createElement("div",{className:`${u}-steps-outer`},p,d)};var Cl=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const xl=["normal","exception","active","success"],wl=l.forwardRef((e,n)=>{const{prefixCls:t,className:r,rootClassName:o,steps:a,strokeColor:i,percent:s=0,size:u="default",showInfo:d=!0,type:f="line",status:m,format:h,style:x,percentPosition:w={}}=e,c=Cl(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:C="outer"}=w,b=Array.isArray(i)?i[0]:i,I=typeof i=="string"||Array.isArray(i)?i:void 0,S=l.useMemo(()=>{if(b){const K=typeof b=="string"?b:Object.values(b)[0];return new or(K).isLight()}return!1},[i]),y=l.useMemo(()=>{var K,L;const q=Fn(e);return Number.parseInt(q!==void 0?(K=q??0)===null||K===void 0?void 0:K.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),F=l.useMemo(()=>!xl.includes(m)&&y>=100?"success":m||"normal",[m,y]),{getPrefixCls:D,direction:O,progress:N}=l.useContext(wt),E=D("progress",t),[_,T,k]=fl(E),M=f==="line",B=M&&!a,V=l.useMemo(()=>{if(!d)return null;const K=Fn(e);let L;const q=h||(R=>`${R}%`),ee=M&&S&&C==="inner";return C==="inner"||h||F!=="exception"&&F!=="success"?L=q(Tt(s),Tt(K)):F==="exception"?L=M?l.createElement(Qa,null):l.createElement(Za,null):F==="success"&&(L=M?l.createElement(ei,null):l.createElement(ti,null)),l.createElement("span",{className:Z(`${E}-text`,{[`${E}-text-bright`]:ee,[`${E}-text-${p}`]:B,[`${E}-text-${C}`]:B}),title:typeof L=="string"?L:void 0},L)},[d,s,y,F,f,E,h]);let j;f==="line"?j=a?l.createElement(yl,Object.assign({},e,{strokeColor:I,prefixCls:E,steps:typeof a=="object"?a.count:a}),V):l.createElement(bl,Object.assign({},e,{strokeColor:b,prefixCls:E,direction:O,percentPosition:{align:p,type:C}}),V):(f==="circle"||f==="dashboard")&&(j=l.createElement(ll,Object.assign({},e,{strokeColor:b,prefixCls:E,progressStatus:F}),V));const U=Z(E,`${E}-status-${F}`,{[`${E}-${f==="dashboard"&&"circle"||f}`]:f!=="line",[`${E}-inline-circle`]:f==="circle"&&Mn(u,"circle")[0]<=20,[`${E}-line`]:B,[`${E}-line-align-${p}`]:B,[`${E}-line-position-${C}`]:B,[`${E}-steps`]:a,[`${E}-show-info`]:d,[`${E}-${u}`]:typeof u=="string",[`${E}-rtl`]:O==="rtl"},N==null?void 0:N.className,r,o,T,k);return _(l.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},N==null?void 0:N.style),x),className:U,role:"progressbar","aria-valuenow":y,"aria-valuemin":0,"aria-valuemax":100},xt(c,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))});var $l={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"},Il=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:$l}))},Sl=l.forwardRef(Il);const Jn=(function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return t.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var u=r.toLowerCase(),d=s.toLowerCase(),f=[d];return(d===".jpg"||d===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(function(m){return u.endsWith(m)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Cr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0});function El(e,n){var t="cannot ".concat(e.method," ").concat(e.action," ").concat(n.status,"'"),r=new Error(t);return r.status=n.status,r.method=e.method,r.url=e.action,r}function ho(e){var n=e.responseText||e.response;if(!n)return n;try{return JSON.parse(n)}catch{return n}}function vo(e){var n=new XMLHttpRequest;e.onProgress&&n.upload&&(n.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var t=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var a=e.data[o];if(Array.isArray(a)){a.forEach(function(i){t.append("".concat(o,"[]"),i)});return}t.append(o,a)}),e.file instanceof Blob?t.append(e.filename,e.file,e.file.name):t.append(e.filename,e.file),n.onerror=function(a){e.onError(a)},n.onload=function(){return n.status<200||n.status>=300?e.onError(El(e,n),ho(n)):e.onSuccess(ho(n),n)},n.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&n.setRequestHeader(o,r[o])}),n.send(t),{abort:function(){n.abort()}}}var Fl=(function(){var e=Bt(Qe().mark(function n(t,r){var o,a,i,s,u,d,f,m;return Qe().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:d=function(){return d=Bt(Qe().mark(function c(p){return Qe().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(I){p.file(function(S){r(S)?(p.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),I(S)):I(null)})}));case 1:case"end":return b.stop()}},c)})),d.apply(this,arguments)},u=function(c){return d.apply(this,arguments)},s=function(){return s=Bt(Qe().mark(function c(p){var C,b,I,S,y;return Qe().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:C=p.createReader(),b=[];case 2:return D.next=5,new Promise(function(O){C.readEntries(O,function(){return O([])})});case 5:if(I=D.sent,S=I.length,S){D.next=9;break}return D.abrupt("break",12);case 9:for(y=0;y<S;y++)b.push(I[y]);D.next=2;break;case 12:return D.abrupt("return",b);case 13:case"end":return D.stop()}},c)})),s.apply(this,arguments)},i=function(c){return s.apply(this,arguments)},o=[],a=[],t.forEach(function(w){return a.push(w.webkitGetAsEntry())}),f=(function(){var w=Bt(Qe().mark(function c(p,C){var b,I;return Qe().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(p){y.next=2;break}return y.abrupt("return");case 2:if(p.path=C||"",!p.isFile){y.next=10;break}return y.next=6,u(p);case 6:b=y.sent,b&&o.push(b),y.next=15;break;case 10:if(!p.isDirectory){y.next=15;break}return y.next=13,i(p);case 13:I=y.sent,a.push.apply(a,Ye(I));case 15:case"end":return y.stop()}},c)}));return function(p,C){return w.apply(this,arguments)}})(),m=0;case 9:if(!(m<a.length)){x.next=15;break}return x.next=12,f(a[m]);case 12:m++,x.next=9;break;case 15:return x.abrupt("return",o);case 16:case"end":return x.stop()}},n)}));return function(t,r){return e.apply(this,arguments)}})(),Nl=+new Date,Ol=0;function Yn(){return"rc-upload-".concat(Nl,"-").concat(++Ol)}var Dl=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Pl=(function(e){xr(t,e);var n=wr(t);function t(){var r;$r(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n.call.apply(n,[this].concat(a)),re(Ve(r),"state",{uid:Yn()}),re(Ve(r),"reqs",{}),re(Ve(r),"fileInput",void 0),re(Ve(r),"_isMounted",void 0),re(Ve(r),"onChange",function(s){var u=r.props,d=u.accept,f=u.directory,m=s.target.files,h=Ye(m).filter(function(x){return!f||Jn(x,d)});r.uploadFiles(h),r.reset()}),re(Ve(r),"onClick",function(s){var u=r.fileInput;if(u){var d=s.target,f=r.props.onClick;if(d&&d.tagName==="BUTTON"){var m=u.parentNode;m.focus(),d.blur()}u.click(),f&&f(s)}}),re(Ve(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),re(Ve(r),"onDataTransferFiles",(function(){var s=Bt(Qe().mark(function u(d,f){var m,h,x,w,c,p,C;return Qe().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(m=r.props,h=m.multiple,x=m.accept,w=m.directory,c=Ye(d.items||[]),p=Ye(d.files||[]),(p.length>0||c.some(function(S){return S.kind==="file"}))&&(f==null||f()),!w){I.next=11;break}return I.next=7,Fl(Array.prototype.slice.call(c),function(S){return Jn(S,r.props.accept)});case 7:p=I.sent,r.uploadFiles(p),I.next=14;break;case 11:C=Ye(p).filter(function(S){return Jn(S,x)}),h===!1&&(C=p.slice(0,1)),r.uploadFiles(C);case 14:case"end":return I.stop()}},u)}));return function(u,d){return s.apply(this,arguments)}})()),re(Ve(r),"onFilePaste",(function(){var s=Bt(Qe().mark(function u(d){var f,m;return Qe().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(f=r.props.pastable,f){x.next=3;break}return x.abrupt("return");case 3:if(d.type!=="paste"){x.next=6;break}return m=d.clipboardData,x.abrupt("return",r.onDataTransferFiles(m,function(){d.preventDefault()}));case 6:case"end":return x.stop()}},u)}));return function(u){return s.apply(this,arguments)}})()),re(Ve(r),"onFileDragOver",function(s){s.preventDefault()}),re(Ve(r),"onFileDrop",(function(){var s=Bt(Qe().mark(function u(d){var f;return Qe().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(d.preventDefault(),d.type!=="drop"){h.next=4;break}return f=d.dataTransfer,h.abrupt("return",r.onDataTransferFiles(f));case 4:case"end":return h.stop()}},u)}));return function(u){return s.apply(this,arguments)}})()),re(Ve(r),"uploadFiles",function(s){var u=Ye(s),d=u.map(function(f){return f.uid=Yn(),r.processFile(f,u)});Promise.all(d).then(function(f){var m=r.props.onBatchStart;m==null||m(f.map(function(h){var x=h.origin,w=h.parsedFile;return{file:x,parsedFile:w}})),f.filter(function(h){return h.parsedFile!==null}).forEach(function(h){r.post(h)})})}),re(Ve(r),"processFile",(function(){var s=Bt(Qe().mark(function u(d,f){var m,h,x,w,c,p,C,b,I;return Qe().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(m=r.props.beforeUpload,h=d,!m){y.next=14;break}return y.prev=3,y.next=6,m(d,f);case 6:h=y.sent,y.next=12;break;case 9:y.prev=9,y.t0=y.catch(3),h=!1;case 12:if(h!==!1){y.next=14;break}return y.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(x=r.props.action,typeof x!="function"){y.next=21;break}return y.next=18,x(d);case 18:w=y.sent,y.next=22;break;case 21:w=x;case 22:if(c=r.props.data,typeof c!="function"){y.next=29;break}return y.next=26,c(d);case 26:p=y.sent,y.next=30;break;case 29:p=c;case 30:return C=(jt(h)==="object"||typeof h=="string")&&h?h:d,C instanceof File?b=C:b=new File([C],d.name,{type:d.type}),I=b,I.uid=d.uid,y.abrupt("return",{origin:d,data:p,parsedFile:I,action:w});case 35:case"end":return y.stop()}},u,null,[[3,9]])}));return function(u,d){return s.apply(this,arguments)}})()),re(Ve(r),"saveFileInput",function(s){r.fileInput=s}),r}return Ir(t,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var a=this.props.pastable;a&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!a&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var a=this,i=o.data,s=o.origin,u=o.action,d=o.parsedFile;if(this._isMounted){var f=this.props,m=f.onStart,h=f.customRequest,x=f.name,w=f.headers,c=f.withCredentials,p=f.method,C=s.uid,b=h||vo,I={action:u,filename:x,data:i,file:d,headers:w,withCredentials:c,method:p||"post",onProgress:function(y){var F=a.props.onProgress;F==null||F(y,d)},onSuccess:function(y,F){var D=a.props.onSuccess;D==null||D(y,d,F),delete a.reqs[C]},onError:function(y,F){var D=a.props.onError;D==null||D(y,F,d),delete a.reqs[C]}};m(s),this.reqs[C]=b(I,{defaultRequest:vo})}}},{key:"reset",value:function(){this.setState({uid:Yn()})}},{key:"abort",value:function(o){var a=this.reqs;if(o){var i=o.uid?o.uid:o;a[i]&&a[i].abort&&a[i].abort(),delete a[i]}else Object.keys(a).forEach(function(s){a[s]&&a[s].abort&&a[s].abort(),delete a[s]})}},{key:"render",value:function(){var o=this.props,a=o.component,i=o.prefixCls,s=o.className,u=o.classNames,d=u===void 0?{}:u,f=o.disabled,m=o.id,h=o.name,x=o.style,w=o.styles,c=w===void 0?{}:w,p=o.multiple,C=o.accept,b=o.capture,I=o.children,S=o.directory,y=o.folder,F=o.openFileDialogOnClick,D=o.onMouseEnter,O=o.onMouseLeave,N=o.hasControlInside,E=ot(o,Dl),_=Z(re(re(re({},i,!0),"".concat(i,"-disabled"),f),s,s)),T=S||y?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=f?{}:{onClick:F?this.onClick:function(){},onKeyDown:F?this.onKeyDown:function(){},onMouseEnter:D,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:N?void 0:"0"};return Be.createElement(a,De({},k,{className:_,role:N?void 0:"button",style:x}),Be.createElement("input",De({},ni(E,{aria:!0,data:!0}),{id:m,name:h,disabled:f,type:"file",ref:this.saveFileInput,onClick:function(B){return B.stopPropagation()},key:this.state.uid,style:ze({display:"none"},c.input),className:d.input,accept:C},T,{multiple:p,onChange:this.onChange},b!=null?{capture:b}:{})),I)}}]),t})(Ao);function Qn(){}var gr=(function(e){xr(t,e);var n=wr(t);function t(){var r;$r(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n.call.apply(n,[this].concat(a)),re(Ve(r),"uploader",void 0),re(Ve(r),"saveUploader",function(s){r.uploader=s}),r}return Ir(t,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return Be.createElement(Pl,De({},this.props,{ref:this.saveUploader}))}}]),t})(Ao);re(gr,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Qn,onError:Qn,onSuccess:Qn,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Al=e=>{const{componentCls:n,iconCls:t}=e;return{[`${n}-wrapper`]:{[`${n}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[n]:{padding:e.padding},[`${n}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${n}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
73
|
+
&:not(${n}-disabled):hover,
|
|
74
|
+
&-hover:not(${n}-disabled)
|
|
75
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${n}-drag-icon`]:{marginBottom:e.margin,[t]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${n}-text`]:{margin:`0 0 ${ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${n}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${n}-disabled`]:{[`p${n}-drag-icon ${t},
|
|
76
|
+
p${n}-text,
|
|
77
|
+
p${n}-hint
|
|
78
|
+
`]:{color:e.colorTextDisabled}}}}}},kl=e=>{const{componentCls:n,iconCls:t,fontSize:r,lineHeight:o,calc:a}=e,i=`${n}-list-item`,s=`${i}-actions`,u=`${i}-action`;return{[`${n}-wrapper`]:{[`${n}-list`]:Object.assign(Object.assign({},$n()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},Nr),{padding:`0 ${ne(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[u]:{opacity:0},[t]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
79
|
+
${u}:focus-visible,
|
|
80
|
+
&.picture ${u}
|
|
81
|
+
`]:{opacity:1}},[`${n}-icon ${t}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${u}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${n}-icon ${t}`]:{color:e.colorError},[s]:{[`${t}, ${t}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${n}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ml=e=>{const{componentCls:n}=e,t=new sr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new sr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${n}-animate-inline`;return[{[`${n}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:t},[`${o}-leave`]:{animationName:r}}},{[`${n}-wrapper`]:Ci(e)},t,r]},Rl=e=>{const{componentCls:n,iconCls:t,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i=`${n}-list`,s=`${i}-item`;return{[`${n}-wrapper`]:{[`
|
|
82
|
+
${i}${i}-picture,
|
|
83
|
+
${i}${i}-picture-card,
|
|
84
|
+
${i}${i}-picture-circle
|
|
85
|
+
`]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Nr),{width:r,height:r,lineHeight:ne(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[t]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${ne(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${t}`]:{[`svg path[fill='${Wr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Wr.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Bl=e=>{const{componentCls:n,iconCls:t,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i=`${n}-list`,s=`${i}-item`,u=e.uploadPicCardSize;return{[`
|
|
86
|
+
${n}-wrapper${n}-picture-card-wrapper,
|
|
87
|
+
${n}-wrapper${n}-picture-circle-wrapper
|
|
88
|
+
`]:Object.assign(Object.assign({},$n()),{display:"block",[`${n}${n}-select`]:{width:u,height:u,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${n}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${n}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:u,height:u,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ne(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ne(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
89
|
+
${t}-eye,
|
|
90
|
+
${t}-download,
|
|
91
|
+
${t}-delete
|
|
92
|
+
`]:{zIndex:10,width:r,margin:`0 ${ne(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${t}-eye, ${t}-download, ${t}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${n}-wrapper${n}-picture-circle-wrapper`]:{[`${n}${n}-select`]:{borderRadius:"50%"}}}},Tl=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{direction:"rtl"}}},_l=e=>{const{componentCls:n,colorTextDisabled:t}=e;return{[`${n}-wrapper`]:Object.assign(Object.assign({},On(e)),{[n]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${n}-select`]:{display:"inline-block"},[`${n}-hidden`]:{display:"none"},[`${n}-disabled`]:{color:t,cursor:"not-allowed"}})}},zl=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),jl=cn("Upload",e=>{const{fontSizeHeading3:n,fontHeight:t,lineWidth:r,pictureCardSize:o,calc:a}=e,i=sn(e,{uploadThumbnailSize:a(n).mul(2).equal(),uploadProgressOffset:a(a(t).div(2)).add(r).equal(),uploadPicCardSize:o});return[_l(i),Al(i),Rl(i),Bl(i),kl(i),Ml(i),Tl(i),_o(i)]},zl);var Ll={icon:function(n,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:n}}]}},name:"file",theme:"twotone"},Hl=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:Ll}))},ql=l.forwardRef(Hl),Ul={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Wl=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:Ul}))},Vl=l.forwardRef(Wl),Kl={icon:function(n,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:n}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:n}}]}},name:"picture",theme:"twotone"},Xl=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:Kl}))},Gl=l.forwardRef(Xl);function bn(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function yn(e,n){const t=Ye(n),r=t.findIndex(({uid:o})=>o===e.uid);return r===-1?t.push(e):t[r]=e,t}function Zn(e,n){const t=e.uid!==void 0?"uid":"name";return n.filter(r=>r[t]===e[t])[0]}function Jl(e,n){const t=e.uid!==void 0?"uid":"name",r=n.filter(o=>o[t]!==e[t]);return r.length===n.length?null:r}const Yl=(e="")=>{const n=e.split("/"),r=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},xa=e=>e.indexOf("image/")===0,Ql=e=>{if(e.type&&!e.thumbUrl)return xa(e.type);const n=e.thumbUrl||e.url||"",t=Yl(n);return/^data:image\//.test(n)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(t)?!0:!(/^data:/.test(n)||t)},Rt=200;function Zl(e){return new Promise(n=>{if(!e.type||!xa(e.type)){n("");return}const t=document.createElement("canvas");t.width=Rt,t.height=Rt,t.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rt}px; height: ${Rt}px; z-index: 9999; display: none;`,document.body.appendChild(t);const r=t.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let s=Rt,u=Rt,d=0,f=0;a>i?(u=i*(Rt/a),f=-(u-s)/2):(s=a*(Rt/i),d=-(s-u)/2),r.drawImage(o,d,f,s,u);const m=t.toDataURL();document.body.removeChild(t),window.URL.revokeObjectURL(o.src),n(m)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&n(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ec={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"},tc=function(n,t){return l.createElement(Jt,De({},n,{ref:t,icon:ec}))},nc=l.forwardRef(tc);const rc=l.forwardRef(({prefixCls:e,className:n,style:t,locale:r,listType:o,file:a,items:i,progress:s,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:x,showDownloadIcon:w,previewIcon:c,removeIcon:p,downloadIcon:C,extra:b,onPreview:I,onDownload:S,onClose:y},F)=>{var D,O;const{status:N}=a,[E,_]=l.useState(N);l.useEffect(()=>{N!=="removed"&&_(N)},[N]);const[T,k]=l.useState(!1);l.useEffect(()=>{const we=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(we)}},[]);const M=u(a);let B=l.createElement("div",{className:`${e}-icon`},M);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(E==="uploading"||!a.thumbUrl&&!a.url){const we=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:E!=="uploading"});B=l.createElement("div",{className:we},M)}else{const we=m!=null&&m(a)?l.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,Te=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:m&&!m(a)});B=l.createElement("a",{className:Te,onClick:Je=>I(a,Je),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},we)}const V=Z(`${e}-list-item`,`${e}-list-item-${E}`),j=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,U=(typeof x=="function"?x(a):x)?d((typeof p=="function"?p(a):p)||l.createElement(Sl,null),()=>y(a),e,r.removeFile,!0):null,K=(typeof w=="function"?w(a):w)&&E==="done"?d((typeof C=="function"?C(a):C)||l.createElement(nc,null),()=>S(a),e,r.downloadFile):null,L=o!=="picture-card"&&o!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:Z(`${e}-list-item-actions`,{picture:o==="picture"})},K,U),q=typeof b=="function"?b(a):b,ee=q&&l.createElement("span",{className:`${e}-list-item-extra`},q),R=Z(`${e}-list-item-name`),W=a.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:R,title:a.name},j,{href:a.url,onClick:we=>I(a,we)}),a.name,ee):l.createElement("span",{key:"view",className:R,onClick:we=>I(a,we),title:a.name},a.name,ee),J=(typeof h=="function"?h(a):h)&&(a.url||a.thumbUrl)?l.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:we=>I(a,we),title:r.previewFile},typeof c=="function"?c(a):c||l.createElement(ri,null)):null,oe=(o==="picture-card"||o==="picture-circle")&&E!=="uploading"&&l.createElement("span",{className:`${e}-list-item-actions`},J,E==="done"&&K,U),{getPrefixCls:ae}=l.useContext(wt),Q=ae(),ie=l.createElement("div",{className:V},B,W,L,oe,T&&l.createElement(Er,{motionName:`${Q}-fade`,visible:E==="uploading",motionDeadline:2e3},({className:we})=>{const Te="percent"in a?l.createElement(wl,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},s)):null;return l.createElement("div",{className:Z(`${e}-list-item-progress`,we)},Te)})),Ce=a.response&&typeof a.response=="string"?a.response:((D=a.error)===null||D===void 0?void 0:D.statusText)||((O=a.error)===null||O===void 0?void 0:O.message)||r.uploadError,xe=E==="error"?l.createElement(Fr,{title:Ce,getPopupContainer:we=>we.parentNode},ie):ie;return l.createElement("div",{className:Z(`${e}-list-item-container`,n),style:t,ref:F},f?f(xe,a,i,{download:S.bind(null,a),preview:I.bind(null,a),remove:y.bind(null,a)}):xe)}),oc=(e,n)=>{const{listType:t="text",previewFile:r=Zl,onPreview:o,onDownload:a,onRemove:i,locale:s,iconRender:u,isImageUrl:d=Ql,prefixCls:f,items:m=[],showPreviewIcon:h=!0,showRemoveIcon:x=!0,showDownloadIcon:w=!1,removeIcon:c,previewIcon:p,downloadIcon:C,extra:b,progress:I={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:y=!0,itemRender:F,disabled:D}=e,[,O]=oi(),[N,E]=l.useState(!1),_=["picture-card","picture-circle"].includes(t);l.useEffect(()=>{t.startsWith("picture")&&(m||[]).forEach(R=>{!(R.originFileObj instanceof File||R.originFileObj instanceof Blob)||R.thumbUrl!==void 0||(R.thumbUrl="",r==null||r(R.originFileObj).then(W=>{R.thumbUrl=W||"",O()}))})},[t,m,r]),l.useEffect(()=>{E(!0)},[]);const T=(R,W)=>{if(o)return W==null||W.preventDefault(),o(R)},k=R=>{typeof a=="function"?a(R):R.url&&window.open(R.url)},M=R=>{i==null||i(R)},B=R=>{if(u)return u(R,t);const W=R.status==="uploading";if(t.startsWith("picture")){const J=t==="picture"?l.createElement(Vr,null):s.uploading,oe=d!=null&&d(R)?l.createElement(Gl,null):l.createElement(ql,null);return W?J:oe}return W?l.createElement(Vr,null):l.createElement(Vl,null)},V=(R,W,J,oe,ae)=>{const Q={type:"text",size:"small",title:oe,onClick:ie=>{var Ce,xe;W(),l.isValidElement(R)&&((xe=(Ce=R.props).onClick)===null||xe===void 0||xe.call(Ce,ie))},className:`${J}-list-item-action`,disabled:ae?D:!1};return l.isValidElement(R)?l.createElement(pt,Object.assign({},Q,{icon:Gt(R,Object.assign(Object.assign({},R.props),{onClick:()=>{}}))})):l.createElement(pt,Object.assign({},Q),l.createElement("span",null,R))};l.useImperativeHandle(n,()=>({handlePreview:T,handleDownload:k}));const{getPrefixCls:j}=l.useContext(wt),U=j("upload",f),K=j(),L=Z(`${U}-list`,`${U}-list-${t}`),q=l.useMemo(()=>xt(Ho(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),ee=Object.assign(Object.assign({},_?{}:q),{motionDeadline:2e3,motionName:`${U}-${_?"animate-inline":"animate"}`,keys:Ye(m.map(R=>({key:R.uid,file:R}))),motionAppear:N});return l.createElement("div",{className:L},l.createElement(ai,Object.assign({},ee,{component:!1}),({key:R,file:W,className:J,style:oe})=>l.createElement(rc,{key:R,locale:s,prefixCls:U,className:J,style:oe,file:W,items:m,progress:I,listType:t,isImgUrl:d,showPreviewIcon:h,showRemoveIcon:x,showDownloadIcon:w,removeIcon:c,previewIcon:p,downloadIcon:C,extra:b,iconRender:B,actionIconRender:V,itemRender:F,onPreview:T,onDownload:k,onClose:M})),S&&l.createElement(Er,Object.assign({},ee,{visible:y,forceRender:!0}),({className:R,style:W})=>Gt(S,J=>({className:Z(J.className,R),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:R?"none":void 0}),J.style)}))))},ac=l.forwardRef(oc);var ic=function(e,n,t,r){function o(a){return a instanceof t?a:new t(function(i){i(a)})}return new(t||(t=Promise))(function(a,i){function s(f){try{d(r.next(f))}catch(m){i(m)}}function u(f){try{d(r.throw(f))}catch(m){i(m)}}function d(f){f.done?a(f.value):o(f.value).then(s,u)}d((r=r.apply(e,[])).next())})};const on=`__LIST_IGNORE_${Date.now()}__`,sc=(e,n)=>{const t=Or("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:s="text",onPreview:u,onDownload:d,onChange:f,onDrop:m,previewFile:h,disabled:x,locale:w,iconRender:c,isImageUrl:p,progress:C,prefixCls:b,className:I,type:S="select",children:y,style:F,itemRender:D,maxCount:O,data:N={},multiple:E=!1,hasControlInside:_=!0,action:T="",accept:k="",supportServerRender:M=!0,rootClassName:B}=e,V=l.useContext(ii),j=x??V,U=e.customRequest||t.customRequest,[K,L]=Lt(o||[],{value:r,postState:G=>G??[]}),[q,ee]=l.useState("drop"),R=l.useRef(null),W=l.useRef(null);l.useMemo(()=>{const G=Date.now();(r||[]).forEach((pe,Fe)=>{!pe.uid&&!Object.isFrozen(pe)&&(pe.uid=`__AUTO__${G}_${Fe}__`)})},[r]);const J=(G,pe,Fe)=>{let se=Ye(pe),be=!1;O===1?se=se.slice(-1):O&&(be=se.length>O,se=se.slice(0,O)),lr(()=>{L(se)});const _e={file:G,fileList:se};Fe&&(_e.event=Fe),(!be||G.status==="removed"||se.some(at=>at.uid===G.uid))&&lr(()=>{f==null||f(_e)})},oe=(G,pe)=>ic(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:se}=e;let be=G;if(Fe){const _e=yield Fe(G,pe);if(_e===!1)return!1;if(delete G[on],_e===on)return Object.defineProperty(G,on,{value:!0,configurable:!0}),!1;typeof _e=="object"&&_e&&(be=_e)}return se&&(be=yield se(be)),be}),ae=G=>{const pe=G.filter(be=>!be.file[on]);if(!pe.length)return;const Fe=pe.map(be=>bn(be.file));let se=Ye(K);Fe.forEach(be=>{se=yn(be,se)}),Fe.forEach((be,_e)=>{let at=be;if(pe[_e].parsedFile)be.status="uploading";else{const{originFileObj:dt}=be;let tt;try{tt=new File([dt],dt.name,{type:dt.type})}catch{tt=new Blob([dt],{type:dt.type}),tt.name=dt.name,tt.lastModifiedDate=new Date,tt.lastModified=new Date().getTime()}tt.uid=be.uid,at=tt}J(at,se)})},Q=(G,pe,Fe)=>{try{typeof G=="string"&&(G=JSON.parse(G))}catch{}if(!Zn(pe,K))return;const se=bn(pe);se.status="done",se.percent=100,se.response=G,se.xhr=Fe;const be=yn(se,K);J(se,be)},ie=(G,pe)=>{if(!Zn(pe,K))return;const Fe=bn(pe);Fe.status="uploading",Fe.percent=G.percent;const se=yn(Fe,K);J(Fe,se,G)},Ce=(G,pe,Fe)=>{if(!Zn(Fe,K))return;const se=bn(Fe);se.error=G,se.response=pe,se.status="error";const be=yn(se,K);J(se,be)},xe=G=>{let pe;Promise.resolve(typeof a=="function"?a(G):a).then(Fe=>{var se;if(Fe===!1)return;const be=Jl(G,K);be&&(pe=Object.assign(Object.assign({},G),{status:"removed"}),K==null||K.forEach(_e=>{const at=pe.uid!==void 0?"uid":"name";_e[at]===pe[at]&&!Object.isFrozen(_e)&&(_e.status="removed")}),(se=R.current)===null||se===void 0||se.abort(pe),J(pe,be))})},we=G=>{ee(G.type),G.type==="drop"&&(m==null||m(G))};l.useImperativeHandle(n,()=>({onBatchStart:ae,onSuccess:Q,onProgress:ie,onError:Ce,fileList:K,upload:R.current,nativeElement:W.current}));const{getPrefixCls:Te,direction:Je,upload:Le}=l.useContext(wt),ve=Te("upload",b),me=Object.assign(Object.assign({onBatchStart:ae,onError:Ce,onProgress:ie,onSuccess:Q},e),{customRequest:U,data:N,multiple:E,action:T,accept:k,supportServerRender:M,prefixCls:ve,disabled:j,beforeUpload:oe,onChange:void 0,hasControlInside:_});delete me.className,delete me.style,(!y||j)&&delete me.id;const ct=`${ve}-wrapper`,[mt,$t,It]=jl(ve,ct),[At]=Uo("Upload",Wo.Upload),{showRemoveIcon:et,showPreviewIcon:qe,showDownloadIcon:St,removeIcon:kt,previewIcon:Mt,downloadIcon:Et,extra:Ae}=typeof i=="boolean"?{}:i,ce=typeof et>"u"?!j:et,nt=(G,pe)=>i?l.createElement(ac,{prefixCls:ve,listType:s,items:K,previewFile:h,onPreview:u,onDownload:d,onRemove:xe,showRemoveIcon:ce,showPreviewIcon:qe,showDownloadIcon:St,removeIcon:kt,previewIcon:Mt,downloadIcon:Et,iconRender:c,extra:Ae,locale:Object.assign(Object.assign({},At),w),isImageUrl:p,progress:C,appendAction:G,appendActionVisible:pe,itemRender:D,disabled:j}):G,ut=Z(ct,I,B,$t,It,Le==null?void 0:Le.className,{[`${ve}-rtl`]:Je==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),ft=Object.assign(Object.assign({},Le==null?void 0:Le.style),F);if(S==="drag"){const G=Z($t,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:K.some(pe=>pe.status==="uploading"),[`${ve}-drag-hover`]:q==="dragover",[`${ve}-disabled`]:j,[`${ve}-rtl`]:Je==="rtl"});return mt(l.createElement("span",{className:ut,ref:W},l.createElement("div",{className:G,style:ft,onDrop:we,onDragOver:we,onDragLeave:we},l.createElement(gr,Object.assign({},me,{ref:R,className:`${ve}-btn`}),l.createElement("div",{className:`${ve}-drag-container`},y))),nt()))}const Ue=Z(ve,`${ve}-select`,{[`${ve}-disabled`]:j,[`${ve}-hidden`]:!y}),We=l.createElement("div",{className:Ue,style:ft},l.createElement(gr,Object.assign({},me,{ref:R})));return mt(s==="picture-card"||s==="picture-circle"?l.createElement("span",{className:ut,ref:W},nt(We,!!y)):l.createElement("span",{className:ut,ref:W},We,nt()))},wa=l.forwardRef(sc);var lc=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const cc=l.forwardRef((e,n)=>{const{style:t,height:r,hasControlInside:o=!1,children:a}=e,i=lc(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},t),{height:r});return l.createElement(wa,Object.assign({ref:n,hasControlInside:o},i,{style:s,type:"drag"}),a)}),jr=wa;jr.Dragger=cc;jr.LIST_IGNORE=on;const bo={actions:[{icon:$(lt,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:$(lt,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:$(lt,{type:"rag/think",size:12})}]};function uc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,si(e,n)}var yo=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function dc(e,n){return!!(e===n||yo(e)&&yo(n))}function pc(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!dc(e[t],n[t]))return!1;return!0}function er(e,n){n===void 0&&(n=pc);var t,r=[],o,a=!1;function i(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&t===this&&n(s,r)||(o=e.apply(this,s),a=!0,t=this,r=s),o}return i}var mc=typeof performance=="object"&&typeof performance.now=="function",Co=mc?function(){return performance.now()}:function(){return Date.now()};function xo(e){cancelAnimationFrame(e.id)}function fc(e,n){var t=Co();function r(){Co()-t>=n?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var tr=-1;function wo(e){if(e===void 0&&(e=!1),tr===-1||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(n),tr=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return tr}var Vt=null;function $o(e){if(e===void 0&&(e=!1),Vt===null||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",n.appendChild(r),document.body.appendChild(n),n.scrollLeft>0?Vt="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?Vt="negative":Vt="positive-ascending"),document.body.removeChild(n),Vt}return Vt}var gc=150,hc=function(n,t){return n};function vc(e){var n,t=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return n=(function(m){uc(h,m);function h(w){var c;return c=m.call(this,w)||this,c._instanceProps=u(c.props,Ve(c)),c._outerRef=void 0,c._resetIsScrollingTimeoutId=null,c.state={instance:Ve(c),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof c.props.initialScrollOffset=="number"?c.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},c._callOnItemsRendered=void 0,c._callOnItemsRendered=er(function(p,C,b,I){return c.props.onItemsRendered({overscanStartIndex:p,overscanStopIndex:C,visibleStartIndex:b,visibleStopIndex:I})}),c._callOnScroll=void 0,c._callOnScroll=er(function(p,C,b){return c.props.onScroll({scrollDirection:p,scrollOffset:C,scrollUpdateWasRequested:b})}),c._getItemStyle=void 0,c._getItemStyle=function(p){var C=c.props,b=C.direction,I=C.itemSize,S=C.layout,y=c._getItemStyleCache(d&&I,d&&S,d&&b),F;if(y.hasOwnProperty(p))F=y[p];else{var D=t(c.props,p,c._instanceProps),O=o(c.props,p,c._instanceProps),N=b==="horizontal"||S==="horizontal",E=b==="rtl",_=N?D:0;y[p]=F={position:"absolute",left:E?void 0:_,right:E?_:void 0,top:N?0:D,height:N?"100%":O,width:N?O:"100%"}}return F},c._getItemStyleCache=void 0,c._getItemStyleCache=er(function(p,C,b){return{}}),c._onScrollHorizontal=function(p){var C=p.currentTarget,b=C.clientWidth,I=C.scrollLeft,S=C.scrollWidth;c.setState(function(y){if(y.scrollOffset===I)return null;var F=c.props.direction,D=I;if(F==="rtl")switch($o()){case"negative":D=-I;break;case"positive-descending":D=S-b-I;break}return D=Math.max(0,Math.min(D,S-b)),{isScrolling:!0,scrollDirection:y.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},c._resetIsScrollingDebounced)},c._onScrollVertical=function(p){var C=p.currentTarget,b=C.clientHeight,I=C.scrollHeight,S=C.scrollTop;c.setState(function(y){if(y.scrollOffset===S)return null;var F=Math.max(0,Math.min(S,I-b));return{isScrolling:!0,scrollDirection:y.scrollOffset<F?"forward":"backward",scrollOffset:F,scrollUpdateWasRequested:!1}},c._resetIsScrollingDebounced)},c._outerRefSetter=function(p){var C=c.props.outerRef;c._outerRef=p,typeof C=="function"?C(p):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=p)},c._resetIsScrollingDebounced=function(){c._resetIsScrollingTimeoutId!==null&&xo(c._resetIsScrollingTimeoutId),c._resetIsScrollingTimeoutId=fc(c._resetIsScrolling,gc)},c._resetIsScrolling=function(){c._resetIsScrollingTimeoutId=null,c.setState({isScrolling:!1},function(){c._getItemStyleCache(-1,null)})},c}h.getDerivedStateFromProps=function(c,p){return bc(c,p),f(c),null};var x=h.prototype;return x.scrollTo=function(c){c=Math.max(0,c),this.setState(function(p){return p.scrollOffset===c?null:{scrollDirection:p.scrollOffset<c?"forward":"backward",scrollOffset:c,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(c,p){p===void 0&&(p="auto");var C=this.props,b=C.itemCount,I=C.layout,S=this.state.scrollOffset;c=Math.max(0,Math.min(c,b-1));var y=0;if(this._outerRef){var F=this._outerRef;I==="vertical"?y=F.scrollWidth>F.clientWidth?wo():0:y=F.scrollHeight>F.clientHeight?wo():0}this.scrollTo(a(this.props,c,p,S,this._instanceProps,y))},x.componentDidMount=function(){var c=this.props,p=c.direction,C=c.initialScrollOffset,b=c.layout;if(typeof C=="number"&&this._outerRef!=null){var I=this._outerRef;p==="horizontal"||b==="horizontal"?I.scrollLeft=C:I.scrollTop=C}this._callPropsCallbacks()},x.componentDidUpdate=function(){var c=this.props,p=c.direction,C=c.layout,b=this.state,I=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var y=this._outerRef;if(p==="horizontal"||C==="horizontal")if(p==="rtl")switch($o()){case"negative":y.scrollLeft=-I;break;case"positive-ascending":y.scrollLeft=I;break;default:var F=y.clientWidth,D=y.scrollWidth;y.scrollLeft=D-F-I;break}else y.scrollLeft=I;else y.scrollTop=I}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&xo(this._resetIsScrollingTimeoutId)},x.render=function(){var c=this.props,p=c.children,C=c.className,b=c.direction,I=c.height,S=c.innerRef,y=c.innerElementType,F=c.innerTagName,D=c.itemCount,O=c.itemData,N=c.itemKey,E=N===void 0?hc:N,_=c.layout,T=c.outerElementType,k=c.outerTagName,M=c.style,B=c.useIsScrolling,V=c.width,j=this.state.isScrolling,U=b==="horizontal"||_==="horizontal",K=U?this._onScrollHorizontal:this._onScrollVertical,L=this._getRangeToRender(),q=L[0],ee=L[1],R=[];if(D>0)for(var W=q;W<=ee;W++)R.push(Vn(p,{data:O,key:E(W,O),index:W,isScrolling:B?j:void 0,style:this._getItemStyle(W)}));var J=r(this.props,this._instanceProps);return Vn(T||k||"div",{className:C,onScroll:K,ref:this._outerRefSetter,style:De({position:"relative",height:I,width:V,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},M)},Vn(y||F||"div",{children:R,ref:S,style:{height:U?"100%":J,pointerEvents:j?"none":void 0,width:U?J:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var c=this.props.itemCount;if(c>0){var p=this._getRangeToRender(),C=p[0],b=p[1],I=p[2],S=p[3];this._callOnItemsRendered(C,b,I,S)}}if(typeof this.props.onScroll=="function"){var y=this.state,F=y.scrollDirection,D=y.scrollOffset,O=y.scrollUpdateWasRequested;this._callOnScroll(F,D,O)}},x._getRangeToRender=function(){var c=this.props,p=c.itemCount,C=c.overscanCount,b=this.state,I=b.isScrolling,S=b.scrollDirection,y=b.scrollOffset;if(p===0)return[0,0,0,0];var F=i(this.props,y,this._instanceProps),D=s(this.props,F,y,this._instanceProps),O=!I||S==="backward"?Math.max(1,C):1,N=!I||S==="forward"?Math.max(1,C):1;return[Math.max(0,F-O),Math.max(0,Math.min(p-1,D+N)),F,D]},h})(Na),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var bc=function(n,t){n.children,n.direction,n.height,n.layout,n.innerTagName,n.outerTagName,n.width,t.instance},yc=50,Kt=function(n,t,r){var o=n,a=o.itemSize,i=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var u=0;if(s>=0){var d=i[s];u=d.offset+d.size}for(var f=s+1;f<=t;f++){var m=a(f);i[f]={offset:u,size:m},u+=m}r.lastMeasuredIndex=t}return i[t]},Cc=function(n,t,r){var o=t.itemMetadataMap,a=t.lastMeasuredIndex,i=a>0?o[a].offset:0;return i>=r?$a(n,t,a,0,r):xc(n,t,Math.max(0,a),r)},$a=function(n,t,r,o,a){for(;o<=r;){var i=o+Math.floor((r-o)/2),s=Kt(n,i,t).offset;if(s===a)return i;s<a?o=i+1:s>a&&(r=i-1)}return o>0?o-1:0},xc=function(n,t,r,o){for(var a=n.itemCount,i=1;r<a&&Kt(n,r,t).offset<o;)r+=i,i*=2;return $a(n,t,Math.min(r,a-1),Math.floor(r/2),o)},Io=function(n,t){var r=n.itemCount,o=t.itemMetadataMap,a=t.estimatedItemSize,i=t.lastMeasuredIndex,s=0;if(i>=r&&(i=r-1),i>=0){var u=o[i];s=u.offset+u.size}var d=r-i-1,f=d*a;return s+f},wc=vc({getItemOffset:function(n,t,r){return Kt(n,t,r).offset},getItemSize:function(n,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Io,getOffsetForIndexAndAlignment:function(n,t,r,o,a,i){var s=n.direction,u=n.height,d=n.layout,f=n.width,m=s==="horizontal"||d==="horizontal",h=m?f:u,x=Kt(n,t,a),w=Io(n,a),c=Math.max(0,Math.min(w-h,x.offset)),p=Math.max(0,x.offset-h+x.size+i);switch(r==="smart"&&(o>=p-h&&o<=c+h?r="auto":r="center"),r){case"start":return c;case"end":return p;case"center":return Math.round(p+(c-p)/2);case"auto":default:return o>=p&&o<=c?o:o<p?p:c}},getStartIndexForOffset:function(n,t,r){return Cc(n,r,t)},getStopIndexForStartIndex:function(n,t,r,o){for(var a=n.direction,i=n.height,s=n.itemCount,u=n.layout,d=n.width,f=a==="horizontal"||u==="horizontal",m=f?d:i,h=Kt(n,t,o),x=r+m,w=h.offset+h.size,c=t;c<s-1&&w<x;)c++,w+=Kt(n,c,o).size;return c},initInstanceProps:function(n,t){var r=n,o=r.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:o||yc,lastMeasuredIndex:-1};return t.resetAfterIndex=function(i,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,i-1),t._getItemStyleCache(-1),s&&t.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(n){n.itemSize}});function $c({isActive:e,isNew:n,isDisabled:t,data:r,eventsEmit:o,styles:a={},assistantList:i=[]}){const[s,u]=Ie(!1),d=(a==null?void 0:a.colors)||{},f=Ge(()=>{const p=r==null?void 0:r.configId;if(!p||!i||i.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const C=i.find(b=>String(b==null?void 0:b.id)===String(p));if(!C)return"\u672A\u9009\u62E9\u52A9\u624B";if(C!=null&&C.name)return C.name;try{const b=typeof C.configJson=="string"?JSON.parse(C.configJson):C.configJson;return(b==null?void 0:b.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[i,r==null?void 0:r.configId]),m=[{key:"rename",icon:$(Ei,{size:12}),label:"\u91CD\u547D\u540D",onClick:p=>{p.domEvent.stopPropagation(),o&&o("conversations:rename_icon_clicked",r)}},{key:"delete",icon:$(Ni,{size:12}),label:"\u5220\u9664",danger:!0,onClick:p=>{p.domEvent.stopPropagation(),o&&o("conversations:delete_icon_clicked",r)}}],h=e?d.activeItemBg||"#f0f4ff":s?d.itemHoverBg||"#f5f7fa":d.itemBg||"transparent",x=e?d.activeItemText||d.primary||"#0122ff":d.itemText||"#333",w=e?d.activeItemBorder||d.primary||"#0122ff":"transparent",c=p=>{const C=Kr(),b=Kr(p);return C.isSame(b,"day")?b.format("HH:mm"):b.format("MM-DD HH:mm")};return Y("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!t&&o&&o("conversation:item_click",r),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{minHeight:48,background:h,color:x,border:`1px solid ${w}`,...a.item,opacity:t?.5:1},children:[Y("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[$("span",{className:"truncate text-sm max-w-[160px] font-medium",title:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:x,fontSize:"14px",lineHeight:"1.4"},children:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),Y("div",{className:"flex items-center justify-between gap-2",children:[$("span",{className:"text-xs truncate flex-1",style:{color:e?d.activeItemTextSecondary||"#666":d.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:f}),r.gmtModified&&$("span",{className:"text-xs flex-shrink-0",style:{color:e?d.activeItemTextSecondary||"#999":d.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:c(r.gmtModified)})]})]}),!t&&s&&!n&&$("div",{className:"absolute top-2 right-3",children:$(ha,{menu:{items:m},trigger:["click"],placement:"bottomRight",children:$(wi,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?d.activeItemTextSecondary||"#999":d.itemTextSecondary||"#999"},onClick:p=>p.stopPropagation()})})})]})}function Ic(e,n=[{label:"\u5F53\u5929",dayPeriod:1}]){const t=new Date,r={other:[]};return e.forEach(o=>{const a=new Date(o.gmtModified),i=Math.floor((+t-+a)/(1e3*60*60*24));let s=!1;for(const u of n)if(i<=u.dayPeriod){r[u.label]||(r[u.label]=[]),r[u.label].push(o),s=!0;break}s||r.other.push(o)}),r}function Sc(e){const{data:n,activedItem:t,onChange:r,onDelete:o,sortRules:a=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:i,assistantList:s,height:u=400,styles:d={},hasMore:f=!1,loadingMore:m=!1}=e,h=n.map(N=>N.sessionId+"-"+N.gmtModified).join(","),x=Ge(()=>{const N=a.length>0?a:[{label:"\u5F53\u5929",dayPeriod:1}],E=Ic(n,N),_=N.every(k=>!E[k.label]||E[k.label].length===0),T=[];return N.forEach(k=>{E[k.label]&&E[k.label].length>0&&(T.push({type:"group",label:k.label}),E[k.label].forEach(M=>T.push({type:"item",data:M})))}),E.other.length>0&&!_&&(T.push({type:"group",label:"\u5176\u4ED6"}),E.other.forEach(k=>T.push({type:"item",data:k}))),_&&E.other.length>0&&E.other.forEach(k=>T.push({type:"item",data:k})),T},[n,a,h]),w=Ge(()=>x.map(N=>N.type==="group"?`g:${N.label}`:`i:${N.data.sessionId}`).join("|"),[x]),c=56,p=14,C=36,b=N=>N===x.length?C:x[N].type==="group"?32:c+p,I=Xe(null),S=Ge(()=>x.findIndex(N=>{var E;return N.type==="item"&&((E=N.data)==null?void 0:E.sessionId)===t}),[x,t]),y=Ge(()=>x.findIndex(N=>N.type==="item"),[x]),F=Xe(void 0);je(()=>{const N=F.current;t!==N&&S>-1&&S===y&&I.current&&I.current.scrollToItem(S,"start"),F.current=t},[t,S,y]);const D=Xe(0);if(je(()=>{if(I.current){const N=D.current,E=x.length;D.current=E,E!==N&&I.current.resetAfterIndex(Math.max(0,Math.min(N,E)-1),!1)}},[x.length]),je(()=>{I.current&&I.current.resetAfterIndex(0,!1)},[w]),x.length===0)return $("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const O=(d==null?void 0:d.colors)||{};return $(di,{flipKey:h,spring:{stiffness:180,damping:18},children:$(wc,{ref:I,height:u,width:"100%",itemCount:x.length+1,itemSize:b,itemKey:N=>{if(N===x.length)return"footer";const E=x[N];return E.type==="item"?E.data.sessionId:`group-${E.label}`},onItemsRendered:({visibleStopIndex:N})=>{f&&!m&&N>=x.length-1-3&&typeof i=="function"&&i("conversations:load_more")},style:{overflowX:"hidden"},children:({index:N,style:E})=>{if(N===x.length){const T=(d==null?void 0:d.colors)||{};return $("div",{style:{...E,height:C,lineHeight:`${C}px`,textAlign:"center",fontSize:"10px",color:T.textMuted||"#9ca3af",background:T.groupBg||"white"},children:m?"\u52A0\u8F7D\u4E2D...":f?"":"\u6CA1\u6709\u66F4\u591A\u4E86"})}const _=x[N];return _.type==="group"?$("div",{style:{...E,background:O.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:_.label}):$(pi,{flipId:_.data.sessionId,children:$("div",{style:E,className:"px-[12px] py-[2px]",children:$($c,{isActive:t===_.data.sessionId,isDisabled:!1,isNew:_.data.isNew,data:_.data,eventsEmit:i,assistantList:s,styles:d})})},_.data.sessionId)}})})}const Ec=({value:e,eventsEmit:n,setSearch:t,style:r,styles:o={}})=>{const a=o.colors||{},i=o.radius||"12px",s=a.border||"#e5e7eb",u=a.primary||"#2563eb",d=o.headerBg||a.sidebarBg||a.background||"#fff",[f,m]=Be.useState(!1);return Y("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:d,borderTopLeftRadius:i,borderTopRightRadius:i},children:[$("button",{className:"border-none flex items-center justify-center",onClick:()=>{m(!1),n&&n("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:u,color:a.buttonText||"#fff",fontWeight:600,boxShadow:o.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:f?"0 0":"0 14px",minWidth:f?0:180,width:f?0:void 0,opacity:f?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease"},children:Y("div",{className:"flex items-center gap-2",children:[$(Xo,{size:18}),$("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),f?Y("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[$("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:h=>t(h.target.value),onBlur:()=>m(!1),onKeyDown:h=>{h.key==="Enter"&&m(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:i,background:a.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:a.text||"#222",outline:"none"}}),$("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:a.text||"#222",flexShrink:0},onClick:()=>m(!1),title:"\u6536\u8D77\u641C\u7D22",children:$(Pr,{size:16})})]}):$("button",{className:"ml-auto flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:u,flexShrink:0},onClick:()=>m(!0),title:"\u641C\u7D22",children:$(Fi,{size:18})})]})};function Fc(e){const{data:n,sortRules:t,activedItem:r,eventsEmit:o,assistantList:a,styles:i={},hasMore:s=!1,loadingMore:u=!1}=e,[d,f]=Ie(""),m=Ge(()=>d?n.filter(y=>(y.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(d.toLowerCase())):n,[n,d]),h=Ge(()=>[...m].sort((y,F)=>new Date(F.gmtModified).getTime()-new Date(y.gmtModified).getTime()),[m]),x=Xe(null),[w,c]=Ie(400);je(()=>{function y(){x.current&&c(x.current.clientHeight)}return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]);const p=(i==null?void 0:i.colors)||{};i!=null&&i.radius;const C=(i==null?void 0:i.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",b=p.border||"#e5e7eb",I=p.sidebarBg||p.background||"#EAEEFF",S=p.text||"#222";return Y("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:I,color:S,boxShadow:C,border:`1px solid ${b}`,...i.container},children:[$(Ec,{value:d,setSearch:f,eventsEmit:o,style:i.header,styles:i}),Y("div",{className:"flex-1 min-h-0 relative",ref:x,style:i.list,children:[$(Sc,{eventsEmit:o,data:h,assistantList:a,activedItem:r,sortRules:t,height:w,styles:i,hasMore:s,loadingMore:u}),$("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${I}cc, transparent)`}})]})]})}const Nc=(e,n)=>{let t=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");t=t.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),t=t.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",t);const r=new mi(n.currentTarget||n.target,{text:()=>t});try{r.on("success",()=>{Re.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{Re.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(n)}catch(o){r.destroy(),Re.error("\u590D\u5236\u5931\u8D25: "+o,2)}},So=e=>{const n=e.toLowerCase().split(".").pop()||"";return/^(jpg|jpeg|png|gif|bmp|webp)$/.test(n)?"image":/^(doc|docx)$/.test(n)?"word":/^(xls|xlsx|csv)$/.test(n)?"excel":/^(ppt|pptx)$/.test(n)?"ppt":n==="pdf"?"pdf":/^(txt|json|md|markdown)$/.test(n)?"text":/^(zip|rar|7z)$/.test(n)?"archive":"file"};function Oc(e){const n=[];for(const t of e){if(t.query){const r=t.query.queryId||t.query.id||t.queryId||t.id||Ht(32);n.push({istype:"user",content:t.query.content,time:t.query.gmtCreate,queryId:r,clientSideId:r+"-user",...t.query})}if(t.reply){const r=t.reply.queryId||t.reply.id||t.queryId||t.id||Ht(32);n.push({istype:"ai",content:t.reply.content,isDefault:t.reply.isDefault,time:t.time||t.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...t.reply})}}return n}const Eo=async(e,n,t)=>{try{rt.post(`${e.url}/qa/feedback`,n,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&t&&t()})}catch(r){console.log("error",r)}},nr=async(e,n,t)=>{try{rt.delete(`${e.url}/qa/feedback/cancel?queryId=${n.queryId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&t&&t()})}catch(r){console.log("error",r)}},Dc=(e,n)=>{try{rt.get(`${e.url}/qa/feedback/que/list`,{headers:{Authorization:e.token}}).then(t=>{t.data.success&&n&&n(t.data.data)})}catch(t){console.log("error",t)}},Pc=async(e,n,t)=>{try{rt.post(`${e.url}/qa/dialogue/reName`,n,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?t&&t(r):Re.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&Re.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Ac=async(e,n,t)=>{try{rt.delete(`${e.url}/qa/dialogue/delete?sessionId=${n.sessionId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&t&&t(r.data)})}catch(r){console.log("error",r)}},kc=async(e,n,t)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:n});try{rt.post(`${e.url}/qa/dialogue/create`,n,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?t&&t(r.data):Re.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&Re.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Mc=async(e,n,t)=>{try{const{uid:r,queryId:o}=n;let a=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;o&&(a+=`&queryId=${o}`),rt.delete(a,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(i=>{i.data.success?t&&t(!0,i):t&&t(!1,i)}).catch(i=>{t&&t(!1,i)})}catch(r){t&&t(!1,r)}},Rc=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,Bc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",Tc=(e,n)=>{const t={...Dr.colors,...e};return`
|
|
93
|
+
.g-welcome-${n} .g-welcome-title {
|
|
589
94
|
background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
|
|
590
95
|
-webkit-background-clip: text;
|
|
591
96
|
background-clip: text;
|
|
592
97
|
color: transparent;
|
|
593
98
|
-webkit-text-fill-color: transparent;
|
|
594
99
|
}
|
|
595
|
-
.g-welcome-${
|
|
596
|
-
color: ${
|
|
100
|
+
.g-welcome-${n} .g-welcome-subtitle {
|
|
101
|
+
color: ${t.disabled};
|
|
597
102
|
}
|
|
598
|
-
.g-welcome-${
|
|
103
|
+
.g-welcome-${n} .g-welcome-btn {
|
|
599
104
|
background-color: #ffffff;
|
|
600
|
-
border-color: ${
|
|
601
|
-
color: ${
|
|
105
|
+
border-color: ${t.border};
|
|
106
|
+
color: ${t.text};
|
|
602
107
|
height: 36px;
|
|
603
108
|
border-width: 1px;
|
|
604
109
|
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
605
110
|
}
|
|
606
|
-
.g-welcome-${
|
|
607
|
-
border-color: ${
|
|
608
|
-
color: ${
|
|
111
|
+
.g-welcome-${n} .g-welcome-btn:hover {
|
|
112
|
+
border-color: ${t.primary};
|
|
113
|
+
color: ${t.primary};
|
|
609
114
|
background-color: #ffffff;
|
|
610
115
|
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
611
116
|
}
|
|
612
|
-
.g-welcome-${
|
|
117
|
+
.g-welcome-${n} .g-welcome-btn.active {
|
|
613
118
|
background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
|
|
614
|
-
border-color: ${
|
|
119
|
+
border-color: ${t.primary};
|
|
615
120
|
box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
|
|
616
121
|
}
|
|
617
|
-
.g-welcome-${
|
|
122
|
+
.g-welcome-${n} .g-welcome-btn .icon-badge {
|
|
618
123
|
width: 24px;
|
|
619
124
|
height: 24px;
|
|
620
125
|
border-radius: 9999px;
|
|
@@ -622,20 +127,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
622
127
|
align-items: center;
|
|
623
128
|
justify-content: center;
|
|
624
129
|
background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
|
|
625
|
-
box-shadow: inset 0 0 0 1px ${
|
|
130
|
+
box-shadow: inset 0 0 0 1px ${t.border};
|
|
626
131
|
}
|
|
627
|
-
.g-welcome-${
|
|
628
|
-
color: ${
|
|
132
|
+
.g-welcome-${n} .g-welcome-pagination-btn {
|
|
133
|
+
color: ${t.primary};
|
|
629
134
|
}
|
|
630
|
-
.g-welcome-${
|
|
631
|
-
color: ${
|
|
135
|
+
.g-welcome-${n} .g-welcome-pagination-btn:disabled {
|
|
136
|
+
color: ${t.disabled};
|
|
632
137
|
cursor: not-allowed;
|
|
633
138
|
}
|
|
634
|
-
.g-welcome-${
|
|
635
|
-
color: ${
|
|
139
|
+
.g-welcome-${n} .g-welcome-pagination-text {
|
|
140
|
+
color: ${t.text};
|
|
636
141
|
}
|
|
637
|
-
`};function
|
|
638
|
-
`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function s9(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ub(){return{data:"",event:"",id:"",retry:void 0}}var l9=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 ip="text/event-stream",c9=1e3,db="last-event-id";function u9(e,t){var{signal:n,headers:r,onopen:o,onmessage:a,onclose:i,onerror:s,openWhenHidden:l,fetch:c}=t,u=l9(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((f,p)=>{const v=Object.assign({},r);v.accept||(v.accept=ip);let h;function g(){h.abort(),document.hidden||w()}l||document.addEventListener("visibilitychange",g);let m=c9,b=0;function y(){document.removeEventListener("visibilitychange",g),window.clearTimeout(b),h.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const x=c??window.fetch,C=o??d9;async function w(){var E;h=new AbortController;try{const S=await x(e,Object.assign(Object.assign({},u),{headers:v,signal:h.signal}));await C(S),await o9(S.body,a9(i9(k=>{k?v[db]=k:delete v[db]},k=>{m=k},a))),i==null||i(),y(),f()}catch(S){if(!h.signal.aborted)try{const k=(E=s==null?void 0:s(S))!==null&&E!==void 0?E:m;window.clearTimeout(b),b=window.setTimeout(w,k)}catch(k){y(),p(k)}}}w()})}function d9(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(ip)))throw new Error(`Expected content-type to be ${ip}, Actual: ${t}`)}class Ku extends Error{}let qr=null;const f9=({baseUrl:e,token:t,CSRFToken:n,setChatData:r,activeSessionId:o,setAppStatus:a,setConversationList:i})=>{const s=({content:h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,graphReference:C,databaseReference:w,llmType:E,resultType:S,queryId:k,tokens:O})=>{r($=>{var P;if(!$[0])return $;const I=$[0],N=I.messages||[],A=N.length-1;if(A<0)return $;const F=N[A];if(F.istype!=="ai")return $;let j=N.slice();if(b!=null&&b.length){const z=N.length-2;if(z>=0&&((P=N[z])==null?void 0:P.istype)==="user"){const H={...N[z],filePaths:b};j[z]=H}}const M={...F,content:(F.content||"")+h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,graphReference:C??F.graphReference,databaseReference:w??F.databaseReference,resultType:S,llmType:E,tokens:O,queryId:k||F.queryId||Jo(32)};return M.clientSideId=M.clientSideId||M.queryId+"-ai",j[A]=M,[{...I,isNew:!1,messages:j},...$.slice(1)]})},l=h=>{if(h instanceof Ku)throw a(g=>({...g,display:"error",sender:"ready"})),qr&&(qr.abort(),qr=null),h};return{updateUserFilesMessage:({currentFiles:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-2;if(y<0||b[y].istype!=="user")return g;const C=b.slice();return C[y]={...b[y],currentFiles:h},[{...m,messages:C},...g.slice(1)]})},api_startChat_re:(h,g)=>{qr&&qr.abort(),qr=new AbortController;const m=`${e}/qa/ai/question_re`;console.log("data",h);const b={...h};u9(m,{method:"post",signal:qr.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t||"","X-CSRF-TOKEN-IN":n||""},openWhenHidden:!0,body:JSON.stringify(b),onopen:async y=>{if(y.status===500)throw new Ku("Internal Server Error");if(!y.ok)throw new Ku(`HTTP error: ${y.status}`)},onmessage:y=>{const x=JSON.parse(y.data);if(o!==x.sessionId)return;const{reply:C,resultType:w,respTime:E,reference:S,webReference:k,graphReference:O,filePaths:$,status:I,docs:N,llmType:A,databaseReference:F}=x,j=$?JSON.parse($):[];if(I===2&&C&&C.content&&(C.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||C.content.includes("\u5931\u8D25")||C.content.includes("\u9519\u8BEF")||C.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&a(M=>({...M,display:"ready",sender:"ready"})),I===2){if(s({content:C.content||"",status:2,respTime:E,filePaths:j,reference:S||N||"",webReference:k||"",graphReference:O||null,databaseReference:F,llmType:A,resultType:w,queryId:x.queryId,tokens:x.tokens}),a(M=>({...M,display:"ready",sender:"ready"})),g){const M=E||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",M),g(M)}}else s({content:C.content||"",status:I,respTime:E,filePaths:j,reference:S||N||"",webReference:k||"",graphReference:O||null,databaseReference:F,llmType:A,resultType:w,queryId:x.queryId,tokens:x.tokens})},onerror:l})},addEmptyMessage:({queryId:h,content:g,filePaths:m,currentFiles:b})=>{r(y=>{const x=new Date().toISOString(),C=h||Jo(32),w={istype:"user",content:g,time:x,queryId:C,clientSideId:C+"-user",filePaths:m||"",currentFiles:b||[]},E={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:C,clientSideId:C+"-ai"},S=y.find(k=>k.id===o);return S?S.messages.push(w,E):console.warn("addEmptyMessage called without an active session."),[...y]})},setLastEmptyMessage:({now:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-1;if(y<0)return g;const x=b[y];if(x.istype!=="ai")return g;const C=b.slice();return C[y]={...x,istype:"ai",content:"",time:h,streaming:!0,status:0},[{...m,messages:C},...g.slice(1)]})},stopStream:()=>{qr&&(qr.abort(),qr=null),a(h=>({...h,display:"ready",sender:"ready"}))}}},p9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:fb}=El,{useForm:m9}=xo,kS={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},g9=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const o={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[a]=m9(),[i,s]=ct({}),l=async()=>{try{const c=await a.validateFields();t(!1);const u={...c};Object.entries(i||{}).forEach(f=>{const[p,v]=f;v&&(u[kS[p]]=v)}),r(u)}catch(c){console.log(c);return}};return mt(()=>{e||(a.resetFields(),s(null))},[e]),re(Cp,{modal:{styles:o},children:rt(Ql,{open:e,onCancel:()=>t(!1),title:re("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:rt("div",{children:[re(_r,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),re(_r,{type:"primary",className:"w-[76px] border-none",onClick:l,children:"\u786E\u8BA4"})]}),children:[re(h9,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:s}),rt(xo,{form:a,layout:"vertical",children:[re(xo.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:re(fb,{})})," ",re(xo.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:re(fb,{})}),re(xo.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:re(El,{})}),re(xo.Item,{name:"deptName",label:"\u90E8\u95E8",children:re(El,{})})]})]})})},h9=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=ct(!1),[a,i]=ct([]),[s,l]=ct([]),[c,u]=ct([]),[f,p]=ct(null),v=en(()=>(l([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(g=>({title:g,key:g}))}]:[]),[f]),h=g=>{u(m=>Array.isArray(m)&&Array.isArray(s)?Object.entries(t).reduce((y,x)=>{const[C,w]=x,S=(w?w.split(";"):[]).filter(k=>k!==g);return n(k=>({...k||{},[C]:S.join(";")})),[...y,...S]},[]):m)};return mt(()=>{if(i(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const g=t[f.que_name]||"",m=g?g.split(";"):[];l(m)},[v,r]),mt(()=>{t===null&&(u([]),p(null),l([]))},[t]),mt(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",kS),console.log("selectedParent",f)},[t,c]),rt("div",{className:"relative mb-[24px] z-20",children:[rt("div",{className:"absolute w-full z-10",children:[rt("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>o(!r),children:[re("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),re("img",{src:p9,width:24,height:24,className:"mr-[16px]"})]}),rt("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[rt("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[re("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((g,m)=>{var b;return rt("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===g.que_name?"#E6F4FF":""},children:[re("div",{className:"h-full w-full leading-[32px]",onClick:()=>{p(g)},children:rt("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[g.que_name,"(",t&&t[g.que_name]?t[g.que_name].split(";").length:0,"/",(b=g==null?void 0:g.items)==null?void 0:b.length,")"]})}),re(_S,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},m)})}),re("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:re(VS,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:s,expandedKeys:a,onCheck:g=>{Array.isArray(g)&&n(m=>({...m||{},[(f==null?void 0:f.que_name)||""]:(g||[]).filter(b=>b!=="\u5168\u9009").join(";")})),l(g)}})})]}),rt("div",{className:"flex justify-end h-[40px] items-center",children:[re(_r,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),re(_r,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{u(g=>Array.isArray(g)&&Array.isArray(s)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):g),o(!1)},children:"\u786E\u8BA4"})]})]})]}),re("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&rt("div",{children:[rt("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(g=>{let m="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(g)>-1&&(m=y)}),rt(WS,{closable:!0,className:"mt-[5px]",onClose:()=>h(g),children:[m,"\uFF08",g,"\uFF09"]},g)})]})]})},pb=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",mb="http://10.15.12.13:9000/",v9=e=>{if(typeof e=="string"){const t=e.split(".");return t.length?t[t.length-1]:""}else return""},b9=e=>{var w,E,S,k,O,$,I,N;const{file_type:t,file_name:n,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,onlyDownloadTypes:l,references:c,eventsEmit:u,styles:f,isUploadFile:p,type:v,collectionItems:h,pdfPages:g=0,fileManagerData:m}=e;if(v==="collection"&&Array.isArray(h)){const j=`calc(90% - ${.5}px)`,M=h.slice(0,4),R=h.length>4,P="\u6253\u5F00\u5408\u96C6",z=()=>{if(m&&t==="pdf"&&!e.pdfPages){const H=((m==null?void 0:m.uploadedFiles)||[]).find(L=>{var T;return((L==null?void 0:L.name)||((T=L==null?void 0:L.file)==null?void 0:T.name))===n});if(!(H!=null&&H.pdfPages)){kn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{...e,pdfPages:(H==null?void 0:H.pdfPages)||0})}else u==null||u("reference_file:click",e)};return rt("div",{className:"user-file relative group flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all bg-white shadow",style:{width:94,height:94,minWidth:94,minHeight:94,borderColor:(E=(w=f==null?void 0:f.theme)==null?void 0:w.colors)==null?void 0:E.border},onClick:z,children:[re("div",{className:"grid grid-cols-2 items-center justify-center grid-rows-2 gap-1 w-full h-full",style:{width:"100%",height:"100%",gap:1},children:M.map((H,L)=>{var D,B,V,W;if(R&&L===3)return re("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:j,height:j},children:re("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(H.file_type==="image"||H.file_type==="jpg"||H.file_type==="jpeg"||H.file_type==="png"||H.file_type==="gif"||H.file_type==="bmp"||H.file_type==="webp")return re("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:j,height:j,borderColor:(B=(D=f==null?void 0:f.theme)==null?void 0:D.colors)==null?void 0:B.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:re("img",{src:String(H.url||H.file_path||""),alt:H.file_name||"",className:"object-contain max-w-full max-h-full"})})},H.file_name||L);const _=sp(String(H.file_type||""),f);return re("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:H.file_name,style:{width:j,height:j,borderColor:(W=(V=f==null?void 0:f.theme)==null?void 0:V.colors)==null?void 0:W.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:_})},H.file_name||L)})}),re("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg pointer-events-none",children:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{size:20,className:"mb-1 text-white"}),re("span",{className:"text-white text-center",style:{fontSize:12},children:P})]})})]})}const b=()=>{if(console.log(o,"parse_url",r,"url"),m&&t==="pdf"&&!g){const A=((m==null?void 0:m.uploadedFiles)||[]).find(F=>{var j;return((F==null?void 0:F.name)||((j=F==null?void 0:F.file)==null?void 0:j.name))===(n||"").replace(/\s+/g,"")});if(!(A!=null&&A.pdfPages)){kn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:A.pdfPages||0})}else u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:g})},y=en(()=>(n||"").split(".").pop()||"",[n]),x=sp(y,f),C=async()=>{if(r){const A=pb(r.indexOf("http")>-1?r:`${mb}/${r}`);if(y.toLowerCase()==="json"){try{const M=await fetch(A);if(!M.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const R=await M.blob(),P=document.createElement("a");P.href=URL.createObjectURL(R),P.download=n||"",document.body.appendChild(P),P.click(),document.body.removeChild(P),setTimeout(()=>URL.revokeObjectURL(P.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const j=document.createElement("a");j.href=A,j.download=n||"",document.body.appendChild(j),j.click(),document.body.removeChild(j)}};return l&&l.includes(y.toLowerCase())?rt("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:C,style:{borderColor:(k=(S=f==null?void 0:f.theme)==null?void 0:S.colors)==null?void 0:k.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",style:{fontSize:10},children:"\u4E0B\u8F7D\u6587\u4EF6"})]})})]},n):y==="image"||y==="jpg"||y==="jpeg"||y==="png"||y==="gif"||y==="bmp"||y==="webp"?rt("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>b(),children:[r?re("img",{src:String(pb(r&&r.indexOf("http")>-1?r:`${mb}/${r}`)||""),alt:n||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:($=(O=f==null?void 0:f.theme)==null?void 0:O.colors)==null?void 0:$.border}}):re("div",{className:"w-full h-full flex items-center justify-center",children:re("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),re("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(GS,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},n):rt("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:b,style:{borderColor:(N=(I=f==null?void 0:f.theme)==null?void 0:I.colors)==null?void 0:N.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},n)},y9=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",x9=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>rt("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[re("div",{className:"pt-1",children:n}),rt("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[rt("div",{className:"flex items-center justify-between gap-1",children:[re("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),re("span",{className:"ml-1 text-[11px] text-gray-400",children:y9(t)})]}),rt("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,re("span",{children:r})]})]}),p,c&&!u&&re("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:re(Ep,{className:"w-3.5 h-3.5"})})]});function sp(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?re("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):re(gn,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?re("img",{src:n.image,alt:"image",style:{width:20,height:20}}):re(gn,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?re("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):re(gn,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?re("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):re(gn,{type:"rag/excel",size:18});case"pdf":return n.pdf?re("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):re(gn,{type:"rag/pdf",size:18});case"txt":return n.txt?re("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):re(gn,{type:"rag/txt",size:18});case"md":return n.md?re("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):re(gn,{type:"rag/document",size:18});case"json":return n.json?re("img",{src:n.json,alt:"json",style:{width:20,height:20}}):re(gn,{type:"rag/json",size:18});case"html":case"htm":return n.html?re("img",{src:n.html,alt:"html",style:{width:20,height:20}}):re(gn,{type:"rag/url",size:18});case"xml":default:return re(gn,{type:"rag/file",size:18})}}const w9=[{file:{name:"\u4EA7\u54C1\u9700\u6C42\u6587\u6863.pdf",size:1024*1024*2.5,type:"application/pdf"},type:"pdf",status:"uploaded",url:"https://example.com/file1.pdf"},{file:{name:"\u6570\u636E\u5206\u6790\u62A5\u544A.xlsx",size:1024*1024*1.2,type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},type:"excel",status:"uploaded",url:"https://example.com/file3.xlsx"},{file:{name:"\u7CFB\u7EDF\u67B6\u6784\u56FE.png",size:1024*512,type:"image/png"},type:"image",status:"uploaded",url:"https://example.com/file2.png"}];function C9({open:e,onCancel:t,files:n=w9,currentFiles:r=[],onUpload:o,onRemoveFile:a,styles:i,eventsEmit:s}){const l={pending:"\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",uploaded:"\u5DF2\u4E0A\u4F20",analyzing:"\u89E3\u6790\u4E2D",analyze_failed:"\u89E3\u6790\u5931\u8D25",error:"\u5931\u8D25"},[c,u]=ct([]),f=(g,m)=>{s&&s("uploaded_file:removeFromTemp",{file:g,idx:m})},p=i&&i.theme&&i.theme.colors?i.theme.colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},v=n.map((g,m)=>rt("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[re("div",{className:"absolute right-1 top-1 z-10",children:re(qS,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>f(g,m),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:re("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:p&&p.text?p.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:b=>{b.currentTarget.style.color=p&&p.error?p.error:"#FF0000"},onMouseOut:b=>{b.currentTarget.style.color=p.text},title:"\u79FB\u9664",children:re(Ep,{className:"w-3 h-3"})})})}),re(b9,{file_type:v9(g.file.name||g.name),file_name:g.name||g.file.name,url:g.url,retrieve_tags:[],styles:i,isUploadFile:!0,eventsEmit:s,parse_url:g.convertedFilePath,pdfPages:g.pdfPages||0})]},g.file.name+m)),h=r.map((g,m)=>{const b=g.file.name.split(".").pop()||"",y=sp(b,i);return re(x9,{cardId:`pending-file-card-${m}`,fileName:g.file.name,fileSize:g.file.size,icon:y,statusText:l[g.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>a&&a(g,m,"pending"),themeColors:p,style:{boxShadow:"none",height:55,background:"#f8fafc"}},g.file.name+m)});return c.length>0?(p&&p.error&&p.error,p&&p.error&&p.error+"",p&&p.error&&p.error):(p&&p.disabledText&&p.disabledText,p&&p.disabledBackground&&p.disabledBackground,p&&p.disabledText&&p.disabledText),rt(Ql,{open:e,onCancel:t,footer:null,title:"\u5BF9\u8BDD\u4E34\u65F6\u6587\u4EF6\u77E5\u8BC6\u5E93",closable:!1,width:800,styles:{body:{padding:"0",maxHeight:"70vh",overflow:"auto"}},children:[rt("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[rt("div",{className:"",children:[re("div",{className:"flex items-center mb-2 justify-between",children:rt("div",{className:"flex items-center",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),rt("span",{className:"ml-2 text-xs text-gray-400",children:[n.length," \u4E2A"]})]})}),re("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:re("div",{className:"flex flex-wrap gap-1",children:v.length>0?v:re("div",{className:"flex items-center w-full h-full py-10 justify-center text-gray-400 text-sm",children:"\u6682\u65E0\u5DF2\u4E0A\u4F20\u6587\u4EF6"})})})]}),rt("div",{children:[rt("div",{className:"flex items-center mb-2",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),rt("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),rt("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[h,re(US.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(g,m)=>(g===m[0]&&(o==null||o(m)),!1),className:"!bg-gray-50 !border-dashed !border-gray-300 hover:!border-blue-400 cursor-pointer min-w-[160px] max-w-[220px] flex flex-row items-center justify-center border-2 rounded-lg transition-all",style:{height:45,boxShadow:"none",padding:0},children:rt("div",{className:"flex flex-row items-center pb-8 justify-center",children:[re(Rb,{size:20,className:"text-blue-400 mr-2"}),re("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),re("div",{className:"flex justify-end gap-2",children:re(_r,{type:"primary",onClick:t,children:"\u786E\u8BA4"})})]}),re("style",{children:`
|
|
142
|
+
`};function _c({config:e,styles:n}){if(!e)return null;const t=JSON.parse(e.configJson),r=Ge(()=>{var o;return{...Dr.colors,...(o=n==null?void 0:n.theme)==null?void 0:o.colors}},[n]);return Y("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[Y("div",{className:"flex items-center mb-2",children:[$("span",{className:"text-md font-bold truncate mr-2",style:{color:r.primary},children:t.config_name||"\u52A9\u624B\u914D\u7F6E"}),$("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${r.primary}1A`,color:r.disabled},children:t.model_name})]}),$("div",{className:"border-b my-2",style:{borderColor:r.border}}),Y("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:r.text},children:[Y("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",$("span",{className:"font-semibold",children:t.max_round})]}),Y("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",$("span",{className:"font-semibold",children:t.max_tokens})]}),Y("div",{children:["\u6E29\u5EA6\uFF1A",$("span",{className:"font-semibold",children:t.temperature})]}),Y("div",{children:["\u53EC\u56DE\u6570\uFF1A",$("span",{className:"font-semibold",children:t.top_k})]}),Y("div",{children:["\u591A\u6837\u6027\uFF1A",$("span",{className:"font-semibold",children:t.top_p})]}),Y("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",$("span",{className:"font-semibold",children:t.score_threshold})]})]}),Y("div",{className:"mb-2",children:[$("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),$("div",{className:"flex flex-wrap gap-1",children:t.knowledge_base_name?t.knowledge_base_name.split(";").map((o,a)=>$("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${r.primary}1A`,color:r.primary},children:o},a)):$("span",{className:"text-gray-300",style:{color:r.disabled},children:"\u65E0"})})]}),Y("div",{className:"mb-2",children:[$("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),Y("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!t.enabled_faq&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"FAQ"}),!!t.enabled_graph&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u56FE\u8C31"}),!!t.dependOnKb&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!t.enabled_table_select&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u8868\u683C\u7B5B\u9009"}),!!t.enabled_rerank&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!t.need_trace_source&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u6EAF\u6E90"}),!!t.is_download&&$("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function zc(e,n=[],t=60){const[r,o]=Ie("");return je(()=>{o("");let a=0;const i=setInterval(()=>{o(s=>a>=e.length?(clearInterval(i),s):(a++,e.slice(0,a)))},t);return()=>clearInterval(i)},[e,...n]),r}function jc(e){const{assistantList:n,eventsEmit:t,styles:r,selectedId:o,onSelectAssistant:a,productLogo:i}=e,[s,u]=Ie(1),d=12,f=Xe();je(()=>{o&&f.current!==o&&(t==null||t("conversation:new_assistant_change",{assistantId:o}),f.current=o)},[o,t]);const m=Ge(()=>Ht(),[]);je(()=>{var b;if((b=r==null?void 0:r.theme)!=null&&b.colors){const I=document.createElement("style");return I.innerHTML=Tc(r.theme.colors,m),I.id=`g-welcome-styles-${m}`,document.head.appendChild(I),()=>{const S=document.getElementById(I.id);S&&S.remove()}}},[r,m]);const h=Ge(()=>n.find(b=>b.id===o),[n,o]),x=Ge(()=>JSON.parse((h==null?void 0:h.configJson)||"{}"),[h]),w=Math.ceil(((n==null?void 0:n.length)||0)/d),c=(n==null?void 0:n.slice((s-1)*d,s*d))||[];je(()=>{if(o&&n){const b=n.findIndex(I=>I.id===o);if(b!==-1){const I=Math.floor(b/d)+1;u(I)}}},[o,n,d]);const p=x.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",C=zc(p,[o],30);return Y("div",{className:`flex flex-col items-center justify-center h-full w-full g-welcome-${m}`,children:[$("img",{src:i||Rc,alt:"logo",className:"mb-4",style:{width:100,height:100}}),$("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:C}),$("div",{className:"text-sm text-gray-500 mb-20",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B\uFF0C\u5F00\u59CB\u4F60\u7684\u667A\u80FD\u95EE\u7B54\u4E4B\u65C5"}),!o&&$("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),$("div",{className:"flex flex-wrap gap-3 px-5 justify-center mb-4",children:c&&c.length>0?c.map(b=>{const I=o===b.id;let S=b.icon;try{const y=JSON.parse(b.configJson||"{}");S=S||y.icon||y.avatar||y.logo}catch{}return S=S||Bc,$(Go,{content:()=>$(_c,{config:n.find(y=>y.id===b.id),styles:r}),trigger:"hover",placement:"bottom",children:Y("button",{className:`g-welcome-btn px-3 cursor-pointer rounded-full border font-medium min-w-[160px] text-sm transition-all flex items-center gap-2 ${I?"active":""}`,onClick:()=>a==null?void 0:a(b.id),title:b.name,children:[$("span",{className:"icon-badge",children:$("img",{src:S,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),$("span",{className:"truncate max-w-[180px]",children:b.name})]})},b.id)}):$("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})}),w>1&&Y("div",{className:"flex items-center gap-3 text-sm",children:[$("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>u(b=>Math.max(1,b-1)),disabled:s===1,children:"\u4E0A\u4E00\u9875"}),Y("span",{className:"g-welcome-pagination-text",children:[s," / ",w]}),$("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>u(b=>Math.min(w,b+1)),disabled:s===w,children:"\u4E0B\u4E00\u9875"})]})]})}async function Lc(e,n){const t=e.getReader();let r;for(;!(r=await t.read()).done;)n(r.value)}function Hc(e){let n,t,r,o=!1;return function(i){n===void 0?(n=i,t=0,r=-1):n=Uc(n,i);const s=n.length;let u=0;for(;t<s;){o&&(n[t]===10&&(u=++t),o=!1);let d=-1;for(;t<s&&d===-1;++t)switch(n[t]){case 58:r===-1&&(r=t-u);break;case 13:o=!0;case 10:d=t;break}if(d===-1)break;e(n.subarray(u,d),r),u=t,r=-1}u===s?n=void 0:u!==0&&(n=n.subarray(u),t-=u)}}function qc(e,n,t){let r=Fo();const o=new TextDecoder;return function(i,s){if(i.length===0)t==null||t(r),r=Fo();else if(s>0){const u=o.decode(i.subarray(0,s)),d=s+(i[s+1]===32?2:1),f=o.decode(i.subarray(d));switch(u){case"data":r.data=r.data?r.data+`
|
|
143
|
+
`+f:f;break;case"event":r.event=f;break;case"id":e(r.id=f);break;case"retry":const m=parseInt(f,10);isNaN(m)||n(r.retry=m);break}}}}function Uc(e,n){const t=new Uint8Array(e.length+n.length);return t.set(e),t.set(n,e.length),t}function Fo(){return{data:"",event:"",id:"",retry:void 0}}var Wc=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const hr="text/event-stream",Vc=1e3,No="last-event-id";function Kc(e,n){var{signal:t,headers:r,onopen:o,onmessage:a,onclose:i,onerror:s,openWhenHidden:u,fetch:d}=n,f=Wc(n,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((m,h)=>{const x=Object.assign({},r);x.accept||(x.accept=hr);let w;function c(){w.abort(),document.hidden||y()}u||document.addEventListener("visibilitychange",c);let p=Vc,C=0;function b(){document.removeEventListener("visibilitychange",c),window.clearTimeout(C),w.abort()}t==null||t.addEventListener("abort",()=>{b(),m()});const I=d??window.fetch,S=o??Xc;async function y(){var F;w=new AbortController;try{const D=await I(e,Object.assign(Object.assign({},f),{headers:x,signal:w.signal}));await S(D),await Lc(D.body,Hc(qc(O=>{O?x[No]=O:delete x[No]},O=>{p=O},a))),i==null||i(),b(),m()}catch(D){if(!w.signal.aborted)try{const O=(F=s==null?void 0:s(D))!==null&&F!==void 0?F:p;window.clearTimeout(C),C=window.setTimeout(y,O)}catch(O){b(),h(O)}}}y()})}function Xc(e){const n=e.headers.get("content-type");if(!(n!=null&&n.startsWith(hr)))throw new Error(`Expected content-type to be ${hr}, Actual: ${n}`)}class rr extends Error{}let Ct=null;const Gc=({baseUrl:e,token:n,CSRFToken:t,setChatData:r,activeSessionId:o,setAppStatus:a,setConversationList:i})=>{const s=({content:w,status:c,respTime:p,filePaths:C,reference:b,webReference:I,graphReference:S,databaseReference:y,llmType:F,resultType:D,queryId:O,tokens:N})=>{r(E=>{var U;if(!E[0])return E;const _=E[0],T=_.messages||[],k=T.length-1;if(k<0)return E;const M=T[k];if(M.istype!=="ai")return E;let B=T.slice();if(C!=null&&C.length){const K=T.length-2;if(K>=0&&((U=T[K])==null?void 0:U.istype)==="user"){const L={...T[K],filePaths:C};B[K]=L}}const V={...M,content:(M.content||"")+w,status:c,respTime:p,filePaths:C,reference:b,webReference:I,graphReference:S??M.graphReference,databaseReference:y??M.databaseReference,resultType:D,llmType:F,tokens:N,queryId:O||M.queryId||Ht(32)};return V.clientSideId=V.clientSideId||V.queryId+"-ai",B[k]=V,[{..._,isNew:!1,messages:B},...E.slice(1)]})},u=w=>{if(w instanceof rr)throw a(c=>({...c,display:"error",sender:"ready"})),Ct&&(Ct.abort(),Ct=null),w};return{updateUserFilesMessage:({currentFiles:w})=>{r(c=>{if(!c[0])return c;const p=c[0],C=p.messages||[];if(!C.length)return c;const b=C.length-2;if(b<0||C[b].istype!=="user")return c;const S=C.slice();return S[b]={...C[b],currentFiles:w},[{...p,messages:S},...c.slice(1)]})},api_startChat_re:(w,c)=>{Ct&&Ct.abort(),Ct=new AbortController;const p=`${e}/qa/ai/question_re`;console.log("data",w);const C={...w};Kc(p,{method:"post",signal:Ct.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:n||"","X-CSRF-TOKEN-IN":t||""},openWhenHidden:!0,body:JSON.stringify(C),onopen:async b=>{if(b.status===500)throw new rr("Internal Server Error");if(!b.ok)throw new rr(`HTTP error: ${b.status}`)},onmessage:b=>{const I=JSON.parse(b.data);if(o!==I.sessionId)return;const{reply:S,resultType:y,respTime:F,reference:D,webReference:O,graphReference:N,filePaths:E,status:_,docs:T,llmType:k,databaseReference:M}=I,B=E?JSON.parse(E):[];if(_===2&&S&&S.content&&(S.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||S.content.includes("\u5931\u8D25")||S.content.includes("\u9519\u8BEF")||S.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&a(V=>({...V,display:"ready",sender:"ready"})),_===2){if(s({content:S.content||"",status:2,respTime:F,filePaths:B,reference:D||T||"",webReference:O||"",graphReference:N||null,databaseReference:M,llmType:k,resultType:y,queryId:I.queryId,tokens:I.tokens}),a(V=>({...V,display:"ready",sender:"ready"})),c){const V=F||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",V),c(V)}}else s({content:S.content||"",status:_,respTime:F,filePaths:B,reference:D||T||"",webReference:O||"",graphReference:N||null,databaseReference:M,llmType:k,resultType:y,queryId:I.queryId,tokens:I.tokens})},onerror:u})},addEmptyMessage:({queryId:w,content:c,filePaths:p,currentFiles:C})=>{r(b=>{const I=new Date().toISOString(),S=w||Ht(32),y={istype:"user",content:c,time:I,queryId:S,clientSideId:S+"-user",filePaths:p||"",currentFiles:C||[]},F={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:S,clientSideId:S+"-ai"},D=b.find(O=>O.id===o);return D?D.messages.push(y,F):console.warn("addEmptyMessage called without an active session."),[...b]})},setLastEmptyMessage:({now:w})=>{r(c=>{if(!c[0])return c;const p=c[0],C=p.messages||[];if(!C.length)return c;const b=C.length-1;if(b<0)return c;const I=C[b];if(I.istype!=="ai")return c;const S=C.slice();return S[b]={...I,istype:"ai",content:"",time:w,streaming:!0,status:0},[{...p,messages:S},...c.slice(1)]})},stopStream:()=>{Ct&&(Ct.abort(),Ct=null),a(w=>({...w,display:"ready",sender:"ready"}))}}},Oo=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",Do="http://10.15.12.13:9000/",Jc=e=>{if(typeof e=="string"){const n=e.split(".");return n.length?n[n.length-1]:""}else return""},Yc=e=>{var y,F,D,O,N,E,_,T;const{file_type:n,file_name:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,onlyDownloadTypes:u,references:d,eventsEmit:f,styles:m,isUploadFile:h,type:x,collectionItems:w,pdfPages:c=0,fileManagerData:p}=e;if(x==="collection"&&Array.isArray(w)){const B=`calc(90% - ${.5}px)`,V=w.slice(0,4),j=w.length>4,U="\u6253\u5F00\u5408\u96C6",K=()=>{if(p&&n==="pdf"&&!e.pdfPages){const L=((p==null?void 0:p.uploadedFiles)||[]).find(q=>{var ee;return((q==null?void 0:q.name)||((ee=q==null?void 0:q.file)==null?void 0:ee.name))===t});if(!(L!=null&&L.pdfPages)){Re.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}f==null||f("reference_file:click",{...e,pdfPages:(L==null?void 0:L.pdfPages)||0})}else f==null||f("reference_file:click",e)};return Y("div",{className:"user-file relative group flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all bg-white shadow",style:{width:94,height:94,minWidth:94,minHeight:94,borderColor:(F=(y=m==null?void 0:m.theme)==null?void 0:y.colors)==null?void 0:F.border},onClick:K,children:[$("div",{className:"grid grid-cols-2 items-center justify-center grid-rows-2 gap-1 w-full h-full",style:{width:"100%",height:"100%",gap:1},children:V.map((L,q)=>{var W,J,oe,ae;if(j&&q===3)return $("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:B,height:B},children:$("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(L.file_type==="image"||L.file_type==="jpg"||L.file_type==="jpeg"||L.file_type==="png"||L.file_type==="gif"||L.file_type==="bmp"||L.file_type==="webp")return $("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:B,height:B,borderColor:(J=(W=m==null?void 0:m.theme)==null?void 0:W.colors)==null?void 0:J.border},children:$("div",{className:"flex items-center justify-center w-full h-full scale-75",children:$("img",{src:String(L.url||L.file_path||""),alt:L.file_name||"",className:"object-contain max-w-full max-h-full"})})},L.file_name||q);const R=vr(String(L.file_type||""),m);return $("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:L.file_name,style:{width:B,height:B,borderColor:(ae=(oe=m==null?void 0:m.theme)==null?void 0:oe.colors)==null?void 0:ae.border},children:$("div",{className:"flex items-center justify-center w-full h-full scale-75",children:R})},L.file_name||q)})}),$("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg pointer-events-none",children:Y("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[$(Kn,{size:20,className:"mb-1 text-white"}),$("span",{className:"text-white text-center",style:{fontSize:12},children:U})]})})]})}const C=()=>{if(console.log(o,"parse_url",r,"url"),p&&n==="pdf"&&!c){const k=((p==null?void 0:p.uploadedFiles)||[]).find(M=>{var B;return((M==null?void 0:M.name)||((B=M==null?void 0:M.file)==null?void 0:B.name))===(t||"").replace(/\s+/g,"")});if(!(k!=null&&k.pdfPages)){Re.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}f==null||f("reference_file:click",{file:t,file_type:n,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:d,type:b,isUploadFile:h,pdfPages:k.pdfPages||0})}else f==null||f("reference_file:click",{file:t,file_type:n,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:d,type:b,isUploadFile:h,pdfPages:c})},b=Ge(()=>(t||"").split(".").pop()||"",[t]),I=vr(b,m),S=async()=>{if(r){const k=Oo(r.indexOf("http")>-1?r:`${Do}/${r}`);if(b.toLowerCase()==="json"){try{const V=await fetch(k);if(!V.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const j=await V.blob(),U=document.createElement("a");U.href=URL.createObjectURL(j),U.download=t||"",document.body.appendChild(U),U.click(),document.body.removeChild(U),setTimeout(()=>URL.revokeObjectURL(U.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const B=document.createElement("a");B.href=k,B.download=t||"",document.body.appendChild(B),B.click(),document.body.removeChild(B)}};return u&&u.includes(b.toLowerCase())?Y("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:t,onClick:S,style:{borderColor:(O=(D=m==null?void 0:m.theme)==null?void 0:D.colors)==null?void 0:O.border},children:[I,$("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:t}),$("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:Y("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[$(Kn,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),$("div",{className:"text-white text-center",style:{fontSize:10},children:"\u4E0B\u8F7D\u6587\u4EF6"})]})})]},t):b==="image"||b==="jpg"||b==="jpeg"||b==="png"||b==="gif"||b==="bmp"||b==="webp"?Y("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>C(),children:[r?$("img",{src:String(Oo(r&&r.indexOf("http")>-1?r:`${Do}/${r}`)||""),alt:t||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:(E=(N=m==null?void 0:m.theme)==null?void 0:N.colors)==null?void 0:E.border}}):$("div",{className:"w-full h-full flex items-center justify-center",children:$("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),$("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:Y("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[$($i,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),$("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},t):Y("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:t,onClick:C,style:{borderColor:(T=(_=m==null?void 0:m.theme)==null?void 0:_.colors)==null?void 0:T.border},children:[I,$("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:t}),$("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:Y("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[$(Kn,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),$("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},t)},Qc=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",Zc=({fileName:e,fileSize:n,icon:t,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:u,showRemove:d=!0,disabledRemove:f=!1,onRemoveWithAnim:m,extra:h,style:x})=>Y("div",{id:u,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:x,children:[$("div",{className:"pt-1",children:t}),Y("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[Y("div",{className:"flex items-center justify-between gap-1",children:[$("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),$("span",{className:"ml-1 text-[11px] text-gray-400",children:Qc(n)})]}),Y("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,$("span",{children:r})]})]}),h,d&&!f&&$("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{m&&u?m(u):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:$(Pr,{className:"w-3.5 h-3.5"})})]});function vr(e,n){var r;const t=((r=n==null?void 0:n.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return t.docx?$("img",{src:t.docx,alt:"docx",style:{width:20,height:20}}):$(lt,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return t.image?$("img",{src:t.image,alt:"image",style:{width:20,height:20}}):$(lt,{type:"rag/pic",size:18});case"pptx":case"ppt":return t.pptx?$("img",{src:t.pptx,alt:"pptx",style:{width:20,height:20}}):$(lt,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return t.sheets?$("img",{src:t.sheets,alt:"sheets",style:{width:20,height:20}}):$(lt,{type:"rag/excel",size:18});case"pdf":return t.pdf?$("img",{src:t.pdf,alt:"pdf",style:{width:20,height:20}}):$(lt,{type:"rag/pdf",size:18});case"txt":return t.txt?$("img",{src:t.txt,alt:"txt",style:{width:20,height:20}}):$(lt,{type:"rag/txt",size:18});case"md":return t.md?$("img",{src:t.md,alt:"txt",style:{width:20,height:20}}):$(lt,{type:"rag/document",size:18});case"json":return t.json?$("img",{src:t.json,alt:"json",style:{width:20,height:20}}):$(lt,{type:"rag/json",size:18});case"html":case"htm":return t.html?$("img",{src:t.html,alt:"html",style:{width:20,height:20}}):$(lt,{type:"rag/url",size:18});case"xml":default:return $(lt,{type:"rag/file",size:18})}}const eu=[{file:{name:"\u4EA7\u54C1\u9700\u6C42\u6587\u6863.pdf",size:1024*1024*2.5,type:"application/pdf"},type:"pdf",status:"uploaded",url:"https://example.com/file1.pdf"},{file:{name:"\u6570\u636E\u5206\u6790\u62A5\u544A.xlsx",size:1024*1024*1.2,type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},type:"excel",status:"uploaded",url:"https://example.com/file3.xlsx"},{file:{name:"\u7CFB\u7EDF\u67B6\u6784\u56FE.png",size:1024*512,type:"image/png"},type:"image",status:"uploaded",url:"https://example.com/file2.png"}];function tu({open:e,onCancel:n,files:t=eu,currentFiles:r=[],onUpload:o,onRemoveFile:a,styles:i,eventsEmit:s}){const u={pending:"\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",uploaded:"\u5DF2\u4E0A\u4F20",analyzing:"\u89E3\u6790\u4E2D",analyze_failed:"\u89E3\u6790\u5931\u8D25",error:"\u5931\u8D25"},[d,f]=Ie([]),m=(c,p)=>{s&&s("uploaded_file:removeFromTemp",{file:c,idx:p})},h=i&&i.theme&&i.theme.colors?i.theme.colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},x=t.map((c,p)=>Y("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[$("div",{className:"absolute right-1 top-1 z-10",children:$(ya,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>m(c,p),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:$("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:h&&h.text?h.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:C=>{C.currentTarget.style.color=h&&h.error?h.error:"#FF0000"},onMouseOut:C=>{C.currentTarget.style.color=h.text},title:"\u79FB\u9664",children:$(Pr,{className:"w-3 h-3"})})})}),$(Yc,{file_type:Jc(c.file.name||c.name),file_name:c.name||c.file.name,url:c.url,retrieve_tags:[],styles:i,isUploadFile:!0,eventsEmit:s,parse_url:c.convertedFilePath,pdfPages:c.pdfPages||0})]},c.file.name+p)),w=r.map((c,p)=>{const C=c.file.name.split(".").pop()||"",b=vr(C,i);return $(Zc,{cardId:`pending-file-card-${p}`,fileName:c.file.name,fileSize:c.file.size,icon:b,statusText:u[c.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>a&&a(c,p,"pending"),themeColors:h,style:{boxShadow:"none",height:55,background:"#f8fafc"}},c.file.name+p)});return d.length>0?(h&&h.error&&h.error,h&&h.error&&h.error+"",h&&h.error&&h.error):(h&&h.disabledText&&h.disabledText,h&&h.disabledBackground&&h.disabledBackground,h&&h.disabledText&&h.disabledText),Y(Ar,{open:e,onCancel:n,footer:null,title:"\u5BF9\u8BDD\u4E34\u65F6\u6587\u4EF6\u77E5\u8BC6\u5E93",closable:!1,width:800,styles:{body:{padding:"0",maxHeight:"70vh",overflow:"auto"}},children:[Y("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[Y("div",{className:"",children:[$("div",{className:"flex items-center mb-2 justify-between",children:Y("div",{className:"flex items-center",children:[$("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),Y("span",{className:"ml-2 text-xs text-gray-400",children:[t.length," \u4E2A"]})]})}),$("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:$("div",{className:"flex flex-wrap gap-1",children:x.length>0?x:$("div",{className:"flex items-center w-full h-full py-10 justify-center text-gray-400 text-sm",children:"\u6682\u65E0\u5DF2\u4E0A\u4F20\u6587\u4EF6"})})})]}),Y("div",{children:[Y("div",{className:"flex items-center mb-2",children:[$("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),Y("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),Y("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[w,$(jr.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(c,p)=>(c===p[0]&&(o==null||o(p)),!1),className:"!bg-gray-50 !border-dashed !border-gray-300 hover:!border-blue-400 cursor-pointer min-w-[160px] max-w-[220px] flex flex-row items-center justify-center border-2 rounded-lg transition-all",style:{height:45,boxShadow:"none",padding:0},children:Y("div",{className:"flex flex-row items-center pb-8 justify-center",children:[$(Xo,{size:20,className:"text-blue-400 mr-2"}),$("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),$("div",{className:"flex justify-end gap-2",children:$(pt,{type:"primary",onClick:n,children:"\u786E\u8BA4"})})]}),$("style",{children:`
|
|
639
144
|
.file-manager-modal .ant-upload-wrapper,
|
|
640
145
|
.file-manager-modal .ant-upload-drag,
|
|
641
146
|
.file-manager-modal .ant-upload-drag-container {
|
|
@@ -643,12 +148,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
643
148
|
height: 55px !important;
|
|
644
149
|
padding: 0 !important;
|
|
645
150
|
}
|
|
646
|
-
`})]})}function S9(){const[e,t]=ct(0);return mt(()=>{let n;return e<98?n=setTimeout(()=>{t(r=>r+Math.random()*6+1)},80):e<100&&(n=setTimeout(()=>t(100),400)),()=>clearTimeout(n)},[e]),rt("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[rt("div",{className:"mb-8 flex flex-col items-center",children:[re("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),re("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),rt("div",{className:"relative w-80 max-w-sm",children:[re("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:re("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),rt("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),rt("div",{className:"mt-8 flex flex-col items-center gap-2",children:[re("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),re("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const OS=document.createElement("style");OS.textContent=`
|
|
647
|
-
.animate-bounce-slow {
|
|
648
|
-
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
649
|
-
}
|
|
650
|
-
@keyframes bounce {
|
|
651
|
-
0%, 100% { transform: translateY(0); }
|
|
652
|
-
50% { transform: translateY(-12px); }
|
|
653
|
-
}
|
|
654
|
-
`;document.head.appendChild(OS);function E9(){return rt("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:3}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:2}})})]})]})}function $9({msg:e,subMsg:t}){return rt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(QS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),re("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:t||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),re(_r,{type:"primary",icon:re(Tb,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function k9(){return rt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(YS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),re("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),re(_r,{type:"primary",icon:re(Tb,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}const O9=1e3,I9=3e3;function lp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(lp(r)):WC(r)&&r.props?n=n.concat(lp(r.props.children,t)):n.push(r))}),n}var Xo="RC_FORM_INTERNAL_HOOKS",ln=function(){fr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ka=d.createContext({getFieldValue:ln,getFieldsValue:ln,getFieldError:ln,getFieldWarning:ln,getFieldsError:ln,isFieldsTouched:ln,isFieldTouched:ln,isFieldValidating:ln,isFieldsValidating:ln,resetFields:ln,setFields:ln,setFieldValue:ln,setFieldsValue:ln,validateFields:ln,submit:ln,getInternalHooks:function(){return ln(),{dispatch:ln,initEntityValue:ln,registerField:ln,useSubscribe:ln,setInitialValues:ln,destroyForm:ln,setCallbacks:ln,registerWatch:ln,getFields:ln,setValidateMessages:ln,setPreserve:ln,getInitialValue:ln}}}),Kl=d.createContext(null);function cp(e){return e==null?[]:Array.isArray(e)?e:[e]}function M9(e){return e&&!!e._init}function up(){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 dp=up();function F9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function N9(e,t,n){if(Vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ua(o,n.prototype),o}function fp(e){var t=typeof Map=="function"?new Map:void 0;return fp=function(r){if(r===null||!F9(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 N9(r,arguments,ts(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ua(o,r)},fp(e)}var j9=/%[sdj%]/g,P9=function(){};function pp(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 dr(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(j9,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function A9(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||A9(t)&&typeof e=="string"&&!e)}function R9(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,Ft(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function gb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function T9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ft(e[n]||[]))}),t}var hb=(function(e){ui(n,e);var t=di(n);function n(r,o){var a;return Qn(this,n),a=t.call(this,"Async Validation Error"),ge(zt(a),"errors",void 0),ge(zt(a),"fields",void 0),a.errors=r,a.fields=o,a}return Zn(n)})(fp(Error));function D9(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(b){return r(b),b.length?v(new hb(b,pp(b))):p(o)},g=T9(e);gb(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(m){if(u.push.apply(u,m),c++,c===l)return r(u),u.length?v(new hb(u,pp(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?gb(m,n,h):R9(m,n,h)})});return f.catch(function(p){return p}),f}function _9(e){return!!(e&&e.message!==void 0)}function B9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function vb(e,t){return function(n){var r;return e.fullFields?r=B9(t,e.fullFields):r=t[n.field||e.fullField],_9(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 bb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];At(r)==="object"&&At(e[n])==="object"?e[n]=Be(Be({},e[n]),r):e[n]=r}}return e}var Ea="enum",z9=function(t,n,r,o,a){t[Ea]=Array.isArray(t[Ea])?t[Ea]:[],t[Ea].indexOf(n)===-1&&o.push(dr(a.messages[Ea],t.fullField,t[Ea].join(", ")))},H9=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(dr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(dr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},L9=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,p=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(p?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(u=n.length),v&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(dr(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(dr(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(dr(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(dr(a.messages[f].range,t.fullField,t.min,t.max))},IS=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Rn(n,i||t.type))&&o.push(dr(a.messages.required,t.fullField))},Js;const V9=(function(){if(Js)return Js;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return Js=new RegExp("(?:^".concat(C,"$)"),"i"),Js});var yb={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},Mi={integer:function(t){return Mi.number(t)&&parseInt(t,10)===t},float:function(t){return Mi.number(t)&&!Mi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{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 At(t)==="object"&&!Mi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(V9())},hex:function(t){return typeof t=="string"&&!!t.match(yb.hex)}},W9=function(t,n,r,o,a){if(t.required&&n===void 0){IS(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Mi[s](n)||o.push(dr(a.messages.types[s],t.fullField,t.type)):s&&At(n)!==t.type&&o.push(dr(a.messages.types[s],t.fullField,t.type))},q9=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(dr(a.messages.whitespace,t.fullField))};const Kt={required:IS,whitespace:q9,type:W9,range:L9,enum:z9,pattern:H9};var U9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a)}r(i)},Y9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Kt.required(t,n,o,i,a,"array"),n!=null&&(Kt.type(t,n,o,i,a),Kt.range(t,n,o,i,a))}r(i)},X9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&Kt.type(t,n,o,i,a)}r(i)},G9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n,"date")&&!t.required)return r();if(Kt.required(t,n,o,i,a),!Rn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Kt.type(t,l,o,i,a),l&&Kt.range(t,l.getTime(),o,i,a)}}r(i)},K9="enum",Q9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&Kt[K9](t,n,o,i,a)}r(i)},Z9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&(Kt.type(t,n,o,i,a),Kt.range(t,n,o,i,a))}r(i)},J9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&(Kt.type(t,n,o,i,a),Kt.range(t,n,o,i,a))}r(i)},eL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&Kt.type(t,n,o,i,a)}r(i)},tL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&(Kt.type(t,n,o,i,a),Kt.range(t,n,o,i,a))}r(i)},nL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),n!==void 0&&Kt.type(t,n,o,i,a)}r(i)},rL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n,"string")&&!t.required)return r();Kt.required(t,n,o,i,a),Rn(n,"string")||Kt.pattern(t,n,o,i,a)}r(i)},oL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n)&&!t.required)return r();Kt.required(t,n,o,i,a),Rn(n)||Kt.type(t,n,o,i,a)}r(i)},aL=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":At(n);Kt.required(t,n,o,i,a,s),r(i)},iL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Rn(n,"string")&&!t.required)return r();Kt.required(t,n,o,i,a,"string"),Rn(n,"string")||(Kt.type(t,n,o,i,a),Kt.range(t,n,o,i,a),Kt.pattern(t,n,o,i,a),t.whitespace===!0&&Kt.whitespace(t,n,o,i,a))}r(i)},Qu=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rn(n,i)&&!t.required)return r();Kt.required(t,n,o,s,a,i),Rn(n,i)||Kt.type(t,n,o,s,a)}r(s)};const _i={string:iL,method:eL,number:tL,boolean:X9,regexp:oL,integer:J9,float:Z9,array:Y9,object:nL,enum:Q9,pattern:rL,date:G9,url:Qu,hex:Qu,email:Qu,required:aL,any:U9};var xs=(function(){function e(t){Qn(this,e),ge(this,"rules",null),ge(this,"_messages",dp),this.define(t)}return Zn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(At(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=bb(up(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(h){var g=[],m={};function b(x){if(Array.isArray(x)){var C;g=(C=g).concat.apply(C,Ft(x))}else g.push(x)}for(var y=0;y<h.length;y++)b(h[y]);g.length?(m=pp(g),l(g,m)):l(null,i)}if(s.messages){var u=this.messages();u===dp&&(u=up()),bb(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var g=r.rules[h],m=i[h];g.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===n&&(i=Be({},i)),m=i[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":At(m)))),typeof y=="function"?y={validator:y}:y=Be({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=r.getType(y),f[h]=f[h]||[],f[h].push({rule:y,value:m,source:i,field:h}))})});var v={};return D9(f,s,function(h,g){var m=h.rule,b=(m.type==="object"||m.type==="array")&&(At(m.fields)==="object"||At(m.defaultField)==="object");b=b&&(m.required||!m.required&&h.value),m.field=h.field;function y(S,k){return Be(Be({},k),{},{fullField:"".concat(m.fullField,".").concat(S),fullFields:m.fullFields?[].concat(Ft(m.fullFields),[S]):[S]})}function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(S)?S:[S];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&m.message!==void 0&&(k=[].concat(m.message));var O=k.map(vb(m,i));if(s.first&&O.length)return v[m.field]=1,g(O);if(!b)g(O);else{if(m.required&&!h.value)return m.message!==void 0?O=[].concat(m.message).map(vb(m,i)):s.error&&(O=[s.error(m,dr(s.messages.required,m.field))]),g(O);var $={};m.defaultField&&Object.keys(h.value).map(function(A){$[A]=m.defaultField}),$=Be(Be({},$),h.rule.fields);var I={};Object.keys($).forEach(function(A){var F=$[A],j=Array.isArray(F)?F:[F];I[A]=j.map(y.bind(null,A))});var N=new e(I);N.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),N.validate(h.value,h.rule.options||s,function(A){var F=[];O&&O.length&&F.push.apply(F,Ft(O)),A&&A.length&&F.push.apply(F,Ft(A)),g(F.length?F:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,h.value,x,h.source,s);else if(m.validator){try{C=m.validator(m,h.value,x,h.source,s)}catch(S){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,S),s.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message)}C===!0?x():C===!1?x(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(S){return x(S)})},function(h){c(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_i.hasOwnProperty(n.type))throw new Error(dr("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"?_i.required:_i[this.getType(n)]||void 0}}]),e})();ge(xs,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_i[t]=n});ge(xs,"warning",P9);ge(xs,"messages",dp);ge(xs,"validators",_i);var cr="'${name}' is not a valid ${type}",MS={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:cr,method:cr,array:cr,object:cr,number:cr,date:cr,boolean:cr,integer:cr,float:cr,regexp:cr,email:cr,url:cr,hex:cr},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}"}},xb=xs;function sL(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 wb="CODE_LOGIC_ERROR";function mp(e,t,n,r,o){return gp.apply(this,arguments)}function gp(){return gp=pa(Gn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return Gn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=Be({},r),delete i.ruleIndex,xb.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(wb)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new xb(ge({},t,[i])),u=Na(MS,o.validateMessages),c.messages(u),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(ge({},t,n),Be({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(b,y){var x=b.message,C=x===wb?u.default:x;return d.isValidElement(C)?d.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(n.map(function(b,y){return mp("".concat(t,".").concat(y),b,l,o,a)}));case 21:return p=m.sent,m.abrupt("return",p.reduce(function(b,y){return[].concat(Ft(b),Ft(y))},[]));case 23:return v=Be(Be({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(b){return typeof b=="string"?sL(b,v):b}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),gp.apply(this,arguments)}function lL(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=Be(Be({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var w=arguments.length,E=new Array(w),S=0;S<w;S++)E[S]=arguments[S];Promise.resolve().then(function(){fr(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,E)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",fr(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(C){m(C||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=pa(Gn().mark(function f(p,v){var h,g,m;return Gn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return g=s[h],y.next=5,mp(i,t,g,r,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return v([{errors:m,rule:g}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:p([]);case 13:case"end":return y.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return mp(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?uL(c):cL(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function cL(e){return hp.apply(this,arguments)}function hp(){return hp=pa(Gn().mark(function e(t){return Gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Ft(o));return i}));case 1:case"end":return r.stop()}},e)})),hp.apply(this,arguments)}function uL(e){return vp.apply(this,arguments)}function vp(){return vp=pa(Gn().mark(function e(t){var n;return Gn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),vp.apply(this,arguments)}function En(e){return cp(e)}function Cb(e,t){var n={};return t.forEach(function(r){var o=Kr(e,r);n=Nr(n,r,o)}),n}function za(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return FS(t,r,n)})}function FS(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 dL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||At(e)!=="object"||At(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ft(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function fL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&At(t.target)==="object"&&e in t.target?t.target[e]:t}function Sb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ft(e.slice(0,n)),[o],Ft(e.slice(n,t)),Ft(e.slice(t+1,r))):a<0?[].concat(Ft(e.slice(0,t)),Ft(e.slice(t+1,n+1)),[o],Ft(e.slice(n+1,r))):e}var pL=["name"],yr=[];function Zu(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var eg=(function(e){ui(n,e);var t=di(n);function n(r){var o;if(Qn(this,n),o=t.call(this,r),ge(zt(o),"state",{resetCount:0}),ge(zt(o),"cancelRegisterFunc",null),ge(zt(o),"mounted",!1),ge(zt(o),"touched",!1),ge(zt(o),"dirty",!1),ge(zt(o),"validatePromise",void 0),ge(zt(o),"prevValidating",void 0),ge(zt(o),"errors",yr),ge(zt(o),"warnings",yr),ge(zt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,En(f)),o.cancelRegisterFunc=null}),ge(zt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Ft(p),Ft(c)):[]}),ge(zt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),ge(zt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ge(zt(o),"metaCache",null),ge(zt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Be(Be({},o.getMeta()),{},{destroy:l});If(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),ge(zt(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),C=c&&za(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!If(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=yr,o.warnings=yr,o.triggerMetaEvent()),u.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=yr,o.warnings=yr,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&Zu(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var w=u.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||yr),"warnings"in w&&(o.warnings=w.warnings||yr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&za(c,b,!0)){o.reRender();return}if(p&&!b.length&&Zu(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(En);if(E.some(function(S){return za(u.relatedFields,S)})){o.reRender();return}break}default:if(C||(!h.length||b.length||p)&&Zu(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),ge(zt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(pa(Gn().mark(function m(){var b,y,x,C,w,E,S;return Gn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,C=b.messageVariables,w=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function($){return $}).filter(function($){var I=$.validateTrigger;if(!I)return!0;var N=cp(I);return N.includes(p)})),!(w&&p)){O.next=10;break}return O.next=8,new Promise(function($){setTimeout($,w)});case 8:if(o.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return S=lL(c,u,E,l,x,C),S.catch(function($){return $}).then(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr;if(o.validatePromise===g){var I;o.validatePromise=null;var N=[],A=[];(I=$.forEach)===null||I===void 0||I.call($,function(F){var j=F.rule.warningOnly,M=F.errors,R=M===void 0?yr:M;j?A.push.apply(A,Ft(R)):N.push.apply(N,Ft(R))}),o.errors=N,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",S);case 13:case"end":return O.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=yr,o.warnings=yr,o.triggerMetaEvent(),o.reRender()),g}),ge(zt(o),"isFieldValidating",function(){return!!o.validatePromise}),ge(zt(o),"isFieldTouched",function(){return o.touched}),ge(zt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Xo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),ge(zt(o),"getErrors",function(){return o.errors}),ge(zt(o),"getWarnings",function(){return o.warnings}),ge(zt(o),"isListField",function(){return o.props.isListField}),ge(zt(o),"isList",function(){return o.props.isList}),ge(zt(o),"isPreserve",function(){return o.props.preserve}),ge(zt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),ge(zt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Be(Be({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=lp(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ge(zt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Kr(l||c(!0),u)}),ge(zt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),C=b.getInternalHooks,w=b.getFieldsValue,E=C(Xo),S=E.dispatch,k=o.getValue(),O=m||function(F){return ge({},g,F)},$=l[f],I=u!==void 0?O(k):{},N=Be(Be({},l),I);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,j=arguments.length,M=new Array(j),R=0;R<j;R++)M[R]=arguments[R];v?F=v.apply(void 0,M):F=fL.apply(void 0,[g].concat(M)),h&&(F=h(F,k,w(!0))),F!==k&&S({type:"updateValue",namePath:x,value:F}),$&&$.apply(void 0,M)};var A=cp(y||[]);return A.forEach(function(F){var j=N[F];N[F]=function(){j&&j.apply(void 0,arguments);var M=o.props.rules;M&&M.length&&S({type:"validateField",namePath:x,triggerName:F})}}),N}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Xo),s=i.initEntityValue;s(zt(o))}return o}return Zn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(Xo),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!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,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(fr(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:o},c)}}]),n})(d.Component);ge(eg,"contextType",Ka);ge(eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function NS(e){var t,n=e.name,r=Jr(e,pL),o=d.useContext(Ka),a=d.useContext(Kl),i=n!==void 0?En(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(eg,Vn({key:l,name:i,isListField:s},r,{fieldContext:o}))}function mL(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(Ka),l=d.useContext(Kl),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=En(s.prefixName)||[];return[].concat(Ft(g),Ft(En(t)))},[s.prefixName,t]),p=d.useMemo(function(){return Be(Be({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(m){var b=f.length,y=m[b];return[u.keys[y],m.slice(b+1)]}}},[f]);if(typeof r!="function")return fr(!1,"Form.List only accepts function as children."),null;var h=function(m,b,y){var x=y.source;return x==="internal"?!1:m!==b};return d.createElement(Kl.Provider,{value:v},d.createElement(Ka.Provider,{value:p},d.createElement(NS,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,C=s.getFieldValue,w=function(){var O=C(f||[]);return O||[]},E={add:function(O,$){var I=w();$>=0&&$<=I.length?(u.keys=[].concat(Ft(u.keys.slice(0,$)),[u.id],Ft(u.keys.slice($))),x([].concat(Ft(I.slice(0,$)),[O],Ft(I.slice($))))):(u.keys=[].concat(Ft(u.keys),[u.id]),x([].concat(Ft(I),[O]))),u.id+=1},remove:function(O){var $=w(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(N,A){return!I.has(A)}),x($.filter(function(N,A){return!I.has(A)})))},move:function(O,$){if(O!==$){var I=w();O<0||O>=I.length||$<0||$>=I.length||(u.keys=Sb(u.keys,O,$),x(Sb(I,O,$)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(k,O){var $=u.keys[O];return $===void 0&&(u.keys[O]=u.id,$=u.keys[O],u.id+=1),{name:O,key:$,isListField:!0}}),E,m)})))}function gL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var jS="__@field_split__";function Ju(e){return e.map(function(t){return"".concat(At(t),":").concat(t)}).join(jS)}var $a=(function(){function e(){Qn(this,e),ge(this,"kvs",new Map)}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(Ju(n),r)}},{key:"get",value:function(n){return this.kvs.get(Ju(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Ju(n))}},{key:"map",value:function(n){return Ft(this.kvs.entries()).map(function(r){var o=$t(r,2),a=o[0],i=o[1],s=a.split(jS);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=$t(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e})(),hL=["name"],vL=Zn(function e(t){var n=this;Qn(this,e),ge(this,"formHooked",!1),ge(this,"forceRootUpdate",void 0),ge(this,"subscribable",!0),ge(this,"store",{}),ge(this,"fieldEntities",[]),ge(this,"initialValues",{}),ge(this,"callbacks",{}),ge(this,"validateMessages",null),ge(this,"preserve",null),ge(this,"lastValidatePromise",null),ge(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}}),ge(this,"getInternalHooks",function(r){return r===Xo?(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}):(fr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ge(this,"useSubscribe",function(r){n.subscribable=r}),ge(this,"prevWithoutPreserves",null),ge(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Na(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Nr(i,l,Kr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),ge(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new $a;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),ge(this,"getInitialValue",function(r){var o=Kr(n.initialValues,r);return r.length?Na(o):o}),ge(this,"setCallbacks",function(r){n.callbacks=r}),ge(this,"setValidateMessages",function(r){n.validateMessages=r}),ge(this,"setPreserve",function(r){n.preserve=r}),ge(this,"watchList",[]),ge(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),ge(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),ge(this,"timeoutId",null),ge(this,"warningUnhooked",function(){}),ge(this,"updateStore",function(r){n.store=r}),ge(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}),ge(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new $a;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),ge(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=En(a);return o.get(i)||{INVALIDATE_NAME_PATH:En(a)}})}),ge(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&At(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),Cb(n.store,c.map(En))}),ge(this,"getFieldValue",function(r){n.warningUnhooked();var o=En(r);return Kr(n.store,o)}),ge(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:En(r[i]),errors:[],warnings:[]}})}),ge(this,"getFieldError",function(r){n.warningUnhooked();var o=En(r),a=n.getFieldsError([o])[0];return a.errors}),ge(this,"getFieldWarning",function(r){n.warningUnhooked();var o=En(r),a=n.getFieldsError([o])[0];return a.warnings}),ge(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(En),c=!1):(l=null,c=i):(l=i.map(En),c=s);var u=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new $a;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(Ft(y),[g])})})});var v=function(m){return m.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),ge(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ge(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(En);return o.some(function(i){var s=i.getNamePath();return za(a,s)&&i.isFieldValidating()})}),ge(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ge(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new $a,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),v=n.getInitialValue(p);if(v!==void 0)fr(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)fr(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(p),m=u.isListField();!m&&(!r.skipExist||g===void 0)&&n.updateStore(Nr(n.store,p,Ft(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ft(Ft(c).map(function(f){return f.entity})))}})):s=a,i(s)}),ge(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Na(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(En);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Nr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),ge(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Jr(i,hL),c=En(s);a.push(c),"value"in l&&n.updateStore(Nr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),ge(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=Be(Be({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),ge(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Kr(n.store,a);i===void 0&&n.updateStore(Nr(n.store,a,o))}}),ge(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),ge(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!FS(f.getNamePath(),o)})){var u=n.store;n.updateStore(Nr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),ge(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),ge(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=Be(Be({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),ge(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ft(a))}),a}),ge(this,"updateValue",function(r,o){var a=En(r),i=n.store;n.updateStore(Nr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Cb(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ft(s)))}),ge(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Na(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ge(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),ge(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new $a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=En(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),ge(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new $a;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return za(r,u)});l.length&&a(l,i)}}),ge(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(En):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||za(l,x,v)){var C=y.validateRules(Be({validateMessages:Be(Be({},MS),n.validateMessages)},i));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var E,S=[],k=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(O){var $=O.rule.warningOnly,I=O.errors;$?k.push.apply(k,Ft(I)):S.push.apply(S,Ft(I))}),S.length?Promise.reject({name:x,errors:S,warnings:k}):{name:x,errors:S,warnings:k}}))}}});var g=gL(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),ge(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function tg(e){var t=d.useRef(),n=d.useState({}),r=$t(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new vL(a);t.current=i.getForm()}return[t.current]}var bp=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bL=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=d.useContext(bp),s=d.useRef({});return d.createElement(bp.Provider,{value:Be(Be({},i),{},{validateMessages:Be(Be({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Be(Be({},s.current),{},ge({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=Be({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},yL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xL=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,v=p===void 0?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,x=Jr(t,yL),C=d.useRef(null),w=d.useContext(bp),E=tg(i),S=$t(E,1),k=S[0],O=k.getInternalHooks(Xo),$=O.useSubscribe,I=O.setInitialValues,N=O.setCallbacks,A=O.setValidateMessages,F=O.setPreserve,j=O.destroyForm;d.useImperativeHandle(n,function(){return Be(Be({},k),{},{nativeElement:C.current})}),d.useEffect(function(){return w.registerForm(r,k),function(){w.unregisterForm(r)}},[w,k,r]),A(Be(Be({},w.validateMessages),f)),N({onValuesChange:h,onFieldsChange:function(D){if(w.triggerFormChange(r,D),g){for(var B=arguments.length,V=new Array(B>1?B-1:0),W=1;W<B;W++)V[W-1]=arguments[W];g.apply(void 0,[D].concat(V))}},onFinish:function(D){w.triggerFormFinish(r,D),m&&m(D)},onFinishFailed:b}),F(s);var M=d.useRef(null);I(o,!M.current),M.current||(M.current=!0),d.useEffect(function(){return function(){return j(y)}},[]);var R,P=typeof l=="function";if(P){var z=k.getFieldsValue(!0);R=l(z,k)}else R=l;$(!P);var H=d.useRef();d.useEffect(function(){dL(H.current||[],a||[])||k.setFields(a||[]),H.current=a},[a,k]);var L=d.useMemo(function(){return Be(Be({},k),{},{validateTrigger:v})},[k,v]),T=d.createElement(Kl.Provider,{value:null},d.createElement(Ka.Provider,{value:L},R));return u===!1?T:d.createElement(u,Vn({},x,{ref:C,onSubmit:function(D){D.preventDefault(),D.stopPropagation(),k.submit()},onReset:function(D){var B;D.preventDefault(),k.resetFields(),(B=x.onReset)===null||B===void 0||B.call(x,D)}}),T)};function Eb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function wL(){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],a=o===void 0?{}:o,i=M9(a)?{form:a}:a,s=i.form,l=ct(),c=$t(l,2),u=c[0],f=c[1],p=en(function(){return Eb(u)},[u]),v=Ke(p);v.current=p;var h=nn(Ka),g=s||h,m=g&&g._init,b=En(r),y=Ke(b);return y.current=b,mt(function(){if(m){var x=g.getFieldsValue,C=g.getInternalHooks,w=C(Xo),E=w.registerWatch,S=function(I,N){var A=i.preserve?N:I;return typeof r=="function"?r(A):Kr(A,y.current)},k=E(function($,I){var N=S($,I),A=Eb(N);v.current!==A&&(v.current=A,f(N))}),O=S(x(),x(!0));return u!==O&&f(O),k}},[m]),u}var CL=d.forwardRef(xL),ws=CL;ws.FormProvider=bL;ws.Field=NS;ws.List=mL;ws.useForm=tg;ws.useWatch=wL;const $b=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",el=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return kb(n.overflowY,t)||kb(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},tl=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,SL=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ob=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:M=>M!==c;if(!$b(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;$b(h)&&f(h);){if(h=SL(h),h===p){v.push(h);break}h!=null&&h===document.body&&el(h)&&!el(document.documentElement)||h!=null&&el(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:C,top:w,right:E,bottom:S,left:k}=e.getBoundingClientRect(),{top:O,right:$,bottom:I,left:N}=(M=>{const R=window.getComputedStyle(M);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?w-O:s==="end"?S+I:w+x/2-O+I,F=l==="center"?k+C/2-N+$:l==="end"?E+$:k-N;const j=[];for(let M=0;M<v.length;M++){const R=v[M],{height:P,width:z,top:H,right:L,bottom:T,left:_}=R.getBoundingClientRect();if(i==="if-needed"&&w>=0&&k>=0&&S<=m&&E<=g&&(R===p&&!el(R)||w>=H&&S<=T&&k>=_&&E<=L))return j;const D=getComputedStyle(R),B=parseInt(D.borderLeftWidth,10),V=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),q=parseInt(D.borderBottomWidth,10);let Q=0,U=0;const J="offsetWidth"in R?R.offsetWidth-R.clientWidth-B-W:0,X="offsetHeight"in R?R.offsetHeight-R.clientHeight-V-q:0,Y="offsetWidth"in R?R.offsetWidth===0?0:z/R.offsetWidth:0,ae="offsetHeight"in R?R.offsetHeight===0?0:P/R.offsetHeight:0;if(p===R)Q=s==="start"?A:s==="end"?A-m:s==="nearest"?tl(y,y+m,m,V,q,y+A,y+A+x,x):A-m/2,U=l==="start"?F:l==="center"?F-g/2:l==="end"?F-g:tl(b,b+g,g,B,W,b+F,b+F+C,C),Q=Math.max(0,Q+y),U=Math.max(0,U+b);else{Q=s==="start"?A-H-V:s==="end"?A-T+q+X:s==="nearest"?tl(H,T,P,V,q+X,A,A+x,x):A-(H+P/2)+X/2,U=l==="start"?F-_-B:l==="center"?F-(_+z/2)+J/2:l==="end"?F-L+W+J:tl(_,L,z,B,W+J,F,F+C,C);const{scrollLeft:oe,scrollTop:ne}=R;Q=ae===0?0:Math.max(0,Math.min(ne+Q/ae,R.scrollHeight-P/ae+X)),U=Y===0?0:Math.max(0,Math.min(oe+U/Y,R.scrollWidth-z/Y+J)),A+=ne-Q,F+=oe-U}j.push({el:R,top:Q,left:U})}return j},EL=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function $L(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ob(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Ob(e,EL(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const kL=["parentNode"],OL="form_item";function PS(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function IL(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kL.includes(n)?`${OL}_${n}`:n}var ML=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 Ib(e){return PS(e).join("_")}function Mb(e,t){const n=t.getFieldInstance(e),r=QC(n);if(r)return r;const o=IL(PS(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function AS(e){const[t]=tg(),n=d.useRef({}),r=d.useMemo(()=>Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Ib(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=ML(a,["focus"]),l=Mb(o,r);l&&($L(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Mb(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Ib(o);return n.current[a]}}),[e,t]);return[r]}const FL=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=AS();return mt(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(Cp,{modal:{styles:o},children:re(Ql,{title:re("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:rt("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_rename",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re(xo,{form:a,children:re(xo.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:re(El,{})})})})})},NL=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=AS();return mt(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(Cp,{modal:{styles:o},children:re(Ql,{title:re("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:rt("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_remove",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function UL(e=yD){return function({token:n,url:r="http://localhost:8888",styles:o,CSRFToken:a,eventsEmit:i,...s}){const l=en(()=>BS({theme:xp,mode:"light"},o),[o]),[c,u]=ct(!1),[f,p]=ct(!1),[v,h]=ct(null),[g,m]=ct([]),[b,y]=ct(1),[x]=ct(16),[C,w]=ct(0),[E,S]=ct(!1),[k,O]=ct([]),[$,I]=ct(void 0),[N,A]=ct([]),[F,j]=ct([]),[M,R]=ct(void 0),[P,z]=ct(!1),[H,L]=ct({display:"ready",sender:"ready",app:"initializing"}),[T,_]=ct([]);function D(Z,ee){if(!ee)return Z;const we=Array.isArray(Z)?[...Z]:{...Z};for(const Ie in ee)ee[Ie]!==void 0&&ee[Ie]!==null&&Object.prototype.hasOwnProperty.call(ee,Ie)&&(typeof Z[Ie]=="object"&&Z[Ie]!==null&&!Array.isArray(Z[Ie])&&typeof ee[Ie]=="object"&&ee[Ie]!==null&&!Array.isArray(ee[Ie])?we[Ie]=D(Z[Ie],ee[Ie]):we[Ie]=ee[Ie]);return we}const[B,V]=ct(()=>D(Yv,s.senderConfig));mt(()=>{s.senderConfig&&V(D(Yv,s.senderConfig))},[s.senderConfig]);const[W,q]=ct([]),[Q,U]=ct(()=>({uploadedFiles:[]}));mt(()=>{if(!$)return;const Z=k.find(Ie=>Ie.id===$);let ee=[],we=!1;if(Z&&Z.messages){const Ie=[...Z.messages||[]].reverse().find(le=>le.istype==="ai");if(Ie!=null&&Ie.reference&&Ie.resultType===5){we=!0;try{ee=JSON.parse(Ie.reference).map(Ce=>$e(Ce))}catch{}}}we&&U({uploadedFiles:ee})},[k]),mt(()=>{U({uploadedFiles:[]})},[$]);const[J,X]=fe.useState(()=>{var ee;if(!F||F.length===0)return;const Z=F.find(we=>we.isDefault);return Z?Z.id:(ee=F[0])==null?void 0:ee.id});fe.useEffect(()=>{if(!F||F.length===0)return;const Z=F.some(ee=>ee.id===J);if(!J||!Z){const ee=F.find(we=>we.isDefault);X(ee?ee.id:F[0].id)}},[F]);const[Y,ae]=ct({}),oe=Ke(void 0),ne=Ke(void 0),ue=Ke(void 0);Ke({sessionId:""}),Ke(null);const[pe,be]=ct({}),[Se,he]=ct(!1),[ke,ce]=ct([]),de=Ke(!1),{api_startChat_re:Ae,addEmptyMessage:ie,setLastEmptyMessage:We,stopStream:ze}=f9({baseUrl:r,CSRFToken:a,token:n,setChatData:O,activeSessionId:$,setAppStatus:L,setConversationList:m}),De=en(()=>{const Z={};return(F||[]).forEach(ee=>{Z[ee.id]=ee}),Z},[F]),Ee=en(()=>{const Z=k.find(we=>we.id===$)||{id:$,messages:[]},ee=Z.configId?De[Z.configId]:null;return{...Z,assistantInfo:ee}},[k,$,De]),Ve=en(()=>{if(Ee.configId&&De){const Z=De[Ee.configId];return Z!=null&&Z.configJson?JSON.parse(Z.configJson).is_download:!1}else return!1},[Ee.configId,De]),Ne=en(()=>{if((Ee.configId||M)&&De){const Z=De[Ee.configId];if(Z!=null&&Z.configJson){const ee=JSON.parse(Z.configJson);return console.log("is_enableThinking",Ee.configId,De,M),!!ee.thinking}else if(M){const ee=De[M];if(ee!=null&&ee.configJson)return!!JSON.parse(ee.configJson).thinking}}return!1},[Ee.configId,De,M]);function Fe(Z,ee){const we=new Map;return Z.forEach(Ie=>we.set(Ie.uid,$e(Ie))),ee.forEach(Ie=>we.set(Ie.uid,$e(Ie))),Array.from(we.values())}function $e(Z){if(!Z||Z.file&&Z.file.name)return Z;const ee=Z.name||Z.fileName||"";return{...Z,url:Z.filePath||"",uid:Z.uid||"",file:{name:ee,size:typeof Z.size=="string"&&Z.size.endsWith("MB")?Number(Z.size.replace("MB",""))*1024*1024:Z.size||0,type:Z.type||""},name:ee}}mt(()=>{if(oe.current&&oe.current!==$){const ee=oe.current,we=g.find(Ce=>Ce.sessionId===ee&&Ce.isNew),Ie=k.find(Ce=>Ce.id===ee&&Ce.isNew),le=Ie&&Ie.messages&&Ie.messages.length>0;we&&!le&&(m(Ce=>Ce.filter(Me=>Me.sessionId!==ee)),O(Ce=>Ce.filter(Me=>Me.id!==ee)))}oe.current=$;const Z=Ee.messages&&Ee.messages.length>0?Ee.messages[Ee.messages.length-1].recommendQuestion:[];A(Z)},[$,g,k,Ee.messages]);const je=async Z=>{var ee,we,Ie,le;if(!E){S(!0);try{const Ce=await Jn.get(`${r}/qa/dialogue/list?pageNo=${Z}&pageSize=${x}&sysType=INT_SESSION`,{headers:{Authorization:n}}),Me=((we=(ee=Ce==null?void 0:Ce.data)==null?void 0:ee.data)==null?void 0:we.records)||[],Oe=((le=(Ie=Ce==null?void 0:Ce.data)==null?void 0:Ie.data)==null?void 0:le.total)||0;w(Oe),m(Ue=>{const bt=new Map;return[...Ue,...Me].forEach(Re=>{bt.set(Re.sessionId,Re)}),Array.from(bt.values())}),y(Z)}catch{}finally{S(!1)}}};mt(()=>{L(Z=>({...Z,app:"initializing"})),Jn.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:n}}).then(Z=>{j(Z.data.data||[])}).catch(()=>{}),je(1).then(()=>{$||Je(),L(Z=>({...Z,app:"ready"}))}).catch(()=>{L(Z=>({...Z,app:"error"}))})},[r,n]),mt(()=>{$&&(L(Z=>({...Z,display:"loading"})),Jn.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${$}`,{headers:{Authorization:n}}).then(Z=>{var Yt;if(!Z.data.data){L(ft=>({...ft,display:"ready"}));return}const ee=((Yt=Z.data.data)==null?void 0:Yt.queryReplyPairList)||[],we=UH(ee),{sessionId:Ie,searchConfigDTO:le,filePath:Ce,configId:Me,reference:Oe,webReference:Ue,uploadedFiles:bt,fileList:Re,currentFiles:St}=Z.data.data;if(we.length>0){const ft=we.length-1-[...we].reverse().findIndex(It=>It.istype==="ai");ft>=0&&ft<we.length&&we[ft].istype==="ai"&&(Oe&&(we[ft].reference=Oe),Ue&&(we[ft].webReference=Ue))}const xt=St||Re||bt;if(xt&&we.length>0){const ft=[...we].reverse().findIndex(It=>It.istype==="user");ft!==-1&&(console.log(we[we.length-1-ft].currentFiles,"filesData"),we[we.length-1-ft].currentFiles=xt)}g.find(ft=>ft.sessionId===Ie)&&m(ft=>ft.map(It=>It.sessionId===Ie?{...It,searchConfigDTO:le,filePath:Ce,configId:Me}:It));const lt={configId:Z.data.data.configId,filePath:Z.data.data.filePath,searchConfigDTO:Z.data.data.searchConfigDTO||{},sessionId:Z.data.data.sessionId,label:Z.data.data.label,kbId:Z.data.data.kbId};O(ft=>{const It=ft.filter(_t=>_t.id!==$);return[{id:$,messages:we,...lt},...It]}),L(ft=>({...ft,display:"ready"}))}).catch(Z=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",Z),Z.response&&Z.response.status===404&&Je(),L(ee=>({...ee,display:"error"}))}))},[$,r,n]),mt(()=>{const Z=Q.uploadedFiles.length;V(ee=>{const we=Array.isArray(ee.actions)?ee.actions:[];return{...ee,actions:we.map(le=>le.name==="history"?{...le,badgeCount:Z}:le)}})},[Q.uploadedFiles]),mt(()=>{YH({url:r,token:n},Z=>{ce(Z)})},[]),fe.useEffect(()=>{W.length&&O(Z=>{if(!Z[0])return Z;const{messages:ee}=Z[0];for(let we=ee.length-1;we>=0;we--)if(ee[we].istype==="user"){const Ie=ee[we].currentFiles||[];ee[we].currentFiles=W.map(le=>{var Me,Oe,Ue;const Ce=Ie.find(bt=>bt.uid===le.uid);return{name:((Me=le.file)==null?void 0:Me.name)||le.name,size:((Oe=le.file)==null?void 0:Oe.size)||le.size,type:((Ue=le.file)==null?void 0:Ue.type)||le.type,status:le.status,uid:le.uid,url:le.url||(Ce==null?void 0:Ce.url)||""}});break}return[...Z]})},[W]);let qe=null,ve=null;const it=(Z,ee,we,Ie)=>{const le=Z.join(",");let Ce=0;ve=()=>{de.current=!0};const Me=async()=>{if(!de.current){if(Ce>=O9){de.current||Ie("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}Ce++;try{const Oe=await Jn.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${le}`,{headers:{Authorization:n}});if(de.current)return;if(Oe.data.success){const Ue=Oe.data.data;de.current||ee(Ue),Ue.every(Re=>Re.status===3)?de.current||we():de.current||setTimeout(Me,I9)}else de.current||Ie(Oe.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(de.current)return;Ie("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};Me()},pt=(Z,ee)=>{O(we=>{const Ie=[...we];return Ie[0]&&(Ie[0]={...Ie[0],messages:Ie[0].messages.map(le=>le.queryId===Z?{...le,feedbackResult:ee}:le)}),Ie})},yt=async Z=>{var ee,we;if(Z)try{const Ie=(Ee==null?void 0:Ee.configId)||((ee=De==null?void 0:De[(Ee==null?void 0:Ee.configId)||""])==null?void 0:ee.id)||"",le=await Jn.get(`${r}/qa/ai/recommendQuestion?queryId=${Z}&configId=${Ie||""}`.replace(/\?&/,"?"),{headers:{Authorization:n}});A(((we=le.data)==null?void 0:we.data)||[])}catch{A([])}};function Pt(Z){const{content:ee,audioUrl:we,filePaths:Ie,queryId:le}=Z;if(!$||!le)return;const Ce=(Ee==null?void 0:Ee.messages)||[],Me=Ce.findIndex(xt=>(xt==null?void 0:xt.queryId)===le&&((xt==null?void 0:xt.istype)==="ai"||(xt==null?void 0:xt.isUser)===!1));let Oe;if(Me>0)for(let xt=Me-1;xt>=0;xt-=1){const Et=Ce[xt];if((Et==null?void 0:Et.istype)==="user"||(Et==null?void 0:Et.isUser)===!0){Oe=Et;break}}const Ue=(Oe==null?void 0:Oe.content)??ee;if(!Ue)return;const bt=(Oe==null?void 0:Oe.filePaths)??Ie,Re=(typeof bt=="string"&&bt?JSON.parse(bt):bt||[]).map(xt=>xt.uid),St=Date.now();We({now:St}),L(xt=>({...xt,display:"processing",sender:"processing"})),Z.clearFn&&Z.clearFn(),m(xt=>xt.map(Et=>Et.sessionId===$?{...Et,gmtModified:St}:Et)),Ae({configId:Ee.configId,content:Ue,fileUids:Re,lastDate:St,name:Ee.label||"",queryId:le,sessionId:String($||""),type:(Oe==null?void 0:Oe.audioUrl)??we?"audioUrl":"text",audioUrl:((Oe==null?void 0:Oe.audioUrl)??we)||"",enableThinking:!!Y.reasoning,enableWebsearch:!!Y.netSearch,qaChannel:Y.qaChannel},xt=>{yt(le)})}async function He(Z,ee){if(!$)return;const we=g.find(Ie=>Ie.sessionId===$);if(we&&we.isNew){let Ie=!1;const le=M||we.configId,Ce=Z&&Z.content?Z.content.slice(0,20):we.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((Me,Oe)=>{KH({url:r,token:n,CSRFToken:a},{label:Ce,sessionId:we.sessionId,sysType:"INT_SESSION",configId:le},Ue=>{Ue&&Ue.data&&Ue.data.sessionId?(m(bt=>bt.map(Re=>Re.sessionId===we.sessionId?{...Re,isNew:!1,configId:le,label:Ce}:Re)),O(bt=>bt.map(Re=>Re.id===we.sessionId?{...Re,isNew:!1,configId:le,label:Ce}:Re)),Ie=!0,Me()):(kn.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),Oe())})}),!Ie)return;Xe($,Z,ee,le);return}Xe($,Z,ee)}function Xe(Z,ee,we,Ie){const le="query-"+Jo(32),Ce=g.find(Re=>Re.sessionId===Z),Me=Ie||(Ce==null?void 0:Ce.configId)||Ee.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",Me);const Oe=ee&&ee.content?ee.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let Ue;if(ee.files&&ee.files.length>0&&(Ue=ee.files.map(Re=>({name:Re.file.name,size:Re.file.size,type:Re.file.type,filePath:Re.filePath||"",convertedFilePath:Re.convertedFilePath||"",uid:Re.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",ee.files),ie({content:ee.content||ee.text||"",queryId:le,currentFiles:Ue,filePaths:Ue?JSON.stringify(Ue):void 0}),m(Re=>Re.map(St=>St.sessionId===Z&&St.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&St.isNew?{...St,label:Oe,gmtModified:Date.now(),isNew:!1}:St)),O(Re=>Re.map(St=>St.id===Z&&St.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&St.isNew?{...St,label:Oe,isNew:!1}:St)),ee.files&&ee.files.length>0){L(lt=>({...lt,sender:"uploading",display:"uploading"})),qe=new AbortController,de.current=!1;const Re=ee.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),St=ee.files.map((lt,Yt)=>({...lt,uid:Re[Yt],status:"uploading"}));q(St);const xt=new FormData;ee.files.forEach(lt=>{xt.append("files",lt.file)});const Et=String(Z||"");xt.append("sessionId",Et),xt.append("uids",Re.join(",")),Jn.post(`${r}/index/knowledgeBase/file/uploadFiles`,xt,{headers:{Authorization:n,"Content-Type":"multipart/form-data"},signal:qe.signal}).then(lt=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",lt),!de.current)if(lt.data.success&&Array.isArray(lt.data.data)&<.data.data.length>0){q(It=>It.map(Rt=>{const _t=lt.data.data.find(Lt=>Lt.uid===Rt.uid);return _t?{...Rt,..._t}:Rt})),L(It=>({...It,sender:"processing",display:"analyzing"})),q(It=>It.map(Rt=>({...Rt,status:"parsing"})));const Yt=lt.data.data,ft=Yt.map(It=>It.uid);it(ft,It=>{if(q(_t=>_t.map(Lt=>{const hn=It.find(pn=>pn.uid===Lt.uid);if(hn)switch(hn.status){case 3:return{...Lt,status:"done"};case 4:return{...Lt,status:"error"};case 1:case 2:default:return{...Lt,status:"parsing"}}return Lt})),It.length>0&&It.every(_t=>_t.status===3)){q([]);const _t=new Map;(It||[]).forEach(Lt=>{_t.set(Lt.id,Lt)}),U(Lt=>({uploadedFiles:Fe(Lt.uploadedFiles,Yt).map(pn=>{var Dn;return{...pn,pdfPages:((Dn=_t.get(pn.id))==null?void 0:Dn.pdfPages)||0}})}))}},()=>{we==null||we(),L(Rt=>({...Rt,sender:"processing",display:"processing"})),q(Rt=>Rt.map(_t=>{const Lt=Yt.find(hn=>hn.uid===_t.uid);return Lt?{..._t,...Lt,url:Lt.filePath,filePath:Lt.filePath,name:Lt.fileName||_t.name,convertedFilePath:Lt.convertedFilePath||_t.convertedFilePath}:_t})),O(Rt=>{if(!Rt[0])return Rt;const{messages:_t}=Rt[0];for(let Lt=_t.length-1;Lt>=0;Lt--)if(_t[Lt].istype==="user"){const hn=_t[Lt].currentFiles||[];_t[Lt].currentFiles=hn.map(pn=>{const Dn=Yt.find(tr=>tr.uid===pn.uid);return Dn?{...pn,...Dn}:pn});break}return[...Rt]});const It=Date.now();Ae({configId:Me,content:ee.content||ee.text||"",fileUids:ft,lastDate:It,name:Oe,queryId:le,sessionId:String(Z||""),type:"text",audioUrl:"",enableThinking:!!Y.reasoning,enableWebsearch:!!Y.netSearch,qaChannel:Y.qaChannel},Rt=>{yt(le)})},It=>{L(Rt=>({...Rt,display:"ready",sender:"ready"})),q(Rt=>Rt.map(_t=>({..._t,status:"error",message:It})))})}else{const Yt=lt.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";L(ft=>({...ft,display:"error",sender:"ready"})),q(ft=>ft.map(It=>({...It,status:"error",message:Yt})))}}).catch(lt=>{var Yt,ft;((Yt=lt==null?void 0:lt.response)==null?void 0:Yt.status)===413?(ft=lt==null?void 0:lt.response)!=null&&ft.statusText.includes("Request Entity Too Large")&&kn.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):kn.error("\u7F51\u7EDC\u9519\u8BEF"),L(It=>({...It,display:"error",sender:"ready"})),q(It=>It.map(Rt=>({...Rt,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}L(Re=>({...Re,display:"processing",sender:"processing"}));const bt=Date.now();m(Re=>Re.map(St=>St.sessionId===Z?{...St,gmtModified:bt}:St)),we==null||we(),Ae({configId:Me,content:ee.content||ee.text||"",fileUids:[],lastDate:bt,name:Oe,queryId:le,sessionId:String(Z||""),type:"text",audioUrl:"",enableThinking:!!Y.reasoning,enableWebsearch:!!Y.netSearch,qaChannel:Y.qaChannel},Re=>{yt(le)})}function Ye(Z){Z.restult==1?Gu({url:r,token:n,CSRFToken:a},{queryId:Z.queryId},()=>{pt(Z.queryId,null)}):cb({url:r,token:n,CSRFToken:a},{restult:1,queryId:Z.queryId},()=>{pt(Z.queryId,1)})}function Je(Z){const ee=Jo(32),we={sessionId:ee,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};m(Ie=>[{...we,messages:[]},...Ie]),O(Ie=>[{id:ee,messages:[],...we},...Ie]),I(ee)}const tt=Z=>{var le;const ee=new Set([...Q.uploadedFiles.map(Ce=>Ce.file.name),...T.map(Ce=>Ce.file.name)]),we=[],Ie=new Set;Array.from(Z).forEach(Ce=>{ee.has(Ce.name)?Ie.add(Ce.name):(we.push({file:Ce,type:lb(Ce.name),status:"pending",preview:Ce.type.startsWith("image")?URL.createObjectURL(Ce):void 0}),ee.add(Ce.name))}),Ie.size>0&&kn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(Ie).join(", ")}`),we.length>0&&(_(Ce=>[...Ce,...we]),(le=ne.current)==null||le.call(ne,we))},Ot=(Z,ee,we)=>{var Ie;(Ie=ue.current)==null||Ie.call(ue,Z,ee,we)};function Nt(Z){if(Z!=null&&Z.sessionId&&Z.sessionId!==$){I(Z.sessionId),L(we=>({...we,sender:"ready"}));const ee=k.find(we=>we.id===Z.sessionId);if(ee&&ee.messages&&ee.messages.length>0){const we=[...ee.messages].reverse().find(Ie=>Ie.istype==="ai");we&&we.recommendQuestion?A(we.recommendQuestion):A([])}else A([])}}const et=async Z=>new Promise((ee,we)=>{GH({url:r,token:n,CSRFToken:a},{sessionId:Z},Ie=>{Ie?(kn.success("\u5220\u9664\u6210\u529F!"),ee(Ie)):(kn.error("\u5220\u9664\u5931\u8D25!"),we(Ie))})}),st=async()=>{try{return m([]),w(0),await je(1),[]}catch(Z){throw kn.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),Z}},Ct=async(Z,ee)=>new Promise((we,Ie)=>{XH({url:r,token:n,CSRFToken:a},{label:ee,sessionId:Z},le=>{if(le){const Ce=Date.now();m(Me=>Me.map(Oe=>Oe.sessionId===Z?{...Oe,label:ee,gmtModified:Ce}:Oe)),kn.success("\u91CD\u547D\u540D\u6210\u529F!"),we(le)}else kn.error("\u91CD\u547D\u540D\u5931\u8D25"),Ie(le)})}),Le=Z=>{m(ee=>{const we=ee.filter(Ie=>Ie.sessionId!==Z);return $===Z&&(we.length>0?I(we[0].sessionId):Je()),we})},Pe=(Z,ee)=>{const we=Date.now();m(Ie=>Ie.map(le=>le.sessionId===Z?{...le,label:ee,gmtModified:we}:le))},ye=Z=>{cb({url:r,token:n,CSRFToken:a},{...Z,...pe,restult:0},()=>{pt(pe.queryId,0)})},Te=Z=>{const ee=Z.new_name,we=v.data.label;ee&&ee!==we?v.async_renameConversation(ee).then(()=>{v.fn_renameItemInList(ee),u(!1)}).catch(()=>{}):u(!1)},nt=Z=>{v.async_deleteConversation().then(()=>{v.fn_removeItemFromList(),p(!1)}).catch(()=>{})},Qe=(Z,ee)=>{switch(console.log(Z,ee),Z){case"close_remove":p(!1);break;case"close_rename":u(!1);break;case"ok_rename":Te(ee);break;case"ok_remove":nt();break}},ot=async({url:Z,params:ee,replacePredataFunction:we})=>{var Ie,le;try{const Ce=await Jn.post(Z,ee,{headers:{Authorization:n}}),Me=(le=(Ie=Ce==null?void 0:Ce.data)==null?void 0:Ie.data)==null?void 0:le.data;Me&&we(Me)}catch(Ce){console.log("error",Ce)}},gt=(Z,ee)=>{var we,Ie,le;switch(console.log(`[Event] ${Z}`,ee),Z){case"conversations:load_more":{g.length<C&&!E&&je(b+1);break}case"retrieve-sql-data:pagingation_click":const{page:Ce,pageSize:Me,fetchUrl:Oe,source:Ue,replacePredataFunction:bt}=ee;ot({url:`${r}${Oe}`,replacePredataFunction:bt,params:{pageNo:Ce,pageSize:Me,convertedFilePath:Ue,stream:!1}});break;case"web_referenceFile_title:click":if(!((we=ee==null?void 0:ee.data)!=null&&we.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(ee.data.link,"_blank");break;case"conversation:item_click":Nt(ee);break;case"files:finished_animation_complete":q([]);break;case"conversation:create":Je();break;case"conversation:new_assistant_change":R(ee.assistantId);break;case"conversations:rename_icon_clicked":h({data:ee,async_renameConversation:Re=>Ct(ee.sessionId,Re),fn_renameItemInList:Re=>Pe(ee.sessionId,Re)}),u(!0);break;case"conversations:delete_icon_clicked":h({data:ee,async_deleteConversation:()=>et(ee.sessionId),async_refreshConversationList:st,fn_removeItemFromList:()=>Le(ee.sessionId)}),p(!0);break;case"sender:send":He(ee,ee.clearFn);break;case"sender:send_recommandQuestion":{const Re=((ee==null?void 0:ee.content)??"").toString();if(!Re)break;He({content:Re},()=>{});break}case"chatbox:follow_up_question_click":{const Re=((ee==null?void 0:ee.question)??(ee==null?void 0:ee.content)??"").toString();if(!Re)break;He({content:Re},()=>{});break}case"sender:action_history":z(!0);break;case"sender:stop":de.current=!0,qe&&(qe.abort(),qe=null),ve&&(ve(),ve=null),L(Re=>({...Re,display:"ready",sender:"ready"})),q([]),ze==null||ze();break;case"sender:clear":(Ie=ee.clearFn)==null||Ie.call(ee);break;case"sender:configChange":ee&&ee.all&&ae(ee.all);break;case"action_copy:click":ee&&qH(ee.content,ee.event);break;case"chatbox:copy":{const Re=(ee==null?void 0:ee.content)||"";if(!Re)break;const St=async Et=>{try{return await navigator.clipboard.writeText(Et),kn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},xt=Et=>{const lt=document.createElement("textarea");lt.value=Et,lt.style.position="fixed",lt.style.opacity="0",document.body.appendChild(lt),lt.focus(),lt.select();try{document.execCommand("copy"),kn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{kn.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(lt)};St(Re).then(Et=>{Et||xt(Re)});break}case"chatbox:repeat":console.log(ee,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),Pt(ee);break;case"action_thumbsup":Ye(ee);break;case"chatbox:like":Ye({queryId:ee==null?void 0:ee.queryId,restult:ee==null?void 0:ee.result});break;case"action_thumbsdown":ee.restult===0?Gu({url:r,token:n,CSRFToken:a},{queryId:ee.queryId},()=>{pt(ee.queryId,null)}):(be(ee),he(!0));break;case"chatbox:dislike":(ee==null?void 0:ee.result)===0?Gu({url:r,token:n,CSRFToken:a},{queryId:ee.queryId},()=>{pt(ee.queryId,null)}):(be({queryId:ee==null?void 0:ee.queryId}),he(!0));break;case"action_retrive_tag":i==null||i("action_retrive_tag",ee);break;case"referenceFile_view":i==null||i("referenceFile_view",ee);break;case"referenceFile_question":console.log(ee,"zhezhhzhzh"),i==null||i("referenceFile_question",ee);break;case"referenceFile_download":i==null||i("referenceFile_download",ee);break;case"retrive_tag:click":i==null||i("retrive_tag:click",ee);break;case"fileManager:change":{const Re=Array.isArray(ee==null?void 0:ee.uploadedFiles)?ee.uploadedFiles:[];_(Re),typeof(ee==null?void 0:ee.setUploadedFiles)=="function"&&(ne.current=ee.setUploadedFiles,ue.current=ee.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",ee);const Re=(le=ee==null?void 0:ee.file)==null?void 0:le.uid;if(!Re){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",ee);break}const St=[...Ee.messages||[]].reverse().find(Et=>Et.istype==="user"),xt=St==null?void 0:St.queryId;QH({url:r,token:n,CSRFToken:a},{uid:Re,queryId:xt},(Et,lt)=>{if(Et){if(kn.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),lt&&Array.isArray(lt.data&<.data.data)){const Yt=lt.data.data.map(ft=>{var Rt;const It=ft.name||ft.fileName||"";return{file:{name:It,size:Number((Rt=ft.size)==null?void 0:Rt.replace("MB",""))*1024*1024||0,type:ft.type},type:lb(It),status:"uploaded",url:ft.filePath,convertedFilePath:ft.convertedFilePath,uid:ft.uid,preview:ft.type==="image"?ft.filePath:void 0}});U({uploadedFiles:Yt})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",lt),kn.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:i==null||i(Z,ee)}},kt=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:re(KS,{size:16}),enabled:!0,component:re(a8,{data:g,assistantList:F,activedItem:$||"",hasMore:g.length<C,loadingMore:E,sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:gt,styles:l.theme})}],Mt=fe.useMemo(()=>()=>re(r9,{eventsEmit:gt,assistantList:F,styles:l,selectedId:J,onSelectAssistant:X}),[J]),Ht={...fe.useMemo(()=>({AiChatBox:(Z,ee)=>{var Ue,bt;const we=ee===(((Ue=Ee==null?void 0:Ee.messages)==null?void 0:Ue.length)||0)-1;let Ie="ready";if(we)if(Z.status!==void 0)switch(Z.status){case 0:Ie="thinking";break;case 1:Ie="processing";break;case 2:Ie="ready";break;case 3:Ie="error";break;default:Ie=H.display}else Ie=H.display;let le=[];if(Array.isArray(N))le=N;else if(typeof N=="string")try{le=JSON.parse(N)||[]}catch{le=[]}const Ce=(()=>{const Re=Z==null?void 0:Z.reference;if(!Re)return"[]";if(typeof Re=="string")try{return JSON.parse(Re),Re}catch{return"[]"}try{return JSON.stringify(Re)}catch{return"[]"}})(),Me=(()=>{const Re=Z==null?void 0:Z.webReference;if(!Re)return"[]";if(typeof Re=="string")try{return JSON.parse(Re),Re}catch{return"[]"}try{return JSON.stringify(Re)}catch{return"[]"}})(),Oe=(()=>{const Re=Z==null?void 0:Z.graphReference;if(!Re)return"[]";if(typeof Re=="string")try{return JSON.parse(Re),Re}catch{return"[]"}try{return JSON.stringify(Re)}catch{return"[]"}})();return re(og,{...Z,reference:Ce,webReference:Me,graphReference:Oe,contentType:"stream",displayStatus:Ie,eventsEmit:gt,isLast:we&&(Z==null?void 0:Z.istype)==="ai",followUpQuestions:we&&(Z==null?void 0:Z.istype)==="ai"?le:[],defaultAnswer:((bt=Ee==null?void 0:Ee.searchConfigDTO)==null?void 0:bt.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:Ve,styles:l},`${(Z==null?void 0:Z.queryId)||(Z==null?void 0:Z.id)||ee}-${(Z==null?void 0:Z.istype)||"unknown"}`)},LogoBox:Z=>Z&&Z.LogoBox===null?null:Z&&typeof Z.LogoBox=="function"?re(Z.LogoBox,{}):re("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>re(E9,{}),DisplayError:()=>re(k9,{}),AppError:()=>re($9,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>re(S9,{}),UserChatBox:(Z,ee)=>re(og,{...Z,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:gt,styles:l,fileManagerData:Q},`${(Z==null?void 0:Z.queryId)||(Z==null?void 0:Z.id)||ee}-user`),WelcomeComponent:Mt}),[Mt,Ee,H.display,gt,l,Ve,Q]),...s.CustomComponents||{}};return mt(()=>{V(Z=>{const ee=Array.isArray(Z.switchs)?Z.switchs.map(we=>we.name==="reasoning"?{...we,enabled:Ne}:we):[];return{...Z,switchs:ee}})},[Ne]),rt(RS,{children:[re(C9,{open:P,onCancel:()=>z(!1),files:Q.uploadedFiles,currentFiles:T,onUpload:tt,onRemoveFile:Ot,styles:l,eventsEmit:gt}),re(e,{...s,status:H,chatData:Ee,sidebar:kt,recommandQuestions:[],eventsEmit:gt,styles:l,senderConfig:B,fileUploadStatus:W,CustomComponents:Ht,activeSessionId:$}),re(g9,{open:Se,feedBackList:ke,setOpen:he,handleConfirm:ye}),re(FL,{isModalOpen:c,handleOk:Qe,handleCancel:()=>Qe("close_rename"),data:(v==null?void 0:v.data)||{}}),re(NL,{isModalOpen:f,handleOk:Qe,handleCancel:()=>Qe("close_remove"),data:(v==null?void 0:v.data)||{}})]})}}export{UL as default};
|
|
151
|
+
`})]})}function nu(){return Y("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[Y("div",{className:"flex items-start gap-4",children:[$("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),$("div",{className:"flex-1",children:$(vn,{active:!0,paragraph:{rows:1}})})]}),Y("div",{className:"flex items-start gap-4",children:[$("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),$("div",{className:"flex-1",children:$(vn,{active:!0,paragraph:{rows:3}})})]}),Y("div",{className:"flex items-start gap-4",children:[$("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),$("div",{className:"flex-1",children:$(vn,{active:!0,paragraph:{rows:1}})})]}),Y("div",{className:"flex items-start gap-4",children:[$("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),$("div",{className:"flex-1",children:$(vn,{active:!0,paragraph:{rows:2}})})]})]})}function ru({msg:e,subMsg:n}){return Y("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[$("div",{className:"mb-6 animate-bounce",children:$(Si,{size:64,className:"text-[#d70016]"})}),$("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),$("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:n||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),$(pt,{type:"primary",icon:$(Jo,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function ou(){return Y("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[$("div",{className:"mb-6 animate-bounce",children:$(li,{size:64,className:"text-[#d70016]"})}),$("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),$("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),$(pt,{type:"primary",icon:$(Jo,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}const au=1e3,iu=3e3,su=({isModalOpen:e,handleOk:n,handleCancel:t,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=Vo();return je(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),$(Ko,{modal:{styles:o},children:$(Ar,{title:$("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:Y("div",{className:"mt-[16px] flex justify-end",children:[$(pt,{children:"\u53D6\u6D88",onClick:t,className:"mr-[8px]"}),$(pt,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();n("ok_rename",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:$(Xr,{form:a,children:$(Xr.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:$(ci,{})})})})})},lu=({isModalOpen:e,handleOk:n,handleCancel:t,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=Vo();return je(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),$(Ko,{modal:{styles:o},children:$(Ar,{title:$("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:Y("div",{className:"mt-[16px] flex justify-end",children:[$(pt,{children:"\u53D6\u6D88",onClick:t,className:"mr-[8px]"}),$(pt,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();n("ok_remove",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:$("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function wu(e=fi){return function({token:t,url:r="http://localhost:8888",styles:o,CSRFToken:a,eventsEmit:i,...s}){const u=Ge(()=>ui({theme:Dr,mode:"light"},o),[o]),[d,f]=Ie(!1),[m,h]=Ie(!1),[x,w]=Ie(null),[c,p]=Ie([]),[C,b]=Ie(1),[I]=Ie(16),[S,y]=Ie(0),[F,D]=Ie(!1),[O,N]=Ie([]),[E,_]=Ie(void 0),[T,k]=Ie([]),[M,B]=Ie([]),[V,j]=Ie(void 0),[U,K]=Ie(!1),[L,q]=Ie({display:"ready",sender:"ready",app:"initializing"}),[ee,R]=Ie([]);function W(v,g){if(!g)return v;const P=Array.isArray(v)?[...v]:{...v};for(const A in g)g[A]!==void 0&&g[A]!==null&&Object.prototype.hasOwnProperty.call(g,A)&&(typeof v[A]=="object"&&v[A]!==null&&!Array.isArray(v[A])&&typeof g[A]=="object"&&g[A]!==null&&!Array.isArray(g[A])?P[A]=W(v[A],g[A]):P[A]=g[A]);return P}const[J,oe]=Ie(()=>W(bo,s.senderConfig));je(()=>{s.senderConfig&&oe(W(bo,s.senderConfig))},[s.senderConfig]);const[ae,Q]=Ie([]),[ie,Ce]=Ie(()=>({uploadedFiles:[]}));je(()=>{if(!E)return;const v=O.find(A=>A.id===E);let g=[],P=!1;if(v&&v.messages){const A=[...v.messages||[]].reverse().find(H=>H.istype==="ai");if(A!=null&&A.reference&&A.resultType===5){P=!0;try{g=JSON.parse(A.reference).map(X=>Ue(X))}catch{}}}P&&Ce({uploadedFiles:g})},[O]),je(()=>{Ce({uploadedFiles:[]})},[E]);const[xe,we]=Be.useState(()=>{var g;if(!M||M.length===0)return;const v=M.find(P=>P.isDefault);return v?v.id:(g=M[0])==null?void 0:g.id});Be.useEffect(()=>{if(!M||M.length===0)return;const v=M.some(g=>g.id===xe);if(!xe||!v){const g=M.find(P=>P.isDefault);we(g?g.id:M[0].id)}},[M]);const[Te,Je]=Ie({}),Le=Xe(void 0),ve=Xe(void 0),me=Xe(void 0);Xe({sessionId:""}),Xe(null);const[ct,mt]=Ie({}),[$t,It]=Ie(!1),[At,et]=Ie([]),qe=Xe(!1),{api_startChat_re:St,addEmptyMessage:kt,setLastEmptyMessage:Mt,stopStream:Et}=Gc({baseUrl:r,CSRFToken:a,token:t,setChatData:N,activeSessionId:E,setAppStatus:q,setConversationList:p}),Ae=Ge(()=>{const v={};return(M||[]).forEach(g=>{v[g.id]=g}),v},[M]),ce=Ge(()=>{const v=O.find(P=>P.id===E)||{id:E,messages:[]},g=v.configId?Ae[v.configId]:null;return{...v,assistantInfo:g}},[O,E,Ae]),nt=Ge(()=>{if(ce.configId&&Ae){const v=Ae[ce.configId];return v!=null&&v.configJson?JSON.parse(v.configJson).is_download:!1}else return!1},[ce.configId,Ae]),ut=Ge(()=>{if((ce.configId||V)&&Ae){const v=Ae[ce.configId];if(v!=null&&v.configJson){const g=JSON.parse(v.configJson);return console.log("is_enableThinking",ce.configId,Ae,V),!!g.thinking}else if(V){const g=Ae[V];if(g!=null&&g.configJson)return!!JSON.parse(g.configJson).thinking}}return!1},[ce.configId,Ae,V]);function ft(v,g){const P=new Map;return v.forEach(A=>P.set(A.uid,Ue(A))),g.forEach(A=>P.set(A.uid,Ue(A))),Array.from(P.values())}function Ue(v){if(!v||v.file&&v.file.name)return v;const g=v.name||v.fileName||"";return{...v,url:v.filePath||"",uid:v.uid||"",file:{name:g,size:typeof v.size=="string"&&v.size.endsWith("MB")?Number(v.size.replace("MB",""))*1024*1024:v.size||0,type:v.type||""},name:g}}je(()=>{if(Le.current&&Le.current!==E){const g=Le.current,P=c.find(X=>X.sessionId===g&&X.isNew),A=O.find(X=>X.id===g&&X.isNew),H=A&&A.messages&&A.messages.length>0;P&&!H&&(p(X=>X.filter(ge=>ge.sessionId!==g)),N(X=>X.filter(ge=>ge.id!==g)))}Le.current=E;const v=ce.messages&&ce.messages.length>0?ce.messages[ce.messages.length-1].recommendQuestion:[];k(v)},[E,c,O,ce.messages]);const We=async v=>{var g,P,A,H;if(!F){D(!0);try{const X=await rt.get(`${r}/qa/dialogue/list?pageNo=${v}&pageSize=${I}&sysType=INT_SESSION`,{headers:{Authorization:t}}),ge=((P=(g=X==null?void 0:X.data)==null?void 0:g.data)==null?void 0:P.records)||[],te=((H=(A=X==null?void 0:X.data)==null?void 0:A.data)==null?void 0:H.total)||0;y(te),p(he=>{const Se=new Map;return[...he,...ge].forEach(z=>{Se.set(z.sessionId,z)}),Array.from(Se.values())}),b(v)}catch{}finally{D(!1)}}};je(()=>{q(v=>({...v,app:"initializing"})),rt.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:t}}).then(v=>{B(v.data.data||[])}).catch(()=>{}),We(1).then(()=>{E||Ft(),q(v=>({...v,app:"ready"}))}).catch(()=>{q(v=>({...v,app:"error"}))})},[r,t]),je(()=>{E&&(q(v=>({...v,display:"loading"})),rt.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${E}`,{headers:{Authorization:t}}).then(v=>{var He;if(!v.data.data){q(ue=>({...ue,display:"ready"}));return}const g=((He=v.data.data)==null?void 0:He.queryReplyPairList)||[],P=Oc(g),{sessionId:A,searchConfigDTO:H,filePath:X,configId:ge,reference:te,webReference:he,uploadedFiles:Se,fileList:z,currentFiles:ye}=v.data.data;if(P.length>0){const ue=P.length-1-[...P].reverse().findIndex(de=>de.istype==="ai");ue>=0&&ue<P.length&&P[ue].istype==="ai"&&(te&&(P[ue].reference=te),he&&(P[ue].webReference=he))}const fe=ye||z||Se;if(fe&&P.length>0){const ue=[...P].reverse().findIndex(de=>de.istype==="user");ue!==-1&&(console.log(P[P.length-1-ue].currentFiles,"filesData"),P[P.length-1-ue].currentFiles=fe)}c.find(ue=>ue.sessionId===A)&&p(ue=>ue.map(de=>de.sessionId===A?{...de,searchConfigDTO:H,filePath:X,configId:ge}:de));const le={configId:v.data.data.configId,filePath:v.data.data.filePath,searchConfigDTO:v.data.data.searchConfigDTO||{},sessionId:v.data.data.sessionId,label:v.data.data.label,kbId:v.data.data.kbId};N(ue=>{const de=ue.filter(Pe=>Pe.id!==E);return[{id:E,messages:P,...le},...de]}),q(ue=>({...ue,display:"ready"}))}).catch(v=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",v),v.response&&v.response.status===404&&Ft(),q(g=>({...g,display:"error"}))}))},[E,r,t]),je(()=>{const v=ie.uploadedFiles.length;oe(g=>{const P=Array.isArray(g.actions)?g.actions:[];return{...g,actions:P.map(H=>H.name==="history"?{...H,badgeCount:v}:H)}})},[ie.uploadedFiles]),je(()=>{Dc({url:r,token:t},v=>{et(v)})},[]),Be.useEffect(()=>{ae.length&&N(v=>{if(!v[0])return v;const{messages:g}=v[0];for(let P=g.length-1;P>=0;P--)if(g[P].istype==="user"){const A=g[P].currentFiles||[];g[P].currentFiles=ae.map(H=>{var ge,te,he;const X=A.find(Se=>Se.uid===H.uid);return{name:((ge=H.file)==null?void 0:ge.name)||H.name,size:((te=H.file)==null?void 0:te.size)||H.size,type:((he=H.file)==null?void 0:he.type)||H.type,status:H.status,uid:H.uid,url:H.url||(X==null?void 0:X.url)||""}});break}return[...v]})},[ae]);let G=null,pe=null;const Fe=(v,g,P,A)=>{const H=v.join(",");let X=0;pe=()=>{qe.current=!0};const ge=async()=>{if(!qe.current){if(X>=au){qe.current||A("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}X++;try{const te=await rt.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${H}`,{headers:{Authorization:t}});if(qe.current)return;if(te.data.success){const he=te.data.data;qe.current||g(he),he.every(z=>z.status===3)?qe.current||P():qe.current||setTimeout(ge,iu)}else qe.current||A(te.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(qe.current)return;A("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};ge()},se=(v,g)=>{N(P=>{const A=[...P];return A[0]&&(A[0]={...A[0],messages:A[0].messages.map(H=>H.queryId===v?{...H,feedbackResult:g}:H)}),A})},be=async v=>{var g,P;if(v)try{const A=(ce==null?void 0:ce.configId)||((g=Ae==null?void 0:Ae[(ce==null?void 0:ce.configId)||""])==null?void 0:g.id)||"",H=await rt.get(`${r}/qa/ai/recommendQuestion?queryId=${v}&configId=${A||""}`.replace(/\?&/,"?"),{headers:{Authorization:t}});k(((P=H.data)==null?void 0:P.data)||[])}catch{k([])}};function _e(v){const{content:g,audioUrl:P,filePaths:A,queryId:H}=v;if(!E||!H)return;const X=(ce==null?void 0:ce.messages)||[],ge=X.findIndex(fe=>(fe==null?void 0:fe.queryId)===H&&((fe==null?void 0:fe.istype)==="ai"||(fe==null?void 0:fe.isUser)===!1));let te;if(ge>0)for(let fe=ge-1;fe>=0;fe-=1){const Ne=X[fe];if((Ne==null?void 0:Ne.istype)==="user"||(Ne==null?void 0:Ne.isUser)===!0){te=Ne;break}}const he=(te==null?void 0:te.content)??g;if(!he)return;const Se=(te==null?void 0:te.filePaths)??A,z=(typeof Se=="string"&&Se?JSON.parse(Se):Se||[]).map(fe=>fe.uid),ye=Date.now();Mt({now:ye}),q(fe=>({...fe,display:"processing",sender:"processing"})),v.clearFn&&v.clearFn(),p(fe=>fe.map(Ne=>Ne.sessionId===E?{...Ne,gmtModified:ye}:Ne)),St({configId:ce.configId,content:he,fileUids:z,lastDate:ye,name:ce.label||"",queryId:H,sessionId:String(E||""),type:(te==null?void 0:te.audioUrl)??P?"audioUrl":"text",audioUrl:((te==null?void 0:te.audioUrl)??P)||"",enableThinking:!!Te.reasoning,enableWebsearch:!!Te.netSearch,qaChannel:Te.qaChannel},fe=>{be(H)})}async function at(v,g){if(!E)return;const P=c.find(A=>A.sessionId===E);if(P&&P.isNew){let A=!1;const H=V||P.configId,X=v&&v.content?v.content.slice(0,20):P.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((ge,te)=>{kc({url:r,token:t,CSRFToken:a},{label:X,sessionId:P.sessionId,sysType:"INT_SESSION",configId:H},he=>{he&&he.data&&he.data.sessionId?(p(Se=>Se.map(z=>z.sessionId===P.sessionId?{...z,isNew:!1,configId:H,label:X}:z)),N(Se=>Se.map(z=>z.id===P.sessionId?{...z,isNew:!1,configId:H,label:X}:z)),A=!0,ge()):(Re.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),te())})}),!A)return;dt(E,v,g,H);return}dt(E,v,g)}function dt(v,g,P,A){const H="query-"+Ht(32),X=c.find(z=>z.sessionId===v),ge=A||(X==null?void 0:X.configId)||ce.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",ge);const te=g&&g.content?g.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let he;if(g.files&&g.files.length>0&&(he=g.files.map(z=>({name:z.file.name,size:z.file.size,type:z.file.type,filePath:z.filePath||"",convertedFilePath:z.convertedFilePath||"",uid:z.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",g.files),kt({content:g.content||g.text||"",queryId:H,currentFiles:he,filePaths:he?JSON.stringify(he):void 0}),p(z=>z.map(ye=>ye.sessionId===v&&ye.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&ye.isNew?{...ye,label:te,gmtModified:Date.now(),isNew:!1}:ye)),N(z=>z.map(ye=>ye.id===v&&ye.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&ye.isNew?{...ye,label:te,isNew:!1}:ye)),g.files&&g.files.length>0){q(le=>({...le,sender:"uploading",display:"uploading"})),G=new AbortController,qe.current=!1;const z=g.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),ye=g.files.map((le,He)=>({...le,uid:z[He],status:"uploading"}));Q(ye);const fe=new FormData;g.files.forEach(le=>{fe.append("files",le.file)});const Ne=String(v||"");fe.append("sessionId",Ne),fe.append("uids",z.join(",")),rt.post(`${r}/index/knowledgeBase/file/uploadFiles`,fe,{headers:{Authorization:t,"Content-Type":"multipart/form-data"},signal:G.signal}).then(le=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",le),!qe.current)if(le.data.success&&Array.isArray(le.data.data)&&le.data.data.length>0){Q(de=>de.map($e=>{const Pe=le.data.data.find(Oe=>Oe.uid===$e.uid);return Pe?{...$e,...Pe}:$e})),q(de=>({...de,sender:"processing",display:"analyzing"})),Q(de=>de.map($e=>({...$e,status:"parsing"})));const He=le.data.data,ue=He.map(de=>de.uid);Fe(ue,de=>{if(Q(Pe=>Pe.map(Oe=>{const Dt=de.find(yt=>yt.uid===Oe.uid);if(Dt)switch(Dt.status){case 3:return{...Oe,status:"done"};case 4:return{...Oe,status:"error"};case 1:case 2:default:return{...Oe,status:"parsing"}}return Oe})),de.length>0&&de.every(Pe=>Pe.status===3)){Q([]);const Pe=new Map;(de||[]).forEach(Oe=>{Pe.set(Oe.id,Oe)}),Ce(Oe=>({uploadedFiles:ft(Oe.uploadedFiles,He).map(yt=>{var _t;return{...yt,pdfPages:((_t=Pe.get(yt.id))==null?void 0:_t.pdfPages)||0}})}))}},()=>{P==null||P(),q($e=>({...$e,sender:"processing",display:"processing"})),Q($e=>$e.map(Pe=>{const Oe=He.find(Dt=>Dt.uid===Pe.uid);return Oe?{...Pe,...Oe,url:Oe.filePath,filePath:Oe.filePath,name:Oe.fileName||Pe.name,convertedFilePath:Oe.convertedFilePath||Pe.convertedFilePath}:Pe})),N($e=>{if(!$e[0])return $e;const{messages:Pe}=$e[0];for(let Oe=Pe.length-1;Oe>=0;Oe--)if(Pe[Oe].istype==="user"){const Dt=Pe[Oe].currentFiles||[];Pe[Oe].currentFiles=Dt.map(yt=>{const _t=He.find(ke=>ke.uid===yt.uid);return _t?{...yt,..._t}:yt});break}return[...$e]});const de=Date.now();St({configId:ge,content:g.content||g.text||"",fileUids:ue,lastDate:de,name:te,queryId:H,sessionId:String(v||""),type:"text",audioUrl:"",enableThinking:!!Te.reasoning,enableWebsearch:!!Te.netSearch,qaChannel:Te.qaChannel},$e=>{be(H)})},de=>{q($e=>({...$e,display:"ready",sender:"ready"})),Q($e=>$e.map(Pe=>({...Pe,status:"error",message:de})))})}else{const He=le.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";q(ue=>({...ue,display:"error",sender:"ready"})),Q(ue=>ue.map(de=>({...de,status:"error",message:He})))}}).catch(le=>{var He,ue;((He=le==null?void 0:le.response)==null?void 0:He.status)===413?(ue=le==null?void 0:le.response)!=null&&ue.statusText.includes("Request Entity Too Large")&&Re.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):Re.error("\u7F51\u7EDC\u9519\u8BEF"),q(de=>({...de,display:"error",sender:"ready"})),Q(de=>de.map($e=>({...$e,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}q(z=>({...z,display:"processing",sender:"processing"}));const Se=Date.now();p(z=>z.map(ye=>ye.sessionId===v?{...ye,gmtModified:Se}:ye)),P==null||P(),St({configId:ge,content:g.content||g.text||"",fileUids:[],lastDate:Se,name:te,queryId:H,sessionId:String(v||""),type:"text",audioUrl:"",enableThinking:!!Te.reasoning,enableWebsearch:!!Te.netSearch,qaChannel:Te.qaChannel},z=>{be(H)})}function tt(v){v.restult==1?nr({url:r,token:t,CSRFToken:a},{queryId:v.queryId},()=>{se(v.queryId,null)}):Eo({url:r,token:t,CSRFToken:a},{restult:1,queryId:v.queryId},()=>{se(v.queryId,1)})}function Ft(v){const g=Ht(32),P={sessionId:g,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};p(A=>[{...P,messages:[]},...A]),N(A=>[{id:g,messages:[],...P},...A]),_(g)}const pn=v=>{var H;const g=new Set([...ie.uploadedFiles.map(X=>X.file.name),...ee.map(X=>X.file.name)]),P=[],A=new Set;Array.from(v).forEach(X=>{g.has(X.name)?A.add(X.name):(P.push({file:X,type:So(X.name),status:"pending",preview:X.type.startsWith("image")?URL.createObjectURL(X):void 0}),g.add(X.name))}),A.size>0&&Re.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(A).join(", ")}`),P.length>0&&(R(X=>[...X,...P]),(H=ve.current)==null||H.call(ve,P))},Rn=(v,g,P)=>{var A;(A=me.current)==null||A.call(me,v,g,P)};function mn(v){if(v!=null&&v.sessionId&&v.sessionId!==E){_(v.sessionId),q(P=>({...P,sender:"ready"}));const g=O.find(P=>P.id===v.sessionId);if(g&&g.messages&&g.messages.length>0){const P=[...g.messages].reverse().find(A=>A.istype==="ai");P&&P.recommendQuestion?k(P.recommendQuestion):k([])}else k([])}}const bt=async v=>new Promise((g,P)=>{Ac({url:r,token:t,CSRFToken:a},{sessionId:v},A=>{A?(Re.success("\u5220\u9664\u6210\u529F!"),g(A)):(Re.error("\u5220\u9664\u5931\u8D25!"),P(A))})}),Bn=async()=>{try{return p([]),y(0),await We(1),[]}catch(v){throw Re.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),v}},Tn=async(v,g)=>new Promise((P,A)=>{Pc({url:r,token:t,CSRFToken:a},{label:g,sessionId:v},H=>{if(H){const X=Date.now();p(ge=>ge.map(te=>te.sessionId===v?{...te,label:g,gmtModified:X}:te)),Re.success("\u91CD\u547D\u540D\u6210\u529F!"),P(H)}else Re.error("\u91CD\u547D\u540D\u5931\u8D25"),A(H)})}),fn=v=>{p(g=>{const P=g.filter(A=>A.sessionId!==v);return E===v&&(P.length>0?_(P[0].sessionId):Ft()),P})},_n=(v,g)=>{const P=Date.now();p(A=>A.map(H=>H.sessionId===v?{...H,label:g,gmtModified:P}:H))},zn=v=>{Eo({url:r,token:t,CSRFToken:a},{...v,...ct,restult:0},()=>{se(ct.queryId,0)})},jn=v=>{const g=v.new_name,P=x.data.label;g&&g!==P?x.async_renameConversation(g).then(()=>{x.fn_renameItemInList(g),f(!1)}).catch(()=>{}):f(!1)},gn=v=>{x.async_deleteConversation().then(()=>{x.fn_removeItemFromList(),h(!1)}).catch(()=>{})},Nt=(v,g)=>{switch(console.log(v,g),v){case"close_remove":h(!1);break;case"close_rename":f(!1);break;case"ok_rename":jn(g);break;case"ok_remove":gn();break}},Ln=async({url:v,params:g,replacePredataFunction:P})=>{var A,H;try{const X=await rt.post(v,g,{headers:{Authorization:t}}),ge=(H=(A=X==null?void 0:X.data)==null?void 0:A.data)==null?void 0:H.data;ge&&P(ge)}catch(X){console.log("error",X)}},gt=(v,g)=>{var P,A,H;switch(console.log(`[Event] ${v}`,g),v){case"conversations:load_more":{c.length<S&&!F&&We(C+1);break}case"retrieve-sql-data:pagingation_click":const{page:X,pageSize:ge,fetchUrl:te,source:he,replacePredataFunction:Se}=g;Ln({url:`${r}${te}`,replacePredataFunction:Se,params:{pageNo:X,pageSize:ge,convertedFilePath:he,stream:!1}});break;case"web_referenceFile_title:click":if(!((P=g==null?void 0:g.data)!=null&&P.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(g.data.link,"_blank");break;case"conversation:item_click":mn(g);break;case"files:finished_animation_complete":Q([]);break;case"conversation:create":Ft();break;case"conversation:new_assistant_change":j(g.assistantId);break;case"conversations:rename_icon_clicked":w({data:g,async_renameConversation:z=>Tn(g.sessionId,z),fn_renameItemInList:z=>_n(g.sessionId,z)}),f(!0);break;case"conversations:delete_icon_clicked":w({data:g,async_deleteConversation:()=>bt(g.sessionId),async_refreshConversationList:Bn,fn_removeItemFromList:()=>fn(g.sessionId)}),h(!0);break;case"sender:send":at(g,g.clearFn);break;case"sender:send_recommandQuestion":{const z=((g==null?void 0:g.content)??"").toString();if(!z)break;at({content:z},()=>{});break}case"chatbox:follow_up_question_click":{const z=((g==null?void 0:g.question)??(g==null?void 0:g.content)??"").toString();if(!z)break;at({content:z},()=>{});break}case"sender:action_history":K(!0);break;case"sender:stop":qe.current=!0,G&&(G.abort(),G=null),pe&&(pe(),pe=null),q(z=>({...z,display:"ready",sender:"ready"})),Q([]),Et==null||Et();break;case"sender:clear":(A=g.clearFn)==null||A.call(g);break;case"sender:configChange":g&&g.all&&Je(g.all);break;case"action_copy:click":g&&Nc(g.content,g.event);break;case"chatbox:copy":{const z=(g==null?void 0:g.content)||"";if(!z)break;const ye=async Ne=>{try{return await navigator.clipboard.writeText(Ne),Re.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},fe=Ne=>{const le=document.createElement("textarea");le.value=Ne,le.style.position="fixed",le.style.opacity="0",document.body.appendChild(le),le.focus(),le.select();try{document.execCommand("copy"),Re.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{Re.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(le)};ye(z).then(Ne=>{Ne||fe(z)});break}case"chatbox:repeat":console.log(g,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),_e(g);break;case"action_thumbsup":tt(g);break;case"chatbox:like":tt({queryId:g==null?void 0:g.queryId,restult:g==null?void 0:g.result});break;case"action_thumbsdown":g.restult===0?nr({url:r,token:t,CSRFToken:a},{queryId:g.queryId},()=>{se(g.queryId,null)}):(mt(g),It(!0));break;case"chatbox:dislike":(g==null?void 0:g.result)===0?nr({url:r,token:t,CSRFToken:a},{queryId:g.queryId},()=>{se(g.queryId,null)}):(mt({queryId:g==null?void 0:g.queryId}),It(!0));break;case"action_retrive_tag":i==null||i("action_retrive_tag",g);break;case"referenceFile_view":i==null||i("referenceFile_view",g);break;case"referenceFile_question":console.log(g,"zhezhhzhzh"),i==null||i("referenceFile_question",g);break;case"referenceFile_download":i==null||i("referenceFile_download",g);break;case"retrive_tag:click":i==null||i("retrive_tag:click",g);break;case"fileManager:change":{const z=Array.isArray(g==null?void 0:g.uploadedFiles)?g.uploadedFiles:[];R(z),typeof(g==null?void 0:g.setUploadedFiles)=="function"&&(ve.current=g.setUploadedFiles,me.current=g.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",g);const z=(H=g==null?void 0:g.file)==null?void 0:H.uid;if(!z){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",g);break}const ye=[...ce.messages||[]].reverse().find(Ne=>Ne.istype==="user"),fe=ye==null?void 0:ye.queryId;Mc({url:r,token:t,CSRFToken:a},{uid:z,queryId:fe},(Ne,le)=>{if(Ne){if(Re.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),le&&Array.isArray(le.data&&le.data.data)){const He=le.data.data.map(ue=>{var $e;const de=ue.name||ue.fileName||"";return{file:{name:de,size:Number(($e=ue.size)==null?void 0:$e.replace("MB",""))*1024*1024||0,type:ue.type},type:So(de),status:"uploaded",url:ue.filePath,convertedFilePath:ue.convertedFilePath,uid:ue.uid,preview:ue.type==="image"?ue.filePath:void 0}});Ce({uploadedFiles:He})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",le),Re.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:i==null||i(v,g)}},Ot=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:$(Ii,{size:16}),enabled:!0,component:$(Fc,{data:c,assistantList:M,activedItem:E||"",hasMore:c.length<S,loadingMore:F,sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:gt,styles:u.theme})}],Qt=Be.useMemo(()=>()=>$(jc,{eventsEmit:gt,assistantList:M,styles:u,selectedId:xe,onSelectAssistant:we}),[xe]),qn={...Be.useMemo(()=>({AiChatBox:(v,g)=>{var he,Se;const P=g===(((he=ce==null?void 0:ce.messages)==null?void 0:he.length)||0)-1;let A="ready";if(P)if(v.status!==void 0)switch(v.status){case 0:A="thinking";break;case 1:A="processing";break;case 2:A="ready";break;case 3:A="error";break;default:A=L.display}else A=L.display;let H=[];if(Array.isArray(T))H=T;else if(typeof T=="string")try{H=JSON.parse(T)||[]}catch{H=[]}const X=(()=>{const z=v==null?void 0:v.reference;if(!z)return"[]";if(typeof z=="string")try{return JSON.parse(z),z}catch{return"[]"}try{return JSON.stringify(z)}catch{return"[]"}})(),ge=(()=>{const z=v==null?void 0:v.webReference;if(!z)return"[]";if(typeof z=="string")try{return JSON.parse(z),z}catch{return"[]"}try{return JSON.stringify(z)}catch{return"[]"}})(),te=(()=>{const z=v==null?void 0:v.graphReference;if(!z)return"[]";if(typeof z=="string")try{return JSON.parse(z),z}catch{return"[]"}try{return JSON.stringify(z)}catch{return"[]"}})();return $(Gr,{...v,reference:X,webReference:ge,graphReference:te,contentType:"stream",displayStatus:A,eventsEmit:gt,isLast:P&&(v==null?void 0:v.istype)==="ai",followUpQuestions:P&&(v==null?void 0:v.istype)==="ai"?H:[],defaultAnswer:((Se=ce==null?void 0:ce.searchConfigDTO)==null?void 0:Se.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:nt,styles:u},`${(v==null?void 0:v.queryId)||(v==null?void 0:v.id)||g}-${(v==null?void 0:v.istype)||"unknown"}`)},LogoBox:v=>v&&v.LogoBox===null?null:v&&typeof v.LogoBox=="function"?$(v.LogoBox,{}):$("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>$(nu,{}),DisplayError:()=>$(ou,{}),AppError:()=>$(ru,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>$(gi,{}),UserChatBox:(v,g)=>$(Gr,{...v,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:gt,styles:u,fileManagerData:ie},`${(v==null?void 0:v.queryId)||(v==null?void 0:v.id)||g}-user`),WelcomeComponent:Qt}),[Qt,ce,L.display,gt,u,nt,ie]),...s.CustomComponents||{}};return je(()=>{oe(v=>{const g=Array.isArray(v.switchs)?v.switchs.map(P=>P.name==="reasoning"?{...P,enabled:ut}:P):[];return{...v,switchs:g}})},[ut]),Y(Ea,{children:[$(tu,{open:U,onCancel:()=>K(!1),files:ie.uploadedFiles,currentFiles:ee,onUpload:pn,onRemoveFile:Rn,styles:u,eventsEmit:gt}),$(e,{...s,status:L,chatData:ce,sidebar:Ot,recommandQuestions:[],eventsEmit:gt,styles:u,senderConfig:J,fileUploadStatus:ae,CustomComponents:qn,activeSessionId:E}),$(hi,{open:$t,feedBackList:At,setOpen:It,handleConfirm:zn}),$(su,{isModalOpen:d,handleOk:Nt,handleCancel:()=>Nt("close_rename"),data:(x==null?void 0:x.data)||{}}),$(lu,{isModalOpen:m,handleOk:Nt,handleCancel:()=>Nt("close_remove"),data:(x==null?void 0:x.data)||{}})]})}}export{wu as default};
|