-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathreport_template_dev.html
420 lines (410 loc) · 919 KB
/
report_template_dev.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trivy Report</title>
</head>
<body>
<div id="root"></div>
<script>
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ant-btn{border:none;margin-right:8px}.ant-space-item:last-child .ant-btn{margin-right:0}.ant-divider-horizontal{margin:10px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
var d2=Object.defineProperty;var f2=(e,t,n)=>t in e?d2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dt=(e,t,n)=>f2(e,typeof t!="symbol"?t+"":t,n);function TS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var p2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var MS={exports:{}},rd={},kS={exports:{}},Rt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.ƒ
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ts=Symbol.for("react.element"),m2=Symbol.for("react.portal"),v2=Symbol.for("react.fragment"),g2=Symbol.for("react.strict_mode"),h2=Symbol.for("react.profiler"),y2=Symbol.for("react.provider"),b2=Symbol.for("react.context"),S2=Symbol.for("react.forward_ref"),C2=Symbol.for("react.suspense"),x2=Symbol.for("react.memo"),w2=Symbol.for("react.lazy"),zh=Symbol.iterator;function E2(e){return e===null||typeof e!="object"?null:(e=zh&&e[zh]||e["@@iterator"],typeof e=="function"?e:null)}var DS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_S=Object.assign,LS={};function ll(e,t,n){this.props=e,this.context=t,this.refs=LS,this.updater=n||DS}ll.prototype.isReactComponent={};ll.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ll.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zS(){}zS.prototype=ll.prototype;function Tv(e,t,n){this.props=e,this.context=t,this.refs=LS,this.updater=n||DS}var Mv=Tv.prototype=new zS;Mv.constructor=Tv;_S(Mv,ll.prototype);Mv.isPureReactComponent=!0;var jh=Array.isArray,jS=Object.prototype.hasOwnProperty,kv={current:null},FS={key:!0,ref:!0,__self:!0,__source:!0};function AS(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)jS.call(t,r)&&!FS.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ts,type:e,key:i,ref:a,props:o,_owner:kv.current}}function $2(e,t){return{$$typeof:Ts,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ts}function O2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fh=/\/+/g;function lf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O2(""+e.key):t.toString(36)}function jc(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ts:case m2:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+lf(a,0):r,jh(o)?(n="",e!=null&&(n=e.replace(Fh,"$&/")+"/"),jc(o,t,n,"",function(u){return u})):o!=null&&(Dv(o)&&(o=$2(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Fh,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",jh(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+lf(i,l);a+=jc(i,t,n,s,o)}else if(s=E2(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+lf(i,l++),a+=jc(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function tc(e,t,n){if(e==null)return e;var r=[],o=0;return jc(e,r,"","",function(i){return t.call(n,i,o++)}),r}function I2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Zn={current:null},Fc={transition:null},R2={ReactCurrentDispatcher:Zn,ReactCurrentBatchConfig:Fc,ReactCurrentOwner:kv};Rt.Children={map:tc,forEach:function(e,t,n){tc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tc(e,function(){t++}),t},toArray:function(e){return tc(e,function(t){return t})||[]},only:function(e){if(!Dv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Rt.Component=ll;Rt.Fragment=v2;Rt.Profiler=h2;Rt.PureComponent=Tv;Rt.StrictMode=g2;Rt.Suspense=C2;Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R2;Rt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_S({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=kv.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)jS.call(t,s)&&!FS.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ts,type:e.type,key:o,ref:i,props:r,_owner:a}};Rt.createContext=function(e){return e={$$typeof:b2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:y2,_context:e},e.Consumer=e};Rt.createElement=AS;Rt.createFactory=function(e){var t=AS.bind(null,e);return t.type=e,t};Rt.createRef=function(){return{current:null}};Rt.forwardRef=function(e){return{$$typeof:S2,render:e}};Rt.isValidElement=Dv;Rt.lazy=function(e){return{$$typeof:w2,_payload:{_status:-1,_result:e},_init:I2}};Rt.memo=function(e,t){return{$$typeof:x2,type:e,compare:t===void 0?null:t}};Rt.startTransition=function(e){var t=Fc.transition;Fc.transition={};try{e()}finally{Fc.transition=t}};Rt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Rt.useCallback=function(e,t){return Zn.current.useCallback(e,t)};Rt.useContext=function(e){return Zn.current.useContext(e)};Rt.useDebugValue=function(){};Rt.useDeferredValue=function(e){return Zn.current.useDeferredValue(e)};Rt.useEffect=function(e,t){return Zn.current.useEffect(e,t)};Rt.useId=function(){return Zn.current.useId()};Rt.useImperativeHandle=function(e,t,n){return Zn.current.useImperativeHandle(e,t,n)};Rt.useInsertionEffect=function(e,t){return Zn.current.useInsertionEffect(e,t)};Rt.useLayoutEffect=function(e,t){return Zn.current.useLayoutEffect(e,t)};Rt.useMemo=function(e,t){return Zn.current.useMemo(e,t)};Rt.useReducer=function(e,t,n){return Zn.current.useReducer(e,t,n)};Rt.useRef=function(e){return Zn.current.useRef(e)};Rt.useState=function(e){return Zn.current.useState(e)};Rt.useSyncExternalStore=function(e,t,n){return Zn.current.useSyncExternalStore(e,t,n)};Rt.useTransition=function(){return Zn.current.useTransition()};Rt.version="18.2.0";kS.exports=Rt;var c=kS.exports;const ce=al(c),Ms=TS({__proto__:null,default:ce},[c]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var P2=c,N2=Symbol.for("react.element"),T2=Symbol.for("react.fragment"),M2=Object.prototype.hasOwnProperty,k2=P2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D2={key:!0,ref:!0,__self:!0,__source:!0};function BS(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)M2.call(t,r)&&!D2.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:N2,type:e,key:i,ref:a,props:o,_owner:k2.current}}rd.Fragment=T2;rd.jsx=BS;rd.jsxs=BS;MS.exports=rd;var le=MS.exports,Rp={},HS={exports:{}},Er={},VS={exports:{}},KS={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(P,z){var j=P.length;P.push(z);e:for(;0<j;){var F=j-1>>>1,L=P[F];if(0<o(L,z))P[F]=z,P[j]=L,j=F;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var z=P[0],j=P.pop();if(j!==z){P[0]=j;e:for(var F=0,L=P.length,A=L>>>1;F<A;){var G=2*(F+1)-1,H=P[G],V=G+1,J=P[V];if(0>o(H,j))V<L&&0>o(J,H)?(P[F]=J,P[V]=j,F=V):(P[F]=H,P[G]=j,F=G);else if(V<L&&0>o(J,j))P[F]=J,P[V]=j,F=V;else break e}}return z}function o(P,z){var j=P.sortIndex-z.sortIndex;return j!==0?j:P.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],d=1,f=null,p=3,m=!1,g=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(P){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=P)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function C(P){if(y=!1,S(P),!g)if(n(s)!==null)g=!0,D($);else{var z=n(u);z!==null&&N(C,z.startTime-P)}}function $(P,z){g=!1,y&&(y=!1,v(w),w=-1),m=!0;var j=p;try{for(S(z),f=n(s);f!==null&&(!(f.expirationTime>z)||P&&!R());){var F=f.callback;if(typeof F=="function"){f.callback=null,p=f.priorityLevel;var L=F(f.expirationTime<=z);z=e.unstable_now(),typeof L=="function"?f.callback=L:f===n(s)&&r(s),S(z)}else r(s);f=n(s)}if(f!==null)var A=!0;else{var G=n(u);G!==null&&N(C,G.startTime-z),A=!1}return A}finally{f=null,p=j,m=!1}}var O=!1,E=null,w=-1,x=5,I=-1;function R(){return!(e.unstable_now()-I<x)}function T(){if(E!==null){var P=e.unstable_now();I=P;var z=!0;try{z=E(!0,P)}finally{z?M():(O=!1,E=null)}}else O=!1}var M;if(typeof h=="function")M=function(){h(T)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,_=k.port2;k.port1.onmessage=T,M=function(){_.postMessage(null)}}else M=function(){b(T,0)};function D(P){E=P,O||(O=!0,M())}function N(P,z){w=b(function(){P(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,D($))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(P){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var j=p;p=z;try{return P()}finally{p=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,z){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var j=p;p=P;try{return z()}finally{p=j}},e.unstable_scheduleCallback=function(P,z,j){var F=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?F+j:F):j=F,P){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=j+L,P={id:d++,callback:z,priorityLevel:P,startTime:j,expirationTime:L,sortIndex:-1},j>F?(P.sortIndex=j,t(u,P),n(s)===null&&P===n(u)&&(y?(v(w),w=-1):y=!0,N(C,j-F))):(P.sortIndex=L,t(s,P),g||m||(g=!0,D($))),P},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(P){var z=p;return function(){var j=p;p=z;try{return P.apply(this,arguments)}finally{p=j}}}})(KS);VS.exports=KS;var _2=VS.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var WS=c,Cr=_2;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var US=new Set,os={};function qi(e,t){Ha(e,t),Ha(e+"Capture",t)}function Ha(e,t){for(os[e]=t,e=0;e<t.length;e++)US.add(t[e])}var ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pp=Object.prototype.hasOwnProperty,L2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ah={},Bh={};function z2(e){return Pp.call(Bh,e)?!0:Pp.call(Ah,e)?!1:L2.test(e)?Bh[e]=!0:(Ah[e]=!0,!1)}function j2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F2(e,t,n,r){if(t===null||typeof t>"u"||j2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function er(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Bn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bn[e]=new er(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bn[t]=new er(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bn[e]=new er(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bn[e]=new er(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Bn[e]=new er(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bn[e]=new er(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bn[e]=new er(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bn[e]=new er(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bn[e]=new er(e,5,!1,e.toLowerCase(),null,!1,!1)});var _v=/[\-:]([a-z])/g;function Lv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_v,Lv);Bn[t]=new er(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_v,Lv);Bn[t]=new er(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_v,Lv);Bn[t]=new er(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Bn[e]=new er(e,1,!1,e.toLowerCase(),null,!1,!1)});Bn.xlinkHref=new er("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Bn[e]=new er(e,1,!1,e.toLowerCase(),null,!0,!0)});function zv(e,t,n,r){var o=Bn.hasOwnProperty(t)?Bn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(F2(t,n,o,r)&&(n=null),r||o===null?z2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ao=WS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nc=Symbol.for("react.element"),va=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),jv=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),qS=Symbol.for("react.provider"),GS=Symbol.for("react.context"),Fv=Symbol.for("react.forward_ref"),Tp=Symbol.for("react.suspense"),Mp=Symbol.for("react.suspense_list"),Av=Symbol.for("react.memo"),qo=Symbol.for("react.lazy"),XS=Symbol.for("react.offscreen"),Hh=Symbol.iterator;function hl(e){return e===null||typeof e!="object"?null:(e=Hh&&e[Hh]||e["@@iterator"],typeof e=="function"?e:null)}var en=Object.assign,sf;function Ml(e){if(sf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sf=t&&t[1]||""}return`
`+sf+e}var cf=!1;function uf(e,t){if(!e||cf)return"";cf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{cf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ml(e):""}function A2(e){switch(e.tag){case 5:return Ml(e.type);case 16:return Ml("Lazy");case 13:return Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 2:case 15:return e=uf(e.type,!1),e;case 11:return e=uf(e.type.render,!1),e;case 1:return e=uf(e.type,!0),e;default:return""}}function kp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ga:return"Fragment";case va:return"Portal";case Np:return"Profiler";case jv:return"StrictMode";case Tp:return"Suspense";case Mp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case GS:return(e.displayName||"Context")+".Consumer";case qS:return(e._context.displayName||"Context")+".Provider";case Fv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Av:return t=e.displayName||null,t!==null?t:kp(e.type)||"Memo";case qo:t=e._payload,e=e._init;try{return kp(e(t))}catch{}}return null}function B2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kp(t);case 8:return t===jv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function H2(e){var t=YS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rc(e){e._valueTracker||(e._valueTracker=H2(e))}function QS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=YS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Dp(e,t){var n=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=di(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JS(e,t){t=t.checked,t!=null&&zv(e,"checked",t,!1)}function _p(e,t){JS(e,t);var n=di(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lp(e,t.type,di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lp(e,t,n){(t!=="number"||lu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kl=Array.isArray;function Na(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+di(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function zp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Pe(91));return en({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Pe(92));if(kl(n)){if(1<n.length)throw Error(Pe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:di(n)}}function ZS(e,t){var n=di(t.value),r=di(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Uh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function e1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?e1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oc,t1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(oc=oc||document.createElement("div"),oc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function is(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Al={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},V2=["Webkit","ms","Moz","O"];Object.keys(Al).forEach(function(e){V2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Al[t]=Al[e]})});function n1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Al.hasOwnProperty(e)&&Al[e]?(""+t).trim():t+"px"}function r1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=n1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var K2=en({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fp(e,t){if(t){if(K2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function Ap(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bp=null;function Bv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hp=null,Ta=null,Ma=null;function qh(e){if(e=_s(e)){if(typeof Hp!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=sd(t),Hp(e.stateNode,e.type,t))}}function o1(e){Ta?Ma?Ma.push(e):Ma=[e]:Ta=e}function i1(){if(Ta){var e=Ta,t=Ma;if(Ma=Ta=null,qh(e),t)for(e=0;e<t.length;e++)qh(t[e])}}function a1(e,t){return e(t)}function l1(){}var df=!1;function s1(e,t,n){if(df)return e(t,n);df=!0;try{return a1(e,t,n)}finally{df=!1,(Ta!==null||Ma!==null)&&(l1(),i1())}}function as(e,t){var n=e.stateNode;if(n===null)return null;var r=sd(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Pe(231,t,typeof n));return n}var Vp=!1;if(ko)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){Vp=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{Vp=!1}function W2(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bl=!1,su=null,cu=!1,Kp=null,U2={onError:function(e){Bl=!0,su=e}};function q2(e,t,n,r,o,i,a,l,s){Bl=!1,su=null,W2.apply(U2,arguments)}function G2(e,t,n,r,o,i,a,l,s){if(q2.apply(this,arguments),Bl){if(Bl){var u=su;Bl=!1,su=null}else throw Error(Pe(198));cu||(cu=!0,Kp=u)}}function Gi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gh(e){if(Gi(e)!==e)throw Error(Pe(188))}function X2(e){var t=e.alternate;if(!t){if(t=Gi(e),t===null)throw Error(Pe(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Gh(o),e;if(i===r)return Gh(o),t;i=i.sibling}throw Error(Pe(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Pe(189))}}if(n.alternate!==r)throw Error(Pe(190))}if(n.tag!==3)throw Error(Pe(188));return n.stateNode.current===n?e:t}function u1(e){return e=X2(e),e!==null?d1(e):null}function d1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=d1(e);if(t!==null)return t;e=e.sibling}return null}var f1=Cr.unstable_scheduleCallback,Xh=Cr.unstable_cancelCallback,Y2=Cr.unstable_shouldYield,Q2=Cr.unstable_requestPaint,sn=Cr.unstable_now,J2=Cr.unstable_getCurrentPriorityLevel,Hv=Cr.unstable_ImmediatePriority,p1=Cr.unstable_UserBlockingPriority,uu=Cr.unstable_NormalPriority,Z2=Cr.unstable_LowPriority,m1=Cr.unstable_IdlePriority,od=null,vo=null;function eO(e){if(vo&&typeof vo.onCommitFiberRoot=="function")try{vo.onCommitFiberRoot(od,e,void 0,(e.current.flags&128)===128)}catch{}}var Zr=Math.clz32?Math.clz32:rO,tO=Math.log,nO=Math.LN2;function rO(e){return e>>>=0,e===0?32:31-(tO(e)/nO|0)|0}var ic=64,ac=4194304;function Dl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function du(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Dl(l):(i&=a,i!==0&&(r=Dl(i)))}else a=n&~o,a!==0?r=Dl(a):i!==0&&(r=Dl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Zr(t),o=1<<n,r|=e[n],t&=~o;return r}function oO(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iO(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Zr(i),l=1<<a,s=o[a];s===-1?(!(l&n)||l&r)&&(o[a]=oO(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Wp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function v1(){var e=ic;return ic<<=1,!(ic&4194240)&&(ic=64),e}function ff(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zr(t),e[t]=n}function aO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Zr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Vv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ft=0;function g1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Kv,y1,b1,S1,Up=!1,lc=[],ri=null,oi=null,ii=null,ls=new Map,ss=new Map,Yo=[],lO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":oi=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ss.delete(t.pointerId)}}function bl(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_s(t),t!==null&&Kv(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function sO(e,t,n,r,o){switch(t){case"focusin":return ri=bl(ri,e,t,n,r,o),!0;case"dragenter":return oi=bl(oi,e,t,n,r,o),!0;case"mouseover":return ii=bl(ii,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ls.set(i,bl(ls.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ss.set(i,bl(ss.get(i)||null,e,t,n,r,o)),!0}return!1}function C1(e){var t=Ri(e.target);if(t!==null){var n=Gi(t);if(n!==null){if(t=n.tag,t===13){if(t=c1(n),t!==null){e.blockedOn=t,S1(e.priority,function(){y1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bp=r,n.target.dispatchEvent(r),Bp=null}else return t=_s(n),t!==null&&Kv(t),e.blockedOn=n,!1;t.shift()}return!0}function Qh(e,t,n){Ac(e)&&n.delete(t)}function cO(){Up=!1,ri!==null&&Ac(ri)&&(ri=null),oi!==null&&Ac(oi)&&(oi=null),ii!==null&&Ac(ii)&&(ii=null),ls.forEach(Qh),ss.forEach(Qh)}function Sl(e,t){e.blockedOn===t&&(e.blockedOn=null,Up||(Up=!0,Cr.unstable_scheduleCallback(Cr.unstable_NormalPriority,cO)))}function cs(e){function t(o){return Sl(o,e)}if(0<lc.length){Sl(lc[0],e);for(var n=1;n<lc.length;n++){var r=lc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ri!==null&&Sl(ri,e),oi!==null&&Sl(oi,e),ii!==null&&Sl(ii,e),ls.forEach(t),ss.forEach(t),n=0;n<Yo.length;n++)r=Yo[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yo.length&&(n=Yo[0],n.blockedOn===null);)C1(n),n.blockedOn===null&&Yo.shift()}var ka=Ao.ReactCurrentBatchConfig,fu=!0;function uO(e,t,n,r){var o=Ft,i=ka.transition;ka.transition=null;try{Ft=1,Wv(e,t,n,r)}finally{Ft=o,ka.transition=i}}function dO(e,t,n,r){var o=Ft,i=ka.transition;ka.transition=null;try{Ft=4,Wv(e,t,n,r)}finally{Ft=o,ka.transition=i}}function Wv(e,t,n,r){if(fu){var o=qp(e,t,n,r);if(o===null)xf(e,t,r,pu,n),Yh(e,r);else if(sO(o,e,t,n,r))r.stopPropagation();else if(Yh(e,r),t&4&&-1<lO.indexOf(e)){for(;o!==null;){var i=_s(o);if(i!==null&&h1(i),i=qp(e,t,n,r),i===null&&xf(e,t,r,pu,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else xf(e,t,r,null,n)}}var pu=null;function qp(e,t,n,r){if(pu=null,e=Bv(r),e=Ri(e),e!==null)if(t=Gi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=c1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pu=e,null}function x1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(J2()){case Hv:return 1;case p1:return 4;case uu:case Z2:return 16;case m1:return 536870912;default:return 16}default:return 16}}var Jo=null,Uv=null,Bc=null;function w1(){if(Bc)return Bc;var e,t=Uv,n=t.length,r,o="value"in Jo?Jo.value:Jo.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Bc=o.slice(e,1<r?1-r:void 0)}function Hc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function sc(){return!0}function Jh(){return!1}function $r(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?sc:Jh,this.isPropagationStopped=Jh,this}return en(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=sc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sc)},persist:function(){},isPersistent:sc}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qv=$r(sl),Ds=en({},sl,{view:0,detail:0}),fO=$r(Ds),pf,mf,Cl,id=en({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cl&&(Cl&&e.type==="mousemove"?(pf=e.screenX-Cl.screenX,mf=e.screenY-Cl.screenY):mf=pf=0,Cl=e),pf)},movementY:function(e){return"movementY"in e?e.movementY:mf}}),Zh=$r(id),pO=en({},id,{dataTransfer:0}),mO=$r(pO),vO=en({},Ds,{relatedTarget:0}),vf=$r(vO),gO=en({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),hO=$r(gO),yO=en({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bO=$r(yO),SO=en({},sl,{data:0}),e0=$r(SO),CO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wO[e])?!!t[e]:!1}function Gv(){return EO}var $O=en({},Ds,{key:function(e){if(e.key){var t=CO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gv,charCode:function(e){return e.type==="keypress"?Hc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OO=$r($O),IO=en({},id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),t0=$r(IO),RO=en({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gv}),PO=$r(RO),NO=en({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),TO=$r(NO),MO=en({},id,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kO=$r(MO),DO=[9,13,27,32],Xv=ko&&"CompositionEvent"in window,Hl=null;ko&&"documentMode"in document&&(Hl=document.documentMode);var _O=ko&&"TextEvent"in window&&!Hl,E1=ko&&(!Xv||Hl&&8<Hl&&11>=Hl),n0=" ",r0=!1;function $1(e,t){switch(e){case"keyup":return DO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function O1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function LO(e,t){switch(e){case"compositionend":return O1(t);case"keypress":return t.which!==32?null:(r0=!0,n0);case"textInput":return e=t.data,e===n0&&r0?null:e;default:return null}}function zO(e,t){if(ha)return e==="compositionend"||!Xv&&$1(e,t)?(e=w1(),Bc=Uv=Jo=null,ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return E1&&t.locale!=="ko"?null:t.data;default:return null}}var jO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function o0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jO[e.type]:t==="textarea"}function I1(e,t,n,r){o1(r),t=mu(t,"onChange"),0<t.length&&(n=new qv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vl=null,us=null;function FO(e){j1(e,0)}function ad(e){var t=Sa(e);if(QS(t))return e}function AO(e,t){if(e==="change")return t}var R1=!1;if(ko){var gf;if(ko){var hf="oninput"in document;if(!hf){var i0=document.createElement("div");i0.setAttribute("oninput","return;"),hf=typeof i0.oninput=="function"}gf=hf}else gf=!1;R1=gf&&(!document.documentMode||9<document.documentMode)}function a0(){Vl&&(Vl.detachEvent("onpropertychange",P1),us=Vl=null)}function P1(e){if(e.propertyName==="value"&&ad(us)){var t=[];I1(t,us,e,Bv(e)),s1(FO,t)}}function BO(e,t,n){e==="focusin"?(a0(),Vl=t,us=n,Vl.attachEvent("onpropertychange",P1)):e==="focusout"&&a0()}function HO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ad(us)}function VO(e,t){if(e==="click")return ad(t)}function KO(e,t){if(e==="input"||e==="change")return ad(t)}function WO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ro=typeof Object.is=="function"?Object.is:WO;function ds(e,t){if(ro(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Pp.call(t,o)||!ro(e[o],t[o]))return!1}return!0}function l0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function s0(e,t){var n=l0(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=l0(n)}}function N1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function T1(){for(var e=window,t=lu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lu(e.document)}return t}function Yv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function UO(e){var t=T1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&N1(n.ownerDocument.documentElement,n)){if(r!==null&&Yv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=s0(n,i);var a=s0(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qO=ko&&"documentMode"in document&&11>=document.documentMode,ya=null,Gp=null,Kl=null,Xp=!1;function c0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xp||ya==null||ya!==lu(r)||(r=ya,"selectionStart"in r&&Yv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kl&&ds(Kl,r)||(Kl=r,r=mu(Gp,"onSelect"),0<r.length&&(t=new qv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ya)))}function cc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ba={animationend:cc("Animation","AnimationEnd"),animationiteration:cc("Animation","AnimationIteration"),animationstart:cc("Animation","AnimationStart"),transitionend:cc("Transition","TransitionEnd")},yf={},M1={};ko&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function ld(e){if(yf[e])return yf[e];if(!ba[e])return e;var t=ba[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in M1)return yf[e]=t[n];return e}var k1=ld("animationend"),D1=ld("animationiteration"),_1=ld("animationstart"),L1=ld("transitionend"),z1=new Map,u0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function hi(e,t){z1.set(e,t),qi(t,[e])}for(var bf=0;bf<u0.length;bf++){var Sf=u0[bf],GO=Sf.toLowerCase(),XO=Sf[0].toUpperCase()+Sf.slice(1);hi(GO,"on"+XO)}hi(k1,"onAnimationEnd");hi(D1,"onAnimationIteration");hi(_1,"onAnimationStart");hi("dblclick","onDoubleClick");hi("focusin","onFocus");hi("focusout","onBlur");hi(L1,"onTransitionEnd");Ha("onMouseEnter",["mouseout","mouseover"]);Ha("onMouseLeave",["mouseout","mouseover"]);Ha("onPointerEnter",["pointerout","pointerover"]);Ha("onPointerLeave",["pointerout","pointerover"]);qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),YO=new Set("cancel close invalid load scroll toggle".split(" ").concat(_l));function d0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,G2(r,t,void 0,e),e.currentTarget=null}function j1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;d0(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;d0(o,l,u),i=s}}}if(cu)throw e=Kp,cu=!1,Kp=null,e}function Kt(e,t){var n=t[em];n===void 0&&(n=t[em]=new Set);var r=e+"__bubble";n.has(r)||(F1(t,e,2,!1),n.add(r))}function Cf(e,t,n){var r=0;t&&(r|=4),F1(n,e,r,t)}var uc="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[uc]){e[uc]=!0,US.forEach(function(n){n!=="selectionchange"&&(YO.has(n)||Cf(n,!1,e),Cf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uc]||(t[uc]=!0,Cf("selectionchange",!1,t))}}function F1(e,t,n,r){switch(x1(t)){case 1:var o=uO;break;case 4:o=dO;break;default:o=Wv}n=o.bind(null,t,n,e),o=void 0,!Vp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function xf(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=Ri(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}s1(function(){var u=i,d=Bv(n),f=[];e:{var p=z1.get(e);if(p!==void 0){var m=qv,g=e;switch(e){case"keypress":if(Hc(n)===0)break e;case"keydown":case"keyup":m=OO;break;case"focusin":g="focus",m=vf;break;case"focusout":g="blur",m=vf;break;case"beforeblur":case"afterblur":m=vf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Zh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=mO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=PO;break;case k1:case D1:case _1:m=hO;break;case L1:m=TO;break;case"scroll":m=fO;break;case"wheel":m=kO;break;case"copy":case"cut":case"paste":m=bO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=t0}var y=(t&4)!==0,b=!y&&e==="scroll",v=y?p!==null?p+"Capture":null:p;y=[];for(var h=u,S;h!==null;){S=h;var C=S.stateNode;if(S.tag===5&&C!==null&&(S=C,v!==null&&(C=as(h,v),C!=null&&y.push(ps(h,C,S)))),b)break;h=h.return}0<y.length&&(p=new m(p,g,null,n,d),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==Bp&&(g=n.relatedTarget||n.fromElement)&&(Ri(g)||g[Do]))break e;if((m||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=u,g=g?Ri(g):null,g!==null&&(b=Gi(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(y=Zh,C="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=t0,C="onPointerLeave",v="onPointerEnter",h="pointer"),b=m==null?p:Sa(m),S=g==null?p:Sa(g),p=new y(C,h+"leave",m,n,d),p.target=b,p.relatedTarget=S,C=null,Ri(d)===u&&(y=new y(v,h+"enter",g,n,d),y.target=S,y.relatedTarget=b,C=y),b=C,m&&g)t:{for(y=m,v=g,h=0,S=y;S;S=ta(S))h++;for(S=0,C=v;C;C=ta(C))S++;for(;0<h-S;)y=ta(y),h--;for(;0<S-h;)v=ta(v),S--;for(;h--;){if(y===v||v!==null&&y===v.alternate)break t;y=ta(y),v=ta(v)}y=null}else y=null;m!==null&&f0(f,p,m,y,!1),g!==null&&b!==null&&f0(f,b,g,y,!0)}}e:{if(p=u?Sa(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var $=AO;else if(o0(p))if(R1)$=KO;else{$=HO;var O=BO}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&($=VO);if($&&($=$(e,u))){I1(f,$,n,d);break e}O&&O(e,p,u),e==="focusout"&&(O=p._wrapperState)&&O.controlled&&p.type==="number"&&Lp(p,"number",p.value)}switch(O=u?Sa(u):window,e){case"focusin":(o0(O)||O.contentEditable==="true")&&(ya=O,Gp=u,Kl=null);break;case"focusout":Kl=Gp=ya=null;break;case"mousedown":Xp=!0;break;case"contextmenu":case"mouseup":case"dragend":Xp=!1,c0(f,n,d);break;case"selectionchange":if(qO)break;case"keydown":case"keyup":c0(f,n,d)}var E;if(Xv)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else ha?$1(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(E1&&n.locale!=="ko"&&(ha||w!=="onCompositionStart"?w==="onCompositionEnd"&&ha&&(E=w1()):(Jo=d,Uv="value"in Jo?Jo.value:Jo.textContent,ha=!0)),O=mu(u,w),0<O.length&&(w=new e0(w,e,null,n,d),f.push({event:w,listeners:O}),E?w.data=E:(E=O1(n),E!==null&&(w.data=E)))),(E=_O?LO(e,n):zO(e,n))&&(u=mu(u,"onBeforeInput"),0<u.length&&(d=new e0("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=E))}j1(f,t)})}function ps(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=as(e,n),i!=null&&r.unshift(ps(e,i,o)),i=as(e,t),i!=null&&r.push(ps(e,i,o))),e=e.return}return r}function ta(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function f0(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=as(n,i),s!=null&&a.unshift(ps(n,s,l))):o||(s=as(n,i),s!=null&&a.push(ps(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var QO=/\r\n?/g,JO=/\u0000|\uFFFD/g;function p0(e){return(typeof e=="string"?e:""+e).replace(QO,`
`).replace(JO,"")}function dc(e,t,n){if(t=p0(t),p0(e)!==t&&n)throw Error(Pe(425))}function vu(){}var Yp=null,Qp=null;function Jp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zp=typeof setTimeout=="function"?setTimeout:void 0,ZO=typeof clearTimeout=="function"?clearTimeout:void 0,m0=typeof Promise=="function"?Promise:void 0,eI=typeof queueMicrotask=="function"?queueMicrotask:typeof m0<"u"?function(e){return m0.resolve(null).then(e).catch(tI)}:Zp;function tI(e){setTimeout(function(){throw e})}function wf(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),cs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);cs(t)}function ai(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function v0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cl=Math.random().toString(36).slice(2),mo="__reactFiber$"+cl,ms="__reactProps$"+cl,Do="__reactContainer$"+cl,em="__reactEvents$"+cl,nI="__reactListeners$"+cl,rI="__reactHandles$"+cl;function Ri(e){var t=e[mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Do]||n[mo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=v0(e);e!==null;){if(n=e[mo])return n;e=v0(e)}return t}e=n,n=e.parentNode}return null}function _s(e){return e=e[mo]||e[Do],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Pe(33))}function sd(e){return e[ms]||null}var tm=[],Ca=-1;function yi(e){return{current:e}}function Wt(e){0>Ca||(e.current=tm[Ca],tm[Ca]=null,Ca--)}function Ht(e,t){Ca++,tm[Ca]=e.current,e.current=t}var fi={},Gn=yi(fi),ar=yi(!1),ji=fi;function Va(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lr(e){return e=e.childContextTypes,e!=null}function gu(){Wt(ar),Wt(Gn)}function g0(e,t,n){if(Gn.current!==fi)throw Error(Pe(168));Ht(Gn,t),Ht(ar,n)}function A1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Pe(108,B2(e)||"Unknown",o));return en({},n,r)}function hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,ji=Gn.current,Ht(Gn,e),Ht(ar,ar.current),!0}function h0(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=A1(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,Wt(ar),Wt(Gn),Ht(Gn,e)):Wt(ar),Ht(ar,n)}var Oo=null,cd=!1,Ef=!1;function B1(e){Oo===null?Oo=[e]:Oo.push(e)}function oI(e){cd=!0,B1(e)}function bi(){if(!Ef&&Oo!==null){Ef=!0;var e=0,t=Ft;try{var n=Oo;for(Ft=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Oo=null,cd=!1}catch(o){throw Oo!==null&&(Oo=Oo.slice(e+1)),f1(Hv,bi),o}finally{Ft=t,Ef=!1}}return null}var xa=[],wa=0,yu=null,bu=0,kr=[],Dr=0,Fi=null,Po=1,No="";function wi(e,t){xa[wa++]=bu,xa[wa++]=yu,yu=e,bu=t}function H1(e,t,n){kr[Dr++]=Po,kr[Dr++]=No,kr[Dr++]=Fi,Fi=e;var r=Po;e=No;var o=32-Zr(r)-1;r&=~(1<<o),n+=1;var i=32-Zr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Po=1<<32-Zr(t)+o|n<<o|r,No=i+e}else Po=1<<i|n<<o|r,No=e}function Qv(e){e.return!==null&&(wi(e,1),H1(e,1,0))}function Jv(e){for(;e===yu;)yu=xa[--wa],xa[wa]=null,bu=xa[--wa],xa[wa]=null;for(;e===Fi;)Fi=kr[--Dr],kr[Dr]=null,No=kr[--Dr],kr[Dr]=null,Po=kr[--Dr],kr[Dr]=null}var Sr=null,yr=null,Xt=!1,Jr=null;function V1(e,t){var n=_r(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function y0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Sr=e,yr=ai(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Sr=e,yr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fi!==null?{id:Po,overflow:No}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_r(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Sr=e,yr=null,!0):!1;default:return!1}}function nm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rm(e){if(Xt){var t=yr;if(t){var n=t;if(!y0(e,t)){if(nm(e))throw Error(Pe(418));t=ai(n.nextSibling);var r=Sr;t&&y0(e,t)?V1(r,n):(e.flags=e.flags&-4097|2,Xt=!1,Sr=e)}}else{if(nm(e))throw Error(Pe(418));e.flags=e.flags&-4097|2,Xt=!1,Sr=e}}}function b0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Sr=e}function fc(e){if(e!==Sr)return!1;if(!Xt)return b0(e),Xt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Jp(e.type,e.memoizedProps)),t&&(t=yr)){if(nm(e))throw K1(),Error(Pe(418));for(;t;)V1(e,t),t=ai(t.nextSibling)}if(b0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Pe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yr=ai(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yr=null}}else yr=Sr?ai(e.stateNode.nextSibling):null;return!0}function K1(){for(var e=yr;e;)e=ai(e.nextSibling)}function Ka(){yr=Sr=null,Xt=!1}function Zv(e){Jr===null?Jr=[e]:Jr.push(e)}var iI=Ao.ReactCurrentBatchConfig;function qr(e,t){if(e&&e.defaultProps){t=en({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Su=yi(null),Cu=null,Ea=null,eg=null;function tg(){eg=Ea=Cu=null}function ng(e){var t=Su.current;Wt(Su),e._currentValue=t}function om(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Da(e,t){Cu=e,eg=Ea=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ir=!0),e.firstContext=null)}function jr(e){var t=e._currentValue;if(eg!==e)if(e={context:e,memoizedValue:t,next:null},Ea===null){if(Cu===null)throw Error(Pe(308));Ea=e,Cu.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return t}var Pi=null;function rg(e){Pi===null?Pi=[e]:Pi.push(e)}function W1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,rg(t)):(n.next=o.next,o.next=n),t.interleaved=n,_o(e,r)}function _o(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Go=!1;function og(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Mt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_o(e,n)}return o=r.interleaved,o===null?(t.next=t,rg(r)):(t.next=o.next,o.next=t),r.interleaved=t,_o(e,n)}function Vc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vv(e,n)}}function S0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xu(e,t,n,r){var o=e.updateQueue;Go=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=o.baseState;a=0,d=u=s=null,l=i;do{var p=l.lane,m=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,y=l;switch(p=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(m,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(m,f,p):g,p==null)break e;f=en({},f,p);break e;case 2:Go=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else m={eventTime:m,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,s=f):d=d.next=m,a|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Bi|=a,e.lanes=a,e.memoizedState=f}}function C0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Pe(191,o));o.call(r)}}}var q1=new WS.Component().refs;function im(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:en({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ud={isMounted:function(e){return(e=e._reactInternals)?Gi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qn(),o=ci(e),i=Mo(r,o);i.payload=t,n!=null&&(i.callback=n),t=li(e,i,o),t!==null&&(eo(t,e,o,r),Vc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qn(),o=ci(e),i=Mo(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=li(e,i,o),t!==null&&(eo(t,e,o,r),Vc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qn(),r=ci(e),o=Mo(n,r);o.tag=2,t!=null&&(o.callback=t),t=li(e,o,r),t!==null&&(eo(t,e,r,n),Vc(t,e,r))}};function x0(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!ds(n,r)||!ds(o,i):!0}function G1(e,t,n){var r=!1,o=fi,i=t.contextType;return typeof i=="object"&&i!==null?i=jr(i):(o=lr(t)?ji:Gn.current,r=t.contextTypes,i=(r=r!=null)?Va(e,o):fi),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ud,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function w0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ud.enqueueReplaceState(t,t.state,null)}function am(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=q1,og(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=jr(i):(i=lr(t)?ji:Gn.current,o.context=Va(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(im(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ud.enqueueReplaceState(o,o.state,null),xu(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Pe(309));var r=n.stateNode}if(!r)throw Error(Pe(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;l===q1&&(l=o.refs={}),a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Pe(284));if(!n._owner)throw Error(Pe(290,e))}return e}function pc(e,t){throw e=Object.prototype.toString.call(t),Error(Pe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function E0(e){var t=e._init;return t(e._payload)}function X1(e){function t(v,h){if(e){var S=v.deletions;S===null?(v.deletions=[h],v.flags|=16):S.push(h)}}function n(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function r(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function o(v,h){return v=ui(v,h),v.index=0,v.sibling=null,v}function i(v,h,S){return v.index=S,e?(S=v.alternate,S!==null?(S=S.index,S<h?(v.flags|=2,h):S):(v.flags|=2,h)):(v.flags|=1048576,h)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,h,S,C){return h===null||h.tag!==6?(h=Tf(S,v.mode,C),h.return=v,h):(h=o(h,S),h.return=v,h)}function s(v,h,S,C){var $=S.type;return $===ga?d(v,h,S.props.children,C,S.key):h!==null&&(h.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===qo&&E0($)===h.type)?(C=o(h,S.props),C.ref=xl(v,h,S),C.return=v,C):(C=Xc(S.type,S.key,S.props,null,v.mode,C),C.ref=xl(v,h,S),C.return=v,C)}function u(v,h,S,C){return h===null||h.tag!==4||h.stateNode.containerInfo!==S.containerInfo||h.stateNode.implementation!==S.implementation?(h=Mf(S,v.mode,C),h.return=v,h):(h=o(h,S.children||[]),h.return=v,h)}function d(v,h,S,C,$){return h===null||h.tag!==7?(h=_i(S,v.mode,C,$),h.return=v,h):(h=o(h,S),h.return=v,h)}function f(v,h,S){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Tf(""+h,v.mode,S),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case nc:return S=Xc(h.type,h.key,h.props,null,v.mode,S),S.ref=xl(v,null,h),S.return=v,S;case va:return h=Mf(h,v.mode,S),h.return=v,h;case qo:var C=h._init;return f(v,C(h._payload),S)}if(kl(h)||hl(h))return h=_i(h,v.mode,S,null),h.return=v,h;pc(v,h)}return null}function p(v,h,S,C){var $=h!==null?h.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return $!==null?null:l(v,h,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case nc:return S.key===$?s(v,h,S,C):null;case va:return S.key===$?u(v,h,S,C):null;case qo:return $=S._init,p(v,h,$(S._payload),C)}if(kl(S)||hl(S))return $!==null?null:d(v,h,S,C,null);pc(v,S)}return null}function m(v,h,S,C,$){if(typeof C=="string"&&C!==""||typeof C=="number")return v=v.get(S)||null,l(h,v,""+C,$);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case nc:return v=v.get(C.key===null?S:C.key)||null,s(h,v,C,$);case va:return v=v.get(C.key===null?S:C.key)||null,u(h,v,C,$);case qo:var O=C._init;return m(v,h,S,O(C._payload),$)}if(kl(C)||hl(C))return v=v.get(S)||null,d(h,v,C,$,null);pc(h,C)}return null}function g(v,h,S,C){for(var $=null,O=null,E=h,w=h=0,x=null;E!==null&&w<S.length;w++){E.index>w?(x=E,E=null):x=E.sibling;var I=p(v,E,S[w],C);if(I===null){E===null&&(E=x);break}e&&E&&I.alternate===null&&t(v,E),h=i(I,h,w),O===null?$=I:O.sibling=I,O=I,E=x}if(w===S.length)return n(v,E),Xt&&wi(v,w),$;if(E===null){for(;w<S.length;w++)E=f(v,S[w],C),E!==null&&(h=i(E,h,w),O===null?$=E:O.sibling=E,O=E);return Xt&&wi(v,w),$}for(E=r(v,E);w<S.length;w++)x=m(E,v,w,S[w],C),x!==null&&(e&&x.alternate!==null&&E.delete(x.key===null?w:x.key),h=i(x,h,w),O===null?$=x:O.sibling=x,O=x);return e&&E.forEach(function(R){return t(v,R)}),Xt&&wi(v,w),$}function y(v,h,S,C){var $=hl(S);if(typeof $!="function")throw Error(Pe(150));if(S=$.call(S),S==null)throw Error(Pe(151));for(var O=$=null,E=h,w=h=0,x=null,I=S.next();E!==null&&!I.done;w++,I=S.next()){E.index>w?(x=E,E=null):x=E.sibling;var R=p(v,E,I.value,C);if(R===null){E===null&&(E=x);break}e&&E&&R.alternate===null&&t(v,E),h=i(R,h,w),O===null?$=R:O.sibling=R,O=R,E=x}if(I.done)return n(v,E),Xt&&wi(v,w),$;if(E===null){for(;!I.done;w++,I=S.next())I=f(v,I.value,C),I!==null&&(h=i(I,h,w),O===null?$=I:O.sibling=I,O=I);return Xt&&wi(v,w),$}for(E=r(v,E);!I.done;w++,I=S.next())I=m(E,v,w,I.value,C),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?w:I.key),h=i(I,h,w),O===null?$=I:O.sibling=I,O=I);return e&&E.forEach(function(T){return t(v,T)}),Xt&&wi(v,w),$}function b(v,h,S,C){if(typeof S=="object"&&S!==null&&S.type===ga&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case nc:e:{for(var $=S.key,O=h;O!==null;){if(O.key===$){if($=S.type,$===ga){if(O.tag===7){n(v,O.sibling),h=o(O,S.props.children),h.return=v,v=h;break e}}else if(O.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===qo&&E0($)===O.type){n(v,O.sibling),h=o(O,S.props),h.ref=xl(v,O,S),h.return=v,v=h;break e}n(v,O);break}else t(v,O);O=O.sibling}S.type===ga?(h=_i(S.props.children,v.mode,C,S.key),h.return=v,v=h):(C=Xc(S.type,S.key,S.props,null,v.mode,C),C.ref=xl(v,h,S),C.return=v,v=C)}return a(v);case va:e:{for(O=S.key;h!==null;){if(h.key===O)if(h.tag===4&&h.stateNode.containerInfo===S.containerInfo&&h.stateNode.implementation===S.implementation){n(v,h.sibling),h=o(h,S.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=Mf(S,v.mode,C),h.return=v,v=h}return a(v);case qo:return O=S._init,b(v,h,O(S._payload),C)}if(kl(S))return g(v,h,S,C);if(hl(S))return y(v,h,S,C);pc(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,S),h.return=v,v=h):(n(v,h),h=Tf(S,v.mode,C),h.return=v,v=h),a(v)):n(v,h)}return b}var Wa=X1(!0),Y1=X1(!1),Ls={},go=yi(Ls),vs=yi(Ls),gs=yi(Ls);function Ni(e){if(e===Ls)throw Error(Pe(174));return e}function ig(e,t){switch(Ht(gs,t),Ht(vs,e),Ht(go,Ls),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jp(t,e)}Wt(go),Ht(go,t)}function Ua(){Wt(go),Wt(vs),Wt(gs)}function Q1(e){Ni(gs.current);var t=Ni(go.current),n=jp(t,e.type);t!==n&&(Ht(vs,e),Ht(go,n))}function ag(e){vs.current===e&&(Wt(go),Wt(vs))}var Jt=yi(0);function wu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $f=[];function lg(){for(var e=0;e<$f.length;e++)$f[e]._workInProgressVersionPrimary=null;$f.length=0}var Kc=Ao.ReactCurrentDispatcher,Of=Ao.ReactCurrentBatchConfig,Ai=0,Zt=null,Sn=null,Nn=null,Eu=!1,Wl=!1,hs=0,aI=0;function Kn(){throw Error(Pe(321))}function sg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ro(e[n],t[n]))return!1;return!0}function cg(e,t,n,r,o,i){if(Ai=i,Zt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kc.current=e===null||e.memoizedState===null?uI:dI,e=n(r,o),Wl){i=0;do{if(Wl=!1,hs=0,25<=i)throw Error(Pe(301));i+=1,Nn=Sn=null,t.updateQueue=null,Kc.current=fI,e=n(r,o)}while(Wl)}if(Kc.current=$u,t=Sn!==null&&Sn.next!==null,Ai=0,Nn=Sn=Zt=null,Eu=!1,t)throw Error(Pe(300));return e}function ug(){var e=hs!==0;return hs=0,e}function po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nn===null?Zt.memoizedState=Nn=e:Nn=Nn.next=e,Nn}function Fr(){if(Sn===null){var e=Zt.alternate;e=e!==null?e.memoizedState:null}else e=Sn.next;var t=Nn===null?Zt.memoizedState:Nn.next;if(t!==null)Nn=t,Sn=e;else{if(e===null)throw Error(Pe(310));Sn=e,e={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},Nn===null?Zt.memoizedState=Nn=e:Nn=Nn.next=e}return Nn}function ys(e,t){return typeof t=="function"?t(e):t}function If(e){var t=Fr(),n=t.queue;if(n===null)throw Error(Pe(311));n.lastRenderedReducer=e;var r=Sn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var d=u.lane;if((Ai&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,a=r):s=s.next=f,Zt.lanes|=d,Bi|=d}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,ro(r,t.memoizedState)||(ir=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Zt.lanes|=i,Bi|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Rf(e){var t=Fr(),n=t.queue;if(n===null)throw Error(Pe(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ro(i,t.memoizedState)||(ir=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function J1(){}function Z1(e,t){var n=Zt,r=Fr(),o=t(),i=!ro(r.memoizedState,o);if(i&&(r.memoizedState=o,ir=!0),r=r.queue,dg(nC.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Nn!==null&&Nn.memoizedState.tag&1){if(n.flags|=2048,bs(9,tC.bind(null,n,r,o,t),void 0,null),Tn===null)throw Error(Pe(349));Ai&30||eC(n,t,o)}return o}function eC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Zt.updateQueue,t===null?(t={lastEffect:null,stores:null},Zt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tC(e,t,n,r){t.value=n,t.getSnapshot=r,rC(t)&&oC(e)}function nC(e,t,n){return n(function(){rC(t)&&oC(e)})}function rC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ro(e,n)}catch{return!0}}function oC(e){var t=_o(e,1);t!==null&&eo(t,e,1,-1)}function $0(e){var t=po();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ys,lastRenderedState:e},t.queue=e,e=e.dispatch=cI.bind(null,Zt,e),[t.memoizedState,e]}function bs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Zt.updateQueue,t===null?(t={lastEffect:null,stores:null},Zt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function iC(){return Fr().memoizedState}function Wc(e,t,n,r){var o=po();Zt.flags|=e,o.memoizedState=bs(1|t,n,void 0,r===void 0?null:r)}function dd(e,t,n,r){var o=Fr();r=r===void 0?null:r;var i=void 0;if(Sn!==null){var a=Sn.memoizedState;if(i=a.destroy,r!==null&&sg(r,a.deps)){o.memoizedState=bs(t,n,i,r);return}}Zt.flags|=e,o.memoizedState=bs(1|t,n,i,r)}function O0(e,t){return Wc(8390656,8,e,t)}function dg(e,t){return dd(2048,8,e,t)}function aC(e,t){return dd(4,2,e,t)}function lC(e,t){return dd(4,4,e,t)}function sC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cC(e,t,n){return n=n!=null?n.concat([e]):null,dd(4,4,sC.bind(null,t,e),n)}function fg(){}function uC(e,t){var n=Fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dC(e,t){var n=Fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fC(e,t,n){return Ai&21?(ro(n,t)||(n=v1(),Zt.lanes|=n,Bi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ir=!0),e.memoizedState=n)}function lI(e,t){var n=Ft;Ft=n!==0&&4>n?n:4,e(!0);var r=Of.transition;Of.transition={};try{e(!1),t()}finally{Ft=n,Of.transition=r}}function pC(){return Fr().memoizedState}function sI(e,t,n){var r=ci(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mC(e))vC(t,n);else if(n=W1(e,t,n,r),n!==null){var o=Qn();eo(n,e,r,o),gC(n,t,r)}}function cI(e,t,n){var r=ci(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mC(e))vC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ro(l,a)){var s=t.interleaved;s===null?(o.next=o,rg(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=W1(e,t,o,r),n!==null&&(o=Qn(),eo(n,e,r,o),gC(n,t,r))}}function mC(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function vC(e,t){Wl=Eu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vv(e,n)}}var $u={readContext:jr,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useInsertionEffect:Kn,useLayoutEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useMutableSource:Kn,useSyncExternalStore:Kn,useId:Kn,unstable_isNewReconciler:!1},uI={readContext:jr,useCallback:function(e,t){return po().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:O0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wc(4194308,4,sC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wc(4,2,e,t)},useMemo:function(e,t){var n=po();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=po();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sI.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=po();return e={current:e},t.memoizedState=e},useState:$0,useDebugValue:fg,useDeferredValue:function(e){return po().memoizedState=e},useTransition:function(){var e=$0(!1),t=e[0];return e=lI.bind(null,e[1]),po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,o=po();if(Xt){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),Tn===null)throw Error(Pe(349));Ai&30||eC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,O0(nC.bind(null,r,i,e),[e]),r.flags|=2048,bs(9,tC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=po(),t=Tn.identifierPrefix;if(Xt){var n=No,r=Po;n=(r&~(1<<32-Zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=aI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dI={readContext:jr,useCallback:uC,useContext:jr,useEffect:dg,useImperativeHandle:cC,useInsertionEffect:aC,useLayoutEffect:lC,useMemo:dC,useReducer:If,useRef:iC,useState:function(){return If(ys)},useDebugValue:fg,useDeferredValue:function(e){var t=Fr();return fC(t,Sn.memoizedState,e)},useTransition:function(){var e=If(ys)[0],t=Fr().memoizedState;return[e,t]},useMutableSource:J1,useSyncExternalStore:Z1,useId:pC,unstable_isNewReconciler:!1},fI={readContext:jr,useCallback:uC,useContext:jr,useEffect:dg,useImperativeHandle:cC,useInsertionEffect:aC,useLayoutEffect:lC,useMemo:dC,useReducer:Rf,useRef:iC,useState:function(){return Rf(ys)},useDebugValue:fg,useDeferredValue:function(e){var t=Fr();return Sn===null?t.memoizedState=e:fC(t,Sn.memoizedState,e)},useTransition:function(){var e=Rf(ys)[0],t=Fr().memoizedState;return[e,t]},useMutableSource:J1,useSyncExternalStore:Z1,useId:pC,unstable_isNewReconciler:!1};function qa(e,t){try{var n="",r=t;do n+=A2(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Pf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pI=typeof WeakMap=="function"?WeakMap:Map;function hC(e,t,n){n=Mo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iu||(Iu=!0,hm=r),lm(e,t)},n}function yC(e,t,n){n=Mo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){lm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){lm(e,t),typeof r!="function"&&(si===null?si=new Set([this]):si.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function I0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pI;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=II.bind(null,e,t,n),t.then(e,e))}function R0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function P0(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Mo(-1,1),t.tag=2,li(n,t,1))),n.lanes|=1),e)}var mI=Ao.ReactCurrentOwner,ir=!1;function Yn(e,t,n,r){t.child=e===null?Y1(t,null,n,r):Wa(t,e.child,n,r)}function N0(e,t,n,r,o){n=n.render;var i=t.ref;return Da(t,o),r=cg(e,t,n,r,i,o),n=ug(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lo(e,t,o)):(Xt&&n&&Qv(t),t.flags|=1,Yn(e,t,r,o),t.child)}function T0(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Sg(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bC(e,t,i,r,o)):(e=Xc(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(a,r)&&e.ref===t.ref)return Lo(e,t,o)}return t.flags|=1,e=ui(i,r),e.ref=t.ref,e.return=t,t.child=e}function bC(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ds(i,r)&&e.ref===t.ref)if(ir=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ir=!0);else return t.lanes=e.lanes,Lo(e,t,o)}return sm(e,t,n,r,o)}function SC(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(Oa,gr),gr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(Oa,gr),gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ht(Oa,gr),gr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ht(Oa,gr),gr|=r;return Yn(e,t,o,n),t.child}function CC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sm(e,t,n,r,o){var i=lr(n)?ji:Gn.current;return i=Va(t,i),Da(t,o),n=cg(e,t,n,r,i,o),r=ug(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lo(e,t,o)):(Xt&&r&&Qv(t),t.flags|=1,Yn(e,t,n,o),t.child)}function M0(e,t,n,r,o){if(lr(n)){var i=!0;hu(t)}else i=!1;if(Da(t,o),t.stateNode===null)Uc(e,t),G1(t,n,r),am(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=jr(u):(u=lr(n)?ji:Gn.current,u=Va(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&w0(t,a,r,u),Go=!1;var p=t.memoizedState;a.state=p,xu(t,r,a,o),s=t.memoizedState,l!==r||p!==s||ar.current||Go?(typeof d=="function"&&(im(t,n,d,r),s=t.memoizedState),(l=Go||x0(t,n,l,r,p,s,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,U1(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:qr(t.type,l),a.props=u,f=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=jr(s):(s=lr(n)?ji:Gn.current,s=Va(t,s));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||p!==s)&&w0(t,a,r,s),Go=!1,p=t.memoizedState,a.state=p,xu(t,r,a,o);var g=t.memoizedState;l!==f||p!==g||ar.current||Go?(typeof m=="function"&&(im(t,n,m,r),g=t.memoizedState),(u=Go||x0(t,n,u,r,p,g,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return cm(e,t,n,r,i,o)}function cm(e,t,n,r,o,i){CC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&h0(t,n,!1),Lo(e,t,i);r=t.stateNode,mI.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Wa(t,e.child,null,i),t.child=Wa(t,null,l,i)):Yn(e,t,l,i),t.memoizedState=r.state,o&&h0(t,n,!0),t.child}function xC(e){var t=e.stateNode;t.pendingContext?g0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&g0(e,t.context,!1),ig(e,t.containerInfo)}function k0(e,t,n,r,o){return Ka(),Zv(o),t.flags|=256,Yn(e,t,n,r),t.child}var um={dehydrated:null,treeContext:null,retryLane:0};function dm(e){return{baseLanes:e,cachePool:null,transitions:null}}function wC(e,t,n){var r=t.pendingProps,o=Jt.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ht(Jt,o&1),e===null)return rm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=md(a,r,0,null),e=_i(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=dm(n),t.memoizedState=um,e):pg(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return vI(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ui(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=ui(l,i):(i=_i(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?dm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=um,r}return i=e.child,e=i.sibling,r=ui(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function pg(e,t){return t=md({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mc(e,t,n,r){return r!==null&&Zv(r),Wa(t,e.child,null,n),e=pg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vI(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Pf(Error(Pe(422))),mc(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=md({mode:"visible",children:r.children},o,0,null),i=_i(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wa(t,e.child,null,a),t.child.memoizedState=dm(a),t.memoizedState=um,i);if(!(t.mode&1))return mc(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(Pe(419)),r=Pf(i,r,void 0),mc(e,t,a,r)}if(l=(a&e.childLanes)!==0,ir||l){if(r=Tn,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,_o(e,o),eo(r,e,o,-1))}return bg(),r=Pf(Error(Pe(421))),mc(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=RI.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yr=ai(o.nextSibling),Sr=t,Xt=!0,Jr=null,e!==null&&(kr[Dr++]=Po,kr[Dr++]=No,kr[Dr++]=Fi,Po=e.id,No=e.overflow,Fi=t),t=pg(t,r.children),t.flags|=4096,t)}function D0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),om(e.return,t,n)}function Nf(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function EC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Yn(e,t,r.children,n),r=Jt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&D0(e,n,t);else if(e.tag===19)D0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ht(Jt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&wu(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Nf(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&wu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Nf(t,!0,n,null,i);break;case"together":Nf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Uc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gI(e,t,n){switch(t.tag){case 3:xC(t),Ka();break;case 5:Q1(t);break;case 1:lr(t.type)&&hu(t);break;case 4:ig(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ht(Su,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ht(Jt,Jt.current&1),t.flags|=128,null):n&t.child.childLanes?wC(e,t,n):(Ht(Jt,Jt.current&1),e=Lo(e,t,n),e!==null?e.sibling:null);Ht(Jt,Jt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return EC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ht(Jt,Jt.current),r)break;return null;case 22:case 23:return t.lanes=0,SC(e,t,n)}return Lo(e,t,n)}var $C,fm,OC,IC;$C=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};fm=function(){};OC=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ni(go.current);var i=null;switch(n){case"input":o=Dp(e,o),r=Dp(e,r),i=[];break;case"select":o=en({},o,{value:void 0}),r=en({},r,{value:void 0}),i=[];break;case"textarea":o=zp(e,o),r=zp(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vu)}Fp(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(os.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(os.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Kt("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};IC=function(e,t,n,r){n!==r&&(t.flags|=4)};function wl(e,t){if(!Xt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hI(e,t,n){var r=t.pendingProps;switch(Jv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(t),null;case 1:return lr(t.type)&&gu(),Wn(t),null;case 3:return r=t.stateNode,Ua(),Wt(ar),Wt(Gn),lg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jr!==null&&(Sm(Jr),Jr=null))),fm(e,t),Wn(t),null;case 5:ag(t);var o=Ni(gs.current);if(n=t.type,e!==null&&t.stateNode!=null)OC(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Wn(t),null}if(e=Ni(go.current),fc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mo]=t,r[ms]=i,e=(t.mode&1)!==0,n){case"dialog":Kt("cancel",r),Kt("close",r);break;case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(o=0;o<_l.length;o++)Kt(_l[o],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"details":Kt("toggle",r);break;case"input":Vh(r,i),Kt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Kt("invalid",r);break;case"textarea":Wh(r,i),Kt("invalid",r)}Fp(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&dc(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&dc(r.textContent,l,e),o=["children",""+l]):os.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Kt("scroll",r)}switch(n){case"input":rc(r),Kh(r,i,!0);break;case"textarea":rc(r),Uh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=e1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mo]=t,e[ms]=r,$C(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ap(n,r),n){case"dialog":Kt("cancel",e),Kt("close",e),o=r;break;case"iframe":case"object":case"embed":Kt("load",e),o=r;break;case"video":case"audio":for(o=0;o<_l.length;o++)Kt(_l[o],e);o=r;break;case"source":Kt("error",e),o=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),o=r;break;case"details":Kt("toggle",e),o=r;break;case"input":Vh(e,r),o=Dp(e,r),Kt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=en({},r,{value:void 0}),Kt("invalid",e);break;case"textarea":Wh(e,r),o=zp(e,r),Kt("invalid",e);break;default:o=r}Fp(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?r1(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&t1(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&is(e,s):typeof s=="number"&&is(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(os.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Kt("scroll",e):s!=null&&zv(e,i,s,a))}switch(n){case"input":rc(e),Kh(e,r,!1);break;case"textarea":rc(e),Uh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+di(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Na(e,!!r.multiple,i,!1):r.defaultValue!=null&&Na(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Wn(t),null;case 6:if(e&&t.stateNode!=null)IC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Pe(166));if(n=Ni(gs.current),Ni(go.current),fc(t)){if(r=t.stateNode,n=t.memoizedProps,r[mo]=t,(i=r.nodeValue!==n)&&(e=Sr,e!==null))switch(e.tag){case 3:dc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&dc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mo]=t,t.stateNode=r}return Wn(t),null;case 13:if(Wt(Jt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xt&&yr!==null&&t.mode&1&&!(t.flags&128))K1(),Ka(),t.flags|=98560,i=!1;else if(i=fc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Pe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Pe(317));i[mo]=t}else Ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wn(t),i=!1}else Jr!==null&&(Sm(Jr),Jr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Jt.current&1?Cn===0&&(Cn=3):bg())),t.updateQueue!==null&&(t.flags|=4),Wn(t),null);case 4:return Ua(),fm(e,t),e===null&&fs(t.stateNode.containerInfo),Wn(t),null;case 10:return ng(t.type._context),Wn(t),null;case 17:return lr(t.type)&&gu(),Wn(t),null;case 19:if(Wt(Jt),i=t.memoizedState,i===null)return Wn(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)wl(i,!1);else{if(Cn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=wu(e),a!==null){for(t.flags|=128,wl(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ht(Jt,Jt.current&1|2),t.child}e=e.sibling}i.tail!==null&&sn()>Ga&&(t.flags|=128,r=!0,wl(i,!1),t.lanes=4194304)}else{if(!r)if(e=wu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Xt)return Wn(t),null}else 2*sn()-i.renderingStartTime>Ga&&n!==1073741824&&(t.flags|=128,r=!0,wl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=sn(),t.sibling=null,n=Jt.current,Ht(Jt,r?n&1|2:n&1),t):(Wn(t),null);case 22:case 23:return yg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gr&1073741824&&(Wn(t),t.subtreeFlags&6&&(t.flags|=8192)):Wn(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function yI(e,t){switch(Jv(t),t.tag){case 1:return lr(t.type)&&gu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ua(),Wt(ar),Wt(Gn),lg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ag(t),null;case 13:if(Wt(Jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wt(Jt),null;case 4:return Ua(),null;case 10:return ng(t.type._context),null;case 22:case 23:return yg(),null;case 24:return null;default:return null}}var vc=!1,qn=!1,bI=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function $a(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function pm(e,t,n){try{n()}catch(r){rn(e,t,r)}}var _0=!1;function SI(e,t){if(Yp=fu,e=T1(),Yv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++d===r&&(s=a),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qp={focusedElem:e,selectionRange:n},fu=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,b=g.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:qr(t.type,y),b);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(C){rn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return g=_0,_0=!1,g}function Ul(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&pm(t,n,i)}o=o.next}while(o!==r)}}function fd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function RC(e){var t=e.alternate;t!==null&&(e.alternate=null,RC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mo],delete t[ms],delete t[em],delete t[nI],delete t[rI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function PC(e){return e.tag===5||e.tag===3||e.tag===4}function L0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||PC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vu));else if(r!==4&&(e=e.child,e!==null))for(vm(e,t,n),e=e.sibling;e!==null;)vm(e,t,n),e=e.sibling}function gm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gm(e,t,n),e=e.sibling;e!==null;)gm(e,t,n),e=e.sibling}var jn=null,Gr=!1;function Vo(e,t,n){for(n=n.child;n!==null;)NC(e,t,n),n=n.sibling}function NC(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(od,n)}catch{}switch(n.tag){case 5:qn||$a(n,t);case 6:var r=jn,o=Gr;jn=null,Vo(e,t,n),jn=r,Gr=o,jn!==null&&(Gr?(e=jn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jn.removeChild(n.stateNode));break;case 18:jn!==null&&(Gr?(e=jn,n=n.stateNode,e.nodeType===8?wf(e.parentNode,n):e.nodeType===1&&wf(e,n),cs(e)):wf(jn,n.stateNode));break;case 4:r=jn,o=Gr,jn=n.stateNode.containerInfo,Gr=!0,Vo(e,t,n),jn=r,Gr=o;break;case 0:case 11:case 14:case 15:if(!qn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&pm(n,t,a),o=o.next}while(o!==r)}Vo(e,t,n);break;case 1:if(!qn&&($a(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){rn(n,t,l)}Vo(e,t,n);break;case 21:Vo(e,t,n);break;case 22:n.mode&1?(qn=(r=qn)||n.memoizedState!==null,Vo(e,t,n),qn=r):Vo(e,t,n);break;default:Vo(e,t,n)}}function z0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bI),t.forEach(function(r){var o=PI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:jn=l.stateNode,Gr=!1;break e;case 3:jn=l.stateNode.containerInfo,Gr=!0;break e;case 4:jn=l.stateNode.containerInfo,Gr=!0;break e}l=l.return}if(jn===null)throw Error(Pe(160));NC(i,a,o),jn=null,Gr=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){rn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)TC(t,e),t=t.sibling}function TC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wr(t,e),uo(e),r&4){try{Ul(3,e,e.return),fd(3,e)}catch(y){rn(e,e.return,y)}try{Ul(5,e,e.return)}catch(y){rn(e,e.return,y)}}break;case 1:Wr(t,e),uo(e),r&512&&n!==null&&$a(n,n.return);break;case 5:if(Wr(t,e),uo(e),r&512&&n!==null&&$a(n,n.return),e.flags&32){var o=e.stateNode;try{is(o,"")}catch(y){rn(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&JS(o,i),Ap(l,a);var u=Ap(l,i);for(a=0;a<s.length;a+=2){var d=s[a],f=s[a+1];d==="style"?r1(o,f):d==="dangerouslySetInnerHTML"?t1(o,f):d==="children"?is(o,f):zv(o,d,f,u)}switch(l){case"input":_p(o,i);break;case"textarea":ZS(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Na(o,!!i.multiple,m,!1):p!==!!i.multiple&&(i.defaultValue!=null?Na(o,!!i.multiple,i.defaultValue,!0):Na(o,!!i.multiple,i.multiple?[]:"",!1))}o[ms]=i}catch(y){rn(e,e.return,y)}}break;case 6:if(Wr(t,e),uo(e),r&4){if(e.stateNode===null)throw Error(Pe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){rn(e,e.return,y)}}break;case 3:if(Wr(t,e),uo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cs(t.containerInfo)}catch(y){rn(e,e.return,y)}break;case 4:Wr(t,e),uo(e);break;case 13:Wr(t,e),uo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gg=sn())),r&4&&z0(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(qn=(u=qn)||d,Wr(t,e),qn=u):Wr(t,e),uo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Ge=e,d=e.child;d!==null;){for(f=Ge=d;Ge!==null;){switch(p=Ge,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ul(4,p,p.return);break;case 1:$a(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){rn(r,n,y)}}break;case 5:$a(p,p.return);break;case 22:if(p.memoizedState!==null){F0(f);continue}}m!==null?(m.return=p,Ge=m):F0(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,s=f.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=n1("display",a))}catch(y){rn(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){rn(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Wr(t,e),uo(e),r&4&&z0(e);break;case 21:break;default:Wr(t,e),uo(e)}}function uo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(PC(n)){var r=n;break e}n=n.return}throw Error(Pe(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(is(o,""),r.flags&=-33);var i=L0(e);gm(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=L0(e);vm(e,l,a);break;default:throw Error(Pe(161))}}catch(s){rn(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CI(e,t,n){Ge=e,MC(e)}function MC(e,t,n){for(var r=(e.mode&1)!==0;Ge!==null;){var o=Ge,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||vc;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||qn;l=vc;var u=qn;if(vc=a,(qn=s)&&!u)for(Ge=o;Ge!==null;)a=Ge,s=a.child,a.tag===22&&a.memoizedState!==null?A0(o):s!==null?(s.return=a,Ge=s):A0(o);for(;i!==null;)Ge=i,MC(i),i=i.sibling;Ge=o,vc=l,qn=u}j0(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Ge=i):j0(e)}}function j0(e){for(;Ge!==null;){var t=Ge;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qn||fd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&C0(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}C0(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&cs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Pe(163))}qn||t.flags&512&&mm(t)}catch(p){rn(t,t.return,p)}}if(t===e){Ge=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ge=n;break}Ge=t.return}}function F0(e){for(;Ge!==null;){var t=Ge;if(t===e){Ge=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ge=n;break}Ge=t.return}}function A0(e){for(;Ge!==null;){var t=Ge;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fd(4,t)}catch(s){rn(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){rn(t,o,s)}}var i=t.return;try{mm(t)}catch(s){rn(t,i,s)}break;case 5:var a=t.return;try{mm(t)}catch(s){rn(t,a,s)}}}catch(s){rn(t,t.return,s)}if(t===e){Ge=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ge=l;break}Ge=t.return}}var xI=Math.ceil,Ou=Ao.ReactCurrentDispatcher,mg=Ao.ReactCurrentOwner,zr=Ao.ReactCurrentBatchConfig,Mt=0,Tn=null,pn=null,Fn=0,gr=0,Oa=yi(0),Cn=0,Ss=null,Bi=0,pd=0,vg=0,ql=null,or=null,gg=0,Ga=1/0,Eo=null,Iu=!1,hm=null,si=null,gc=!1,Zo=null,Ru=0,Gl=0,ym=null,qc=-1,Gc=0;function Qn(){return Mt&6?sn():qc!==-1?qc:qc=sn()}function ci(e){return e.mode&1?Mt&2&&Fn!==0?Fn&-Fn:iI.transition!==null?(Gc===0&&(Gc=v1()),Gc):(e=Ft,e!==0||(e=window.event,e=e===void 0?16:x1(e.type)),e):1}function eo(e,t,n,r){if(50<Gl)throw Gl=0,ym=null,Error(Pe(185));ks(e,n,r),(!(Mt&2)||e!==Tn)&&(e===Tn&&(!(Mt&2)&&(pd|=n),Cn===4&&Qo(e,Fn)),sr(e,r),n===1&&Mt===0&&!(t.mode&1)&&(Ga=sn()+500,cd&&bi()))}function sr(e,t){var n=e.callbackNode;iO(e,t);var r=du(e,e===Tn?Fn:0);if(r===0)n!==null&&Xh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xh(n),t===1)e.tag===0?oI(B0.bind(null,e)):B1(B0.bind(null,e)),eI(function(){!(Mt&6)&&bi()}),n=null;else{switch(g1(r)){case 1:n=Hv;break;case 4:n=p1;break;case 16:n=uu;break;case 536870912:n=m1;break;default:n=uu}n=AC(n,kC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kC(e,t){if(qc=-1,Gc=0,Mt&6)throw Error(Pe(327));var n=e.callbackNode;if(_a()&&e.callbackNode!==n)return null;var r=du(e,e===Tn?Fn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pu(e,r);else{t=r;var o=Mt;Mt|=2;var i=_C();(Tn!==e||Fn!==t)&&(Eo=null,Ga=sn()+500,Di(e,t));do try{$I();break}catch(l){DC(e,l)}while(!0);tg(),Ou.current=i,Mt=o,pn!==null?t=0:(Tn=null,Fn=0,t=Cn)}if(t!==0){if(t===2&&(o=Wp(e),o!==0&&(r=o,t=bm(e,o))),t===1)throw n=Ss,Di(e,0),Qo(e,r),sr(e,sn()),n;if(t===6)Qo(e,r);else{if(o=e.current.alternate,!(r&30)&&!wI(o)&&(t=Pu(e,r),t===2&&(i=Wp(e),i!==0&&(r=i,t=bm(e,i))),t===1))throw n=Ss,Di(e,0),Qo(e,r),sr(e,sn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Pe(345));case 2:Ei(e,or,Eo);break;case 3:if(Qo(e,r),(r&130023424)===r&&(t=gg+500-sn(),10<t)){if(du(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Qn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Zp(Ei.bind(null,e,or,Eo),t);break}Ei(e,or,Eo);break;case 4:if(Qo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Zr(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xI(r/1960))-r,10<r){e.timeoutHandle=Zp(Ei.bind(null,e,or,Eo),r);break}Ei(e,or,Eo);break;case 5:Ei(e,or,Eo);break;default:throw Error(Pe(329))}}}return sr(e,sn()),e.callbackNode===n?kC.bind(null,e):null}function bm(e,t){var n=ql;return e.current.memoizedState.isDehydrated&&(Di(e,t).flags|=256),e=Pu(e,t),e!==2&&(t=or,or=n,t!==null&&Sm(t)),e}function Sm(e){or===null?or=e:or.push.apply(or,e)}function wI(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ro(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qo(e,t){for(t&=~vg,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zr(t),r=1<<n;e[n]=-1,t&=~r}}function B0(e){if(Mt&6)throw Error(Pe(327));_a();var t=du(e,0);if(!(t&1))return sr(e,sn()),null;var n=Pu(e,t);if(e.tag!==0&&n===2){var r=Wp(e);r!==0&&(t=r,n=bm(e,r))}if(n===1)throw n=Ss,Di(e,0),Qo(e,t),sr(e,sn()),n;if(n===6)throw Error(Pe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ei(e,or,Eo),sr(e,sn()),null}function hg(e,t){var n=Mt;Mt|=1;try{return e(t)}finally{Mt=n,Mt===0&&(Ga=sn()+500,cd&&bi())}}function Hi(e){Zo!==null&&Zo.tag===0&&!(Mt&6)&&_a();var t=Mt;Mt|=1;var n=zr.transition,r=Ft;try{if(zr.transition=null,Ft=1,e)return e()}finally{Ft=r,zr.transition=n,Mt=t,!(Mt&6)&&bi()}}function yg(){gr=Oa.current,Wt(Oa)}function Di(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ZO(n)),pn!==null)for(n=pn.return;n!==null;){var r=n;switch(Jv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gu();break;case 3:Ua(),Wt(ar),Wt(Gn),lg();break;case 5:ag(r);break;case 4:Ua();break;case 13:Wt(Jt);break;case 19:Wt(Jt);break;case 10:ng(r.type._context);break;case 22:case 23:yg()}n=n.return}if(Tn=e,pn=e=ui(e.current,null),Fn=gr=t,Cn=0,Ss=null,vg=pd=Bi=0,or=ql=null,Pi!==null){for(t=0;t<Pi.length;t++)if(n=Pi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function DC(e,t){do{var n=pn;try{if(tg(),Kc.current=$u,Eu){for(var r=Zt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Eu=!1}if(Ai=0,Nn=Sn=Zt=null,Wl=!1,hs=0,mg.current=null,n===null||n.return===null){Cn=1,Ss=t,pn=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Fn,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=R0(a);if(m!==null){m.flags&=-257,P0(m,a,l,i,t),m.mode&1&&I0(i,u,t),t=m,s=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(s),t.updateQueue=y}else g.add(s);break e}else{if(!(t&1)){I0(i,u,t),bg();break e}s=Error(Pe(426))}}else if(Xt&&l.mode&1){var b=R0(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),P0(b,a,l,i,t),Zv(qa(s,l));break e}}i=s=qa(s,l),Cn!==4&&(Cn=2),ql===null?ql=[i]:ql.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=hC(i,s,t);S0(i,v);break e;case 1:l=s;var h=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(si===null||!si.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=yC(i,l,t);S0(i,C);break e}}i=i.return}while(i!==null)}zC(n)}catch($){t=$,pn===n&&n!==null&&(pn=n=n.return);continue}break}while(!0)}function _C(){var e=Ou.current;return Ou.current=$u,e===null?$u:e}function bg(){(Cn===0||Cn===3||Cn===2)&&(Cn=4),Tn===null||!(Bi&268435455)&&!(pd&268435455)||Qo(Tn,Fn)}function Pu(e,t){var n=Mt;Mt|=2;var r=_C();(Tn!==e||Fn!==t)&&(Eo=null,Di(e,t));do try{EI();break}catch(o){DC(e,o)}while(!0);if(tg(),Mt=n,Ou.current=r,pn!==null)throw Error(Pe(261));return Tn=null,Fn=0,Cn}function EI(){for(;pn!==null;)LC(pn)}function $I(){for(;pn!==null&&!Y2();)LC(pn)}function LC(e){var t=FC(e.alternate,e,gr);e.memoizedProps=e.pendingProps,t===null?zC(e):pn=t,mg.current=null}function zC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yI(n,t),n!==null){n.flags&=32767,pn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Cn=6,pn=null;return}}else if(n=hI(n,t,gr),n!==null){pn=n;return}if(t=t.sibling,t!==null){pn=t;return}pn=t=e}while(t!==null);Cn===0&&(Cn=5)}function Ei(e,t,n){var r=Ft,o=zr.transition;try{zr.transition=null,Ft=1,OI(e,t,n,r)}finally{zr.transition=o,Ft=r}return null}function OI(e,t,n,r){do _a();while(Zo!==null);if(Mt&6)throw Error(Pe(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Pe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(aO(e,i),e===Tn&&(pn=Tn=null,Fn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gc||(gc=!0,AC(uu,function(){return _a(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=zr.transition,zr.transition=null;var a=Ft;Ft=1;var l=Mt;Mt|=4,mg.current=null,SI(e,n),TC(n,e),UO(Qp),fu=!!Yp,Qp=Yp=null,e.current=n,CI(n),Q2(),Mt=l,Ft=a,zr.transition=i}else e.current=n;if(gc&&(gc=!1,Zo=e,Ru=o),i=e.pendingLanes,i===0&&(si=null),eO(n.stateNode),sr(e,sn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Iu)throw Iu=!1,e=hm,hm=null,e;return Ru&1&&e.tag!==0&&_a(),i=e.pendingLanes,i&1?e===ym?Gl++:(Gl=0,ym=e):Gl=0,bi(),null}function _a(){if(Zo!==null){var e=g1(Ru),t=zr.transition,n=Ft;try{if(zr.transition=null,Ft=16>e?16:e,Zo===null)var r=!1;else{if(e=Zo,Zo=null,Ru=0,Mt&6)throw Error(Pe(331));var o=Mt;for(Mt|=4,Ge=e.current;Ge!==null;){var i=Ge,a=i.child;if(Ge.flags&16){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(Ge=u;Ge!==null;){var d=Ge;switch(d.tag){case 0:case 11:case 15:Ul(8,d,i)}var f=d.child;if(f!==null)f.return=d,Ge=f;else for(;Ge!==null;){d=Ge;var p=d.sibling,m=d.return;if(RC(d),d===u){Ge=null;break}if(p!==null){p.return=m,Ge=p;break}Ge=m}}}var g=i.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}Ge=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Ge=a;else e:for(;Ge!==null;){if(i=Ge,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ul(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Ge=v;break e}Ge=i.return}}var h=e.current;for(Ge=h;Ge!==null;){a=Ge;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,Ge=S;else e:for(a=h;Ge!==null;){if(l=Ge,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:fd(9,l)}}catch($){rn(l,l.return,$)}if(l===a){Ge=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,Ge=C;break e}Ge=l.return}}if(Mt=o,bi(),vo&&typeof vo.onPostCommitFiberRoot=="function")try{vo.onPostCommitFiberRoot(od,e)}catch{}r=!0}return r}finally{Ft=n,zr.transition=t}}return!1}function H0(e,t,n){t=qa(n,t),t=hC(e,t,1),e=li(e,t,1),t=Qn(),e!==null&&(ks(e,1,t),sr(e,t))}function rn(e,t,n){if(e.tag===3)H0(e,e,n);else for(;t!==null;){if(t.tag===3){H0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(si===null||!si.has(r))){e=qa(n,e),e=yC(t,e,1),t=li(t,e,1),e=Qn(),t!==null&&(ks(t,1,e),sr(t,e));break}}t=t.return}}function II(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qn(),e.pingedLanes|=e.suspendedLanes&n,Tn===e&&(Fn&n)===n&&(Cn===4||Cn===3&&(Fn&130023424)===Fn&&500>sn()-gg?Di(e,0):vg|=n),sr(e,t)}function jC(e,t){t===0&&(e.mode&1?(t=ac,ac<<=1,!(ac&130023424)&&(ac=4194304)):t=1);var n=Qn();e=_o(e,t),e!==null&&(ks(e,t,n),sr(e,n))}function RI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jC(e,n)}function PI(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),jC(e,n)}var FC;FC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)ir=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ir=!1,gI(e,t,n);ir=!!(e.flags&131072)}else ir=!1,Xt&&t.flags&1048576&&H1(t,bu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Uc(e,t),e=t.pendingProps;var o=Va(t,Gn.current);Da(t,n),o=cg(null,t,r,e,o,n);var i=ug();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lr(r)?(i=!0,hu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,og(t),o.updater=ud,t.stateNode=o,o._reactInternals=t,am(t,r,e,n),t=cm(null,t,r,!0,i,n)):(t.tag=0,Xt&&i&&Qv(t),Yn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Uc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=TI(r),e=qr(r,e),o){case 0:t=sm(null,t,r,e,n);break e;case 1:t=M0(null,t,r,e,n);break e;case 11:t=N0(null,t,r,e,n);break e;case 14:t=T0(null,t,r,qr(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qr(r,o),sm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qr(r,o),M0(e,t,r,o,n);case 3:e:{if(xC(t),e===null)throw Error(Pe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,U1(e,t),xu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qa(Error(Pe(423)),t),t=k0(e,t,r,n,o);break e}else if(r!==o){o=qa(Error(Pe(424)),t),t=k0(e,t,r,n,o);break e}else for(yr=ai(t.stateNode.containerInfo.firstChild),Sr=t,Xt=!0,Jr=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ka(),r===o){t=Lo(e,t,n);break e}Yn(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&rm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Jp(r,o)?a=null:i!==null&&Jp(r,i)&&(t.flags|=32),CC(e,t),Yn(e,t,a,n),t.child;case 6:return e===null&&rm(t),null;case 13:return wC(e,t,n);case 4:return ig(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(t,null,r,n):Yn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qr(r,o),N0(e,t,r,o,n);case 7:return Yn(e,t,t.pendingProps,n),t.child;case 8:return Yn(e,t,t.pendingProps.children,n),t.child;case 12:return Yn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ht(Su,r._currentValue),r._currentValue=a,i!==null)if(ro(i.value,a)){if(i.children===o.children&&!ar.current){t=Lo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Mo(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),om(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Pe(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),om(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Yn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Da(t,n),o=jr(o),r=r(o),t.flags|=1,Yn(e,t,r,n),t.child;case 14:return r=t.type,o=qr(r,t.pendingProps),o=qr(r.type,o),T0(e,t,r,o,n);case 15:return bC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qr(r,o),Uc(e,t),t.tag=1,lr(r)?(e=!0,hu(t)):e=!1,Da(t,n),G1(t,r,o),am(t,r,o,n),cm(null,t,r,!0,e,n);case 19:return EC(e,t,n);case 22:return SC(e,t,n)}throw Error(Pe(156,t.tag))};function AC(e,t){return f1(e,t)}function NI(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _r(e,t,n,r){return new NI(e,t,n,r)}function Sg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TI(e){if(typeof e=="function")return Sg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fv)return 11;if(e===Av)return 14}return 2}function ui(e,t){var n=e.alternate;return n===null?(n=_r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Sg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ga:return _i(n.children,o,i,t);case jv:a=8,o|=8;break;case Np:return e=_r(12,n,t,o|2),e.elementType=Np,e.lanes=i,e;case Tp:return e=_r(13,n,t,o),e.elementType=Tp,e.lanes=i,e;case Mp:return e=_r(19,n,t,o),e.elementType=Mp,e.lanes=i,e;case XS:return md(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qS:a=10;break e;case GS:a=9;break e;case Fv:a=11;break e;case Av:a=14;break e;case qo:a=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=_r(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _i(e,t,n,r){return e=_r(7,e,r,t),e.lanes=n,e}function md(e,t,n,r){return e=_r(22,e,r,t),e.elementType=XS,e.lanes=n,e.stateNode={isHidden:!1},e}function Tf(e,t,n){return e=_r(6,e,null,t),e.lanes=n,e}function Mf(e,t,n){return t=_r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MI(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ff(0),this.expirationTimes=ff(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ff(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cg(e,t,n,r,o,i,a,l,s){return e=new MI(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},og(i),e}function kI(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:va,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function BC(e){if(!e)return fi;e=e._reactInternals;e:{if(Gi(e)!==e||e.tag!==1)throw Error(Pe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Pe(171))}if(e.tag===1){var n=e.type;if(lr(n))return A1(e,n,t)}return t}function HC(e,t,n,r,o,i,a,l,s){return e=Cg(n,r,!0,e,o,i,a,l,s),e.context=BC(null),n=e.current,r=Qn(),o=ci(n),i=Mo(r,o),i.callback=t??null,li(n,i,o),e.current.lanes=o,ks(e,o,r),sr(e,r),e}function vd(e,t,n,r){var o=t.current,i=Qn(),a=ci(o);return n=BC(n),t.context===null?t.context=n:t.pendingContext=n,t=Mo(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=li(o,t,a),e!==null&&(eo(e,o,a,i),Vc(e,o,a)),a}function Nu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function V0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xg(e,t){V0(e,t),(e=e.alternate)&&V0(e,t)}function DI(){return null}var VC=typeof reportError=="function"?reportError:function(e){console.error(e)};function wg(e){this._internalRoot=e}gd.prototype.render=wg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Pe(409));vd(e,t,null,null)};gd.prototype.unmount=wg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hi(function(){vd(null,e,null,null)}),t[Do]=null}};function gd(e){this._internalRoot=e}gd.prototype.unstable_scheduleHydration=function(e){if(e){var t=b1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yo.length&&t!==0&&t<Yo[n].priority;n++);Yo.splice(n,0,e),n===0&&C1(e)}};function Eg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function K0(){}function _I(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Nu(a);i.call(u)}}var a=HC(t,r,e,0,null,!1,!1,"",K0);return e._reactRootContainer=a,e[Do]=a.current,fs(e.nodeType===8?e.parentNode:e),Hi(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Nu(s);l.call(u)}}var s=Cg(e,0,!1,null,null,!1,!1,"",K0);return e._reactRootContainer=s,e[Do]=s.current,fs(e.nodeType===8?e.parentNode:e),Hi(function(){vd(t,s,n,r)}),s}function yd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Nu(a);l.call(s)}}vd(t,a,e,o)}else a=_I(n,t,e,o,r);return Nu(a)}h1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dl(t.pendingLanes);n!==0&&(Vv(t,n|1),sr(t,sn()),!(Mt&6)&&(Ga=sn()+500,bi()))}break;case 13:Hi(function(){var r=_o(e,1);if(r!==null){var o=Qn();eo(r,e,1,o)}}),xg(e,1)}};Kv=function(e){if(e.tag===13){var t=_o(e,134217728);if(t!==null){var n=Qn();eo(t,e,134217728,n)}xg(e,134217728)}};y1=function(e){if(e.tag===13){var t=ci(e),n=_o(e,t);if(n!==null){var r=Qn();eo(n,e,t,r)}xg(e,t)}};b1=function(){return Ft};S1=function(e,t){var n=Ft;try{return Ft=e,t()}finally{Ft=n}};Hp=function(e,t,n){switch(t){case"input":if(_p(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=sd(r);if(!o)throw Error(Pe(90));QS(r),_p(r,o)}}}break;case"textarea":ZS(e,n);break;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}};a1=hg;l1=Hi;var LI={usingClientEntryPoint:!1,Events:[_s,Sa,sd,o1,i1,hg]},El={findFiberByHostInstance:Ri,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},zI={bundleType:El.bundleType,version:El.version,rendererPackageName:El.rendererPackageName,rendererConfig:El.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ao.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=u1(e),e===null?null:e.stateNode},findFiberByHostInstance:El.findFiberByHostInstance||DI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hc.isDisabled&&hc.supportsFiber)try{od=hc.inject(zI),vo=hc}catch{}}Er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LI;Er.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Eg(t))throw Error(Pe(200));return kI(e,t,null,n)};Er.createRoot=function(e,t){if(!Eg(e))throw Error(Pe(299));var n=!1,r="",o=VC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Cg(e,1,!1,null,null,n,!1,r,o),e[Do]=t.current,fs(e.nodeType===8?e.parentNode:e),new wg(t)};Er.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Pe(188)):(e=Object.keys(e).join(","),Error(Pe(268,e)));return e=u1(t),e=e===null?null:e.stateNode,e};Er.flushSync=function(e){return Hi(e)};Er.hydrate=function(e,t,n){if(!hd(t))throw Error(Pe(200));return yd(null,e,t,!0,n)};Er.hydrateRoot=function(e,t,n){if(!Eg(e))throw Error(Pe(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=VC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=HC(t,null,e,1,n??null,o,!1,i,a),e[Do]=t.current,fs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new gd(t)};Er.render=function(e,t,n){if(!hd(t))throw Error(Pe(200));return yd(null,e,t,!1,n)};Er.unmountComponentAtNode=function(e){if(!hd(e))throw Error(Pe(40));return e._reactRootContainer?(Hi(function(){yd(null,null,e,!1,function(){e._reactRootContainer=null,e[Do]=null})}),!0):!1};Er.unstable_batchedUpdates=hg;Er.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hd(n))throw Error(Pe(200));if(e==null||e._reactInternals===void 0)throw Error(Pe(38));return yd(e,t,n,!1,r)};Er.version="18.2.0-next-9e3b772b8-20220608";function KC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KC)}catch(e){console.error(e)}}KC(),HS.exports=Er;var Ar=HS.exports;const Tu=al(Ar),jI=TS({__proto__:null,default:Tu},[Ar]);var W0=Ar;Rp.createRoot=W0.createRoot,Rp.hydrateRoot=W0.hydrateRoot;var WC={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(WC);var FI=WC.exports;const Z=al(FI);function fe(){return fe=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},fe.apply(this,arguments)}var UC={exports:{}},At={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $g=Symbol.for("react.element"),Og=Symbol.for("react.portal"),bd=Symbol.for("react.fragment"),Sd=Symbol.for("react.strict_mode"),Cd=Symbol.for("react.profiler"),xd=Symbol.for("react.provider"),wd=Symbol.for("react.context"),AI=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),$d=Symbol.for("react.suspense"),Od=Symbol.for("react.suspense_list"),Id=Symbol.for("react.memo"),Rd=Symbol.for("react.lazy"),BI=Symbol.for("react.offscreen"),qC;qC=Symbol.for("react.module.reference");function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $g:switch(e=e.type,e){case bd:case Cd:case Sd:case $d:case Od:return e;default:switch(e=e&&e.$$typeof,e){case AI:case wd:case Ed:case Rd:case Id:case xd:return e;default:return t}}case Og:return t}}}At.ContextConsumer=wd;At.ContextProvider=xd;At.Element=$g;At.ForwardRef=Ed;At.Fragment=bd;At.Lazy=Rd;At.Memo=Id;At.Portal=Og;At.Profiler=Cd;At.StrictMode=Sd;At.Suspense=$d;At.SuspenseList=Od;At.isAsyncMode=function(){return!1};At.isConcurrentMode=function(){return!1};At.isContextConsumer=function(e){return Hr(e)===wd};At.isContextProvider=function(e){return Hr(e)===xd};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$g};At.isForwardRef=function(e){return Hr(e)===Ed};At.isFragment=function(e){return Hr(e)===bd};At.isLazy=function(e){return Hr(e)===Rd};At.isMemo=function(e){return Hr(e)===Id};At.isPortal=function(e){return Hr(e)===Og};At.isProfiler=function(e){return Hr(e)===Cd};At.isStrictMode=function(e){return Hr(e)===Sd};At.isSuspense=function(e){return Hr(e)===$d};At.isSuspenseList=function(e){return Hr(e)===Od};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bd||e===Cd||e===Sd||e===$d||e===Od||e===BI||typeof e=="object"&&e!==null&&(e.$$typeof===Rd||e.$$typeof===Id||e.$$typeof===xd||e.$$typeof===wd||e.$$typeof===Ed||e.$$typeof===qC||e.getModuleId!==void 0)};At.typeOf=Hr;UC.exports=At;var Ig=UC.exports;function xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(xr(r)):Ig.isFragment(r)&&r.props?n=n.concat(xr(r.props.children,t)):n.push(r))}),n}var Cm={},HI=function(t){};function VI(e,t){}function KI(e,t){}function WI(){Cm={}}function GC(e,t,n){!t&&!Cm[n]&&(e(!1,n),Cm[n]=!0)}function Ut(e,t){GC(VI,e,t)}function UI(e,t){GC(KI,e,t)}Ut.preMessage=HI;Ut.resetWarned=WI;Ut.noteOnce=UI;function tt(e){"@babel/helpers - typeof";return tt=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},tt(e)}function qI(e,t){if(tt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XC(e){var t=qI(e,"string");return tt(t)=="symbol"?t:String(t)}function B(e,t,n){return t=XC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U0(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 W(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(n),!0).forEach(function(r){B(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mu(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xl(e){return Mu(e)?e:e instanceof ce.Component?Tu.findDOMNode(e):null}function Xi(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Cs(e,t){typeof e=="function"?e(t):tt(e)==="object"&&e&&"current"in e&&(e.current=t)}function Or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Cs(i,o)})}}function ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xi(function(){return Or.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function yo(e){var t,n,r=Ig.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function GI(e){return!c.isValidElement(e)||Ig.isFragment(e)?!1:yo(e)}var xm=c.createContext(null);function XI(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext(xm),a=c.useCallback(function(l,s,u){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,u)},[n,i]);return c.createElement(xm.Provider,{value:a},t)}var YC=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),wm=typeof window<"u"&&typeof document<"u"&&window.document===document,ku=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")()}(),YI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ku):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),QI=2;function JI(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){YI(i)}function l(){var s=Date.now();if(n){if(s-o<QI)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=s}return l}var ZI=20,eR=["top","right","bottom","left","width","height","size","weight"],tR=typeof MutationObserver<"u",nR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JI(this.refresh.bind(this),ZI)}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(){!wm||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tR?(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(){!wm||!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=eR.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),QC=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},Xa=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ku},JC=Pd(0,0,0,0);function Du(e){return parseFloat(e)||0}function q0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Du(i)},0)}function rR(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Du(a)}return n}function oR(e){var t=e.getBBox();return Pd(0,0,t.width,t.height)}function iR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return JC;var r=Xa(e).getComputedStyle(e),o=rR(r),i=o.left+o.right,a=o.top+o.bottom,l=Du(r.width),s=Du(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=q0(r,"left","right")+i),Math.round(s+a)!==n&&(s-=q0(r,"top","bottom")+a)),!lR(e)){var u=Math.round(l+i)-t,d=Math.round(s+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(s-=d)}return Pd(o.left,o.top,l,s)}var aR=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Xa(e).SVGGraphicsElement}:function(e){return e instanceof Xa(e).SVGElement&&typeof e.getBBox=="function"}}();function lR(e){return e===Xa(e).document.documentElement}function sR(e){return wm?aR(e)?oR(e):iR(e):JC}function cR(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return QC(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Pd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var uR=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=sR(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}(),dR=function(){function e(t,n){var r=cR(n);QC(this,{target:t,contentRect:r})}return e}(),fR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new YC,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 Xa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new uR(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 Xa(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 dR(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}(),ZC=typeof WeakMap<"u"?new WeakMap:new YC,ex=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=nR.getInstance(),r=new fR(t,n,this);ZC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ex.prototype[e]=function(){var t;return(t=ZC.get(this))[e].apply(t,arguments)}});var pR=function(){return typeof ku.ResizeObserver<"u"?ku.ResizeObserver:ex}(),ei=new Map;function mR(e){e.forEach(function(t){var n,r=t.target;(n=ei.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var tx=new pR(mR);function vR(e,t){ei.has(e)||(ei.set(e,new Set),tx.observe(e)),ei.get(e).add(t)}function gR(e,t){ei.has(e)&&(ei.get(e).delete(t),ei.get(e).size||(tx.unobserve(e),ei.delete(e)))}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G0(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,XC(r.key),r)}}function $n(e,t,n){return t&&G0(e.prototype,t),n&&G0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Em(e,t){return Em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Em(e,t)}function lo(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&&Em(e,t)}function _u(e){return _u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_u(e)}function hR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yR(e,t){if(t&&(tt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ot(e)}function so(e){var t=hR();return function(){var r=_u(e),o;if(t){var i=_u(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return yR(this,o)}}var bR=function(e){lo(n,e);var t=so(n);function n(){return En(this,n),t.apply(this,arguments)}return $n(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function SR(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext(xm),l=typeof n=="function",s=l?n(o):n,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&c.isValidElement(s)&&yo(s),f=d?s.ref:null,p=ul(f,o),m=function(){var v;return Xl(o.current)||(o.current&&tt(o.current)==="object"?Xl((v=o.current)===null||v===void 0?void 0:v.nativeElement):null)||Xl(i.current)};c.useImperativeHandle(t,function(){return m()});var g=c.useRef(e);g.current=e;var y=c.useCallback(function(b){var v=g.current,h=v.onResize,S=v.data,C=b.getBoundingClientRect(),$=C.width,O=C.height,E=b.offsetWidth,w=b.offsetHeight,x=Math.floor($),I=Math.floor(O);if(u.current.width!==x||u.current.height!==I||u.current.offsetWidth!==E||u.current.offsetHeight!==w){var R={width:x,height:I,offsetWidth:E,offsetHeight:w};u.current=R;var T=E===Math.round($)?$:E,M=w===Math.round(O)?O:w,k=W(W({},R),{},{offsetWidth:T,offsetHeight:M});a==null||a(k,b,S),h&&Promise.resolve().then(function(){h(k,b)})}},[]);return c.useEffect(function(){var b=m();return b&&!r&&vR(b,y),function(){return gR(b,y)}},[o.current,r]),c.createElement(bR,{ref:i},d?c.cloneElement(s,{ref:p}):s)}var CR=c.forwardRef(SR),xR="rc-observer-key";function wR(e,t){var n=e.children,r=typeof n=="function"?[n]:xr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(xR,"-").concat(i);return c.createElement(CR,fe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Vr=c.forwardRef(wR);Vr.Collection=XI;function kn(e,t){var n=W({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function $m(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ER(e){if(Array.isArray(e))return $m(e)}function nx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rg(e,t){if(e){if(typeof e=="string")return $m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $m(e,t)}}function $R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e){return ER(e)||nx(e)||Rg(e)||$R()}var rx=function(t){return+setTimeout(t,16)},ox=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(rx=function(t){return window.requestAnimationFrame(t)},ox=function(t){return window.cancelAnimationFrame(t)});var X0=0,Pg=new Map;function ix(e){Pg.delete(e)}var zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;X0+=1;var r=X0;function o(i){if(i===0)ix(r),t();else{var a=rx(function(){o(i-1)});Pg.set(r,a)}}return o(n),r};zt.cancel=function(e){var t=Pg.get(e);return ix(e),ox(t)};function ax(e){if(Array.isArray(e))return e}function OR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){u=!0,o=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function lx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){return ax(e)||OR(e,t)||Rg(e,t)||lx()}function Lu(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 Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function IR(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 Y0="data-rc-order",Q0="data-rc-priority",RR="rc-util-key",Om=new Map;function sx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):RR}function Nd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function PR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function cx(e){return Array.from((Om.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ux(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=PR(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(Y0,a),l&&i&&s.setAttribute(Q0,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=Nd(t),d=u.firstChild;if(r){if(l){var f=cx(u).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Y0)))return!1;var m=Number(p.getAttribute(Q0)||0);return i>=m});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function dx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Nd(t);return cx(n).find(function(r){return r.getAttribute(sx(t))===e})}function xs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dx(e,t);if(n){var r=Nd(t);r.removeChild(n)}}function NR(e,t){var n=Om.get(e);if(!n||!IR(document,n)){var r=ux("",t),o=r.parentNode;Om.set(e,o),e.removeChild(r)}}function pi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Nd(n);NR(r,n);var o=dx(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=ux(e,n);return s.setAttribute(sx(n),t),s}function TR(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function nt(e,t){if(e==null)return{};var n=TR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(Ut(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&tt(i)==="object"&&tt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(p){return o(i[p],a[p],u)})}return!1}return o(e,t)}var J0="%",MR=function(){function e(t){En(this,e),B(this,"instanceId",void 0),B(this,"cache",new Map),this.instanceId=t}return $n(e,[{key:"get",value:function(n){return this.cache.get(n.join(J0))||null}},{key:"update",value:function(n,r){var o=n.join(J0),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),Ya="data-token-hash",to="data-css-hash",ti="__cssinjs_instance__";function kR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(to,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ti]=o[ti]||e,o[ti]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(to,"]"))).forEach(function(o){var i=o.getAttribute(to);if(r[i]){if(o[ti]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new MR(e)}var Td=c.createContext({hashPriority:"low",cache:kR(),defaultCache:!0});function DR(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 Ng=function(){function e(){En(this,e),B(this,"cache",void 0),B(this,"keys",void 0),B(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return $n(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=oe(u,2),p=f[1];return o.internalGet(d)[1]<p?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=oe(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(u,d){if(d===n.length-1)s.set(u,{value:[r,o.cacheCallTimes++]});else{var f=s.get(u);f?f.map||(f.map=new Map):s.set(u,{map:new Map}),s=s.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!DR(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();B(Ng,"MAX_CACHE_SIZE",20);B(Ng,"MAX_CACHE_OFFSET",5);var Z0=0,fx=function(){function e(t){En(this,e),B(this,"derivatives",void 0),B(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Z0,t.length===0&&(t.length>0,void 0),Z0+=1}return $n(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),kf=new Ng;function Im(e){var t=Array.isArray(e)?e:[e];return kf.has(t)||kf.set(t,new fx(t)),kf.get(t)}var _R=new WeakMap,Df={};function LR(e,t){for(var n=_R,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(Df)||n.set(Df,e()),n.get(Df)}var ey=new WeakMap;function Yl(e){var t=ey.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof fx?t+=r.id:r&&tt(r)==="object"?t+=Yl(r):t+=r}),ey.set(e,t)),t}function ty(e,t){return Lu("".concat(t,"_").concat(Yl(e)))}var Ql="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),px="_bAmBoO_";function zR(e,t,n){if(Mn()){var r,o;pi(e,Ql);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(px);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),xs(Ql),a}return!1}var _f=void 0;function jR(){return _f===void 0&&(_f=zR("@layer ".concat(Ql," { .").concat(Ql,' { content: "').concat(px,'"!important; } }'),function(e){e.className=Ql})),_f}var Rm=Mn();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function zu(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=W(W({},o),{},(r={},B(r,Ya,t),B(r,to,n),r)),l=Object.keys(a).map(function(s){var u=a[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var mx=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()},FR=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=oe(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},vx=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,u=oe(a,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var p,m=mx(d,r==null?void 0:r.prefix);o[m]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(m,")")}}),[i,FR(o,n,{scope:r==null?void 0:r.scope})]},ny=Mn()?c.useLayoutEffect:c.useEffect,Pt=function(t,n){var r=c.useRef(!0);ny(function(){return t(r.current)},n),ny(function(){return r.current=!1,function(){r.current=!0}},[])},ry=function(t,n){Pt(function(r){if(!r)return t()},n)},AR=W({},Ms),oy=AR.useInsertionEffect,BR=function(t,n,r){c.useMemo(t,r),Pt(function(){return n(!0)},r)},HR=oy?function(e,t,n){return oy(function(){return e(),t()},n)}:BR,VR=W({},Ms),KR=VR.useInsertionEffect,WR=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},UR=function(){return function(t){t()}},qR=typeof KR<"u"?WR:UR;function Tg(e,t,n,r,o){var i=c.useContext(Td),a=i.cache,l=[e].concat(Se(t)),s=l.join("_"),u=qR([s]),d=function(g){a.update(l,function(y){var b=y||[void 0,void 0],v=oe(b,2),h=v[0],S=h===void 0?0:h,C=v[1],$=C,O=$||n(),E=[S,O];return g?g(E):E})};c.useMemo(function(){d()},[s]);var f=a.get(l),p=f[1];return HR(function(){o==null||o(p)},function(m){return d(function(g){var y=oe(g,2),b=y[0],v=y[1];return m&&b===0&&(o==null||o(p)),[b+1,v]}),function(){a.update(l,function(g){var y=g||[],b=oe(y,2),v=b[0],h=v===void 0?0:v,S=b[1],C=h-1;return C===0?(u(function(){(m||!a.get(l))&&(r==null||r(S,!1))}),null):[h-1,S]})}},[s]),p}var GR={},XR="css",Ii=new Map;function YR(e){Ii.set(e,(Ii.get(e)||0)+1)}function QR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[ti]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var JR=0;function ZR(e,t){Ii.set(e,(Ii.get(e)||0)-1);var n=Array.from(Ii.keys()),r=n.filter(function(o){var i=Ii.get(o)||0;return i<=0});n.length-r.length>JR&&r.forEach(function(o){QR(o,t),Ii.delete(o)})}var eP=function(t,n,r,o){var i=r.getDerivativeToken(t),a=W(W({},i),n);return o&&(a=o(a)),a},gx="token";function tP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Td),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,u=s===void 0?GR:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=LR(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),g=Yl(m),y=Yl(u),b=p?Yl(p):"",v=Tg(gx,[l,e.id,g,y,b],function(){var h,S=f?f(m,u,e):eP(m,u,e,d),C=W({},S),$="";if(p){var O=vx(S,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),E=oe(O,2);S=E[0],$=E[1]}var w=ty(S,l);S._tokenKey=w,C._tokenKey=ty(C,l);var x=(h=p==null?void 0:p.key)!==null&&h!==void 0?h:w;S._themeKey=x,YR(x);var I="".concat(XR,"-").concat(Lu(w));return S._hashId=I,[S,I,C,$,(p==null?void 0:p.key)||""]},function(h){ZR(h[0]._themeKey,o)},function(h){var S=oe(h,4),C=S[0],$=S[3];if(p&&$){var O=pi($,Lu("css-variables-".concat(C._themeKey)),{mark:to,prepend:"queue",attachTo:i,priority:-999});O[ti]=o,O.setAttribute(Ya,C._themeKey)}});return v}var nP=function(t,n,r){var o=oe(t,5),i=o[2],a=o[3],l=o[4],s=r||{},u=s.plain;if(!a)return null;var d=i._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=zu(a,l,d,p,u);return[f,d,m]},rP={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},hx="comm",yx="rule",bx="decl",oP="@import",iP="@keyframes",aP="@layer",Sx=Math.abs,Mg=String.fromCharCode;function Cx(e){return e.trim()}function Yc(e,t,n){return e.replace(t,n)}function lP(e,t,n){return e.indexOf(t,n)}function ws(e,t){return e.charCodeAt(t)|0}function Es(e,t,n){return e.slice(t,n)}function Io(e){return e.length}function sP(e){return e.length}function yc(e,t){return t.push(e),e}var Md=1,Qa=1,xx=0,Br=0,dn=0,dl="";function kg(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Md,column:Qa,length:a,return:"",siblings:l}}function cP(){return dn}function uP(){return dn=Br>0?ws(dl,--Br):0,Qa--,dn===10&&(Qa=1,Md--),dn}function no(){return dn=Br<xx?ws(dl,Br++):0,Qa++,dn===10&&(Qa=1,Md++),dn}function Li(){return ws(dl,Br)}function Qc(){return Br}function kd(e,t){return Es(dl,e,t)}function Pm(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 dP(e){return Md=Qa=1,xx=Io(dl=e),Br=0,[]}function fP(e){return dl="",e}function Lf(e){return Cx(kd(Br-1,Nm(e===91?e+2:e===40?e+1:e)))}function pP(e){for(;(dn=Li())&&dn<33;)no();return Pm(e)>2||Pm(dn)>3?"":" "}function mP(e,t){for(;--t&&no()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return kd(e,Qc()+(t<6&&Li()==32&&no()==32))}function Nm(e){for(;no();)switch(dn){case e:return Br;case 34:case 39:e!==34&&e!==39&&Nm(dn);break;case 40:e===41&&Nm(e);break;case 92:no();break}return Br}function vP(e,t){for(;no()&&e+dn!==57;)if(e+dn===84&&Li()===47)break;return"/*"+kd(t,Br-1)+"*"+Mg(e===47?e:no())}function gP(e){for(;!Pm(Li());)no();return kd(e,Br)}function hP(e){return fP(Jc("",null,null,null,[""],e=dP(e),0,[0],e))}function Jc(e,t,n,r,o,i,a,l,s){for(var u=0,d=0,f=a,p=0,m=0,g=0,y=1,b=1,v=1,h=0,S="",C=o,$=i,O=r,E=S;b;)switch(g=h,h=no()){case 40:if(g!=108&&ws(E,f-1)==58){lP(E+=Yc(Lf(h),"&","&\f"),"&\f",Sx(u?l[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Lf(h);break;case 9:case 10:case 13:case 32:E+=pP(g);break;case 92:E+=mP(Qc()-1,7);continue;case 47:switch(Li()){case 42:case 47:yc(yP(vP(no(),Qc()),t,n,s),s);break;default:E+="/"}break;case 123*y:l[u++]=Io(E)*v;case 125*y:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+d:v==-1&&(E=Yc(E,/\f/g,"")),m>0&&Io(E)-f&&yc(m>32?ay(E+";",r,n,f-1,s):ay(Yc(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(yc(O=iy(E,t,n,u,d,o,l,S,C=[],$=[],f,i),i),h===123)if(d===0)Jc(E,t,O,O,C,i,f,l,$);else switch(p===99&&ws(E,3)===110?100:p){case 100:case 108:case 109:case 115:Jc(e,O,O,r&&yc(iy(e,O,O,0,0,o,l,S,o,C=[],f,$),$),o,$,f,l,r?C:$);break;default:Jc(E,O,O,O,[""],$,0,l,$)}}u=d=m=0,y=v=1,S=E="",f=a;break;case 58:f=1+Io(E),m=g;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&uP()==125)continue}switch(E+=Mg(h),h*y){case 38:v=d>0?1:(E+="\f",-1);break;case 44:l[u++]=(Io(E)-1)*v,v=1;break;case 64:Li()===45&&(E+=Lf(no())),p=Li(),d=f=Io(S=E+=gP(Qc())),h++;break;case 45:g===45&&Io(E)==2&&(y=0)}}return i}function iy(e,t,n,r,o,i,a,l,s,u,d,f){for(var p=o-1,m=o===0?i:[""],g=sP(m),y=0,b=0,v=0;y<r;++y)for(var h=0,S=Es(e,p+1,p=Sx(b=a[y])),C=e;h<g;++h)(C=Cx(b>0?m[h]+" "+S:Yc(S,/&\f/g,m[h])))&&(s[v++]=C);return kg(e,t,n,o===0?yx:l,s,u,d,f)}function yP(e,t,n,r){return kg(e,t,n,hx,Mg(cP()),Es(e,2,-2),0,r)}function ay(e,t,n,r,o){return kg(e,t,n,bx,Es(e,0,r),Es(e,r+1,-1),r,o)}function Tm(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bP(e,t,n,r){switch(e.type){case aP:if(e.children.length)break;case oP:case bx:return e.return=e.return||e.value;case hx:return"";case iP:return e.return=e.value+"{"+Tm(e.children,r)+"}";case yx:if(!Io(e.value=e.props.join(",")))return""}return Io(n=Tm(e.children,r))?e.return=e.value+"{"+n+"}":""}var ly="data-ant-cssinjs-cache-path",wx="_FILE_STYLE__",zi,Ex=!0;function SP(){if(!zi&&(zi={},Mn())){var e=document.createElement("div");e.className=ly,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=oe(i,2),l=a[0],s=a[1];zi[l]=s});var n=document.querySelector("style[".concat(ly,"]"));if(n){var r;Ex=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function CP(e){return SP(),!!zi[e]}function xP(e){var t=zi[e],n=null;if(t&&Mn())if(Ex)n=wx;else{var r=document.querySelector("style[".concat(to,'="').concat(zi[e],'"]'));r?n=r.innerHTML:delete zi[e]}return[n,t]}var wP="_skip_check_",$x="_multi_value_";function Mm(e){var t=Tm(hP(e),bP);return t.replace(/\{%%%\:[^;];}/g,";")}function EP(e){return tt(e)==="object"&&e&&(wP in e||$x in e)}function $P(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,s=a.trim().split(/\s+/),u=s[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(Se(s.slice(1))).join(" ")});return i.join(",")}var OP=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",m={};function g(S){var C=S.getName(l);if(!m[C]){var $=e(S.style,n,{root:!1,parentSelectors:a}),O=oe($,1),E=O[0];m[C]="@keyframes ".concat(S.getName(l)).concat(E)}}function y(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function($){Array.isArray($)?y($,C):$&&C.push($)}),C}var b=y(Array.isArray(t)?t:[t]);if(b.forEach(function(S){var C=typeof S=="string"&&!o?{}:S;if(typeof C=="string")p+="".concat(C,`
`);else if(C._keyframe)g(C);else{var $=f.reduce(function(O,E){var w;return(E==null||(w=E.visit)===null||w===void 0?void 0:w.call(E,O))||O},C);Object.keys($).forEach(function(O){var E=$[O];if(tt(E)==="object"&&E&&(O!=="animationName"||!E._keyframe)&&!EP(E)){var w=!1,x=O.trim(),I=!1;(o||i)&&l?x.startsWith("@")?w=!0:x=$P(O,l,u):o&&!l&&(x==="&"||x==="")&&(x="",I=!0);var R=e(E,n,{root:I,injectHash:w,parentSelectors:[].concat(Se(a),[x])}),T=oe(R,2),M=T[0],k=T[1];m=W(W({},m),k),p+="".concat(x).concat(M)}else{let N=function(P,z){var j=P.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),F=z;!rP[P]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),P==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),F=z.getName(l)),p+="".concat(j,":").concat(F,";")};var _,D=(_=E==null?void 0:E.value)!==null&&_!==void 0?_:E;tt(E)==="object"&&E!==null&&E!==void 0&&E[$x]&&Array.isArray(D)?D.forEach(function(P){N(O,P)}):N(O,D)}})}}),!o)p="{".concat(p,"}");else if(s&&jR()){var v=s.split(","),h=v[v.length-1].trim();p="@layer ".concat(h," {").concat(p,"}"),v.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,m]};function Ox(e,t){return Lu("".concat(e.join("%")).concat(t))}function IP(){return null}var Ix="style";function km(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,d=c.useContext(Td),f=d.autoClear;d.mock;var p=d.defaultCache,m=d.hashPriority,g=d.container,y=d.ssrInline,b=d.transformers,v=d.linters,h=d.cache,S=n._tokenKey,C=[S].concat(Se(r)),$=Rm,O=Tg(Ix,C,function(){var R=C.join("|");if(CP(R)){var T=xP(R),M=oe(T,2),k=M[0],_=M[1];if(k)return[k,S,_,{},l,u]}var D=t(),N=OP(D,{hashId:o,hashPriority:m,layer:i,path:r.join("-"),transformers:b,linters:v}),P=oe(N,2),z=P[0],j=P[1],F=Mm(z),L=Ox(C,F);return[F,S,L,j,l,u]},function(R,T){var M=oe(R,3),k=M[2];(T||f)&&Rm&&xs(k,{mark:to})},function(R){var T=oe(R,4),M=T[0];T[1];var k=T[2],_=T[3];if($&&M!==wx){var D={mark:to,prepend:"queue",attachTo:g,priority:u},N=typeof a=="function"?a():a;N&&(D.csp={nonce:N});var P=pi(M,k,D);P[ti]=h.instanceId,P.setAttribute(Ya,S),Object.keys(_).forEach(function(z){pi(Mm(_[z]),"_effect-".concat(z),D)})}}),E=oe(O,3),w=E[0],x=E[1],I=E[2];return function(R){var T;if(!y||$||!p)T=c.createElement(IP,null);else{var M;T=c.createElement("style",fe({},(M={},B(M,Ya,x),B(M,to,I),M),{dangerouslySetInnerHTML:{__html:w}}))}return c.createElement(c.Fragment,null,T,R)}}var RP=function(t,n,r){var o=oe(t,6),i=o[0],a=o[1],l=o[2],s=o[3],u=o[4],d=o[5],f=r||{},p=f.plain;if(u)return null;var m=i,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=zu(i,a,l,g,p),s&&Object.keys(s).forEach(function(y){if(!n[y]){n[y]=!0;var b=Mm(s[y]);m+=zu(b,a,"_effect-".concat(y),g,p)}}),[d,l,m]},Rx="cssVar",PP=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,d=c.useContext(Td),f=d.cache.instanceId,p=d.container,m=l._tokenKey,g=[].concat(Se(t.path),[r,u,m]),y=Tg(Rx,g,function(){var b=n(),v=vx(b,r,{prefix:o,unitless:i,ignore:a,scope:u}),h=oe(v,2),S=h[0],C=h[1],$=Ox(g,C);return[S,C,$,r]},function(b){var v=oe(b,3),h=v[2];Rm&&xs(h,{mark:to})},function(b){var v=oe(b,3),h=v[1],S=v[2];if(h){var C=pi(h,S,{mark:to,prepend:"queue",attachTo:p,priority:-999});C[ti]=f,C.setAttribute(Ya,r)}});return y},NP=function(t,n,r){var o=oe(t,4),i=o[1],a=o[2],l=o[3],s=r||{},u=s.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=zu(i,l,a,f,u);return[d,a,p]},$l;$l={},B($l,Ix,RP),B($l,gx,nP),B($l,Rx,NP);var Ct=function(){function e(t,n){En(this,e),B(this,"name",void 0),B(this,"style",void 0),B(this,"_keyframe",!0),this.name=t,this.style=n}return $n(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 na(e){return e.notSplit=!0,e}na(["borderTop","borderBottom"]),na(["borderTop"]),na(["borderBottom"]),na(["borderLeft","borderRight"]),na(["borderLeft"]),na(["borderRight"]);var Dg=c.createContext({});function Px(e){return ax(e)||nx(e)||Rg(e)||lx()}function Lr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Nx(e,t,n,r){if(!t.length)return n;var o=Px(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Se(e):l=W({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Nx(l[i],a,n,r),l}function Xr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Lr(e,t.slice(0,-1))?e:Nx(e,t,n,r)}function TP(e){return tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function sy(e){return Array.isArray(e)?[]:{}}var MP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ia(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=sy(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),u=Lr(o,a),d=Array.isArray(u);if(d||TP(u)){if(!s.has(u)){s.add(u);var f=Lr(r,a);d?r=Xr(r,a,[]):(!f||tt(f)!=="object")&&(r=Xr(r,a,sy(u))),MP(u).forEach(function(p){i([].concat(Se(a),[p]),s)})}}else r=Xr(r,a,u)}i([])}),r}function kP(){}const DP=c.createContext({}),Yi=()=>{const e=()=>{};return e.deprecated=kP,e},_P=c.createContext(void 0);var Tx={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"},LP={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 Mx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},cy={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"]},LP),timePickerLocale:Object.assign({},Mx)},pr="${label} is not a valid ${type}",mi={locale:"en",Pagination:Tx,DatePicker:cy,TimePicker:Mx,Calendar:cy,global:{placeholder:"Please select"},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",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"},PageHeader:{back:"Back"},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:pr,method:pr,array:pr,object:pr,number:pr,date:pr,boolean:pr,integer:pr,float:pr,regexp:pr,email:pr,url:pr,hex:pr},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"},ColorPicker:{presetEmpty:"Empty"}};Object.assign({},mi.Modal);let Zc=[];const uy=()=>Zc.reduce((e,t)=>Object.assign(Object.assign({},e),t),mi.Modal);function zP(e){if(e){const t=Object.assign({},e);return Zc.push(t),uy(),()=>{Zc=Zc.filter(n=>n!==t),uy()}}Object.assign({},mi.Modal)}const _g=c.createContext(void 0),Dd=(e,t)=>{const n=c.useContext(_g),r=c.useMemo(()=>{var i;const a=t||mi[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=c.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?mi.locale:i},[n]);return[r,o]},jP="internalMark",FP=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>zP(t&&t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(_g.Provider,{value:o},n)};function An(e,t){AP(e)&&(e="100%");const n=BP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bc(e){return Math.min(1,Math.max(0,e))}function AP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function BP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function kx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function Ti(e){return e.length===1?"0"+e:String(e)}function HP(e,t,n){return{r:An(e,255)*255,g:An(t,255)*255,b:An(n,255)*255}}function dy(e,t,n){e=An(e,255),t=An(t,255),n=An(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i=0,a=0;const l=(r+o)/2;if(r===o)a=0,i=0;else{const s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:a,l}}function zf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VP(e,t,n){let r,o,i;if(e=An(e,360),t=An(t,100),n=An(n,100),t===0)o=n,i=n,r=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=zf(l,a,e+1/3),o=zf(l,a,e),i=zf(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Dm(e,t,n){e=An(e,255),t=An(t,255),n=An(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i=0;const a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,v:a}}function KP(e,t,n){e=An(e,360)*6,t=An(t,100),n=An(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,u=[n,a,i,i,l,n][s],d=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return{r:u*255,g:d*255,b:f*255}}function _m(e,t,n,r){const o=[Ti(Math.round(e).toString(16)),Ti(Math.round(t).toString(16)),Ti(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function WP(e,t,n,r,o){const i=[Ti(Math.round(e).toString(16)),Ti(Math.round(t).toString(16)),Ti(Math.round(n).toString(16)),Ti(UP(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function UP(e){return Math.round(parseFloat(e)*255).toString(16)}function fy(e){return vr(e)/255}function vr(e){return parseInt(e,16)}function qP(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}const Lm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ma(e){let t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=YP(e)),typeof e=="object"&&(Co(e.r)&&Co(e.g)&&Co(e.b)?(t=HP(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Co(e.h)&&Co(e.s)&&Co(e.v)?(r=Sc(e.s),o=Sc(e.v),t=KP(e.h,r,o),a=!0,l="hsv"):Co(e.h)&&Co(e.s)&&Co(e.l)&&(r=Sc(e.s),i=Sc(e.l),t=VP(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=kx(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const GP="[-\\+]?\\d+%?",XP="[-\\+]?\\d*\\.\\d+%?",ni=`(?:${XP})|(?:${GP})`,jf=`[\\s|\\(]+(${ni})[,|\\s]+(${ni})[,|\\s]+(${ni})\\s*\\)?`,Ff=`[\\s|\\(]+(${ni})[,|\\s]+(${ni})[,|\\s]+(${ni})[,|\\s]+(${ni})\\s*\\)?`,Ur={CSS_UNIT:new RegExp(ni),rgb:new RegExp("rgb"+jf),rgba:new RegExp("rgba"+Ff),hsl:new RegExp("hsl"+jf),hsla:new RegExp("hsla"+Ff),hsv:new RegExp("hsv"+jf),hsva:new RegExp("hsva"+Ff),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function YP(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(Lm[e])e=Lm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Ur.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ur.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ur.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ur.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ur.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ur.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ur.hex8.exec(e),n?{r:vr(n[1]),g:vr(n[2]),b:vr(n[3]),a:fy(n[4]),format:t?"name":"hex8"}:(n=Ur.hex6.exec(e),n?{r:vr(n[1]),g:vr(n[2]),b:vr(n[3]),format:t?"name":"hex"}:(n=Ur.hex4.exec(e),n?{r:vr(n[1]+n[1]),g:vr(n[2]+n[2]),b:vr(n[3]+n[3]),a:fy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ur.hex3.exec(e),n?{r:vr(n[1]+n[1]),g:vr(n[2]+n[2]),b:vr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Co(e){return!!Ur.CSS_UNIT.exec(String(e))}class gt{constructor(t="",n={}){if(t instanceof gt)return t;typeof t=="number"&&(t=qP(t)),this.originalInput=t;const r=ma(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,r,o;const i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=kx(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Dm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Dm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${r}%, ${o}%)`:`hsva(${n}, ${r}%, ${o}%, ${this.roundA})`}toHsl(){const t=dy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=dy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${r}%, ${o}%)`:`hsla(${n}, ${r}%, ${o}%, ${this.roundA})`}toHex(t=!1){return _m(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return WP(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(An(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(An(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+_m(this.r,this.g,this.b,!1);for(const[n,r]of Object.entries(Lm))if(t===r)return n;return!1}toString(t){const n=!!t;t=t??this.format;let r=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new gt(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=bc(n.l),new gt(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new gt(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=bc(n.l),new gt(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=bc(n.s),new gt(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=bc(n.s),new gt(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new gt(n)}mix(t,n=50){const r=this.toRgb(),o=new gt(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new gt(a)}analogous(t=6,n=30){const r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new gt(r));return i}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new gt(t)}monochromatic(t=6){const n=this.toHsv(),{h:r}=n,{s:o}=n;let{v:i}=n;const a=[],l=1/t;for(;t--;)a.push(new gt({h:r,s:o,v:i})),i=(i+l)%1;return a}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new gt({h:(n+72)%360,s:t.s,l:t.l}),new gt({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),r=new gt(t).toRgb(),o=n.a+r.a*(1-n.a);return new gt({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:r}=n,o=[this],i=360/t;for(let a=1;a<t;a++)o.push(new gt({h:(r+a*i)%360,s:n.s,l:n.l}));return o}equals(t){return this.toRgbString()===new gt(t).toRgbString()}}var Cc=2,py=.16,QP=.05,JP=.05,ZP=.15,Dx=5,_x=4,eN=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function my(e){var t=e.r,n=e.g,r=e.b,o=Dm(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function xc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(_m(t,n,r,!1))}function tN(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function vy(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Cc*t:Math.round(e.h)+Cc*t:r=n?Math.round(e.h)+Cc*t:Math.round(e.h)-Cc*t,r<0?r+=360:r>=360&&(r-=360),r}function gy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-py*t:t===_x?r=e.s+py:r=e.s+QP*t,r>1&&(r=1),n&&t===Dx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function hy(e,t,n){var r;return n?r=e.v+JP*t:r=e.v-ZP*t,r>1&&(r=1),Number(r.toFixed(2))}function Vi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ma(e),o=Dx;o>0;o-=1){var i=my(r),a=xc(ma({h:vy(i,o,!0),s:gy(i,o,!0),v:hy(i,o,!0)}));n.push(a)}n.push(xc(r));for(var l=1;l<=_x;l+=1){var s=my(r),u=xc(ma({h:vy(s,l),s:gy(s,l),v:hy(s,l)}));n.push(u)}return t.theme==="dark"?eN.map(function(d){var f=d.index,p=d.opacity,m=xc(tN(ma(t.backgroundColor||"#141414"),ma(n[f]),p*100));return m}):n}var La={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"},Jl={},Af={};Object.keys(La).forEach(function(e){Jl[e]=Vi(La[e]),Jl[e].primary=Jl[e][5],Af[e]=Vi(La[e],{theme:"dark",backgroundColor:"#141414"}),Af[e].primary=Af[e][5]});var nN=Jl.gold,zm=Jl.blue;const rN=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function oN(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 Lx={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"},$s=Object.assign(Object.assign({},Lx),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function iN(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:d}=e,f=n(s),p=n(o),m=n(i),g=n(a),y=n(l),b=r(u,d),v=e.colorLink||e.colorInfo,h=n(v);return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new gt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const aN=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 lN(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},aN(r))}const xo=(e,t)=>new gt(e).setAlpha(t).toRgbString(),Ol=(e,t)=>new gt(e).darken(t).toHexString(),sN=e=>{const t=Vi(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]}},cN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:xo(r,.88),colorTextSecondary:xo(r,.65),colorTextTertiary:xo(r,.45),colorTextQuaternary:xo(r,.25),colorFill:xo(r,.15),colorFillSecondary:xo(r,.06),colorFillTertiary:xo(r,.04),colorFillQuaternary:xo(r,.02),colorBgLayout:Ol(n,4),colorBgContainer:Ol(n,0),colorBgElevated:Ol(n,0),colorBgSpotlight:xo(r,.85),colorBgBlur:"transparent",colorBorder:Ol(n,15),colorBorderSecondary:Ol(n,6)}};function uN(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const dN=e=>{const t=uN(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function fN(e){const t=Object.keys(Lx).map(n=>{const r=Vi(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),iN(e,{generateColorPalettes:sN,generateNeutralColorPalettes:cN})),dN(e.fontSize)),oN(e)),rN(e)),lN(e))}const zx=Im(fN),jx={token:$s,override:{override:$s},hashed:!0},Fx=ce.createContext(jx),Lg="anticon",pN=(e,t)=>t||(e?`ant-${e}`:"ant"),ut=c.createContext({getPrefixCls:pN,iconPrefixCls:Lg}),mN=`-ant-${Date.now()}-${Math.random()}`;function vN(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new gt(a),u=Vi(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new gt(t.primaryColor),l=Vi(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const s=new gt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
:root {
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function gN(e,t){const n=vN(e,t);Mn()&&pi(n,`${mN}-dynamic-theme`)}const oo=c.createContext(!1),hN=e=>{let{children:t,disabled:n}=e;const r=c.useContext(oo);return c.createElement(oo.Provider,{value:n??r},t)},Ja=c.createContext(void 0),yN=e=>{let{children:t,size:n}=e;const r=c.useContext(Ja);return c.createElement(Ja.Provider,{value:n||r},t)};function bN(){const e=c.useContext(oo),t=c.useContext(Ja);return{componentDisabled:e,componentSize:t}}const ju=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],SN="5.12.6";function Bf(e){return e>=0&&e<=255}function wc(e,t){const{r:n,g:r,b:o,a:i}=new gt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new gt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),p=Math.round((o-s*(1-u))/u);if(Bf(d)&&Bf(f)&&Bf(p))return new gt({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new gt({r:n,g:r,b:o,a:1}).toRgbString()}var CN=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 Ax(e){const{override:t}=e,n=CN(e,["override"]),r=Object.assign({},t);Object.keys($s).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:wc(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:wc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:wc(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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:wc(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:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,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 yy=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 Bx={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Hx={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},xN={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},Vx=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=yy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ax(a),i&&Object.entries(i).forEach(l=>{let[s,u]=l;const{theme:d}=u,f=yy(u,["theme"]);let p=f;d&&(p=Vx(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=p}),a};function xn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ce.useContext(Fx),i=`${SN}-${t||""}`,a=n||zx,[l,s,u]=tP(a,[$s,e],{salt:i,override:r,getComputedToken:Vx,formatToken:Ax,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Bx,ignore:Hx,preserve:xN}});return[a,u,t?s:"",l,o]}function fn(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function za(e){var t=c.useRef(!1),n=c.useState(e),r=oe(n,2),o=r[0],i=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function Hf(e){return e!==void 0}function on(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=za(function(){return Hf(o)?o:Hf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=oe(l,2),u=s[0],d=s[1],f=o!==void 0?o:u,p=a?a(f):f,m=fn(i),g=za([f]),y=oe(g,2),b=y[0],v=y[1];ry(function(){var S=b[0];u!==S&&m(u,S)},[b]),ry(function(){Hf(o)||d(o)},[o]);var h=fn(function(S,C){d(S,C),v([f],C)});return[p,h]}const zg=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Yt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},_d=()=>({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"}}),Za=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wN=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),EN=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},vi=e=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Os=e=>({"&:focus-visible":Object.assign({},vi(e))});let Kx=$n(function e(){En(this,e)}),$N=function(e){lo(n,e);var t=so(n);function n(r){var o;return En(this,n),o=t.call(this),o.result=0,r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return $n(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}(Kx);const Wx="CALC_UNIT";function Vf(e){return typeof e=="number"?`${e}${Wx}`:e}let ON=function(e){lo(n,e);var t=so(n);function n(r){var o;return En(this,n),o=t.call(this),o.result="",r instanceof n?o.result=`(${r.result})`:typeof r=="number"?o.result=Vf(r):typeof r=="string"&&(o.result=r),o}return $n(n,[{key:"add",value:function(o){return o instanceof n?this.result=`${this.result} + ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} + ${Vf(o)}`),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result=`${this.result} - ${o.getResult()}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} - ${Vf(o)}`),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} * ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} * ${o}`),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result=`(${this.result})`),o instanceof n?this.result=`${this.result} / ${o.getResult(!0)}`:(typeof o=="number"||typeof o=="string")&&(this.result=`${this.result} / ${o}`),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?`(${this.result})`:this.result}},{key:"equal",value:function(o){const{unit:i=!0}=o||{},a=new RegExp(`${Wx}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),n}(Kx);const IN=e=>{const t=e==="css"?ON:$N;return n=>new t(n)};function RN(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(${n.map(o=>te(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>te(o)).join(",")})`}}}const Ux=typeof CSSINJS_STATISTIC<"u";let jm=!0;function wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ux)return Object.assign.apply(Object,[{}].concat(t));jm=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),jm=!0,r}const by={};function PN(){}const NN=e=>{let t,n=e,r=PN;return Ux&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return jm&&t.add(i),o[i]}}),r=(o,i)=>{var a;by[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=by[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},qx=(e,t)=>{const[n,r]=xn();return km({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},_d()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Gx=(e,t,n)=>{var r;return typeof n=="function"?n(wt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},Xx=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,u]=l;var d;(o!=null&&o[s]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[s]))})}let i=Object.assign(Object.assign({},n),o);return r!=null&&r.format&&(i=r.format(i)),Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},TN=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function jg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return l=>{const[s,u,d,f,p]=xn(),{getPrefixCls:m,iconPrefixCls:g,csp:y}=c.useContext(ut),b=m(),v=p?"css":"js",h=IN(v),{max:S,min:C}=RN(v),$={theme:s,token:f,hashId:d,nonce:()=>y==null?void 0:y.nonce,clientOnly:r.clientOnly,order:r.order||-999};return km(Object.assign(Object.assign({},$),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":wN(f)}]),qx(g,y),[km(Object.assign(Object.assign({},$),{path:[a,l,g]}),()=>{if(r.injectStyle===!1)return[];const{token:E,flush:w}=NN(f),x=Gx(i,u,n),I=`.${l}`,R=Xx(i,u,x,{deprecatedTokens:r.deprecatedTokens,format:r.format});p&&Object.keys(x).forEach(k=>{x[k]=`var(${mx(k,TN(i,p.prefix))})`});const T=wt(E,{componentCls:I,prefixCls:l,iconCls:`.${g}`,antCls:`.${b}`,calc:h,max:S,min:C},p?x:R),M=t(T,{hashId:d,prefixCls:l,rootPrefixCls:b,iconPrefixCls:g});return w(i,R),[r.resetStyle===!1?null:EN(T,l),M]}),d]}}const zs=(e,t,n,r)=>{const o=jg(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l}=a;return o(l),null}},MN=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{a[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,p]=xn();return PP({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},Bx),a),ignore:Hx,token:p,scope:d},()=>{const m=Gx(e,p,t),g=Xx(e,p,m,{format:n==null?void 0:n.format,deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(m).forEach(y=>{g[r(y)]=g[y],delete g[y]}),g}),null};return u=>{const[,,,,d]=xn();return[f=>i&&d?ce.createElement(ce.Fragment,null,ce.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},mn=(e,t,n,r)=>{const o=jg(e,t,n,r),i=MN(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,s]=o(a),[u,d]=i(l);return[u,s,d]}};function Yx(e,t){return ju.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const kN=Object.assign({},Ms),{useId:Sy}=kN,DN=()=>"",_N=typeof Sy>"u"?DN:Sy;function LN(e,t){Yi();const n=e||{},r=n.inherit===!1||!t?jx:t,o=_N();return Xi(()=>{var i,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(d=>{l[d]=Object.assign(Object.assign({},l[d]),e.components[d])});const s=`css-var-${o.replace(/:/g,"")}`,u=((i=n.cssVar)!==null&&i!==void 0?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((a=n.cssVar)===null||a===void 0?void 0:a.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:u})},[n,r],(i,a)=>i.some((l,s)=>{const u=a[s];return!zo(l,u,!0)}))}var zN=["children"],Qx=c.createContext({});function jN(e){var t=e.children,n=nt(e,zN);return c.createElement(Qx.Provider,{value:n},t)}var FN=function(e){lo(n,e);var t=so(n);function n(){return En(this,n),t.apply(this,arguments)}return $n(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),$i="none",Ec="appear",$c="enter",Oc="leave",Cy="none",Yr="prepare",Ra="start",Pa="active",Fg="end",Jx="prepared";function xy(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 AN(e,t){var n={animationend:xy("Animation","AnimationEnd"),transitionend:xy("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var BN=AN(Mn(),typeof window<"u"?window:{}),Zx={};if(Mn()){var HN=document.createElement("div");Zx=HN.style}var Ic={};function ew(e){if(Ic[e])return Ic[e];var t=BN[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Zx)return Ic[e]=t[i],Ic[e]}return""}var tw=ew("animationend"),nw=ew("transitionend"),rw=!!(tw&&nw),wy=tw||"animationend",Ey=nw||"transitionend";function $y(e,t){if(!e)return null;if(tt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const VN=function(e){var t=c.useRef(),n=c.useRef(e);n.current=e;var r=c.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(Ey,r),a.removeEventListener(wy,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Ey,r),a.addEventListener(wy,r),t.current=a)}return c.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var ow=Mn()?c.useLayoutEffect:c.useEffect;const KN=function(){var e=c.useRef(null);function t(){zt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=zt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var WN=[Yr,Ra,Pa,Fg],UN=[Yr,Jx],iw=!1,qN=!0;function aw(e){return e===Pa||e===Fg}const GN=function(e,t,n){var r=za(Cy),o=oe(r,2),i=o[0],a=o[1],l=KN(),s=oe(l,2),u=s[0],d=s[1];function f(){a(Yr,!0)}var p=t?UN:WN;return ow(function(){if(i!==Cy&&i!==Fg){var m=p.indexOf(i),g=p[m+1],y=n(i);y===iw?a(g,!0):g&&u(function(b){function v(){b.isCanceled()||a(g,!0)}y===!0?v():Promise.resolve(y).then(v)})}},[e,i]),c.useEffect(function(){return function(){d()}},[]),[f,i]};function XN(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,u=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,g=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,v=r.onLeaveStart,h=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,$=r.onAppearEnd,O=r.onEnterEnd,E=r.onLeaveEnd,w=r.onVisibleChanged,x=za(),I=oe(x,2),R=I[0],T=I[1],M=za($i),k=oe(M,2),_=k[0],D=k[1],N=za(null),P=oe(N,2),z=P[0],j=P[1],F=c.useRef(!1),L=c.useRef(null);function A(){return n()}var G=c.useRef(!1);function H(){D($i,!0),j(null,!0)}function V(ae){var re=A();if(!(ae&&!ae.deadline&&ae.target!==re)){var de=G.current,se;_===Ec&&de?se=$==null?void 0:$(re,ae):_===$c&&de?se=O==null?void 0:O(re,ae):_===Oc&&de&&(se=E==null?void 0:E(re,ae)),_!==$i&&de&&se!==!1&&H()}}var J=VN(V),X=oe(J,1),K=X[0],q=function(re){var de,se,he;switch(re){case Ec:return de={},B(de,Yr,p),B(de,Ra,y),B(de,Pa,h),de;case $c:return se={},B(se,Yr,m),B(se,Ra,b),B(se,Pa,S),se;case Oc:return he={},B(he,Yr,g),B(he,Ra,v),B(he,Pa,C),he;default:return{}}},U=c.useMemo(function(){return q(_)},[_]),Q=GN(_,!e,function(ae){if(ae===Yr){var re=U[Yr];return re?re(A()):iw}if(ee in U){var de;j(((de=U[ee])===null||de===void 0?void 0:de.call(U,A(),null))||null)}return ee===Pa&&(K(A()),d>0&&(clearTimeout(L.current),L.current=setTimeout(function(){V({deadline:!0})},d))),ee===Jx&&H(),qN}),Y=oe(Q,2),ne=Y[0],ee=Y[1],ie=aw(ee);G.current=ie,ow(function(){T(t);var ae=F.current;F.current=!0;var re;!ae&&t&&l&&(re=Ec),ae&&t&&i&&(re=$c),(ae&&!t&&u||!ae&&f&&!t&&u)&&(re=Oc);var de=q(re);re&&(e||de[Yr])?(D(re),ne()):D($i)},[t]),c.useEffect(function(){(_===Ec&&!l||_===$c&&!i||_===Oc&&!u)&&D($i)},[l,i,u]),c.useEffect(function(){return function(){F.current=!1,clearTimeout(L.current)}},[]);var ue=c.useRef(!1);c.useEffect(function(){R&&(ue.current=!0),R!==void 0&&_===$i&&((ue.current||R)&&(w==null||w(R)),ue.current=!0)},[R,_]);var me=z;return U[Yr]&&ee===Ra&&(me=W({transition:"none"},me)),[_,ee,me,R??t]}function YN(e){var t=e;tt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=c.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,u=s===void 0?!0:s,d=o.forceRender,f=o.children,p=o.motionName,m=o.leavedClassName,g=o.eventProps,y=c.useContext(Qx),b=y.motion,v=n(o,b),h=c.useRef(),S=c.useRef();function C(){try{return h.current instanceof HTMLElement?h.current:Xl(S.current)}catch{return null}}var $=XN(v,l,C,o),O=oe($,4),E=O[0],w=O[1],x=O[2],I=O[3],R=c.useRef(I);I&&(R.current=!0);var T=c.useCallback(function(j){h.current=j,Cs(i,j)},[i]),M,k=W(W({},g),{},{visible:l});if(!f)M=null;else if(E===$i)I?M=f(W({},k),T):!u&&R.current&&m?M=f(W(W({},k),{},{className:m}),T):d||!u&&!m?M=f(W(W({},k),{},{style:{display:"none"}}),T):M=null;else{var _,D;w===Yr?D="prepare":aw(w)?D="active":w===Ra&&(D="start");var N=$y(p,"".concat(E,"-").concat(D));M=f(W(W({},k),{},{className:Z($y(p,E),(_={},B(_,N,N&&D),B(_,p,typeof p=="string"),_)),style:x}),T)}if(c.isValidElement(M)&&yo(M)){var P=M,z=P.ref;z||(M=c.cloneElement(M,{ref:T}))}return c.createElement(FN,{ref:S},M)});return r.displayName="CSSMotion",r}const Bo=YN(rw);var Fm="add",Am="keep",Bm="remove",Kf="removed";function QN(e){var t;return e&&tt(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function Hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(QN)}function JN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Hm(e),a=Hm(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var p=a[f];if(p.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(m){return W(W({},m),{},{status:Fm})})),r=f),n.push(W(W({},p),{},{status:Am})),r+=1,d=!0;break}}d||n.push(W(W({},u),{},{status:Bm}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return W(W({},u),{},{status:Fm})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(u){return l[u]>1});return s.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==Bm}),n.forEach(function(d){d.key===u&&(d.status=Am)})}),n}var ZN=["component","children","onVisibleChanged","onAllRemoved"],eT=["status"],tT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function nT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bo,n=function(r){lo(i,r);var o=so(i);function i(){var a;En(this,i);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return a=o.call.apply(o,[this].concat(s)),B(ot(a),"state",{keyEntities:[]}),B(ot(a),"removeKey",function(d){var f=a.state.keyEntities,p=f.map(function(m){return m.key!==d?m:W(W({},m),{},{status:Kf})});return a.setState({keyEntities:p}),p.filter(function(m){var g=m.status;return g!==Kf}).length}),a}return $n(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,u=this.props,d=u.component,f=u.children,p=u.onVisibleChanged,m=u.onAllRemoved,g=nt(u,ZN),y=d||c.Fragment,b={};return tT.forEach(function(v){b[v]=g[v],delete g[v]}),delete g.keys,c.createElement(y,g,s.map(function(v,h){var S=v.status,C=nt(v,eT),$=S===Fm||S===Am;return c.createElement(t,fe({},b,{key:C.key,visible:$,eventProps:C,onVisibleChanged:function(E){if(p==null||p(E,{key:C.key}),!E){var w=l.removeKey(C.key);w===0&&m&&m()}}}),function(O,E){return f(W(W({},O),{},{index:h}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var u=l.keys,d=s.keyEntities,f=Hm(u),p=JN(d,f);return{keyEntities:p.filter(function(m){var g=d.find(function(y){var b=y.key;return m.key===b});return!(g&&g.status===Kf&&m.status===Bm)})}}}]),i}(c.Component);return B(n,"defaultProps",{component:"div"}),n}const lw=nT(rw);function rT(e){const{children:t}=e,[,n]=xn(),{motion:r}=n,o=c.useRef(!1);return o.current=o.current||r===!1,o.current?c.createElement(jN,{motion:r},t):t}const oT=()=>null;var iT=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 aT=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],lT="ant";let Fu,sw,cw;function eu(){return Fu||lT}function sT(){return sw||Lg}function cT(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const uT=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Fu=t),n!==void 0&&(sw=n),r&&(cT(r)?gN(eu(),r):cw=r)},uw=()=>({getPrefixCls:(e,t)=>t||(e?`${eu()}-${e}`:eu()),getIconPrefixCls:sT,getRootPrefixCls:()=>Fu||eu(),getTheme:()=>cw}),dT=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:y,parentContext:b,iconPrefixCls:v,theme:h,componentDisabled:S,segmented:C,statistic:$,spin:O,calendar:E,carousel:w,cascader:x,collapse:I,typography:R,checkbox:T,descriptions:M,divider:k,drawer:_,skeleton:D,steps:N,image:P,layout:z,list:j,mentions:F,modal:L,progress:A,result:G,slider:H,breadcrumb:V,menu:J,pagination:X,input:K,empty:q,badge:U,radio:Q,rate:Y,switch:ne,transfer:ee,avatar:ie,message:ue,tag:me,table:ae,card:re,tabs:de,timeline:se,timePicker:he,upload:$e,notification:Ce,tree:ye,colorPicker:We,datePicker:Ke,rangePicker:Ue,flex:Ee,wave:pe,dropdown:Ie,warning:be}=e,Re=c.useCallback((Te,ze)=>{const{prefixCls:ke}=e;if(ze)return ze;const Ve=ke||b.getPrefixCls("");return Te?`${Ve}-${Te}`:Ve},[b.getPrefixCls,e.prefixCls]),Oe=v||b.iconPrefixCls||Lg,xe=n||b.csp;qx(Oe,xe);const Fe=LN(h,b.theme),Qe={csp:xe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||y,direction:u,space:d,virtual:f,popupMatchSelectWidth:m??p,popupOverflow:g,getPrefixCls:Re,iconPrefixCls:Oe,theme:Fe,segmented:C,statistic:$,spin:O,calendar:E,carousel:w,cascader:x,collapse:I,typography:R,checkbox:T,descriptions:M,divider:k,drawer:_,skeleton:D,steps:N,image:P,input:K,layout:z,list:j,mentions:F,modal:L,progress:A,result:G,slider:H,breadcrumb:V,menu:J,pagination:X,empty:q,badge:U,radio:Q,rate:Y,switch:ne,transfer:ee,avatar:ie,message:ue,tag:me,table:ae,card:re,tabs:de,timeline:se,timePicker:he,upload:$e,notification:Ce,tree:ye,colorPicker:We,datePicker:Ke,rangePicker:Ue,flex:Ee,wave:pe,dropdown:Ie,warning:be},Ze=Object.assign({},b);Object.keys(Qe).forEach(Te=>{Qe[Te]!==void 0&&(Ze[Te]=Qe[Te])}),aT.forEach(Te=>{const ze=e[Te];ze&&(Ze[Te]=ze)});const ve=Xi(()=>Ze,Ze,(Te,ze)=>{const ke=Object.keys(Te),Ve=Object.keys(ze);return ke.length!==Ve.length||ke.some(we=>Te[we]!==ze[we])}),De=c.useMemo(()=>({prefixCls:Oe,csp:xe}),[Oe,xe]);let qe=c.createElement(c.Fragment,null,c.createElement(oT,{dropdownMatchSelectWidth:p}),t);const lt=c.useMemo(()=>{var Te,ze,ke,Ve;return Ia(((Te=mi.Form)===null||Te===void 0?void 0:Te.defaultValidateMessages)||{},((ke=(ze=ve.locale)===null||ze===void 0?void 0:ze.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((Ve=ve.form)===null||Ve===void 0?void 0:Ve.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[ve,a==null?void 0:a.validateMessages]);Object.keys(lt).length>0&&(qe=c.createElement(_P.Provider,{value:lt},qe)),l&&(qe=c.createElement(FP,{locale:l,_ANT_MARK__:jP},qe)),(Oe||xe)&&(qe=c.createElement(Dg.Provider,{value:De},qe)),s&&(qe=c.createElement(yN,{size:s},qe)),qe=c.createElement(rT,null,qe);const Je=c.useMemo(()=>{const Te=Fe||{},{algorithm:ze,token:ke,components:Ve,cssVar:we}=Te,_e=iT(Te,["algorithm","token","components","cssVar"]),Ne=ze&&(!Array.isArray(ze)||ze.length>0)?Im(ze):zx,Me={};Object.entries(Ve||{}).forEach(ft=>{let[jt,Le]=ft;const Ae=Object.assign({},Le);"algorithm"in Ae&&(Ae.algorithm===!0?Ae.theme=Ne:(Array.isArray(Ae.algorithm)||typeof Ae.algorithm=="function")&&(Ae.theme=Im(Ae.algorithm)),delete Ae.algorithm),Me[jt]=Ae});const st=Object.assign(Object.assign({},$s),ke);return Object.assign(Object.assign({},_e),{theme:Ne,token:st,components:Me,override:Object.assign({override:st},Me),cssVar:we})},[Fe]);return h&&(qe=c.createElement(Fx.Provider,{value:Je},qe)),ve.warning&&(qe=c.createElement(DP.Provider,{value:ve.warning},qe)),S!==void 0&&(qe=c.createElement(hN,{disabled:S},qe)),c.createElement(ut.Provider,{value:ve},qe)},Qi=e=>{const t=c.useContext(ut),n=c.useContext(_g);return c.createElement(dT,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=ut;Qi.SizeContext=Ja;Qi.config=uT;Qi.useConfig=bN;Object.defineProperty(Qi,"SizeContext",{get:()=>Ja});var fT={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 dw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function pT(e){return dw(e)instanceof ShadowRoot}function Au(e){return pT(e)?dw(e):null}function mT(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function vT(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function Oy(e){return tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(tt(e.icon)==="object"||typeof e.icon=="function")}function Iy(){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[mT(n)]=r}return t},{})}function Vm(e,t,n){return n?ce.createElement(e.tag,W(W({key:t},Iy(e.attrs)),n),(e.children||[]).map(function(r,o){return Vm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ce.createElement(e.tag,W({key:t},Iy(e.attrs)),(e.children||[]).map(function(r,o){return Vm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function fw(e){return Vi(e)[0]}function pw(e){return e?Array.isArray(e)?e:[e]:[]}var gT=`
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,hT=function(t){var n=c.useContext(Dg),r=n.csp,o=n.prefixCls,i=gT;o&&(i=i.replace(/anticon/g,o)),c.useEffect(function(){var a=t.current,l=Au(a);pi(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},yT=["icon","className","onClick","style","primaryColor","secondaryColor"],Zl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function bT(e){var t=e.primaryColor,n=e.secondaryColor;Zl.primaryColor=t,Zl.secondaryColor=n||fw(t),Zl.calculated=!!n}function ST(){return W({},Zl)}var fl=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=nt(t,yT),u=c.useRef(),d=Zl;if(a&&(d={primaryColor:a,secondaryColor:l||fw(a)}),hT(u),vT(Oy(n),"icon should be icon definiton, but got ".concat(n)),!Oy(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=W(W({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Vm(f.icon,"svg-".concat(f.name),W(W({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};fl.displayName="IconReact";fl.getTwoToneColors=ST;fl.setTwoToneColors=bT;function mw(e){var t=pw(e),n=oe(t,2),r=n[0],o=n[1];return fl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function CT(){var e=fl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var xT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mw(zm.primary);var pt=c.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,d=nt(e,xT),f=c.useContext(Dg),p=f.prefixCls,m=p===void 0?"anticon":p,g=f.rootClassName,y=Z(g,m,(n={},B(n,"".concat(m,"-").concat(o.name),!!o.name),B(n,"".concat(m,"-spin"),!!i||o.name==="loading"),n),r),b=l;b===void 0&&s&&(b=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,h=pw(u),S=oe(h,2),C=S[0],$=S[1];return c.createElement("span",fe({role:"img","aria-label":o.name},d,{ref:t,tabIndex:b,onClick:s,className:y}),c.createElement(fl,{icon:o,primaryColor:C,secondaryColor:$,style:v}))});pt.displayName="AntdIcon";pt.getTwoToneColor=CT;pt.setTwoToneColor=mw;var wT=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:fT}))};const vw=c.forwardRef(wT);var ET={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"},$T=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:ET}))};const js=c.forwardRef($T);var OT={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"},IT=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:OT}))};const Fs=c.forwardRef(IT);var RT={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"},PT=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:RT}))};const NT=c.forwardRef(PT);var TT={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"},MT=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:TT}))};const kT=c.forwardRef(MT);var DT=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,_T=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,LT="".concat(DT," ").concat(_T).split(/[\s\n]+/),zT="aria-",jT="data-";function Ry(e,t){return e.indexOf(t)===0}function io(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=W({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Ry(o,zT))||n.data&&Ry(o,jT)||n.attr&<.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:cr}=Ms;function gw(e){return e&&cr(e)&&e.type===c.Fragment}function FT(e,t,n){return cr(e)?c.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Xn(e,t){return FT(e,e,t)}function Km(e){return e!=null&&e===e.window}function AT(e,t){var n,r;if(typeof window>"u")return 0;const o="scrollTop";let i=0;return Km(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!Km(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function BT(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function HT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=AT(i),l=Date.now(),s=()=>{const d=Date.now()-l,f=BT(d>o?o:d,a,e,o);Km(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?zt(s):typeof r=="function"&&r()};zt(s)}const Kr=e=>{const[,,,,t]=xn();return t?`${e}-css-var`:""};var ge={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ge.F1&&n<=ge.F12)return!1;switch(n){case ge.ALT:case ge.CAPS_LOCK:case ge.CONTEXT_MENU:case ge.CTRL:case ge.DOWN:case ge.END:case ge.ESC:case ge.HOME:case ge.INSERT:case ge.LEFT:case ge.MAC_FF_META:case ge.META:case ge.NUMLOCK:case ge.NUM_CENTER:case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAUSE:case ge.PRINT_SCREEN:case ge.RIGHT:case ge.SHIFT:case ge.UP:case ge.WIN_KEY:case ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ge.ZERO&&t<=ge.NINE||t>=ge.NUM_ZERO&&t<=ge.NUM_MULTIPLY||t>=ge.A&&t<=ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ge.SPACE:case ge.QUESTION_MARK:case ge.NUM_PLUS:case ge.NUM_MINUS:case ge.NUM_PERIOD:case ge.NUM_DIVISION:case ge.SEMICOLON:case ge.DASH:case ge.EQUALS:case ge.COMMA:case ge.PERIOD:case ge.SLASH:case ge.APOSTROPHE:case ge.SINGLE_QUOTE:case ge.OPEN_SQUARE_BRACKET:case ge.BACKSLASH:case ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hw=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.eventKey,s=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,p=e.props,m=e.onClick,g=e.onNoticeClose,y=e.times,b=e.hovering,v=c.useState(!1),h=oe(v,2),S=h[0],C=h[1],$=b||S,O=function(){g(l)},E=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===ge.ENTER)&&O()};c.useEffect(function(){if(!$&&a>0){var x=setTimeout(function(){O()},a*1e3);return function(){clearTimeout(x)}}},[a,$,y]);var w="".concat(n,"-notice");return c.createElement("div",fe({},p,{ref:t,className:Z(w,o,B({},"".concat(w,"-closable"),u)),style:r,onMouseEnter:function(I){var R;C(!0),p==null||(R=p.onMouseEnter)===null||R===void 0||R.call(p,I)},onMouseLeave:function(I){var R;C(!1),p==null||(R=p.onMouseLeave)===null||R===void 0||R.call(p,I)},onClick:m}),c.createElement("div",{className:"".concat(w,"-content")},s),u&&c.createElement("a",{tabIndex:0,className:"".concat(w,"-close"),onKeyDown:E,onClick:function(I){I.preventDefault(),I.stopPropagation(),O()}},f))}),yw=ce.createContext({}),VT=function(t){var n=t.children,r=t.classNames;return ce.createElement(yw.Provider,{value:{classNames:r}},n)},Py=8,Ny=3,Ty=16,KT=function(t){var n={offset:Py,threshold:Ny,gap:Ty};if(t&&tt(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Py,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ny,n.gap=(i=t.gap)!==null&&i!==void 0?i:Ty}return[!!t,n]},WT=["className","style","classNames","styles"],UT=function(t){var n,r=t.configList,o=t.placement,i=t.prefixCls,a=t.className,l=t.style,s=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,f=t.stack,p=c.useContext(yw),m=p.classNames,g=c.useRef({}),y=c.useState(null),b=oe(y,2),v=b[0],h=b[1],S=c.useState([]),C=oe(S,2),$=C[0],O=C[1],E=r.map(function(N){return{config:N,key:String(N.key)}}),w=KT(f),x=oe(w,2),I=x[0],R=x[1],T=R.offset,M=R.threshold,k=R.gap,_=I&&($.length>0||E.length<=M),D=typeof s=="function"?s(o):s;return c.useEffect(function(){I&&$.length>1&&O(function(N){return N.filter(function(P){return E.some(function(z){var j=z.key;return P===j})})})},[$,E,I]),c.useEffect(function(){var N;if(I&&g.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key]){var P;h(g.current[(P=E[E.length-1])===null||P===void 0?void 0:P.key])}},[E,I]),ce.createElement(lw,fe({key:o,className:Z(i,"".concat(i,"-").concat(o),m==null?void 0:m.list,a,(n={},B(n,"".concat(i,"-stack"),!!I),B(n,"".concat(i,"-stack-expanded"),_),n)),style:l,keys:E,motionAppear:!0},D,{onAllRemoved:function(){u(o)}}),function(N,P){var z=N.config,j=N.className,F=N.style,L=N.index,A=z,G=A.key,H=A.times,V=String(G),J=z,X=J.className,K=J.style,q=J.classNames,U=J.styles,Q=nt(J,WT),Y=E.findIndex(function(Ce){return Ce.key===V}),ne={};if(I){var ee=E.length-1-(Y>-1?Y:L-1),ie=o==="top"||o==="bottom"?"-50%":"0";if(ee>0){var ue,me,ae;ne.height=_?(ue=g.current[V])===null||ue===void 0?void 0:ue.offsetHeight:v==null?void 0:v.offsetHeight;for(var re=0,de=0;de<ee;de++){var se;re+=((se=g.current[E[E.length-1-de].key])===null||se===void 0?void 0:se.offsetHeight)+k}var he=(_?re:ee*T)*(o.startsWith("top")?1:-1),$e=!_&&v!==null&&v!==void 0&&v.offsetWidth&&(me=g.current[V])!==null&&me!==void 0&&me.offsetWidth?((v==null?void 0:v.offsetWidth)-T*2*(ee<3?ee:3))/((ae=g.current[V])===null||ae===void 0?void 0:ae.offsetWidth):1;ne.transform="translate3d(".concat(ie,", ").concat(he,"px, 0) scaleX(").concat($e,")")}else ne.transform="translate3d(".concat(ie,", 0, 0)")}return ce.createElement("div",{ref:P,className:Z("".concat(i,"-notice-wrapper"),j,q==null?void 0:q.wrapper),style:W(W(W({},F),ne),U==null?void 0:U.wrapper),onMouseEnter:function(){return O(function(ye){return ye.includes(V)?ye:[].concat(Se(ye),[V])})},onMouseLeave:function(){return O(function(ye){return ye.filter(function(We){return We!==V})})}},ce.createElement(hw,fe({},Q,{ref:function(ye){Y>-1?g.current[V]=ye:delete g.current[V]},prefixCls:i,classNames:q,styles:U,className:Z(X,m==null?void 0:m.notice),style:K,times:H,key:G,eventKey:G,onNoticeClose:d,hovering:I&&$.length>0})))})},qT=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=c.useState([]),m=oe(p,2),g=m[0],y=m[1],b=function(x){var I,R=g.find(function(T){return T.key===x});R==null||(I=R.onClose)===null||I===void 0||I.call(R),y(function(T){return T.filter(function(M){return M.key!==x})})};c.useImperativeHandle(t,function(){return{open:function(x){y(function(I){var R=Se(I),T=R.findIndex(function(_){return _.key===x.key}),M=W({},x);if(T>=0){var k;M.times=(((k=I[T])===null||k===void 0?void 0:k.times)||0)+1,R[T]=M}else M.times=0,R.push(M);return a>0&&R.length>a&&(R=R.slice(-a)),R})},close:function(x){b(x)},destroy:function(){y([])}}});var v=c.useState({}),h=oe(v,2),S=h[0],C=h[1];c.useEffect(function(){var w={};g.forEach(function(x){var I=x.placement,R=I===void 0?"topRight":I;R&&(w[R]=w[R]||[],w[R].push(x))}),Object.keys(S).forEach(function(x){w[x]=w[x]||[]}),C(w)},[g]);var $=function(x){C(function(I){var R=W({},I),T=R[x]||[];return T.length||delete R[x],R})},O=c.useRef(!1);if(c.useEffect(function(){Object.keys(S).length>0?O.current=!0:O.current&&(u==null||u(),O.current=!1)},[S]),!o)return null;var E=Object.keys(S);return Ar.createPortal(c.createElement(c.Fragment,null,E.map(function(w){var x=S[w],I=c.createElement(UT,{key:w,configList:x,placement:w,prefixCls:r,className:l==null?void 0:l(w),style:s==null?void 0:s(w),motion:i,onNoticeClose:b,onAllNoticeRemoved:$,stack:d});return f?f(I,{prefixCls:r,key:w}):I})),o)}),GT=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],XT=function(){return document.body},My=0;function YT(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function QT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?XT:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=nt(e,GT),p=c.useState(),m=oe(p,2),g=m[0],y=m[1],b=c.useRef(),v=c.createElement(qT,{container:g,ref:b,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:u,renderNotifications:d}),h=c.useState([]),S=oe(h,2),C=S[0],$=S[1],O=c.useMemo(function(){return{open:function(w){var x=YT(f,w);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(My),My+=1),$(function(I){return[].concat(Se(I),[{type:"open",config:x}])})},close:function(w){$(function(x){return[].concat(Se(x),[{type:"close",key:w}])})},destroy:function(){$(function(w){return[].concat(Se(w),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){y(n())}),c.useEffect(function(){b.current&&C.length&&(C.forEach(function(E){switch(E.type){case"open":b.current.open(E.config);break;case"close":b.current.close(E.key);break;case"destroy":b.current.destroy();break}}),$(function(E){return E.filter(function(w){return!C.includes(w)})}))},[C]),[O,v]}var JT={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"},ZT=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:JT}))};const el=c.forwardRef(ZT),Ag=ce.createContext(void 0),Oi=100,e4=10,bw=Oi*e4,Sw={Modal:Oi,Drawer:Oi,Popover:Oi,Popconfirm:Oi,Tooltip:Oi,Tour:Oi},t4={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function n4(e){return e in Sw}function Ld(e,t){const[,n]=xn(),r=ce.useContext(Ag),o=n4(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+Sw[e],i=Math.min(i,n.zIndexPopupBase+bw)):i+=t4[e],[r===void 0?t:i,i]}function Hn(){Hn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(D,N,P){D[N]=P.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(D,N,P){return Object.defineProperty(D,N,{value:P,enumerable:!0,configurable:!0,writable:!0}),D[N]}try{u({},"")}catch{u=function(P,z,j){return P[z]=j}}function d(D,N,P,z){var j=N&&N.prototype instanceof v?N:v,F=Object.create(j.prototype),L=new k(z||[]);return o(F,"_invoke",{value:I(D,P,L)}),F}function f(D,N,P){try{return{type:"normal",arg:D.call(N,P)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var p="suspendedStart",m="suspendedYield",g="executing",y="completed",b={};function v(){}function h(){}function S(){}var C={};u(C,a,function(){return this});var $=Object.getPrototypeOf,O=$&&$($(_([])));O&&O!==n&&r.call(O,a)&&(C=O);var E=S.prototype=v.prototype=Object.create(C);function w(D){["next","throw","return"].forEach(function(N){u(D,N,function(P){return this._invoke(N,P)})})}function x(D,N){function P(j,F,L,A){var G=f(D[j],D,F);if(G.type!=="throw"){var H=G.arg,V=H.value;return V&&tt(V)=="object"&&r.call(V,"__await")?N.resolve(V.__await).then(function(J){P("next",J,L,A)},function(J){P("throw",J,L,A)}):N.resolve(V).then(function(J){H.value=J,L(H)},function(J){return P("throw",J,L,A)})}A(G.arg)}var z;o(this,"_invoke",{value:function(F,L){function A(){return new N(function(G,H){P(F,L,G,H)})}return z=z?z.then(A,A):A()}})}function I(D,N,P){var z=p;return function(j,F){if(z===g)throw new Error("Generator is already running");if(z===y){if(j==="throw")throw F;return{value:e,done:!0}}for(P.method=j,P.arg=F;;){var L=P.delegate;if(L){var A=R(L,P);if(A){if(A===b)continue;return A}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(z===p)throw z=y,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);z=g;var G=f(D,N,P);if(G.type==="normal"){if(z=P.done?y:m,G.arg===b)continue;return{value:G.arg,done:P.done}}G.type==="throw"&&(z=y,P.method="throw",P.arg=G.arg)}}}function R(D,N){var P=N.method,z=D.iterator[P];if(z===e)return N.delegate=null,P==="throw"&&D.iterator.return&&(N.method="return",N.arg=e,R(D,N),N.method==="throw")||P!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+P+"' method")),b;var j=f(z,D.iterator,N.arg);if(j.type==="throw")return N.method="throw",N.arg=j.arg,N.delegate=null,b;var F=j.arg;return F?F.done?(N[D.resultName]=F.value,N.next=D.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):F:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function T(D){var N={tryLoc:D[0]};1 in D&&(N.catchLoc=D[1]),2 in D&&(N.finallyLoc=D[2],N.afterLoc=D[3]),this.tryEntries.push(N)}function M(D){var N=D.completion||{};N.type="normal",delete N.arg,D.completion=N}function k(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(T,this),this.reset(!0)}function _(D){if(D||D===""){var N=D[a];if(N)return N.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var P=-1,z=function j(){for(;++P<D.length;)if(r.call(D,P))return j.value=D[P],j.done=!1,j;return j.value=e,j.done=!0,j};return z.next=z}}throw new TypeError(tt(D)+" is not iterable")}return h.prototype=S,o(E,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:h,configurable:!0}),h.displayName=u(S,s,"GeneratorFunction"),t.isGeneratorFunction=function(D){var N=typeof D=="function"&&D.constructor;return!!N&&(N===h||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,S):(D.__proto__=S,u(D,s,"GeneratorFunction")),D.prototype=Object.create(E),D},t.awrap=function(D){return{__await:D}},w(x.prototype),u(x.prototype,l,function(){return this}),t.AsyncIterator=x,t.async=function(D,N,P,z,j){j===void 0&&(j=Promise);var F=new x(d(D,N,P,z),j);return t.isGeneratorFunction(N)?F:F.next().then(function(L){return L.done?L.value:F.next()})},w(E),u(E,s,"Generator"),u(E,a,function(){return this}),u(E,"toString",function(){return"[object Generator]"}),t.keys=function(D){var N=Object(D),P=[];for(var z in N)P.push(z);return P.reverse(),function j(){for(;P.length;){var F=P.pop();if(F in N)return j.value=F,j.done=!1,j}return j.done=!0,j}},t.values=_,k.prototype={constructor:k,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!N)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var P=this;function z(H,V){return L.type="throw",L.arg=N,P.next=H,V&&(P.method="next",P.arg=e),!!V}for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j],L=F.completion;if(F.tryLoc==="root")return z("end");if(F.tryLoc<=this.prev){var A=r.call(F,"catchLoc"),G=r.call(F,"finallyLoc");if(A&&G){if(this.prev<F.catchLoc)return z(F.catchLoc,!0);if(this.prev<F.finallyLoc)return z(F.finallyLoc)}else if(A){if(this.prev<F.catchLoc)return z(F.catchLoc,!0)}else{if(!G)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return z(F.finallyLoc)}}}},abrupt:function(N,P){for(var z=this.tryEntries.length-1;z>=0;--z){var j=this.tryEntries[z];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var F=j;break}}F&&(N==="break"||N==="continue")&&F.tryLoc<=P&&P<=F.finallyLoc&&(F=null);var L=F?F.completion:{};return L.type=N,L.arg=P,F?(this.method="next",this.next=F.finallyLoc,b):this.complete(L)},complete:function(N,P){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&P&&(this.next=P),b},finish:function(N){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.finallyLoc===N)return this.complete(z.completion,z.afterLoc),M(z),b}},catch:function(N){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.tryLoc===N){var j=z.completion;if(j.type==="throw"){var F=j.arg;M(z)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(N,P,z){return this.delegate={iterator:_(N),resultName:P,nextLoc:z},this.method==="next"&&(this.arg=e),b}},t}function ky(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,o)}function Si(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){ky(i,r,o,a,l,"next",s)}function l(s){ky(i,r,o,a,l,"throw",s)}a(void 0)})}}var As=W({},jI),r4=As.version,o4=As.render,i4=As.unmountComponentAtNode,zd;try{var a4=Number((r4||"").split(".")[0]);a4>=18&&(zd=As.createRoot)}catch{}function Dy(e){var t=As.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&tt(t)==="object"&&(t.usingClientEntryPoint=e)}var Bu="__rc_react_root__";function l4(e,t){Dy(!0);var n=t[Bu]||zd(t);Dy(!1),n.render(e),t[Bu]=n}function s4(e,t){o4(e,t)}function Cw(e,t){if(zd){l4(e,t);return}s4(e,t)}function c4(e){return Wm.apply(this,arguments)}function Wm(){return Wm=Si(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Bu])===null||o===void 0||o.unmount(),delete t[Bu]}));case 1:case"end":return r.stop()}},e)})),Wm.apply(this,arguments)}function u4(e){i4(e)}function d4(e){return Um.apply(this,arguments)}function Um(){return Um=Si(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(zd===void 0){r.next=2;break}return r.abrupt("return",c4(t));case 2:u4(t);case 3:case"end":return r.stop()}},e)})),Um.apply(this,arguments)}const Wf=()=>({height:0,opacity:0}),_y=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},f4=e=>({height:e?e.offsetHeight:0}),Uf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Bg=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Wf,onEnterStart:Wf,onAppearActive:_y,onEnterActive:_y,onLeaveStart:f4,onLeaveActive:Wf,onAppearEnd:Uf,onEnterEnd:Uf,onLeaveEnd:Uf,motionDeadline:500}},xw=(e,t,n)=>n!==void 0?n:`${e}-${t}`,jd=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},p4=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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},m4=jg("Wave",e=>[p4(e)]);function v4(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function qf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&v4(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function g4(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return qf(t)?t:qf(n)?n:qf(r)?r:null}const Fd="ant-wave-target";function Gf(e){return Number.isNaN(e)?0:e}const h4=e=>{const{className:t,target:n,component:r}=e,o=c.useRef(null),[i,a]=c.useState(null),[l,s]=c.useState([]),[u,d]=c.useState(0),[f,p]=c.useState(0),[m,g]=c.useState(0),[y,b]=c.useState(0),[v,h]=c.useState(!1),S={left:u,top:f,width:m,height:y,borderRadius:l.map(O=>`${O}px`).join(" ")};i&&(S["--wave-color"]=i);function C(){const O=getComputedStyle(n);a(g4(n));const E=O.position==="static",{borderLeftWidth:w,borderTopWidth:x}=O;d(E?n.offsetLeft:Gf(-parseFloat(w))),p(E?n.offsetTop:Gf(-parseFloat(x))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:R,borderBottomLeftRadius:T,borderBottomRightRadius:M}=O;s([I,R,M,T].map(k=>Gf(parseFloat(k))))}if(c.useEffect(()=>{if(n){const O=zt(()=>{C(),h(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(C),E.observe(n)),()=>{zt.cancel(O),E==null||E.disconnect()}}},[]),!v)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Fd));return c.createElement(Bo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,E)=>{var w;if(E.deadline||E.propertyName==="opacity"){const x=(w=o.current)===null||w===void 0?void 0:w.parentElement;d4(x).then(()=>{x==null||x.remove()})}return!1}},O=>{let{className:E}=O;return c.createElement("div",{ref:o,className:Z(t,{"wave-quick":$},E),style:S})})},y4=(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),Cw(c.createElement(h4,Object.assign({},t,{target:e})),o)};function b4(e,t,n){const{wave:r}=c.useContext(ut),[,o,i]=xn(),a=fn(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Fd}`)||d,{showEffect:p}=r||{};(p||y4)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=c.useRef();return u=>{zt.cancel(l.current),l.current=zt(()=>{a(u)})}}const Bs=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(ut),i=c.useRef(null),a=o("wave"),[,l]=m4(a),s=b4(i,Z(a,l),r);if(ce.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!jd(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ce.isValidElement(t))return t??null;const u=yo(t)?Or(t.ref,i):i;return Xn(t,{ref:u})},bo=e=>{const t=ce.useContext(Ja);return ce.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},S4=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},C4=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},x4=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ww=mn("Space",e=>{const t=wt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[C4(t),x4(t),S4(t)]},()=>({}),{resetStyle:!1});var Ew=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 Ad=c.createContext(null),Hs=(e,t)=>{const n=c.useContext(Ad),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return Z(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Hu=e=>{let{children:t}=e;return c.createElement(Ad.Provider,{value:null},t)},w4=e=>{var{children:t}=e,n=Ew(e,["children"]);return c.createElement(Ad.Provider,{value:n},t)},E4=e=>{const{getPrefixCls:t,direction:n}=c.useContext(ut),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:u}=e,d=Ew(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=bo(S=>r??S),p=t("space-compact",a),[m,g]=ww(p),y=Z(p,g,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:o==="vertical"},l,s),b=c.useContext(Ad),v=xr(u),h=c.useMemo(()=>v.map((S,C)=>{const $=S&&S.key||`${p}-item-${C}`;return c.createElement(w4,{key:$,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:C===v.length-1&&(!b||(b==null?void 0:b.isLastItem))},S)}),[r,v,b]);return v.length===0?null:m(c.createElement("div",Object.assign({className:y},d),h))};var $4=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 $w=c.createContext(void 0),O4=e=>{const{getPrefixCls:t,direction:n}=c.useContext(ut),{prefixCls:r,size:o,className:i}=e,a=$4(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=xn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=Z(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,s);return c.createElement($w.Provider,{value:o},c.createElement("div",Object.assign({},a,{className:d})))},Ly=/^[\u4e00-\u9fa5]{2}$/,qm=Ly.test.bind(Ly);function zy(e){return typeof e=="string"}function Xf(e){return e==="text"||e==="link"}function I4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zy(e.type)&&qm(e.props.children)?Xn(e,{children:e.props.children.split("").join(n)}):zy(e)?qm(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):gw(e)?ce.createElement("span",null,e):e}function R4(e,t){let n=!1;const r=[];return ce.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),ce.Children.map(r,o=>I4(o,t))}const Ow=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Z(`${i}-icon`,n);return ce.createElement("span",{ref:t,className:a,style:r},o)}),jy=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=Z(`${n}-loading-icon`,r);return ce.createElement(Ow,{prefixCls:n,className:a,style:o,ref:t},ce.createElement(el,{className:i}))}),Yf=()=>({width:0,opacity:0,transform:"scale(0)"}),Qf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),P4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?ce.createElement(jy,{prefixCls:t,className:o,style:i}):ce.createElement(Bo,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Yf,onAppearActive:Qf,onEnterStart:Yf,onEnterActive:Qf,onLeaveStart:Qf,onLeaveActive:Yf},(l,s)=>{let{className:u,style:d}=l;return ce.createElement(jy,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:s,iconClassName:u})})},Fy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),N4=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Fy(`${t}-primary`,o),Fy(`${t}-danger`,i)]}},T4=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Os(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},jo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),M4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),k4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),D4=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Is=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},jo(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Hg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},D4(e))}),Iw=e=>Object.assign({},Hg(e)),Vu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Rw=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Iw(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),jo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Is(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},jo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Hg(e))}),_4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Iw(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),jo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Is(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},jo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Is(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hg(e))}),L4=e=>Object.assign(Object.assign({},Rw(e)),{borderStyle:"dashed"}),z4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Vu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Vu(e))}),j4=e=>Object.assign(Object.assign(Object.assign({},jo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Vu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Vu(e)),jo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),F4=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Rw(e),[`${t}-primary`]:_4(e),[`${t}-dashed`]:L4(e),[`${t}-link`]:z4(e),[`${t}-text`]:j4(e),[`${t}-ghost`]:Is(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Vg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${te(s)} ${te(a)}`,borderRadius:i,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:M4(e)},{[`${n}${n}-round${t}`]:k4(e)}]},A4=e=>Vg(wt(e,{fontSize:e.contentFontSize})),B4=e=>{const t=wt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Vg(t,`${e.componentCls}-sm`)},H4=e=>{const t=wt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Vg(t,`${e.componentCls}-lg`)},V4=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Pw=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return wt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Nw=e=>{const t=e.fontSize,n=e.fontSize,r=e.fontSizeLG;return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,paddingBlock:Math.max((e.controlHeight-t*e.lineHeight)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*e.lineHeight)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*e.lineHeight)/2-e.lineWidth,0),onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r}},K4=mn("Button",e=>{const t=Pw(e);return[T4(t),B4(t),A4(t),H4(t),V4(t),F4(t),N4(t)]},Nw,{unitless:{fontWeight:!0}});function W4(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function U4(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 Kg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},W4(e,r,t)),U4(n,r,t))}}function q4(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function G4(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 X4(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},q4(e,t)),G4(e.componentCls,t))}}const Y4=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${te(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${te(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Q4=zs(["Button","compact"],e=>{const t=Pw(e);return[Kg(t),X4(t),Y4(t)]},Nw);var J4=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 Z4(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 eM=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:u,styles:d,disabled:f,className:p,rootClassName:m,children:g,icon:y,ghost:b=!1,block:v=!1,htmlType:h="button",classNames:S,style:C={}}=e,$=J4(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:O,autoInsertSpaceInButton:E,direction:w,button:x}=c.useContext(ut),I=O("btn",i),[R,T,M]=K4(I),k=c.useContext(oo),_=f??k,D=c.useContext($w),N=c.useMemo(()=>Z4(o),[o]),[P,z]=c.useState(N.loading),[j,F]=c.useState(!1),A=Or(t,c.createRef()),G=c.Children.count(g)===1&&!y&&!Xf(a);c.useEffect(()=>{let de=null;N.delay>0?de=setTimeout(()=>{de=null,z(!0)},N.delay):z(N.loading);function se(){de&&(clearTimeout(de),de=null)}return se},[N]),c.useEffect(()=>{if(!A||!A.current||E===!1)return;const de=A.current.textContent;G&&qm(de)?j||F(!0):j&&F(!1)},[A]);const H=de=>{const{onClick:se}=e;if(P||_){de.preventDefault();return}se==null||se(de)},V=E!==!1,{compactSize:J,compactItemClassnames:X}=Hs(I,w),K={large:"lg",small:"sm",middle:void 0},q=bo(de=>{var se,he;return(he=(se=u??J)!==null&&se!==void 0?se:D)!==null&&he!==void 0?he:de}),U=q&&K[q]||"",Q=P?"loading":y,Y=kn($,["navigate"]),ne=Z(I,T,M,{[`${I}-${s}`]:s!=="default"&&s,[`${I}-${a}`]:a,[`${I}-${U}`]:U,[`${I}-icon-only`]:!g&&g!==0&&!!Q,[`${I}-background-ghost`]:b&&!Xf(a),[`${I}-loading`]:P,[`${I}-two-chinese-chars`]:j&&V&&!P,[`${I}-block`]:v,[`${I}-dangerous`]:!!l,[`${I}-rtl`]:w==="rtl"},X,p,m,x==null?void 0:x.className),ee=Object.assign(Object.assign({},x==null?void 0:x.style),C),ie=Z(S==null?void 0:S.icon,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.icon),ue=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=x==null?void 0:x.styles)===null||r===void 0?void 0:r.icon)||{}),me=y&&!P?ce.createElement(Ow,{prefixCls:I,className:ie,style:ue},y):ce.createElement(P4,{existIcon:!!y,prefixCls:I,loading:!!P}),ae=g||g===0?R4(g,G&&V):null;if(Y.href!==void 0)return R(ce.createElement("a",Object.assign({},Y,{className:Z(ne,{[`${I}-disabled`]:_}),href:_?void 0:Y.href,style:ee,onClick:H,ref:A,tabIndex:_?-1:0}),me,ae));let re=ce.createElement("button",Object.assign({},$,{type:h,className:ne,style:ee,onClick:H,disabled:_,ref:A}),me,ae,X&&ce.createElement(Q4,{key:"compact",prefixCls:I}));return Xf(a)||(re=ce.createElement(Bs,{component:"Button",disabled:!!P},re)),R(re)},kt=c.forwardRef(eM);kt.Group=O4;kt.__ANT_BUTTON=!0;var Tw=c.createContext(null),Ay=[];function tM(e,t){var n=c.useState(function(){if(!Mn())return null;var g=document.createElement("div");return g}),r=oe(n,1),o=r[0],i=c.useRef(!1),a=c.useContext(Tw),l=c.useState(Ay),s=oe(l,2),u=s[0],d=s[1],f=a||(i.current?void 0:function(g){d(function(y){var b=[g].concat(Se(y));return b})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1}return Pt(function(){return e?a?a(p):p():m(),m},[e]),Pt(function(){u.length&&(u.forEach(function(g){return g()}),d(Ay))},[u]),[o,f]}var Jf;function Gm(e){if(typeof document>"u")return 0;if(Jf===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Jf=o-i}return Jf}function By(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Gm():n}function Xm(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:By(n),height:By(r)}}function nM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var rM="rc-util-locker-".concat(Date.now()),Hy=0;function oM(e){var t=!!e,n=c.useState(function(){return Hy+=1,"".concat(rM,"_").concat(Hy)}),r=oe(n,1),o=r[0];Pt(function(){if(t){var i=Xm(document.body).width,a=nM();pi(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o)}else xs(o);return function(){xs(o)}},[t,o])}var iM=!1;function aM(e){return iM}var Vy=function(t){return t===!1?!1:!Mn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Mw=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=c.useState(n),u=oe(s,2),d=u[0],f=u[1],p=d||n;c.useEffect(function(){(a||n)&&f(n)},[n,a]);var m=c.useState(function(){return Vy(o)}),g=oe(m,2),y=g[0],b=g[1];c.useEffect(function(){var R=Vy(o);b(R??null)});var v=tM(p&&!y),h=oe(v,2),S=h[0],C=h[1],$=y??S;oM(r&&n&&Mn()&&($===S||$===document.body));var O=null;if(l&&yo(l)&&t){var E=l;O=E.ref}var w=ul(O,t);if(!p||!Mn()||y===void 0)return null;var x=$===!1||aM(),I=l;return t&&(I=c.cloneElement(l,{ref:w})),c.createElement(Tw.Provider,{value:C},x?I:Ar.createPortal(I,$))});function lM(){var e=W({},Ms);return e.useId}var Ky=0,Wy=lM();const sM=Wy?function(t){var n=Wy();return t||n}:function(t){var n=c.useState("ssr-id"),r=oe(n,2),o=r[0],i=r[1];return c.useEffect(function(){var a=Ky;Ky+=1,i("rc_unique_".concat(a))},[]),t||o};function cM(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function uM(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ce.createElement(Fs,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!cM(e,t,o))return[!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return[!0,n?n(a):a]}var kw=function(t){if(Mn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},dM=function(t,n){if(!kw(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Ym(e,t){return!Array.isArray(e)&&t!==void 0?dM(e,t):kw(e)}var Mi="RC_FORM_INTERNAL_HOOKS",Bt=function(){Ut(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},tl=c.createContext({getFieldValue:Bt,getFieldsValue:Bt,getFieldError:Bt,getFieldWarning:Bt,getFieldsError:Bt,isFieldsTouched:Bt,isFieldTouched:Bt,isFieldValidating:Bt,isFieldsValidating:Bt,resetFields:Bt,setFields:Bt,setFieldValue:Bt,setFieldsValue:Bt,validateFields:Bt,submit:Bt,getInternalHooks:function(){return Bt(),{dispatch:Bt,initEntityValue:Bt,registerField:Bt,useSubscribe:Bt,setInitialValues:Bt,destroyForm:Bt,setCallbacks:Bt,registerWatch:Bt,getFields:Bt,setValidateMessages:Bt,setPreserve:Bt,getInitialValue:Bt}}}),Ku=c.createContext(null);function Qm(e){return e==null?[]:Array.isArray(e)?e:[e]}function fM(e){return e&&!!e._init}function ki(){return ki=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},ki.apply(this,arguments)}function pM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rs(e,t)}function Jm(e){return Jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jm(e)}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Rs(e,t)}function mM(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tu(e,t,n){return mM()?tu=Reflect.construct.bind():tu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),u=new s;return a&&Rs(u,a.prototype),u},tu.apply(null,arguments)}function vM(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zm(e){var t=typeof Map=="function"?new Map:void 0;return Zm=function(r){if(r===null||!vM(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return tu(r,arguments,Jm(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Rs(o,r)},Zm(e)}var gM=/%[sdj%]/g,hM=function(){};function ev(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 br(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(gM,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function yM(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function wn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yM(t)&&typeof e=="string"&&!e)}function bM(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Uy(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function SM(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var qy=function(e){pM(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Zm(Error));function CM(e,t,n,r,o){if(t.first){var i=new Promise(function(p,m){var g=function(v){return r(v),v.length?m(new qy(v,ev(v))):p(o)},y=SM(e);Uy(y,n,g)});return i.catch(function(p){return p}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,d=[],f=new Promise(function(p,m){var g=function(b){if(d.push.apply(d,b),u++,u===s)return r(d),d.length?m(new qy(d,ev(d))):p(o)};l.length||(r(d),p(o)),l.forEach(function(y){var b=e[y];a.indexOf(y)!==-1?Uy(b,n,g):bM(b,n,g)})});return f.catch(function(p){return p}),f}function xM(e){return!!(e&&e.message!==void 0)}function wM(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Gy(e,t){return function(n){var r;return e.fullFields?r=wM(t,e.fullFields):r=t[n.field||e.fullField],xM(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 Xy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ki({},e[n],r):e[n]=r}}return e}var Dw=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||wn(n,a||t.type))&&o.push(br(i.messages.required,t.fullField))},EM=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(br(i.messages.whitespace,t.fullField))},Rc,$M=function(){if(Rc)return Rc;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(C){return C&&C.exact?i:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+o+t(C)+")","g")};s.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},s.v6=function(S){return S&&S.exact?l:new RegExp(""+t(S)+o+t(S),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=s.v4().source,p=s.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',h="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+m+g+y+")"+b+v;return Rc=new RegExp("(?:^"+h+"$)","i"),Rc},Yy={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},Ll={integer:function(t){return Ll.number(t)&&parseInt(t,10)===t},float:function(t){return Ll.number(t)&&!Ll.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 typeof t=="object"&&!Ll.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Yy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($M())},hex:function(t){return typeof t=="string"&&!!t.match(Yy.hex)}},OM=function(t,n,r,o,i){if(t.required&&n===void 0){Dw(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Ll[l](n)||o.push(br(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(br(i.messages.types[l],t.fullField,t.type))},IM=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",m=typeof n=="string",g=Array.isArray(n);if(p?f="number":m?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),m&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(br(i.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(br(i.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(br(i.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(br(i.messages[f].range,t.fullField,t.min,t.max))},ra="enum",RM=function(t,n,r,o,i){t[ra]=Array.isArray(t[ra])?t[ra]:[],t[ra].indexOf(n)===-1&&o.push(br(i.messages[ra],t.fullField,t[ra].join(", ")))},PM=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(br(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(br(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},It={required:Dw,whitespace:EM,type:OM,range:IM,enum:RM,pattern:PM},NM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n,"string")&&!t.required)return r();It.required(t,n,o,a,i,"string"),wn(n,"string")||(It.type(t,n,o,a,i),It.range(t,n,o,a,i),It.pattern(t,n,o,a,i),t.whitespace===!0&&It.whitespace(t,n,o,a,i))}r(a)},TM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&It.type(t,n,o,a,i)}r(a)},MM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&(It.type(t,n,o,a,i),It.range(t,n,o,a,i))}r(a)},kM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&It.type(t,n,o,a,i)}r(a)},DM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),wn(n)||It.type(t,n,o,a,i)}r(a)},_M=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&(It.type(t,n,o,a,i),It.range(t,n,o,a,i))}r(a)},LM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&(It.type(t,n,o,a,i),It.range(t,n,o,a,i))}r(a)},zM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();It.required(t,n,o,a,i,"array"),n!=null&&(It.type(t,n,o,a,i),It.range(t,n,o,a,i))}r(a)},jM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&It.type(t,n,o,a,i)}r(a)},FM="enum",AM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i),n!==void 0&&It[FM](t,n,o,a,i)}r(a)},BM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n,"string")&&!t.required)return r();It.required(t,n,o,a,i),wn(n,"string")||It.pattern(t,n,o,a,i)}r(a)},HM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n,"date")&&!t.required)return r();if(It.required(t,n,o,a,i),!wn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),It.type(t,s,o,a,i),s&&It.range(t,s.getTime(),o,a,i)}}r(a)},VM=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;It.required(t,n,o,a,i,l),r(a)},Zf=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wn(n,a)&&!t.required)return r();It.required(t,n,o,l,i,a),wn(n,a)||It.type(t,n,o,l,i)}r(l)},KM=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wn(n)&&!t.required)return r();It.required(t,n,o,a,i)}r(a)},es={string:NM,method:TM,number:MM,boolean:kM,regexp:DM,integer:_M,float:LM,array:zM,object:jM,enum:AM,pattern:BM,date:HM,url:Zf,hex:Zf,email:Zf,required:VM,any:KM};function tv(){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 nv=tv(),Vs=function(){function e(n){this.rules=null,this._messages=nv,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Xy(tv(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(y){var b=[],v={};function h(C){if(Array.isArray(C)){var $;b=($=b).concat.apply($,C)}else b.push(C)}for(var S=0;S<y.length;S++)h(y[S]);b.length?(v=ev(b),u(b,v)):u(null,l)}if(s.messages){var f=this.messages();f===nv&&(f=tv()),Xy(f,s.messages),s.messages=f}else s.messages=this.messages();var p={},m=s.keys||Object.keys(this.rules);m.forEach(function(y){var b=a.rules[y],v=l[y];b.forEach(function(h){var S=h;typeof S.transform=="function"&&(l===r&&(l=ki({},l)),v=l[y]=S.transform(v)),typeof S=="function"?S={validator:S}:S=ki({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=y,S.fullField=S.fullField||y,S.type=a.getType(S),p[y]=p[y]||[],p[y].push({rule:S,value:v,source:l,field:y}))})});var g={};return CM(p,s,function(y,b){var v=y.rule,h=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");h=h&&(v.required||!v.required&&y.value),v.field=y.field;function S(O,E){return ki({},E,{fullField:v.fullField+"."+O,fullFields:v.fullFields?[].concat(v.fullFields,[O]):[O]})}function C(O){O===void 0&&(O=[]);var E=Array.isArray(O)?O:[O];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var w=E.map(Gy(v,l));if(s.first&&w.length)return g[v.field]=1,b(w);if(!h)b(w);else{if(v.required&&!y.value)return v.message!==void 0?w=[].concat(v.message).map(Gy(v,l)):s.error&&(w=[s.error(v,br(s.messages.required,v.field))]),b(w);var x={};v.defaultField&&Object.keys(y.value).map(function(T){x[T]=v.defaultField}),x=ki({},x,y.rule.fields);var I={};Object.keys(x).forEach(function(T){var M=x[T],k=Array.isArray(M)?M:[M];I[T]=k.map(S.bind(null,T))});var R=new e(I);R.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),R.validate(y.value,y.rule.options||s,function(T){var M=[];w&&w.length&&M.push.apply(M,w),T&&T.length&&M.push.apply(M,T),b(M.length?M:null)})}}var $;if(v.asyncValidator)$=v.asyncValidator(v,y.value,C,y.source,s);else if(v.validator){try{$=v.validator(v,y.value,C,y.source,s)}catch(O){console.error==null||console.error(O),s.suppressValidatorError||setTimeout(function(){throw O},0),C(O.message)}$===!0?C():$===!1?C(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):$ instanceof Array?C($):$ instanceof Error&&C($.message)}$&&$.then&&$.then(function(){return C()},function(O){return C(O)})},function(y){d(y)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!es.hasOwnProperty(r.type))throw new Error(br("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?es.required:es[this.getType(r)]||void 0},e}();Vs.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");es[t]=n};Vs.warning=hM;Vs.messages=nv;Vs.validators=es;var mr="'${name}' is not a valid ${type}",_w={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:mr,method:mr,array:mr,object:mr,number:mr,date:mr,boolean:mr,integer:mr,float:mr,regexp:mr,email:mr,url:mr,hex:mr},string:{len:"'${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}"}},Qy=Vs;function WM(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Jy="CODE_LOGIC_ERROR";function rv(e,t,n,r,o){return ov.apply(this,arguments)}function ov(){return ov=Si(Hn().mark(function e(t,n,r,o,i){var a,l,s,u,d,f,p,m,g;return Hn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=W({},r),delete a.ruleIndex,Qy.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(Jy)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),u=new Qy(B({},t,[a])),d=Ia(_w,o.validateMessages),u.messages(d),f=[],b.prev=10,b.next=13,Promise.resolve(u.validate(B({},t,n),W({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(v,h){var S=v.message,C=S===Jy?d.default:S;return c.isValidElement(C)?c.cloneElement(C,{key:"error_".concat(h)}):C}));case 18:if(!(!f.length&&s)){b.next=23;break}return b.next=21,Promise.all(n.map(function(v,h){return rv("".concat(t,".").concat(h),v,s,o,i)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(v,h){return[].concat(Se(v),Se(h))},[]));case 23:return m=W(W({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),g=f.map(function(v){return typeof v=="string"?WM(v,m):v}),b.abrupt("return",g);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),ov.apply(this,arguments)}function UM(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var p=d.validator,m=W(W({},d),{},{ruleIndex:f});return p&&(m.validator=function(g,y,b){var v=!1,h=function(){for(var $=arguments.length,O=new Array($),E=0;E<$;E++)O[E]=arguments[E];Promise.resolve().then(function(){Ut(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||b.apply(void 0,O)})},S=p(g,y,h);v=S&&typeof S.then=="function"&&typeof S.catch=="function",Ut(v,"`callback` is deprecated. Please return a promise instead."),v&&S.then(function(){b()}).catch(function(C){b(C||" ")})}),m}).sort(function(d,f){var p=d.warningOnly,m=d.ruleIndex,g=f.warningOnly,y=f.ruleIndex;return!!p==!!g?m-y:p?1:-1}),s;if(o===!0)s=new Promise(function(){var d=Si(Hn().mark(function f(p,m){var g,y,b;return Hn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:g=0;case 1:if(!(g<l.length)){h.next=12;break}return y=l[g],h.next=5,rv(a,t,y,r,i);case 5:if(b=h.sent,!b.length){h.next=9;break}return m([{errors:b,rule:y}]),h.abrupt("return");case 9:g+=1,h.next=1;break;case 12:p([]);case 13:case"end":return h.stop()}},f)}));return function(f,p){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return rv(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});s=(o?GM(u):qM(u)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function qM(e){return iv.apply(this,arguments)}function iv(){return iv=Si(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Se(o));return a}));case 1:case"end":return r.stop()}},e)})),iv.apply(this,arguments)}function GM(e){return av.apply(this,arguments)}function av(){return av=Si(Hn().mark(function e(t){var n;return Hn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),av.apply(this,arguments)}function ln(e){return Qm(e)}function Zy(e,t){var n={};return t.forEach(function(r){var o=Lr(e,r);n=Xr(n,r,o)}),n}function ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Lw(t,r,n)})}function Lw(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 XM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||tt(e)!=="object"||tt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Se(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function YM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&tt(t.target)==="object"&&e in t.target?t.target[e]:t}function eb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Se(e.slice(0,n)),[o],Se(e.slice(n,t)),Se(e.slice(t+1,r))):i<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[o],Se(e.slice(n+1,r))):e}var QM=["name"],Nr=[];function tb(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Wg=function(e){lo(n,e);var t=so(n);function n(r){var o;if(En(this,n),o=t.call(this,r),B(ot(o),"state",{resetCount:0}),B(ot(o),"cancelRegisterFunc",null),B(ot(o),"mounted",!1),B(ot(o),"touched",!1),B(ot(o),"dirty",!1),B(ot(o),"validatePromise",void 0),B(ot(o),"prevValidating",void 0),B(ot(o),"errors",Nr),B(ot(o),"warnings",Nr),B(ot(o),"cancelRegister",function(){var s=o.props,u=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,ln(f)),o.cancelRegisterFunc=null}),B(ot(o),"getNamePath",function(){var s=o.props,u=s.name,d=s.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Se(p),Se(u)):[]}),B(ot(o),"getRules",function(){var s=o.props,u=s.rules,d=u===void 0?[]:u,f=s.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),B(ot(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),B(ot(o),"metaCache",null),B(ot(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var d=W(W({},o.getMeta()),{},{destroy:s});zo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),B(ot(o),"onStoreChange",function(s,u,d){var f=o.props,p=f.shouldUpdate,m=f.dependencies,g=m===void 0?[]:m,y=f.onReset,b=d.store,v=o.getNamePath(),h=o.getValue(s),S=o.getValue(b),C=u&&ja(u,v);switch(d.type==="valueUpdate"&&d.source==="external"&&h!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent()),d.type){case"reset":if(!u||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(p){o.reRender();return}break}case"setField":{var $=d.data;if(C){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Nr),"warnings"in $&&(o.warnings=$.warnings||Nr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&ja(u,v,!0)){o.reRender();return}if(p&&!v.length&&tb(p,s,b,h,S,d)){o.reRender();return}break}case"dependenciesUpdate":{var O=g.map(ln);if(O.some(function(E){return ja(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!g.length||v.length||p)&&tb(p,s,b,h,S,d)){o.reRender();return}break}p===!0&&o.reRender()}),B(ot(o),"validateRules",function(s){var u=o.getNamePath(),d=o.getValue(),f=s||{},p=f.triggerName,m=f.validateOnly,g=m===void 0?!1:m,y=Promise.resolve().then(Si(Hn().mark(function b(){var v,h,S,C,$,O,E;return Hn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(o.mounted){x.next=2;break}return x.abrupt("return",[]);case 2:if(v=o.props,h=v.validateFirst,S=h===void 0?!1:h,C=v.messageVariables,$=v.validateDebounce,O=o.getRules(),p&&(O=O.filter(function(I){return I}).filter(function(I){var R=I.validateTrigger;if(!R)return!0;var T=Qm(R);return T.includes(p)})),!($&&p)){x.next=10;break}return x.next=8,new Promise(function(I){setTimeout(I,$)});case 8:if(o.validatePromise===y){x.next=10;break}return x.abrupt("return",[]);case 10:return E=UM(u,d,O,s,S,C),E.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nr;if(o.validatePromise===y){var R;o.validatePromise=null;var T=[],M=[];(R=I.forEach)===null||R===void 0||R.call(I,function(k){var _=k.rule.warningOnly,D=k.errors,N=D===void 0?Nr:D;_?M.push.apply(M,Se(N)):T.push.apply(T,Se(N))}),o.errors=T,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),x.abrupt("return",E);case 13:case"end":return x.stop()}},b)})));return g||(o.validatePromise=y,o.dirty=!0,o.errors=Nr,o.warnings=Nr,o.triggerMetaEvent(),o.reRender()),y}),B(ot(o),"isFieldValidating",function(){return!!o.validatePromise}),B(ot(o),"isFieldTouched",function(){return o.touched}),B(ot(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(Mi),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),B(ot(o),"getErrors",function(){return o.errors}),B(ot(o),"getWarnings",function(){return o.warnings}),B(ot(o),"isListField",function(){return o.props.isListField}),B(ot(o),"isList",function(){return o.props.isList}),B(ot(o),"isPreserve",function(){return o.props.preserve}),B(ot(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),B(ot(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return W(W({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=xr(s);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),B(ot(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Lr(s||u(!0),d)}),B(ot(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,p=u.getValueFromEvent,m=u.normalize,g=u.valuePropName,y=u.getValueProps,b=u.fieldContext,v=f!==void 0?f:b.validateTrigger,h=o.getNamePath(),S=b.getInternalHooks,C=b.getFieldsValue,$=S(Mi),O=$.dispatch,E=o.getValue(),w=y||function(T){return B({},g,T)},x=s[d],I=W(W({},s),w(E));I[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var T,M=arguments.length,k=new Array(M),_=0;_<M;_++)k[_]=arguments[_];p?T=p.apply(void 0,k):T=YM.apply(void 0,[g].concat(k)),m&&(T=m(T,E,C(!0))),O({type:"updateValue",namePath:h,value:T}),x&&x.apply(void 0,k)};var R=Qm(v||[]);return R.forEach(function(T){var M=I[T];I[T]=function(){M&&M.apply(void 0,arguments);var k=o.props.rules;k&&k.length&&O({type:"validateField",namePath:h,triggerName:T})}}),I}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Mi),l=a.initEntityValue;l(ot(o))}return o}return $n(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,s=l(Mi),u=s.registerField;this.cancelRegisterFunc=u(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,s=a.isFunction,u;return s?u=l:c.isValidElement(l)?u=c.cloneElement(l,this.getControlled(l.props)):(Ut(!l,"`children` of Field is not validate ReactElement."),u=l),c.createElement(c.Fragment,{key:o},u)}}]),n}(c.Component);B(Wg,"contextType",tl);B(Wg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function zw(e){var t=e.name,n=nt(e,QM),r=c.useContext(tl),o=c.useContext(Ku),i=t!==void 0?ln(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),c.createElement(Wg,fe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function JM(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=c.useContext(tl),s=c.useContext(Ku),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var y=ln(l.prefixName)||[];return[].concat(Se(y),Se(ln(t)))},[l.prefixName,t]),p=c.useMemo(function(){return W(W({},l),{},{prefixName:f})},[l,f]),m=c.useMemo(function(){return{getKey:function(b){var v=f.length,h=b[v];return[d.keys[h],b.slice(v+1)]}}},[f]);if(typeof r!="function")return Ut(!1,"Form.List only accepts function as children."),null;var g=function(b,v,h){var S=h.source;return S==="internal"?!1:b!==v};return c.createElement(Ku.Provider,{value:m},c.createElement(tl.Provider,{value:p},c.createElement(zw,{name:[],shouldUpdate:g,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!s},function(y,b){var v=y.value,h=v===void 0?[]:v,S=y.onChange,C=l.getFieldValue,$=function(){var x=C(f||[]);return x||[]},O={add:function(x,I){var R=$();I>=0&&I<=R.length?(d.keys=[].concat(Se(d.keys.slice(0,I)),[d.id],Se(d.keys.slice(I))),S([].concat(Se(R.slice(0,I)),[x],Se(R.slice(I))))):(d.keys=[].concat(Se(d.keys),[d.id]),S([].concat(Se(R),[x]))),d.id+=1},remove:function(x){var I=$(),R=new Set(Array.isArray(x)?x:[x]);R.size<=0||(d.keys=d.keys.filter(function(T,M){return!R.has(M)}),S(I.filter(function(T,M){return!R.has(M)})))},move:function(x,I){if(x!==I){var R=$();x<0||x>=R.length||I<0||I>=R.length||(d.keys=eb(d.keys,x,I),S(eb(R,x,I)))}}},E=h||[];return Array.isArray(E)||(E=[]),r(E.map(function(w,x){var I=d.keys[x];return I===void 0&&(d.keys[x]=d.id,I=d.keys[x],d.id+=1),{name:x,key:I,isListField:!0}}),O,b)})))}function ZM(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var jw="__@field_split__";function ep(e){return e.map(function(t){return"".concat(tt(t),":").concat(t)}).join(jw)}var oa=function(){function e(){En(this,e),B(this,"kvs",new Map)}return $n(e,[{key:"set",value:function(n,r){this.kvs.set(ep(n),r)}},{key:"get",value:function(n){return this.kvs.get(ep(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ep(n))}},{key:"map",value:function(n){return Se(this.kvs.entries()).map(function(r){var o=oe(r,2),i=o[0],a=o[1],l=i.split(jw);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),d=oe(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),e3=["name"],t3=$n(function e(t){var n=this;En(this,e),B(this,"formHooked",!1),B(this,"forceRootUpdate",void 0),B(this,"subscribable",!0),B(this,"store",{}),B(this,"fieldEntities",[]),B(this,"initialValues",{}),B(this,"callbacks",{}),B(this,"validateMessages",null),B(this,"preserve",null),B(this,"lastValidatePromise",null),B(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}}),B(this,"getInternalHooks",function(r){return r===Mi?(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}):(Ut(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),B(this,"useSubscribe",function(r){n.subscribable=r}),B(this,"prevWithoutPreserves",null),B(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Ia(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Xr(a,s,Lr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),B(this,"destroyForm",function(){var r=new oa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),B(this,"getInitialValue",function(r){var o=Lr(n.initialValues,r);return r.length?Ia(o):o}),B(this,"setCallbacks",function(r){n.callbacks=r}),B(this,"setValidateMessages",function(r){n.validateMessages=r}),B(this,"setPreserve",function(r){n.preserve=r}),B(this,"watchList",[]),B(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),B(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),B(this,"timeoutId",null),B(this,"warningUnhooked",function(){}),B(this,"updateStore",function(r){n.store=r}),B(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}),B(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new oa;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),B(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=ln(i);return o.get(a)||{INVALIDATE_NAME_PATH:ln(i)}})}),B(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&tt(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return s.forEach(function(d){var f,p,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,y;if((g=(y=d).isList)!==null&&g!==void 0&&g.call(y))return}else if(!i&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)u.push(m);else{var b="getMeta"in d?d.getMeta():null;a(b)&&u.push(m)}}),Zy(n.store,u.map(ln))}),B(this,"getFieldValue",function(r){n.warningUnhooked();var o=ln(r);return Lr(n.store,o)}),B(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ln(r[a]),errors:[],warnings:[]}})}),B(this,"getFieldError",function(r){n.warningUnhooked();var o=ln(r),i=n.getFieldsError([o])[0];return i.errors}),B(this,"getFieldWarning",function(r){n.warningUnhooked();var o=ln(r),i=n.getFieldsError([o])[0];return i.warnings}),B(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],s,u=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(ln),u=!1):(s=null,u=a):(s=a.map(ln),u=l);var d=n.getFieldEntities(!0),f=function(b){return b.isFieldTouched()};if(!s)return u?d.every(f):d.some(f);var p=new oa;s.forEach(function(y){p.set(y,[])}),d.forEach(function(y){var b=y.getNamePath();s.forEach(function(v){v.every(function(h,S){return b[S]===h})&&p.update(v,function(h){return[].concat(Se(h),[y])})})});var m=function(b){return b.some(f)},g=p.map(function(y){var b=y.value;return b});return u?g.every(m):g.some(m)}),B(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),B(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(ln);return o.some(function(a){var l=a.getNamePath();return ja(i,l)&&a.isFieldValidating()})}),B(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),B(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new oa,i=n.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,d=s.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)Ut(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var g=o.get(p);if(g&&g.size>1)Ut(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var y=n.getFieldValue(p),b=d.isListField();!b&&(!r.skipExist||y===void 0)&&n.updateStore(Xr(n.store,p,Se(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var d;(d=l).push.apply(d,Se(Se(u).map(function(f){return f.entity})))}})):l=i,a(l)}),B(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ia(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(ln);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Xr(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),B(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=nt(a,e3),u=ln(l);i.push(u),"value"in s&&n.updateStore(Xr(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),B(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=W(W({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),B(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Lr(n.store,i);a===void 0&&n.updateStore(Xr(n.store,i,o))}}),B(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),B(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!Lw(f.getNamePath(),o)})){var d=n.store;n.updateStore(Xr(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),B(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),B(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=W(W({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),B(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Se(i))}),i}),B(this,"updateValue",function(r,o){var i=ln(r),a=n.store;n.updateStore(Xr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var u=Zy(n.store,[i]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Se(l)))}),B(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Ia(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),B(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),B(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new oa;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(d){var f=ln(d);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),s(p))}})};return l(r),i}),B(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new oa;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=a.filter(function(u){var d=u.name;return ja(r,d)});s.length&&i(s,a)}}),B(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(ln):[],u=[],d=String(Date.now()),f=new Set,p=a||{},m=p.recursive,g=p.dirty;n.getFieldEntities(!0).forEach(function(h){if(l||s.push(h.getNamePath()),!(!h.props.rules||!h.props.rules.length)&&!(g&&!h.isFieldDirty())){var S=h.getNamePath();if(f.add(S.join(d)),!l||ja(s,S,m)){var C=h.validateRules(W({validateMessages:W(W({},_w),n.validateMessages)},a));u.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function($){var O,E=[],w=[];return(O=$.forEach)===null||O===void 0||O.call($,function(x){var I=x.rule.warningOnly,R=x.errors;I?w.push.apply(w,Se(R)):E.push.apply(E,Se(R))}),E.length?Promise.reject({name:S,errors:E,warnings:w}):{name:S,errors:E,warnings:w}}))}}});var y=ZM(u);n.lastValidatePromise=y,y.catch(function(h){return h}).then(function(h){var S=h.map(function(C){var $=C.name;return $});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,h)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(h){var S=h.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:S,outOfDate:n.lastValidatePromise!==y})});b.catch(function(h){return h});var v=s.filter(function(h){return f.has(h.join(d))});return n.triggerOnFieldsChange(v),b}),B(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Fw(e){var t=c.useRef(),n=c.useState({}),r=oe(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new t3(i);t.current=a.getForm()}return[t.current]}var lv=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),n3=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=c.useContext(lv),l=c.useRef({});return c.createElement(lv.Provider,{value:W(W({},a),{},{validateMessages:W(W({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=W(W({},l.current),{},B({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=W({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},r3=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],o3=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,g=t.onValuesChange,y=t.onFieldsChange,b=t.onFinish,v=t.onFinishFailed,h=nt(t,r3),S=c.useContext(lv),C=Fw(a),$=oe(C,1),O=$[0],E=O.getInternalHooks(Mi),w=E.useSubscribe,x=E.setInitialValues,I=E.setCallbacks,R=E.setValidateMessages,T=E.setPreserve,M=E.destroyForm;c.useImperativeHandle(n,function(){return O}),c.useEffect(function(){return S.registerForm(r,O),function(){S.unregisterForm(r)}},[S,O,r]),R(W(W({},S.validateMessages),f)),I({onValuesChange:g,onFieldsChange:function(L){if(S.triggerFormChange(r,L),y){for(var A=arguments.length,G=new Array(A>1?A-1:0),H=1;H<A;H++)G[H-1]=arguments[H];y.apply(void 0,[L].concat(G))}},onFinish:function(L){S.triggerFormFinish(r,L),b&&b(L)},onFinishFailed:v}),T(l);var k=c.useRef(null);x(o,!k.current),k.current||(k.current=!0),c.useEffect(function(){return M},[]);var _,D=typeof s=="function";if(D){var N=O.getFieldsValue(!0);_=s(N,O)}else _=s;w(!D);var P=c.useRef();c.useEffect(function(){XM(P.current||[],i||[])||O.setFields(i||[]),P.current=i},[i,O]);var z=c.useMemo(function(){return W(W({},O),{},{validateTrigger:m})},[O,m]),j=c.createElement(Ku.Provider,{value:null},c.createElement(tl.Provider,{value:z},_));return d===!1?j:c.createElement(d,fe({},h,{onSubmit:function(L){L.preventDefault(),L.stopPropagation(),O.submit()},onReset:function(L){var A;L.preventDefault(),O.resetFields(),(A=h.onReset)===null||A===void 0||A.call(h,L)}}),j)};function nb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function i3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=fM(i)?{form:i}:i,l=a.form,s=c.useState(),u=oe(s,2),d=u[0],f=u[1],p=c.useMemo(function(){return nb(d)},[d]),m=c.useRef(p);m.current=p;var g=c.useContext(tl),y=l||g,b=y&&y._init,v=ln(r),h=c.useRef(v);return h.current=v,c.useEffect(function(){if(b){var S=y.getFieldsValue,C=y.getInternalHooks,$=C(Mi),O=$.registerWatch,E=function(R,T){var M=a.preserve?T:R;return typeof r=="function"?r(M):Lr(M,h.current)},w=O(function(I,R){var T=E(I,R),M=nb(T);m.current!==M&&(m.current=M,f(T))}),x=E(S(),S(!0));return d!==x&&f(x),w}},[b]),d}var a3=c.forwardRef(o3),Ks=a3;Ks.FormProvider=n3;Ks.Field=zw;Ks.List=JM;Ks.useForm=Fw;Ks.useWatch=i3;const Fo=c.createContext({}),rb=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(Fo),i=c.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return c.createElement(Fo.Provider,{value:i},t)},l3=e=>({animationDuration:e,animationFillMode:"both"}),s3=e=>({animationDuration:e,animationFillMode:"both"}),Bd=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
${i}${e}-enter,
${i}${e}-appear
`]:Object.assign(Object.assign({},l3(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},s3(r)),{animationPlayState:"paused"}),[`
${i}${e}-enter${e}-enter-active,
${i}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},c3=new Ct("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),u3=new Ct("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),d3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Bd(r,c3,u3,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},f3=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p3=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),m3=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v3=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g3=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h3=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),y3=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b3=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),S3={"move-up":{inKeyframes:y3,outKeyframes:b3},"move-down":{inKeyframes:f3,outKeyframes:p3},"move-left":{inKeyframes:m3,outKeyframes:v3},"move-right":{inKeyframes:g3,outKeyframes:h3}},Wu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=S3[t];return[Bd(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ug=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qg=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gg=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Xg=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),C3=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),x3=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),w3=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),E3=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$3={"slide-up":{inKeyframes:Ug,outKeyframes:qg},"slide-down":{inKeyframes:Gg,outKeyframes:Xg},"slide-left":{inKeyframes:C3,outKeyframes:x3},"slide-right":{inKeyframes:w3,outKeyframes:E3}},nl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=$3[t];return[Bd(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},O3=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),I3=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ob=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ib=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),R3=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),P3=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),N3=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),T3=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),M3=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),k3=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),D3=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_3=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),L3={zoom:{inKeyframes:O3,outKeyframes:I3},"zoom-big":{inKeyframes:ob,outKeyframes:ib},"zoom-big-fast":{inKeyframes:ob,outKeyframes:ib},"zoom-left":{inKeyframes:N3,outKeyframes:T3},"zoom-right":{inKeyframes:M3,outKeyframes:k3},"zoom-up":{inKeyframes:R3,outKeyframes:P3},"zoom-down":{inKeyframes:D3,outKeyframes:_3}},Yg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=L3[t];return[Bd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Qg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),z3=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Ct("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Ct("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Ct("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Ct("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},j3=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],F3={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},A3=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[F3[t]]:{value:0,_skip_check_:!0}}}}},B3=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},H3=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},V3=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},B3(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},H3(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},j3.map(n=>A3(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Aw=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:p,notificationPadding:m,notificationMarginEdge:g,fontSize:y,lineHeight:b,width:v,notificationIconSize:h,colorText:S}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[C]:{padding:m,width:v,maxWidth:`calc(100vw - ${te(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y,color:S},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(h).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(h).equal(),fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:h,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},K3=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Ct("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Yt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Aw(e))}}]},Bw=e=>({zIndexPopup:e.zIndexPopupBase+bw+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),Hw=e=>{const t=e.paddingMD,n=e.paddingLG;return wt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Vw=mn("Notification",e=>{const t=Hw(e);return[K3(t),z3(t),V3(t)]},Bw),W3=zs(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Hw(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Aw(n)),{width:n.width,maxWidth:`calc(100vw - ${te(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Bw);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};function Jg(e,t){return t===null||t===!1?null:t||c.createElement("span",{className:`${e}-close-x`},c.createElement(Fs,{className:`${e}-close-icon`}))}const q3={success:vw,info:kT,error:js,warning:NT},Kw=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=c.createElement("span",{className:`${t}-icon`},n):r&&(s=c.createElement(q3[r]||null,{className:Z(`${t}-icon`,`${t}-icon-${r}`)})),c.createElement("div",{className:Z({[`${t}-with-icon`]:s}),role:l},s,c.createElement("div",{className:`${t}-message`},o),c.createElement("div",{className:`${t}-description`},i),a&&c.createElement("div",{className:`${t}-btn`},a))},G3=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:u,className:d}=e,f=U3(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=c.useContext(ut),m=t||p("notification"),g=`${m}-notice`,y=Kr(m),[b,v,h]=Vw(m,y);return b(c.createElement("div",{className:Z(`${g}-pure-panel`,v,n,h,y)},c.createElement(W3,{prefixCls:m}),c.createElement(hw,Object.assign({},f,{prefixCls:m,eventKey:"pure",duration:null,closable:s,className:Z({notificationClassName:d}),closeIcon:Jg(m,u),content:c.createElement(Kw,{prefixCls:g,icon:r,type:o,message:i,description:a,btn:l})}))))};function X3(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Y3(e){return{motionName:`${e}-fade`}}var Q3=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 ab=24,J3=4.5,Z3="topRight",ek=e=>{let{children:t,prefixCls:n}=e;const r=Kr(n),[o,i,a]=Vw(n,r);return o(c.createElement(VT,{classNames:{list:Z(i,a,r)}},t))},tk=(e,t)=>{let{prefixCls:n,key:r}=t;return c.createElement(ek,{prefixCls:n,key:r},e)},nk=c.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:p}=c.useContext(ut),[,m]=xn(),g=o||d("notification"),y=C=>X3(C,n??ab,r??ab),b=()=>Z({[`${g}-rtl`]:l}),v=()=>Y3(g),[h,S]=QT({prefixCls:g,style:y,className:b,motion:v,closable:!0,closeIcon:Jg(g),duration:J3,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:tk,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:m.margin}});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:g,notification:p})),S});function Ww(e){const t=c.useRef(null);return Yi(),[c.useMemo(()=>{const r=l=>{var s;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,p=`${d}-notice`,{message:m,description:g,icon:y,type:b,btn:v,className:h,style:S,role:C="alert",closeIcon:$}=l,O=Q3(l,["message","description","icon","type","btn","className","style","role","closeIcon"]),E=Jg(p,$);return u(Object.assign(Object.assign({placement:(s=e==null?void 0:e.placement)!==null&&s!==void 0?s:Z3},O),{content:c.createElement(Kw,{prefixCls:p,icon:y,type:b,message:m,description:g,btn:v,role:C}),className:Z(b&&`${p}-${b}`,h,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),closeIcon:E,closable:!!E}))},i={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.current)===null||s===void 0||s.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=s=>r(Object.assign(Object.assign({},s),{type:l}))}),i},[]),c.createElement(nk,Object.assign({key:"notification-holder"},e,{ref:t}))]}function rk(e){return Ww(e)}function ok(e){return t=>c.createElement(Qi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const Uw=(e,t,n,r)=>ok(i=>{const{prefixCls:a,style:l}=i,s=c.useRef(null),[u,d]=c.useState(0),[f,p]=c.useState(0),[m,g]=on(!1,{value:i.open}),{getPrefixCls:y}=c.useContext(ut),b=y(t||"select",a);c.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver($=>{const O=$[0].target;d(O.offsetHeight+8),p(O.offsetWidth)}),C=setInterval(()=>{var $;const O=n?`.${n(b)}`:`.${b}-dropdown`,E=($=s.current)===null||$===void 0?void 0:$.querySelector(O);E&&(clearInterval(C),S.observe(E))},10);return()=>{clearInterval(C),S.disconnect()}}},[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>s.current});r&&(v=r(v));const h={paddingBottom:u,position:"relative",minWidth:f};return c.createElement("div",{ref:s,style:h},c.createElement(e,Object.assign({},v)))}),qw=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 Hd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i&&i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:Z(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},l))};function ik(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=ce.useMemo(function(){if(tt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),u=ce.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(l==="combobox"&&a===""))},[r,i,n.length,a,l]);return{allowClear:u,clearIcon:ce.createElement(Hd,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}var Gw=c.createContext(null);function ak(){return c.useContext(Gw)}function lk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=oe(t,2),r=n[0],o=n[1],i=c.useRef(null),a=function(){window.clearTimeout(i.current)};c.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function Xw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.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 sk(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var ck=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ia=void 0;function uk(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,g=e.order,y=e.component,b=y===void 0?"div":y,v=nt(e,ck),h=a&&!m;function S(w){s(u,w)}c.useEffect(function(){return function(){S(null)}},[]);var C=i&&o!==ia?i(o):p,$;r||($={opacity:h?0:1,height:h?0:ia,overflowY:h?"hidden":ia,order:a?g:ia,pointerEvents:h?"none":ia,position:h?"absolute":ia});var O={};h&&(O["aria-hidden"]=!0);var E=c.createElement(b,fe({className:Z(!r&&n,d),style:W(W({},$),f)},O,v,{ref:t}),C);return a&&(E=c.createElement(Vr,{onResize:function(x){var I=x.offsetWidth;S(I)},disabled:l},E)),E}var ts=c.forwardRef(uk);ts.displayName="Item";function dk(e){if(typeof MessageChannel>"u")zt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function fk(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],dk(function(){Ar.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Il(e,t){var n=c.useState(t),r=oe(n,2),o=r[0],i=r[1],a=fn(function(l){e(function(){i(l)})});return[o,a]}var Uu=ce.createContext(null),pk=["component"],mk=["className"],vk=["className"],gk=function(t,n){var r=c.useContext(Uu);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,pk);return c.createElement(i,fe({},a,{ref:n}))}var l=r.className,s=nt(r,mk),u=t.className,d=nt(t,vk);return c.createElement(Uu.Provider,{value:null},c.createElement(ts,fe({ref:n,className:Z(l,u)},s,d)))},Yw=c.forwardRef(gk);Yw.displayName="RawItem";var hk=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Qw="responsive",Jw="invalidate";function yk(e){return"+ ".concat(e.length," ...")}function bk(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,m=e.className,g=e.maxCount,y=e.renderRest,b=e.renderRawRest,v=e.suffix,h=e.component,S=h===void 0?"div":h,C=e.itemComponent,$=e.onVisibleChange,O=nt(e,hk),E=f==="full",w=fk(),x=Il(w,null),I=oe(x,2),R=I[0],T=I[1],M=R||0,k=Il(w,new Map),_=oe(k,2),D=_[0],N=_[1],P=Il(w,0),z=oe(P,2),j=z[0],F=z[1],L=Il(w,0),A=oe(L,2),G=A[0],H=A[1],V=Il(w,0),J=oe(V,2),X=J[0],K=J[1],q=c.useState(null),U=oe(q,2),Q=U[0],Y=U[1],ne=c.useState(null),ee=oe(ne,2),ie=ee[0],ue=ee[1],me=c.useMemo(function(){return ie===null&&E?Number.MAX_SAFE_INTEGER:ie||0},[ie,R]),ae=c.useState(!1),re=oe(ae,2),de=re[0],se=re[1],he="".concat(r,"-item"),$e=Math.max(j,G),Ce=g===Qw,ye=i.length&&Ce,We=g===Jw,Ke=ye||typeof g=="number"&&i.length>g,Ue=c.useMemo(function(){var ke=i;return ye?R===null&&E?ke=i:ke=i.slice(0,Math.min(i.length,M/d)):typeof g=="number"&&(ke=i.slice(0,g)),ke},[i,d,R,g,ye]),Ee=c.useMemo(function(){return ye?i.slice(me+1):i.slice(Ue.length)},[i,Ue,ye,me]),pe=c.useCallback(function(ke,Ve){var we;return typeof s=="function"?s(ke):(we=s&&(ke==null?void 0:ke[s]))!==null&&we!==void 0?we:Ve},[s]),Ie=c.useCallback(a||function(ke){return ke},[a]);function be(ke,Ve,we){ie===ke&&(Ve===void 0||Ve===Q)||(ue(ke),we||(se(ke<i.length-1),$==null||$(ke)),Ve!==void 0&&Y(Ve))}function Re(ke,Ve){T(Ve.clientWidth)}function Oe(ke,Ve){N(function(we){var _e=new Map(we);return Ve===null?_e.delete(ke):_e.set(ke,Ve),_e})}function xe(ke,Ve){H(Ve),F(G)}function Fe(ke,Ve){K(Ve)}function Qe(ke){return D.get(pe(Ue[ke],ke))}Pt(function(){if(M&&typeof $e=="number"&&Ue){var ke=X,Ve=Ue.length,we=Ve-1;if(!Ve){be(0,null);return}for(var _e=0;_e<Ve;_e+=1){var Ne=Qe(_e);if(E&&(Ne=Ne||0),Ne===void 0){be(_e-1,void 0,!0);break}if(ke+=Ne,we===0&&ke<=M||_e===we-1&&ke+Qe(we)<=M){be(we,null);break}else if(ke+$e>M){be(_e-1,ke-Ne-X+G);break}}v&&Qe(0)+X>M&&Y(null)}},[M,D,G,X,pe,Ue]);var Ze=de&&!!Ee.length,ve={};Q!==null&&ye&&(ve={position:"absolute",left:Q,top:0});var De={prefixCls:he,responsive:ye,component:C,invalidate:We},qe=l?function(ke,Ve){var we=pe(ke,Ve);return c.createElement(Uu.Provider,{key:we,value:W(W({},De),{},{order:Ve,item:ke,itemKey:we,registerSize:Oe,display:Ve<=me})},l(ke,Ve))}:function(ke,Ve){var we=pe(ke,Ve);return c.createElement(ts,fe({},De,{order:Ve,key:we,item:ke,renderItem:Ie,itemKey:we,registerSize:Oe,display:Ve<=me}))},lt,Je={order:Ze?me:Number.MAX_SAFE_INTEGER,className:"".concat(he,"-rest"),registerSize:xe,display:Ze};if(b)b&&(lt=c.createElement(Uu.Provider,{value:W(W({},De),Je)},b(Ee)));else{var Te=y||yk;lt=c.createElement(ts,fe({},De,Je),typeof Te=="function"?Te(Ee):Te)}var ze=c.createElement(S,fe({className:Z(!We&&r,m),style:p,ref:t},O),Ue.map(qe),Ke?lt:null,v&&c.createElement(ts,fe({},De,{responsive:Ce,responsiveDisabled:!ye,order:me,className:"".concat(he,"-suffix"),registerSize:Fe,display:!0,style:ve}),v));return Ce&&(ze=c.createElement(Vr,{onResize:Re,disabled:!ye},ze)),ze}var ho=c.forwardRef(bk);ho.displayName="Overflow";ho.Item=Yw;ho.RESPONSIVE=Qw;ho.INVALIDATE=Jw;var Sk=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,m=t.value,g=t.maxLength,y=t.onKeyDown,b=t.onMouseDown,v=t.onChange,h=t.onPaste,S=t.onCompositionStart,C=t.onCompositionEnd,$=t.open,O=t.attrs,E=a||c.createElement("input",null),w=E,x=w.ref,I=w.props,R=I.onKeyDown,T=I.onChange,M=I.onMouseDown,k=I.onCompositionStart,_=I.onCompositionEnd,D=I.style;return"maxLength"in E.props,E=c.cloneElement(E,W(W(W({type:"search"},I),{},{id:i,ref:Or(n,x),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:Z("".concat(o,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":$?p:void 0},O),{},{value:f?m:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:W(W({},D),{},{opacity:f?null:0}),onKeyDown:function(P){y(P),R&&R(P)},onMouseDown:function(P){b(P),M&&M(P)},onChange:function(P){v(P),T&&T(P)},onCompositionStart:function(P){S(P),k&&k(P)},onCompositionEnd:function(P){C(P),_&&_(P)},onPaste:h})),E},Zg=c.forwardRef(Sk);Zg.displayName="Input";function Zw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Ck=typeof window<"u"&&window.document&&window.document.documentElement,xk=Ck;function wk(e){return e!=null}function Ek(e){return!e&&e!==0}function lb(e){return["string","number"].includes(tt(e))}function eE(e){var t=void 0;return e&&(lb(e.title)?t=e.title.toString():lb(e.label)&&(t=e.label.toString())),t}function $k(e,t){xk?c.useLayoutEffect(e,t):c.useEffect(e,t)}function Ok(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var sb=function(t){t.preventDefault(),t.stopPropagation()},Ik=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,m=t.autoFocus,g=t.autoComplete,y=t.activeDescendantId,b=t.tabIndex,v=t.removeIcon,h=t.maxTagCount,S=t.maxTagTextLength,C=t.maxTagPlaceholder,$=C===void 0?function(Y){return"+ ".concat(Y.length," ...")}:C,O=t.tagRender,E=t.onToggleOpen,w=t.onRemove,x=t.onInputChange,I=t.onInputPaste,R=t.onInputKeyDown,T=t.onInputMouseDown,M=t.onInputCompositionStart,k=t.onInputCompositionEnd,_=c.useRef(null),D=c.useState(0),N=oe(D,2),P=N[0],z=N[1],j=c.useState(!1),F=oe(j,2),L=F[0],A=F[1],G="".concat(r,"-selection"),H=i||f==="multiple"&&l===!1||f==="tags"?a:"",V=f==="tags"||f==="multiple"&&l===!1||p&&(i||L);$k(function(){z(_.current.scrollWidth)},[H]);function J(Y,ne,ee,ie,ue){return c.createElement("span",{className:Z("".concat(G,"-item"),B({},"".concat(G,"-item-disabled"),ee)),title:eE(Y)},c.createElement("span",{className:"".concat(G,"-item-content")},ne),ie&&c.createElement(Hd,{className:"".concat(G,"-item-remove"),onMouseDown:sb,onClick:ue,customizeIcon:v},"×"))}function X(Y,ne,ee,ie,ue){var me=function(re){sb(re),E(!i)};return c.createElement("span",{onMouseDown:me},O({label:ne,value:Y,disabled:ee,closable:ie,onClose:ue}))}function K(Y){var ne=Y.disabled,ee=Y.label,ie=Y.value,ue=!d&&!ne,me=ee;if(typeof S=="number"&&(typeof ee=="string"||typeof ee=="number")){var ae=String(me);ae.length>S&&(me="".concat(ae.slice(0,S),"..."))}var re=function(se){se&&se.stopPropagation(),w(Y)};return typeof O=="function"?X(ie,me,ne,ue,re):J(Y,me,ne,ue,re)}function q(Y){var ne=typeof $=="function"?$(Y):$;return J({title:ne},ne,!1)}var U=c.createElement("div",{className:"".concat(G,"-search"),style:{width:P},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},c.createElement(Zg,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:V,activeDescendantId:y,value:H,onKeyDown:R,onMouseDown:T,onChange:x,onPaste:I,onCompositionStart:M,onCompositionEnd:k,tabIndex:b,attrs:io(t,!0)}),c.createElement("span",{ref:_,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},H," ")),Q=c.createElement(ho,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:K,renderRest:q,suffix:U,itemKey:Ok,maxCount:h});return c.createElement(c.Fragment,null,Q,!o.length&&!H&&c.createElement("span",{className:"".concat(G,"-placeholder")},u))},Rk=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,m=t.placeholder,g=t.tabIndex,y=t.showSearch,b=t.searchValue,v=t.activeValue,h=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,$=t.onInputChange,O=t.onInputPaste,E=t.onInputCompositionStart,w=t.onInputCompositionEnd,x=t.title,I=c.useState(!1),R=oe(I,2),T=R[0],M=R[1],k=d==="combobox",_=k||y,D=p[0],N=b||"";k&&v&&!T&&(N=v),c.useEffect(function(){k&&M(!1)},[k,v]);var P=d!=="combobox"&&!f&&!y?!1:!!N,z=x===void 0?eE(D):x,j=function(){if(D)return null;var L=P?{visibility:"hidden"}:void 0;return c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:L},m)};return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(Zg,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:_,activeDescendantId:u,value:N,onKeyDown:S,onMouseDown:C,onChange:function(L){M(!0),$(L)},onPaste:O,onCompositionStart:E,onCompositionEnd:w,tabIndex:g,attrs:io(t,!0),maxLength:k?h:void 0})),!k&&D?c.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:P?{visibility:"hidden"}:void 0},D.label):null,j())};function Pk(e){return![ge.ESC,ge.SHIFT,ge.BACKSPACE,ge.TAB,ge.WIN_KEY,ge.ALT,ge.META,ge.WIN_KEY_RIGHT,ge.CTRL,ge.SEMICOLON,ge.EQUALS,ge.CAPS_LOCK,ge.CONTEXT_MENU,ge.F1,ge.F2,ge.F3,ge.F4,ge.F5,ge.F6,ge.F7,ge.F8,ge.F9,ge.F10,ge.F11,ge.F12].includes(e)}var Nk=function(t,n){var r=c.useRef(null),o=c.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,g=t.onInputKeyDown,y=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var b=Xw(0),v=oe(b,2),h=v[0],S=v[1],C=function(N){var P=N.which;(P===ge.UP||P===ge.DOWN)&&N.preventDefault(),g&&g(N),P===ge.ENTER&&l==="tags"&&!o.current&&!a&&(p==null||p(N.target.value)),Pk(P)&&m(!0)},$=function(){S(!0)},O=c.useRef(null),E=function(N){f(N,!0,o.current)!==!1&&m(!0)},w=function(){o.current=!0},x=function(N){o.current=!1,l!=="combobox"&&E(N.target.value)},I=function(N){var P=N.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var z=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");P=P.replace(z,O.current)}O.current=null,E(P)},R=function(N){var P=N.clipboardData,z=P.getData("text");O.current=z},T=function(N){var P=N.target;if(P!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus()}):r.current.focus()}},M=function(N){var P=h();N.target!==r.current&&!P&&l!=="combobox"&&N.preventDefault(),(l!=="combobox"&&(!s||!P)||!a)&&(a&&d!==!1&&f("",!0,!1),m())},k={inputRef:r,onInputKeyDown:C,onInputMouseDown:$,onInputChange:I,onInputPaste:R,onInputCompositionStart:w,onInputCompositionEnd:x},_=l==="multiple"||l==="tags"?c.createElement(Ik,fe({},t,k)):c.createElement(Rk,fe({},t,k));return c.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:T,onMouseDown:M},_)},tE=c.forwardRef(Nk);tE.displayName="Selector";function Tk(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,u=s===void 0?0:s,d=o.y,f=d===void 0?0:d,p=c.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],y=n.points[1],b=g[0],v=g[1],h=y[0],S=y[1];b===h||!["t","b"].includes(b)?m.top=f:b==="t"?m.top=0:m.bottom=0,v===S||!["l","r"].includes(v)?m.left=u:v==="l"?m.left=0:m.right=0}return c.createElement("div",{ref:p,className:Z("".concat(t,"-arrow"),a),style:m},l)}function Mk(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?c.createElement(Bo,fe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return c.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),l)})}):null}var kk=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Dk=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,m=e.arrow,g=e.arrowPos,y=e.align,b=e.motion,v=e.maskMotion,h=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,$=e.portal,O=e.zIndex,E=e.onMouseEnter,w=e.onMouseLeave,x=e.onPointerEnter,I=e.ready,R=e.offsetX,T=e.offsetY,M=e.offsetR,k=e.offsetB,_=e.onAlign,D=e.onPrepare,N=e.stretch,P=e.targetWidth,z=e.targetHeight,j=typeof n=="function"?n():n,F=s||u,L=(S==null?void 0:S.length)>0,A=c.useState(!S||!L),G=oe(A,2),H=G[0],V=G[1];if(Pt(function(){!H&&L&&a&&V(!0)},[H,L,a]),!H)return null;var J="auto",X={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(I||!s){var K,q=y.points,U=y.dynamicInset||((K=y._experimental)===null||K===void 0?void 0:K.dynamicInset),Q=U&&q[0][1]==="r",Y=U&&q[0][0]==="b";Q?(X.right=M,X.left=J):(X.left=R,X.right=J),Y?(X.bottom=k,X.top=J):(X.top=T,X.bottom=J)}var ne={};return N&&(N.includes("height")&&z?ne.height=z:N.includes("minHeight")&&z&&(ne.minHeight=z),N.includes("width")&&P?ne.width=P:N.includes("minWidth")&&P&&(ne.minWidth=P)),s||(ne.pointerEvents="none"),c.createElement($,{open:h||F,getContainer:S&&function(){return S(a)},autoDestroy:C},c.createElement(Mk,{prefixCls:o,open:s,zIndex:O,mask:p,motion:v}),c.createElement(Vr,{onResize:_,disabled:!s},function(ee){return c.createElement(Bo,fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:h,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:D,onEnterPrepare:D,visible:s,onVisibleChanged:function(ue){var me;b==null||(me=b.onVisibleChanged)===null||me===void 0||me.call(b,ue),l(ue)}}),function(ie,ue){var me=ie.className,ae=ie.style,re=Z(o,me,r);return c.createElement("div",{ref:Or(ee,t,ue),className:re,style:W(W(W(W({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),ne),ae),{},{boxSizing:"border-box",zIndex:O},i),onMouseEnter:E,onMouseLeave:w,onPointerEnter:x,onClick:f},m&&c.createElement(Tk,{prefixCls:o,arrow:m,arrowPos:g,align:y}),c.createElement(kk,{cache:!s&&!d},j))})}))}),_k=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=yo(n),i=c.useCallback(function(l){Cs(t,r?r(l):l)},[r]),a=ul(i,n.ref);return o?c.cloneElement(n,{ref:a}):n}),cb=c.createContext(null);function ub(e){return e?Array.isArray(e)?e:[e]:[]}function Lk(e,t,n,r){return c.useMemo(function(){var o=ub(n??t),i=ub(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function zk(){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 jk(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(zk((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function db(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ws(e){return e.ownerDocument.defaultView}function sv(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ws(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function Ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Rl(e){return Ps(parseFloat(e),0)}function fb(e,t){var n=W({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ws(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,g=r.offsetWidth,y=r.clientWidth,b=Rl(l),v=Rl(s),h=Rl(u),S=Rl(d),C=Ps(Math.round(f.width/g*1e3)/1e3),$=Ps(Math.round(f.height/p*1e3)/1e3),O=(g-y-h-S)*C,E=(p-m-b-v)*$,w=b*$,x=v*$,I=h*C,R=S*C,T=0,M=0;if(i==="clip"){var k=Rl(a);T=k*C,M=k*$}var _=f.x+I-T,D=f.y+w-M,N=_+f.width+2*T-I-R-O,P=D+f.height+2*M-w-x-E;n.left=Math.max(n.left,_),n.top=Math.max(n.top,D),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,P)}}),n}function pb(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 mb(e,t){var n=t||[],r=oe(n,2),o=r[0],i=r[1];return[pb(e.width,o),pb(e.height,i)]}function vb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function aa(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Ko(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 Fk(e,t,n,r,o,i,a){var l=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=oe(l,2),u=s[0],d=s[1],f=c.useRef(0),p=c.useMemo(function(){return t?sv(t):[]},[t]),m=c.useRef({}),g=function(){m.current={}};e||g();var y=fn(function(){if(t&&n&&e){let _t=function(Pr,zn){var fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re,co=j.x+Pr,gl=j.y+zn,tf=co+K,nf=gl+X,rf=Math.max(co,fr.left),of=Math.max(gl,fr.top),Ye=Math.min(tf,fr.right),vt=Math.min(nf,fr.bottom);return Math.max(0,(Ye-rf)*(vt-of))},Rr=function(){rt=j.y+Te,it=rt+X,bt=j.x+Je,Tt=bt+K};var Pn=_t,yn=Rr,h,S,C=t,$=C.ownerDocument,O=Ws(C),E=O.getComputedStyle(C),w=E.width,x=E.height,I=E.position,R=C.style.left,T=C.style.top,M=C.style.right,k=C.style.bottom,_=C.style.overflow,D=W(W({},o[r]),i),N=$.createElement("div");(h=C.parentElement)===null||h===void 0||h.appendChild(N),N.style.left="".concat(C.offsetLeft,"px"),N.style.top="".concat(C.offsetTop,"px"),N.style.position=I,N.style.height="".concat(C.offsetHeight,"px"),N.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var z=n.getBoundingClientRect();P={x:z.x,y:z.y,width:z.width,height:z.height}}var j=C.getBoundingClientRect(),F=$.documentElement,L=F.clientWidth,A=F.clientHeight,G=F.scrollWidth,H=F.scrollHeight,V=F.scrollTop,J=F.scrollLeft,X=j.height,K=j.width,q=P.height,U=P.width,Q={left:0,top:0,right:L,bottom:A},Y={left:-J,top:-V,right:G-J,bottom:H-V},ne=D.htmlRegion,ee="visible",ie="visibleFirst";ne!=="scroll"&&ne!==ie&&(ne=ee);var ue=ne===ie,me=fb(Y,p),ae=fb(Q,p),re=ne===ee?ae:me,de=ue?ae:re;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var se=C.getBoundingClientRect();C.style.left=R,C.style.top=T,C.style.right=M,C.style.bottom=k,C.style.overflow=_,(S=C.parentElement)===null||S===void 0||S.removeChild(N);var he=Ps(Math.round(K/parseFloat(w)*1e3)/1e3),$e=Ps(Math.round(X/parseFloat(x)*1e3)/1e3);if(he===0||$e===0||Mu(n)&&!jd(n))return;var Ce=D.offset,ye=D.targetOffset,We=mb(j,Ce),Ke=oe(We,2),Ue=Ke[0],Ee=Ke[1],pe=mb(P,ye),Ie=oe(pe,2),be=Ie[0],Re=Ie[1];P.x-=be,P.y-=Re;var Oe=D.points||[],xe=oe(Oe,2),Fe=xe[0],Qe=xe[1],Ze=vb(Qe),ve=vb(Fe),De=aa(P,Ze),qe=aa(j,ve),lt=W({},D),Je=De.x-qe.x+Ue,Te=De.y-qe.y+Ee,ze=_t(Je,Te),ke=_t(Je,Te,ae),Ve=aa(P,["t","l"]),we=aa(j,["t","l"]),_e=aa(P,["b","r"]),Ne=aa(j,["b","r"]),Me=D.overflow||{},st=Me.adjustX,ft=Me.adjustY,jt=Me.shiftX,Le=Me.shiftY,Ae=function(zn){return typeof zn=="boolean"?zn:zn>=0},rt,it,bt,Tt;Rr();var He=Ae(ft),Be=ve[0]===Ze[0];if(He&&ve[0]==="t"&&(it>de.bottom||m.current.bt)){var et=Te;Be?et-=X-q:et=Ve.y-Ne.y-Ee;var Et=_t(Je,et),Dt=_t(Je,et,ae);Et>ze||Et===ze&&(!ue||Dt>=ke)?(m.current.bt=!0,Te=et,Ee=-Ee,lt.points=[Ko(ve,0),Ko(Ze,0)]):m.current.bt=!1}if(He&&ve[0]==="b"&&(rt<de.top||m.current.tb)){var $t=Te;Be?$t+=X-q:$t=_e.y-we.y-Ee;var an=_t(Je,$t),cn=_t(Je,$t,ae);an>ze||an===ze&&(!ue||cn>=ke)?(m.current.tb=!0,Te=$t,Ee=-Ee,lt.points=[Ko(ve,0),Ko(Ze,0)]):m.current.tb=!1}var vn=Ae(st),On=ve[1]===Ze[1];if(vn&&ve[1]==="l"&&(Tt>de.right||m.current.rl)){var Vt=Je;On?Vt-=K-U:Vt=Ve.x-Ne.x-Ue;var Dn=_t(Vt,Te),tr=_t(Vt,Te,ae);Dn>ze||Dn===ze&&(!ue||tr>=ke)?(m.current.rl=!0,Je=Vt,Ue=-Ue,lt.points=[Ko(ve,1),Ko(Ze,1)]):m.current.rl=!1}if(vn&&ve[1]==="r"&&(bt<de.left||m.current.lr)){var Xe=Je;On?Xe+=K-U:Xe=_e.x-we.x-Ue;var yt=_t(Xe,Te),Ot=_t(Xe,Te,ae);yt>ze||yt===ze&&(!ue||Ot>=ke)?(m.current.lr=!0,Je=Xe,Ue=-Ue,lt.points=[Ko(ve,1),Ko(Ze,1)]):m.current.lr=!1}Rr();var qt=jt===!0?0:jt;typeof qt=="number"&&(bt<ae.left&&(Je-=bt-ae.left-Ue,P.x+U<ae.left+qt&&(Je+=P.x-ae.left+U-qt)),Tt>ae.right&&(Je-=Tt-ae.right-Ue,P.x>ae.right-qt&&(Je+=P.x-ae.right+qt)));var gn=Le===!0?0:Le;typeof gn=="number"&&(rt<ae.top&&(Te-=rt-ae.top-Ee,P.y+q<ae.top+gn&&(Te+=P.y-ae.top+q-gn)),it>ae.bottom&&(Te-=it-ae.bottom-Ee,P.y>ae.bottom-gn&&(Te+=P.y-ae.bottom+gn)));var Ir=j.x+Je,dr=Ir+K,hn=j.y+Te,nr=hn+X,ct=P.x,je=ct+U,at=P.y,mt=at+q,St=Math.max(Ir,ct),Nt=Math.min(dr,je),Qt=(St+Nt)/2,_n=Qt-Ir,Ln=Math.max(hn,at),In=Math.min(nr,mt),Rn=(Ln+In)/2,rr=Rn-hn;a==null||a(t,lt);var ht=se.right-j.x-(Je+j.width),xt=se.bottom-j.y-(Te+j.height);d({ready:!0,offsetX:Je/he,offsetY:Te/$e,offsetR:ht/he,offsetB:xt/$e,arrowX:_n/he,arrowY:rr/$e,scaleX:he,scaleY:$e,align:lt})}}),b=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&y()})},v=function(){d(function(S){return W(W({},S),{},{ready:!1})})};return Pt(v,[r]),Pt(function(){e||v()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,b]}function Ak(e,t,n,r,o){Pt(function(){if(e&&t&&n){let p=function(){r(),o()};var f=p,i=t,a=n,l=sv(i),s=sv(a),u=Ws(a),d=new Set([u].concat(Se(l),Se(s)));return d.forEach(function(m){m.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function Bk(e,t,n,r,o,i,a,l){var s=c.useRef(e),u=c.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),c.useEffect(function(){var d=zt(function(){u.current=!1});return function(){zt.cancel(d)}},[e]),c.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){var O=!1,E=function(I){var R=I.target;O=a(R)},w=function(I){var R=I.target;!u.current&&s.current&&!O&&!a(R)&&l(!1)};return[E,w]},f=d(),p=oe(f,2),m=p[0],g=p[1],y=d(),b=oe(y,2),v=b[0],h=b[1],S=Ws(r);S.addEventListener("mousedown",m,!0),S.addEventListener("click",g,!0),S.addEventListener("contextmenu",g,!0);var C=Au(n);return C&&(C.addEventListener("mousedown",v,!0),C.addEventListener("click",h,!0),C.addEventListener("contextmenu",h,!0)),function(){S.removeEventListener("mousedown",m,!0),S.removeEventListener("click",g,!0),S.removeEventListener("contextmenu",g,!0),C&&(C.removeEventListener("mousedown",v,!0),C.removeEventListener("click",h,!0),C.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,i])}var Hk=["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 Vk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mw,t=c.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,v=b===void 0?.1:b,h=n.focusDelay,S=n.blurDelay,C=n.mask,$=n.maskClosable,O=$===void 0?!0:$,E=n.getPopupContainer,w=n.forceRender,x=n.autoDestroy,I=n.destroyPopupOnHide,R=n.popup,T=n.popupClassName,M=n.popupStyle,k=n.popupPlacement,_=n.builtinPlacements,D=_===void 0?{}:_,N=n.popupAlign,P=n.zIndex,z=n.stretch,j=n.getPopupClassNameFromAlign,F=n.fresh,L=n.alignPoint,A=n.onPopupClick,G=n.onPopupAlign,H=n.arrow,V=n.popupMotion,J=n.maskMotion,X=n.popupTransitionName,K=n.popupAnimation,q=n.maskTransitionName,U=n.maskAnimation,Q=n.className,Y=n.getTriggerDOMNode,ne=nt(n,Hk),ee=x||I||!1,ie=c.useState(!1),ue=oe(ie,2),me=ue[0],ae=ue[1];Pt(function(){ae(qw())},[]);var re=c.useRef({}),de=c.useContext(cb),se=c.useMemo(function(){return{registerSubPopup:function(vt,tn){re.current[vt]=tn,de==null||de.registerSubPopup(vt,tn)}}},[de]),he=sM(),$e=c.useState(null),Ce=oe($e,2),ye=Ce[0],We=Ce[1],Ke=fn(function(Ye){Mu(Ye)&&ye!==Ye&&We(Ye),de==null||de.registerSubPopup(he,Ye)}),Ue=c.useState(null),Ee=oe(Ue,2),pe=Ee[0],Ie=Ee[1],be=c.useRef(null),Re=fn(function(Ye){Mu(Ye)&&pe!==Ye&&(Ie(Ye),be.current=Ye)}),Oe=c.Children.only(a),xe=(Oe==null?void 0:Oe.props)||{},Fe={},Qe=fn(function(Ye){var vt,tn,bn=pe;return(bn==null?void 0:bn.contains(Ye))||((vt=Au(bn))===null||vt===void 0?void 0:vt.host)===Ye||Ye===bn||(ye==null?void 0:ye.contains(Ye))||((tn=Au(ye))===null||tn===void 0?void 0:tn.host)===Ye||Ye===ye||Object.values(re.current).some(function(nn){return(nn==null?void 0:nn.contains(Ye))||Ye===nn})}),Ze=db(i,V,K,X),ve=db(i,J,U,q),De=c.useState(p||!1),qe=oe(De,2),lt=qe[0],Je=qe[1],Te=f??lt,ze=fn(function(Ye){f===void 0&&Je(Ye)});Pt(function(){Je(f||!1)},[f]);var ke=c.useRef(Te);ke.current=Te;var Ve=c.useRef([]);Ve.current=[];var we=fn(function(Ye){var vt;ze(Ye),((vt=Ve.current[Ve.current.length-1])!==null&&vt!==void 0?vt:Te)!==Ye&&(Ve.current.push(Ye),m==null||m(Ye))}),_e=c.useRef(),Ne=function(){clearTimeout(_e.current)},Me=function(vt){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),tn===0?we(vt):_e.current=setTimeout(function(){we(vt)},tn*1e3)};c.useEffect(function(){return Ne},[]);var st=c.useState(!1),ft=oe(st,2),jt=ft[0],Le=ft[1];Pt(function(Ye){(!Ye||Te)&&Le(!0)},[Te]);var Ae=c.useState(null),rt=oe(Ae,2),it=rt[0],bt=rt[1],Tt=c.useState([0,0]),He=oe(Tt,2),Be=He[0],et=He[1],Et=function(vt){et([vt.clientX,vt.clientY])},Dt=Fk(Te,ye,L?Be:pe,k,D,N,G),$t=oe(Dt,11),an=$t[0],cn=$t[1],vn=$t[2],On=$t[3],Vt=$t[4],Dn=$t[5],tr=$t[6],Xe=$t[7],yt=$t[8],Ot=$t[9],qt=$t[10],gn=Lk(me,s,u,d),Ir=oe(gn,2),dr=Ir[0],hn=Ir[1],nr=dr.has("click"),ct=hn.has("click")||hn.has("contextMenu"),je=fn(function(){jt||qt()}),at=function(){ke.current&&L&&ct&&Me(!1)};Ak(Te,pe,ye,je,at),Pt(function(){je()},[Be,k]),Pt(function(){Te&&!(D!=null&&D[k])&&je()},[JSON.stringify(N)]);var mt=c.useMemo(function(){var Ye=jk(D,i,Ot,L);return Z(Ye,j==null?void 0:j(Ot))},[Ot,j,D,i,L]);c.useImperativeHandle(r,function(){return{nativeElement:be.current,forceAlign:je}});var St=c.useState(0),Nt=oe(St,2),Qt=Nt[0],_n=Nt[1],Ln=c.useState(0),In=oe(Ln,2),Rn=In[0],rr=In[1],ht=function(){if(z&&pe){var vt=pe.getBoundingClientRect();_n(vt.width),rr(vt.height)}},xt=function(){ht(),je()},Pn=function(vt){Le(!1),qt(),g==null||g(vt)},yn=function(){return new Promise(function(vt){ht(),bt(function(){return vt})})};Pt(function(){it&&(qt(),it(),bt(null))},[it]);function _t(Ye,vt,tn,bn){Fe[Ye]=function(nn){var Zs;bn==null||bn(nn),Me(vt,tn);for(var af=arguments.length,Lh=new Array(af>1?af-1:0),ec=1;ec<af;ec++)Lh[ec-1]=arguments[ec];(Zs=xe[Ye])===null||Zs===void 0||Zs.call.apply(Zs,[xe,nn].concat(Lh))}}(nr||ct)&&(Fe.onClick=function(Ye){var vt;ke.current&&ct?Me(!1):!ke.current&&nr&&(Et(Ye),Me(!0));for(var tn=arguments.length,bn=new Array(tn>1?tn-1:0),nn=1;nn<tn;nn++)bn[nn-1]=arguments[nn];(vt=xe.onClick)===null||vt===void 0||vt.call.apply(vt,[xe,Ye].concat(bn))}),Bk(Te,ct,pe,ye,C,O,Qe,Me);var Rr=dr.has("hover"),Pr=hn.has("hover"),zn,fr;Rr&&(_t("onMouseEnter",!0,y,function(Ye){Et(Ye)}),_t("onPointerEnter",!0,y,function(Ye){Et(Ye)}),zn=function(){(Te||jt)&&Me(!0,y)},L&&(Fe.onMouseMove=function(Ye){var vt;(vt=xe.onMouseMove)===null||vt===void 0||vt.call(xe,Ye)})),Pr&&(_t("onMouseLeave",!1,v),_t("onPointerLeave",!1,v),fr=function(){Me(!1,v)}),dr.has("focus")&&_t("onFocus",!0,h),hn.has("focus")&&_t("onBlur",!1,S),dr.has("contextMenu")&&(Fe.onContextMenu=function(Ye){var vt;ke.current&&hn.has("contextMenu")?Me(!1):(Et(Ye),Me(!0)),Ye.preventDefault();for(var tn=arguments.length,bn=new Array(tn>1?tn-1:0),nn=1;nn<tn;nn++)bn[nn-1]=arguments[nn];(vt=xe.onContextMenu)===null||vt===void 0||vt.call.apply(vt,[xe,Ye].concat(bn))}),Q&&(Fe.className=Z(xe.className,Q));var co=W(W({},xe),Fe),gl={},tf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];tf.forEach(function(Ye){ne[Ye]&&(gl[Ye]=function(){for(var vt,tn=arguments.length,bn=new Array(tn),nn=0;nn<tn;nn++)bn[nn]=arguments[nn];(vt=co[Ye])===null||vt===void 0||vt.call.apply(vt,[co].concat(bn)),ne[Ye].apply(ne,bn)})});var nf=c.cloneElement(Oe,W(W({},co),gl)),rf={x:Dn,y:tr},of=H?W({},H!==!0?H:{}):null;return c.createElement(c.Fragment,null,c.createElement(Vr,{disabled:!Te,ref:Re,onResize:xt},c.createElement(_k,{getTriggerDOMNode:Y},nf)),c.createElement(cb.Provider,{value:se},c.createElement(Dk,{portal:e,ref:Ke,prefixCls:i,popup:R,className:Z(T,mt),style:M,target:pe,onMouseEnter:zn,onMouseLeave:fr,onPointerEnter:zn,zIndex:P,open:Te,keepDom:jt,fresh:F,onClick:A,mask:C,motion:Ze,maskMotion:ve,onVisibleChanged:Pn,onPrepare:yn,forceRender:w,autoDestroy:ee,getPopupContainer:E,align:Ot,arrow:of,arrowPos:rf,ready:an,offsetX:cn,offsetY:vn,offsetR:On,offsetB:Vt,onAlign:je,stretch:z,targetWidth:Qt/Xe,targetHeight:Rn/yt})))});return t}const Vd=Vk(Mw);var Kk=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Wk=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Uk=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.animation,s=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,p=f===void 0?"ltr":f,m=t.placement,g=t.builtinPlacements,y=t.dropdownMatchSelectWidth,b=t.dropdownRender,v=t.dropdownAlign,h=t.getPopupContainer,S=t.empty,C=t.getTriggerDOMNode,$=t.onPopupVisibleChange,O=t.onPopupMouseEnter,E=nt(t,Kk),w="".concat(r,"-dropdown"),x=a;b&&(x=b(a));var I=c.useMemo(function(){return g||Wk(y)},[g,y]),R=l?"".concat(w,"-").concat(l):s,T=typeof y=="number",M=c.useMemo(function(){return T?null:y===!1?"minWidth":"width"},[y,T]),k=u;T&&(k=W(W({},k),{},{width:y}));var _=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){return _.current}}}),c.createElement(Vd,fe({},E,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:m||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:w,popupTransitionName:R,popup:c.createElement("div",{ref:_,onMouseEnter:O},x),stretch:M,popupAlign:v,popupVisible:o,getPopupContainer:h,popupClassName:Z(d,B({},"".concat(w,"-empty"),S)),popupStyle:k,getTriggerDOMNode:C,onPopupVisibleChange:$}),i)},nE=c.forwardRef(Uk);nE.displayName="SelectTrigger";function gb(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 rE(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function qk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=rE(n,!1),a=i.label,l=i.value,s=i.options,u=i.groupLabel;function d(f,p){f.forEach(function(m){if(p||!(s in m)){var g=m[l];o.push({key:gb(m,o.length),groupOption:p,data:m,label:m[a],value:g})}else{var y=m[u];y===void 0&&r&&(y=m.label),o.push({key:gb(m,o.length),group:!0,data:m,label:y}),d(m[s],!0)}})}return d(e,!1),o}function cv(e){var t=W({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ut(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Gk(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=Px(a),s=l[0],u=l.slice(1);if(!s)return[i];var d=i.split(s);return n=n||d.length>1,d.reduce(function(f,p){return[].concat(Se(f),Se(r(p,u)))},[]).filter(function(f){return f})}var o=r(e,t);return n?o:null}var Xk=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Yk=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function uv(e){return e==="tags"||e==="multiple"}var Qk=c.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,b=e.onClear,v=e.mode,h=e.disabled,S=e.loading,C=e.getInputElement,$=e.getRawInputElement,O=e.open,E=e.defaultOpen,w=e.onDropdownVisibleChange,x=e.activeValue,I=e.onActiveValueChange,R=e.activeDescendantId,T=e.searchValue,M=e.autoClearSearchValue,k=e.onSearch,_=e.onSearchSplit,D=e.tokenSeparators,N=e.allowClear,P=e.suffixIcon,z=e.clearIcon,j=e.OptionList,F=e.animation,L=e.transitionName,A=e.dropdownStyle,G=e.dropdownClassName,H=e.dropdownMatchSelectWidth,V=e.dropdownRender,J=e.dropdownAlign,X=e.placement,K=e.builtinPlacements,q=e.getPopupContainer,U=e.showAction,Q=U===void 0?[]:U,Y=e.onFocus,ne=e.onBlur,ee=e.onKeyUp,ie=e.onKeyDown,ue=e.onMouseDown,me=nt(e,Xk),ae=uv(v),re=(l!==void 0?l:ae)||v==="combobox",de=W({},me);Yk.forEach(function(ct){delete de[ct]}),d==null||d.forEach(function(ct){delete de[ct]});var se=c.useState(!1),he=oe(se,2),$e=he[0],Ce=he[1];c.useEffect(function(){Ce(qw())},[]);var ye=c.useRef(null),We=c.useRef(null),Ke=c.useRef(null),Ue=c.useRef(null),Ee=c.useRef(null),pe=c.useRef(!1),Ie=lk(),be=oe(Ie,3),Re=be[0],Oe=be[1],xe=be[2];c.useImperativeHandle(t,function(){var ct,je;return{focus:(ct=Ue.current)===null||ct===void 0?void 0:ct.focus,blur:(je=Ue.current)===null||je===void 0?void 0:je.blur,scrollTo:function(mt){var St;return(St=Ee.current)===null||St===void 0?void 0:St.scrollTo(mt)}}});var Fe=c.useMemo(function(){var ct;if(v!=="combobox")return T;var je=(ct=f[0])===null||ct===void 0?void 0:ct.value;return typeof je=="string"||typeof je=="number"?String(je):""},[T,v,f]),Qe=v==="combobox"&&typeof C=="function"&&C()||null,Ze=typeof $=="function"&&$(),ve=ul(We,Ze==null||(n=Ze.props)===null||n===void 0?void 0:n.ref),De=c.useState(!1),qe=oe(De,2),lt=qe[0],Je=qe[1];Pt(function(){Je(!0)},[]);var Te=on(!1,{defaultValue:E,value:O}),ze=oe(Te,2),ke=ze[0],Ve=ze[1],we=lt?ke:!1,_e=!y&&m;(h||_e&&we&&v==="combobox")&&(we=!1);var Ne=_e?!1:we,Me=c.useCallback(function(ct){var je=ct!==void 0?ct:!we;h||(Ve(je),we!==je&&(w==null||w(je)))},[h,we,Ve,w]),st=c.useMemo(function(){return(D||[]).some(function(ct){return[`
`,`\r
`].includes(ct)})},[D]),ft=function(je,at,mt){var St=!0,Nt=je;I==null||I(null);var Qt=mt?null:Gk(je,D);return v!=="combobox"&&Qt&&(Nt="",_==null||_(Qt),Me(!1),St=!1),k&&Fe!==Nt&&k(Nt,{source:at?"typing":"effect"}),St},jt=function(je){!je||!je.trim()||k(je,{source:"submit"})};c.useEffect(function(){!we&&!ae&&v!=="combobox"&&ft("",!1,!1)},[we]),c.useEffect(function(){ke&&h&&Ve(!1),h&&!pe.current&&Oe(!1)},[h]);var Le=Xw(),Ae=oe(Le,2),rt=Ae[0],it=Ae[1],bt=function(je){var at=rt(),mt=je.which;if(mt===ge.ENTER&&(v!=="combobox"&&je.preventDefault(),we||Me(!0)),it(!!Fe),mt===ge.BACKSPACE&&!at&&ae&&!Fe&&f.length){for(var St=Se(f),Nt=null,Qt=St.length-1;Qt>=0;Qt-=1){var _n=St[Qt];if(!_n.disabled){St.splice(Qt,1),Nt=_n;break}}Nt&&p(St,{type:"remove",values:[Nt]})}for(var Ln=arguments.length,In=new Array(Ln>1?Ln-1:0),Rn=1;Rn<Ln;Rn++)In[Rn-1]=arguments[Rn];if(we&&Ee.current){var rr;(rr=Ee.current).onKeyDown.apply(rr,[je].concat(In))}ie==null||ie.apply(void 0,[je].concat(In))},Tt=function(je){for(var at=arguments.length,mt=new Array(at>1?at-1:0),St=1;St<at;St++)mt[St-1]=arguments[St];if(we&&Ee.current){var Nt;(Nt=Ee.current).onKeyUp.apply(Nt,[je].concat(mt))}ee==null||ee.apply(void 0,[je].concat(mt))},He=function(je){var at=f.filter(function(mt){return mt!==je});p(at,{type:"remove",values:[je]})},Be=c.useRef(!1),et=function(){Oe(!0),h||(Y&&!Be.current&&Y.apply(void 0,arguments),Q.includes("focus")&&Me(!0)),Be.current=!0},Et=function(){pe.current=!0,Oe(!1,function(){Be.current=!1,pe.current=!1,Me(!1)}),!h&&(Fe&&(v==="tags"?k(Fe,{source:"submit"}):v==="multiple"&&k("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},Dt=[];c.useEffect(function(){return function(){Dt.forEach(function(ct){return clearTimeout(ct)}),Dt.splice(0,Dt.length)}},[]);var $t=function(je){var at,mt=je.target,St=(at=Ke.current)===null||at===void 0?void 0:at.getPopupElement();if(St&&St.contains(mt)){var Nt=setTimeout(function(){var In=Dt.indexOf(Nt);if(In!==-1&&Dt.splice(In,1),xe(),!$e&&!St.contains(document.activeElement)){var Rn;(Rn=Ue.current)===null||Rn===void 0||Rn.focus()}});Dt.push(Nt)}for(var Qt=arguments.length,_n=new Array(Qt>1?Qt-1:0),Ln=1;Ln<Qt;Ln++)_n[Ln-1]=arguments[Ln];ue==null||ue.apply(void 0,[je].concat(_n))},an=c.useState({}),cn=oe(an,2),vn=cn[1];function On(){vn({})}var Vt;Ze&&(Vt=function(je){Me(je)}),sk(function(){var ct;return[ye.current,(ct=Ke.current)===null||ct===void 0?void 0:ct.getPopupElement()]},Ne,Me,!!Ze);var Dn=c.useMemo(function(){return W(W({},e),{},{notFoundContent:y,open:we,triggerOpen:Ne,id:o,showSearch:re,multiple:ae,toggleOpen:Me})},[e,y,Ne,we,o,re,ae,Me]),tr=!!P||S,Xe;tr&&(Xe=c.createElement(Hd,{className:Z("".concat(i,"-arrow"),B({},"".concat(i,"-arrow-loading"),S)),customizeIcon:P,customizeIconProps:{loading:S,searchValue:Fe,open:we,focused:Re,showSearch:re}}));var yt=function(){var je;b==null||b(),(je=Ue.current)===null||je===void 0||je.focus(),p([],{type:"clear",values:f}),ft("",!1,!1)},Ot=ik(i,yt,f,N,z,h,Fe,v),qt=Ot.allowClear,gn=Ot.clearIcon,Ir=c.createElement(j,{ref:Ee}),dr=Z(i,a,(r={},B(r,"".concat(i,"-focused"),Re),B(r,"".concat(i,"-multiple"),ae),B(r,"".concat(i,"-single"),!ae),B(r,"".concat(i,"-allow-clear"),N),B(r,"".concat(i,"-show-arrow"),tr),B(r,"".concat(i,"-disabled"),h),B(r,"".concat(i,"-loading"),S),B(r,"".concat(i,"-open"),we),B(r,"".concat(i,"-customize-input"),Qe),B(r,"".concat(i,"-show-search"),re),r)),hn=c.createElement(nE,{ref:Ke,disabled:h,prefixCls:i,visible:Ne,popupElement:Ir,animation:F,transitionName:L,dropdownStyle:A,dropdownClassName:G,direction:u,dropdownMatchSelectWidth:H,dropdownRender:V,dropdownAlign:J,placement:X,builtinPlacements:K,getPopupContainer:q,empty:m,getTriggerDOMNode:function(){return We.current},onPopupVisibleChange:Vt,onPopupMouseEnter:On},Ze?c.cloneElement(Ze,{ref:ve}):c.createElement(tE,fe({},e,{domRef:We,prefixCls:i,inputElement:Qe,ref:Ue,id:o,showSearch:re,autoClearSearchValue:M,mode:v,activeDescendantId:R,tagRender:s,values:f,open:we,onToggleOpen:Me,activeValue:x,searchValue:Fe,onSearch:ft,onSearchSubmit:jt,onRemove:He,tokenWithEnter:st}))),nr;return Ze?nr=hn:nr=c.createElement("div",fe({className:dr},de,{ref:ye,onMouseDown:$t,onKeyDown:bt,onKeyUp:Tt,onFocus:et,onBlur:Et}),Re&&!we&&c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(f.map(function(ct){var je=ct.label,at=ct.value;return["number","string"].includes(tt(je))?je:at}).join(", "))),hn,Xe,qt&&gn),c.createElement(Gw.Provider,{value:Dn},nr)}),eh=function(){return null};eh.isSelectOptGroup=!0;var th=function(){return null};th.isSelectOption=!0;var oE=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};if(r!==void 0){var m;f={height:n,position:"relative",overflow:"hidden"},p=W(W({},p),{},(m={transform:"translateY(".concat(r,"px)")},B(m,u?"marginRight":"marginLeft",-o),B(m,"position","absolute"),B(m,"left",0),B(m,"right",0),B(m,"top",0),m))}return c.createElement("div",{style:f},c.createElement(Vr,{onResize:function(y){var b=y.offsetHeight;b&&l&&l()}},c.createElement("div",fe({style:p,className:Z(B({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,d)))});oE.displayName="Filler";function hb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var yb=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,m=e.style,g=e.thumbStyle,y=c.useState(!1),b=oe(y,2),v=b[0],h=b[1],S=c.useState(null),C=oe(S,2),$=C[0],O=C[1],E=c.useState(null),w=oe(E,2),x=w[0],I=w[1],R=!o,T=c.useRef(),M=c.useRef(),k=c.useState(!1),_=oe(k,2),D=_[0],N=_[1],P=c.useRef(),z=function(){clearTimeout(P.current),N(!0),P.current=setTimeout(function(){N(!1)},3e3)},j=a-p||0,F=p-f||0,L=j>0,A=c.useMemo(function(){if(i===0||j===0)return 0;var Q=i/j;return Q*F},[i,j,F]),G=function(Y){Y.stopPropagation(),Y.preventDefault()},H=c.useRef({top:A,dragging:v,pageY:$,startTop:x});H.current={top:A,dragging:v,pageY:$,startTop:x};var V=function(Y){h(!0),O(hb(Y,d)),I(H.current.top),l(),Y.stopPropagation(),Y.preventDefault()};c.useEffect(function(){var Q=function(ie){ie.preventDefault()},Y=T.current,ne=M.current;return Y.addEventListener("touchstart",Q),ne.addEventListener("touchstart",V),function(){Y.removeEventListener("touchstart",Q),ne.removeEventListener("touchstart",V)}},[]);var J=c.useRef();J.current=j;var X=c.useRef();X.current=F,c.useEffect(function(){if(v){var Q,Y=function(ie){var ue=H.current,me=ue.dragging,ae=ue.pageY,re=ue.startTop;if(zt.cancel(Q),me){var de=hb(ie,d)-ae,se=re;!R&&d?se-=de:se+=de;var he=J.current,$e=X.current,Ce=$e?se/$e:0,ye=Math.ceil(Ce*he);ye=Math.max(ye,0),ye=Math.min(ye,he),Q=zt(function(){u(ye,d)})}},ne=function(){h(!1),s()};return window.addEventListener("mousemove",Y),window.addEventListener("touchmove",Y),window.addEventListener("mouseup",ne),window.addEventListener("touchend",ne),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),zt.cancel(Q)}}},[v]),c.useEffect(function(){z()},[i]),c.useImperativeHandle(t,function(){return{delayHidden:z}});var K="".concat(r,"-scrollbar"),q={position:"absolute",visibility:D&&L?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(q.height=8,q.left=0,q.right=0,q.bottom=0,U.height="100%",U.width=f,R?U.left=A:U.right=A):(q.width=8,q.top=0,q.bottom=0,R?q.right=0:q.left=0,U.width="100%",U.height=f,U.top=A),c.createElement("div",{ref:T,className:Z(K,(n={},B(n,"".concat(K,"-horizontal"),d),B(n,"".concat(K,"-vertical"),!d),B(n,"".concat(K,"-visible"),D),n)),style:W(W({},q),m),onMouseDown:G,onMouseMove:z},c.createElement("div",{ref:M,className:Z("".concat(K,"-thumb"),B({},"".concat(K,"-thumb-moving"),v)),style:W(W({},U),g),onMouseDown:V}))});function Jk(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function Zk(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map(function(s,u){var d=t+u,f=i(s,d,{style:{width:r}}),p=l(s);return c.createElement(Jk,{key:p,setRef:function(g){return o(s,g)}},f)})}var e8=function(){function e(){En(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return $n(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function t8(e,t,n){var r=c.useState(0),o=oe(r,2),i=o[0],a=o[1],l=c.useRef(new Map),s=c.useRef(new e8),u=c.useRef();function d(){zt.cancel(u.current)}function f(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(b,v){if(b&&b.offsetParent){var h=Xl(b),S=h.offsetHeight;s.current.get(v)!==S&&s.current.set(v,h.offsetHeight)}}),a(function(b){return b+1})};m?g():u.current=zt(g)}function p(m,g){var y=e(m);l.current.get(y),g?(l.current.set(y,g),f()):l.current.delete(y)}return c.useEffect(function(){return d},[]),[p,f,s.current,i]}var n8=10;function r8(e,t,n,r,o,i,a,l){var s=c.useRef(),u=c.useState(null),d=oe(u,2),f=d[0],p=d[1];return Pt(function(){if(f&&f.times<n8){if(!e.current){p(function(z){return W({},z)});return}i();var m=f.targetAlign,g=f.originAlign,y=f.index,b=f.offset,v=e.current.clientHeight,h=!1,S=m,C=null;if(v){for(var $=m||g,O=0,E=0,w=0,x=Math.min(t.length-1,y),I=0;I<=x;I+=1){var R=o(t[I]);E=O;var T=n.get(R);w=E+(T===void 0?r:T),O=w}for(var M=$==="top"?b:v-b,k=x;k>=0;k-=1){var _=o(t[k]),D=n.get(_);if(D===void 0){h=!0;break}if(M-=D,M<=0)break}switch($){case"top":C=E-b;break;case"bottom":C=w-v+b;break;default:{var N=e.current.scrollTop,P=N+v;E<N?S="top":w>P&&(S="bottom")}}C!==null&&a(C),C!==f.lastTop&&(h=!0)}h&&p(W(W({},f),{},{times:f.times+1,targetAlign:S,lastTop:C}))}},[f,e.current]),function(m){if(m==null){l();return}if(zt.cancel(s.current),typeof m=="number")a(m);else if(m&&tt(m)==="object"){var g,y=m.align;"index"in m?g=m.index:g=t.findIndex(function(h){return o(h)===m.key});var b=m.offset,v=b===void 0?0:b;p({times:0,index:g,offset:v,originAlign:y})}}}function o8(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function s(g){return g!==void 0?n(g):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var p=s(i[f]),m=s(a[f]);if(p!==m){u=f,d=d||p!==s(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function i8(e,t,n){var r=c.useState(e),o=oe(r,2),i=o[0],a=o[1],l=c.useState(null),s=oe(l,2),u=s[0],d=s[1];return c.useEffect(function(){var f=o8(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),a(e)},[e]),[u]}var bb=(typeof navigator>"u"?"undefined":tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const iE=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=c.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function a8(e,t,n,r,o){var i=c.useRef(0),a=c.useRef(null),l=c.useRef(null),s=c.useRef(!1),u=iE(t,n);function d(b,v){zt.cancel(a.current),i.current+=v,l.current=v,!u(v)&&(bb||b.preventDefault(),a.current=zt(function(){var h=s.current?10:1;o(i.current*h),i.current=0}))}function f(b,v){o(v,!0),bb||b.preventDefault()}var p=c.useRef(null),m=c.useRef(null);function g(b){if(e){zt.cancel(m.current),m.current=zt(function(){p.current=null},2);var v=b.deltaX,h=b.deltaY,S=b.shiftKey,C=v,$=h;(p.current==="sx"||!p.current&&S&&h&&!v)&&(C=h,$=0,p.current="sx");var O=Math.abs(C),E=Math.abs($);p.current===null&&(p.current=r&&O>E?"x":"y"),p.current==="y"?d(b,$):f(b,C)}}function y(b){e&&(s.current=b.detail===l.current)}return[g,y]}var l8=14/15;function s8(e,t,n){var r=c.useRef(!1),o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l,s=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageY),g=o.current-m;o.current=m,n(g)&&p.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){g*=l8,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a.current)},16)}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",u))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",u))},Pt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(a.current)}},[e])}var c8=20;function Sb(){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*100;return isNaN(n)&&(n=0),n=Math.max(n,c8),n=Math.min(n,e/2),Math.floor(n)}function u8(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=oe(o,2),a=i[0],l=i[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=a.get(d),m=a.get(f);if(p===void 0||m===void 0)for(var g=e.length,y=l.length;y<g;y+=1){var b,v=e[y],h=t(v);a.set(h,y);var S=(b=n.get(h))!==null&&b!==void 0?b:r;if(l[y]=(l[y-1]||0)+S,h===d&&(p=y),h===f&&(m=y),p!==void 0&&m!==void 0)break}return{top:l[p-1]||0,bottom:l[m]}};return s}var d8=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],f8=[],p8={overflowY:"auto",overflowAnchor:"none"};function m8(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,p=e.itemKey,m=e.virtual,g=e.direction,y=e.scrollWidth,b=e.component,v=b===void 0?"div":b,h=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,$=e.innerProps,O=e.extraRender,E=e.styles,w=nt(e,d8),x=!!(m!==!1&&i&&a),I=x&&d&&(a*d.length>i||!!y),R=g==="rtl",T=Z(r,B({},"".concat(r,"-rtl"),R),o),M=d||f8,k=c.useRef(),_=c.useRef(),D=c.useState(0),N=oe(D,2),P=N[0],z=N[1],j=c.useState(0),F=oe(j,2),L=F[0],A=F[1],G=c.useState(!1),H=oe(G,2),V=H[0],J=H[1],X=function(){J(!0)},K=function(){J(!1)},q=c.useCallback(function(He){return typeof p=="function"?p(He):He==null?void 0:He[p]},[p]),U={getKey:q};function Q(He){z(function(Be){var et;typeof He=="function"?et=He(Be):et=He;var Et=ve(et);return k.current.scrollTop=Et,Et})}var Y=c.useRef({start:0,end:M.length}),ne=c.useRef(),ee=i8(M,q),ie=oe(ee,1),ue=ie[0];ne.current=ue;var me=t8(q),ae=oe(me,4),re=ae[0],de=ae[1],se=ae[2],he=ae[3],$e=c.useMemo(function(){if(!x)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};if(!I){var He;return{scrollHeight:((He=_.current)===null||He===void 0?void 0:He.offsetHeight)||0,start:0,end:M.length-1,offset:void 0}}for(var Be=0,et,Et,Dt,$t=M.length,an=0;an<$t;an+=1){var cn=M[an],vn=q(cn),On=se.get(vn),Vt=Be+(On===void 0?a:On);Vt>=P&&et===void 0&&(et=an,Et=Be),Vt>P+i&&Dt===void 0&&(Dt=an),Be=Vt}return et===void 0&&(et=0,Et=0,Dt=Math.ceil(i/a)),Dt===void 0&&(Dt=M.length-1),Dt=Math.min(Dt+1,M.length-1),{scrollHeight:Be,start:et,end:Dt,offset:Et}},[I,x,P,M,he,i]),Ce=$e.scrollHeight,ye=$e.start,We=$e.end,Ke=$e.offset;Y.current.start=ye,Y.current.end=We;var Ue=c.useState({width:0,height:i}),Ee=oe(Ue,2),pe=Ee[0],Ie=Ee[1],be=function(Be){Ie({width:Be.width||Be.offsetWidth,height:Be.height||Be.offsetHeight})},Re=c.useRef(),Oe=c.useRef(),xe=c.useMemo(function(){return Sb(pe.width,y)},[pe.width,y]),Fe=c.useMemo(function(){return Sb(pe.height,Ce)},[pe.height,Ce]),Qe=Ce-i,Ze=c.useRef(Qe);Ze.current=Qe;function ve(He){var Be=He;return Number.isNaN(Ze.current)||(Be=Math.min(Be,Ze.current)),Be=Math.max(Be,0),Be}var De=P<=0,qe=P>=Qe,lt=iE(De,qe),Je=function(){return{x:R?-L:L,y:P}},Te=c.useRef(Je()),ze=fn(function(){if(S){var He=Je();(Te.current.x!==He.x||Te.current.y!==He.y)&&(S(He),Te.current=He)}});function ke(He,Be){var et=He;Be?(Ar.flushSync(function(){A(et)}),ze()):Q(et)}function Ve(He){var Be=He.currentTarget.scrollTop;Be!==P&&Q(Be),h==null||h(He),ze()}var we=function(Be){var et=Be,Et=y-pe.width;return et=Math.max(et,0),et=Math.min(et,Et),et},_e=fn(function(He,Be){Be?(Ar.flushSync(function(){A(function(et){var Et=et+(R?-He:He);return we(Et)})}),ze()):Q(function(et){var Et=et+He;return Et})}),Ne=a8(x,De,qe,!!y,_e),Me=oe(Ne,2),st=Me[0],ft=Me[1];s8(x,k,function(He,Be){return lt(He,Be)?!1:(st({preventDefault:function(){},deltaY:He}),!0)}),Pt(function(){function He(et){x&&et.preventDefault()}var Be=k.current;return Be.addEventListener("wheel",st),Be.addEventListener("DOMMouseScroll",ft),Be.addEventListener("MozMousePixelScroll",He),function(){Be.removeEventListener("wheel",st),Be.removeEventListener("DOMMouseScroll",ft),Be.removeEventListener("MozMousePixelScroll",He)}},[x]),Pt(function(){y&&A(function(He){return we(He)})},[pe.width,y]);var jt=function(){var Be,et;(Be=Re.current)===null||Be===void 0||Be.delayHidden(),(et=Oe.current)===null||et===void 0||et.delayHidden()},Le=r8(k,M,se,a,q,function(){return de(!0)},Q,jt);c.useImperativeHandle(t,function(){return{getScrollInfo:Je,scrollTo:function(Be){function et(Et){return Et&&tt(Et)==="object"&&("left"in Et||"top"in Et)}et(Be)?(Be.left!==void 0&&A(we(Be.left)),Le(Be.top)):Le(Be)}}}),Pt(function(){if(C){var He=M.slice(ye,We+1);C(He,M)}},[ye,We,M]);var Ae=u8(M,q,se,a),rt=O==null?void 0:O({start:ye,end:We,virtual:I,offsetX:L,offsetY:Ke,rtl:R,getSize:Ae}),it=Zk(M,ye,We,y,re,f,U),bt=null;i&&(bt=W(B({},s?"height":"maxHeight",i),p8),x&&(bt.overflowY="hidden",y&&(bt.overflowX="hidden"),V&&(bt.pointerEvents="none")));var Tt={};return R&&(Tt.dir="rtl"),c.createElement("div",fe({style:W(W({},u),{},{position:"relative"}),className:T},Tt,w),c.createElement(Vr,{onResize:be},c.createElement(v,{className:"".concat(r,"-holder"),style:bt,ref:k,onScroll:Ve,onMouseEnter:jt},c.createElement(oE,{prefixCls:r,height:Ce,offsetX:L,offsetY:Ke,scrollWidth:y,onInnerResize:de,ref:_,innerProps:$,rtl:R,extra:rt},it))),I&&Ce>i&&c.createElement(yb,{ref:Re,prefixCls:r,scrollOffset:P,scrollRange:Ce,rtl:R,onScroll:ke,onStartMove:X,onStopMove:K,spinSize:Fe,containerSize:pe.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),I&&y&&c.createElement(yb,{ref:Oe,prefixCls:r,scrollOffset:L,scrollRange:y,rtl:R,onScroll:ke,onStartMove:X,onStopMove:K,spinSize:xe,containerSize:pe.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var Kd=c.forwardRef(m8);Kd.displayName="List";var aE=c.createContext(null);function v8(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var g8=["disabled","title","children","style","className"];function Cb(e){return typeof e=="string"||typeof e=="number"}var h8=function(t,n){var r=ak(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,m=c.useContext(aE),g=m.flattenOptions,y=m.onActiveValue,b=m.defaultActiveFirstOption,v=m.onSelect,h=m.menuItemSelectedIcon,S=m.rawValues,C=m.fieldNames,$=m.virtual,O=m.direction,E=m.listHeight,w=m.listItemHeight,x=m.optionRender,I="".concat(o,"-item"),R=Xi(function(){return g},[a,g],function(X,K){return K[0]&&X[1]!==K[1]}),T=c.useRef(null),M=function(K){K.preventDefault()},k=function(K){T.current&&T.current.scrollTo(typeof K=="number"?{index:K}:K)},_=function(K){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=R.length,Q=0;Q<U;Q+=1){var Y=(K+Q*q+U)%U,ne=R[Y],ee=ne.group,ie=ne.data;if(!ee&&!ie.disabled)return Y}return-1},D=c.useState(function(){return _(0)}),N=oe(D,2),P=N[0],z=N[1],j=function(K){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(K);var U={source:q?"keyboard":"mouse"},Q=R[K];if(!Q){y(null,-1,U);return}y(Q.value,K,U)};c.useEffect(function(){j(b!==!1?_(0):-1)},[R.length,u]);var F=c.useCallback(function(X){return S.has(X)&&s!=="combobox"},[s,Se(S).toString(),S.size]);c.useEffect(function(){var X=setTimeout(function(){if(!l&&a&&S.size===1){var q=Array.from(S)[0],U=R.findIndex(function(Q){var Y=Q.data;return Y.value===q});U!==-1&&(j(U),k(U))}});if(a){var K;(K=T.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,u]);var L=function(K){K!==void 0&&v(K,{selected:!S.has(K)}),l||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(K){var q=K.which,U=K.ctrlKey;switch(q){case ge.N:case ge.P:case ge.UP:case ge.DOWN:{var Q=0;if(q===ge.UP?Q=-1:q===ge.DOWN?Q=1:v8()&&U&&(q===ge.N?Q=1:q===ge.P&&(Q=-1)),Q!==0){var Y=_(P+Q,Q);k(Y),j(Y,!0)}break}case ge.ENTER:{var ne=R[P];ne&&!ne.data.disabled?L(ne.value):L(void 0),a&&K.preventDefault();break}case ge.ESC:d(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){k(K)}}}),R.length===0)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:M},f);var A=Object.keys(C).map(function(X){return C[X]}),G=function(K){return K.label};function H(X,K){var q=X.group;return{role:q?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var V=function(K){var q=R[K];if(!q)return null;var U=q.data||{},Q=U.value,Y=q.group,ne=io(U,!0),ee=G(q);return q?c.createElement("div",fe({"aria-label":typeof ee=="string"&&!Y?ee:null},ne,{key:K},H(q,K),{"aria-selected":F(Q)}),Q):null},J={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,$&&c.createElement("div",fe({},J,{style:{height:0,width:0,overflow:"hidden"}}),V(P-1),V(P),V(P+1)),c.createElement(Kd,{itemKey:"key",ref:T,data:R,height:E,itemHeight:w,fullHeight:!1,onMouseDown:M,onScroll:p,virtual:$,direction:O,innerProps:$?null:J},function(X,K){var q,U=X.group,Q=X.groupOption,Y=X.data,ne=X.label,ee=X.value,ie=Y.key;if(U){var ue,me=(ue=Y.title)!==null&&ue!==void 0?ue:Cb(ne)?ne.toString():void 0;return c.createElement("div",{className:Z(I,"".concat(I,"-group")),title:me},ne!==void 0?ne:ie)}var ae=Y.disabled,re=Y.title;Y.children;var de=Y.style,se=Y.className,he=nt(Y,g8),$e=kn(he,A),Ce=F(ee),ye="".concat(I,"-option"),We=Z(I,ye,se,(q={},B(q,"".concat(ye,"-grouped"),Q),B(q,"".concat(ye,"-active"),P===K&&!ae),B(q,"".concat(ye,"-disabled"),ae),B(q,"".concat(ye,"-selected"),Ce),q)),Ke=G(X),Ue=!h||typeof h=="function"||Ce,Ee=typeof Ke=="number"?Ke:Ke||ee,pe=Cb(Ee)?Ee.toString():void 0;return re!==void 0&&(pe=re),c.createElement("div",fe({},io($e),$?{}:H(X,K),{"aria-selected":Ce,className:We,title:pe,onMouseMove:function(){P===K||ae||j(K)},onClick:function(){ae||L(ee)},style:de}),c.createElement("div",{className:"".concat(ye,"-content")},typeof x=="function"?x(X,{index:K}):Ee),c.isValidElement(h)||Ce,Ue&&c.createElement(Hd,{className:"".concat(I,"-option-state"),customizeIcon:h,customizeIconProps:{value:ee,disabled:ae,isSelected:Ce}},Ce?"✓":null))}))},lE=c.forwardRef(h8);lE.displayName="OptionList";const y8=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(f){if(f.label===void 0){var p;return W(W({},f),{},{label:(p=a.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return s.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,s},[e,t]),o=c.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function tp(e,t){return Zw(e).join("").toUpperCase().includes(t)}const b8=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(m,g){return o?tp(g[o],d):g[i]?tp(g[a!=="children"?a:"label"],d):tp(g[l],d)},p=u?function(m){return cv(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var g=f(n,p(m));if(g)s.push(m);else{var y=m[i].filter(function(b){return f(n,p(b))});y.length&&s.push(W(W({},m),{},B({},i,y)))}return}f(n,p(m))&&s.push(m)}),s},[e,r,o,n,t])};var xb=0,S8=Mn();function C8(){var e;return S8?(e=xb,xb+=1):e="TEST_OR_SSR",e}function x8(e){var t=c.useState(),n=oe(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(C8()))},[]),e||r}var w8=["children","value"],E8=["children"];function $8(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=nt(r,w8);return W({key:n,value:i!==void 0?i:n,children:o},a)}function sE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xr(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,u=nt(l,E8);return t||!i?$8(n):W(W({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:sE(s)})}).filter(function(n){return n})}function O8(e,t,n,r,o){return c.useMemo(function(){var i=e,a=!e;a&&(i=sE(t));var l=new Map,s=new Map,u=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)};function d(f){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<f.length;m+=1){var g=f[m];!g[n.options]||p?(l.set(g[n.value],g),u(s,g,n.label),u(s,g,r),u(s,g,o)):d(g[n.options],!0)}}return d(i),{options:i,valueOptions:l,labelOptions:s}},[e,t,n,r,o])}function wb(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var I8=["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","value","defaultValue","labelInValue","onChange"],R8=["inputValue"];function P8(e){return!e||tt(e)!=="object"}var N8=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,m=e.onSelect,g=e.onDeselect,y=e.dropdownMatchSelectWidth,b=y===void 0?!0:y,v=e.filterOption,h=e.filterSort,S=e.optionFilterProp,C=e.optionLabelProp,$=e.options,O=e.optionRender,E=e.children,w=e.defaultActiveFirstOption,x=e.menuItemSelectedIcon,I=e.virtual,R=e.direction,T=e.listHeight,M=T===void 0?200:T,k=e.listItemHeight,_=k===void 0?20:k,D=e.value,N=e.defaultValue,P=e.labelInValue,z=e.onChange,j=nt(e,I8),F=x8(n),L=uv(r),A=!!(!$&&E),G=c.useMemo(function(){return v===void 0&&r==="combobox"?!1:v},[v,r]),H=c.useMemo(function(){return rE(l,A)},[JSON.stringify(l),A]),V=on("",{value:u!==void 0?u:s,postState:function(_e){return _e||""}}),J=oe(V,2),X=J[0],K=J[1],q=O8($,E,H,S,C),U=q.valueOptions,Q=q.labelOptions,Y=q.options,ne=c.useCallback(function(we){var _e=Zw(we);return _e.map(function(Ne){var Me,st,ft,jt,Le;if(P8(Ne))Me=Ne;else{var Ae;ft=Ne.key,st=Ne.label,Me=(Ae=Ne.value)!==null&&Ae!==void 0?Ae:ft}var rt=U.get(Me);if(rt){var it;st===void 0&&(st=rt==null?void 0:rt[C||H.label]),ft===void 0&&(ft=(it=rt==null?void 0:rt.key)!==null&&it!==void 0?it:Me),jt=rt==null?void 0:rt.disabled,Le=rt==null?void 0:rt.title}return{label:st,value:Me,key:ft,disabled:jt,title:Le}})},[H,C,U]),ee=on(N,{value:D}),ie=oe(ee,2),ue=ie[0],me=ie[1],ae=c.useMemo(function(){var we,_e=ne(ue);return r==="combobox"&&Ek((we=_e[0])===null||we===void 0?void 0:we.value)?[]:_e},[ue,ne,r]),re=y8(ae,U),de=oe(re,2),se=de[0],he=de[1],$e=c.useMemo(function(){if(!r&&se.length===1){var we=se[0];if(we.value===null&&(we.label===null||we.label===void 0))return[]}return se.map(function(_e){var Ne;return W(W({},_e),{},{label:(Ne=_e.label)!==null&&Ne!==void 0?Ne:_e.value})})},[r,se]),Ce=c.useMemo(function(){return new Set(se.map(function(we){return we.value}))},[se]);c.useEffect(function(){if(r==="combobox"){var we,_e=(we=se[0])===null||we===void 0?void 0:we.value;K(wk(_e)?String(_e):"")}},[se]);var ye=wb(function(we,_e){var Ne,Me=_e??we;return Ne={},B(Ne,H.value,we),B(Ne,H.label,Me),Ne}),We=c.useMemo(function(){if(r!=="tags")return Y;var we=Se(Y),_e=function(Me){return U.has(Me)};return Se(se).sort(function(Ne,Me){return Ne.value<Me.value?-1:1}).forEach(function(Ne){var Me=Ne.value;_e(Me)||we.push(ye(Me,Ne.label))}),we},[ye,Y,U,se,r]),Ke=b8(We,H,X,G,S),Ue=c.useMemo(function(){return r!=="tags"||!X||Ke.some(function(we){return we[S||"value"]===X})||Ke.some(function(we){return we[H.value]===X})?Ke:[ye(X)].concat(Se(Ke))},[ye,S,r,Ke,X,H]),Ee=c.useMemo(function(){return h?Se(Ue).sort(function(we,_e){return h(we,_e)}):Ue},[Ue,h]),pe=c.useMemo(function(){return qk(Ee,{fieldNames:H,childrenAsData:A})},[Ee,H,A]),Ie=function(_e){var Ne=ne(_e);if(me(Ne),z&&(Ne.length!==se.length||Ne.some(function(ft,jt){var Le;return((Le=se[jt])===null||Le===void 0?void 0:Le.value)!==(ft==null?void 0:ft.value)}))){var Me=P?Ne:Ne.map(function(ft){return ft.value}),st=Ne.map(function(ft){return cv(he(ft.value))});z(L?Me:Me[0],L?st:st[0])}},be=c.useState(null),Re=oe(be,2),Oe=Re[0],xe=Re[1],Fe=c.useState(0),Qe=oe(Fe,2),Ze=Qe[0],ve=Qe[1],De=w!==void 0?w:r!=="combobox",qe=c.useCallback(function(we,_e){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=Ne.source,st=Me===void 0?"keyboard":Me;ve(_e),a&&r==="combobox"&&we!==null&&st==="keyboard"&&xe(String(we))},[a,r]),lt=function(_e,Ne,Me){var st=function(){var Be,et=he(_e);return[P?{label:et==null?void 0:et[H.label],value:_e,key:(Be=et==null?void 0:et.key)!==null&&Be!==void 0?Be:_e}:_e,cv(et)]};if(Ne&&m){var ft=st(),jt=oe(ft,2),Le=jt[0],Ae=jt[1];m(Le,Ae)}else if(!Ne&&g&&Me!=="clear"){var rt=st(),it=oe(rt,2),bt=it[0],Tt=it[1];g(bt,Tt)}},Je=wb(function(we,_e){var Ne,Me=L?_e.selected:!0;Me?Ne=L?[].concat(Se(se),[we]):[we]:Ne=se.filter(function(st){return st.value!==we}),Ie(Ne),lt(we,Me),r==="combobox"?xe(""):(!uv||p)&&(K(""),xe(""))}),Te=function(_e,Ne){Ie(_e);var Me=Ne.type,st=Ne.values;(Me==="remove"||Me==="clear")&&st.forEach(function(ft){lt(ft.value,!1,Me)})},ze=function(_e,Ne){if(K(_e),xe(null),Ne.source==="submit"){var Me=(_e||"").trim();if(Me){var st=Array.from(new Set([].concat(Se(Ce),[Me])));Ie(st),lt(Me,!0),K("")}return}Ne.source!=="blur"&&(r==="combobox"&&Ie(_e),d==null||d(_e))},ke=function(_e){var Ne=_e;r!=="tags"&&(Ne=_e.map(function(st){var ft=Q.get(st);return ft==null?void 0:ft.value}).filter(function(st){return st!==void 0}));var Me=Array.from(new Set([].concat(Se(Ce),Se(Ne))));Ie(Me),Me.forEach(function(st){lt(st,!0)})},Ve=c.useMemo(function(){var we=I!==!1&&b!==!1;return W(W({},q),{},{flattenOptions:pe,onActiveValue:qe,defaultActiveFirstOption:De,onSelect:Je,menuItemSelectedIcon:x,rawValues:Ce,fieldNames:H,virtual:we,direction:R,listHeight:M,listItemHeight:_,childrenAsData:A,optionRender:O})},[q,pe,qe,De,Je,x,Ce,H,I,b,M,_,A,O]);return c.createElement(aE.Provider,{value:Ve},c.createElement(Qk,fe({},j,{id:F,prefixCls:i,ref:t,omitDomProps:R8,mode:r,displayValues:$e,onDisplayValuesChange:Te,direction:R,searchValue:X,onSearch:ze,autoClearSearchValue:p,onSearchSplit:ke,dropdownMatchSelectWidth:b,OptionList:lE,emptyOptions:!pe.length,activeValue:Oe,activeDescendantId:"".concat(F,"_list_").concat(Ze)})))}),nh=N8;nh.Option=th;nh.OptGroup=eh;function Fa(e,t,n){return Z({[`${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 rh=(e,t)=>t||e,T8=()=>{const[,e]=xn(),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},M8=()=>{const[,e]=xn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=c.useMemo(()=>({borderColor:new gt(t).onBackground(o).toHexShortString(),shadowColor:new gt(n).onBackground(o).toHexShortString(),contentColor:new gt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:i},c.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"}),c.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}))))},k8=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},D8=mn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[k8(o)]});var _8=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 cE=c.createElement(T8,null),uE=c.createElement(M8,null),Ro=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=cE,description:i,children:a,imageStyle:l,style:s}=e,u=_8(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=c.useContext(ut),m=d("empty",r),[g,y,b]=D8(m),[v]=Dd("Empty"),h=typeof i<"u"?i:v==null?void 0:v.description,S=typeof h=="string"?h:"empty";let C=null;return typeof o=="string"?C=c.createElement("img",{alt:S,src:o}):C=o,g(c.createElement("div",Object.assign({className:Z(y,b,m,p==null?void 0:p.className,{[`${m}-normal`]:o===uE,[`${m}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),s)},u),c.createElement("div",{className:`${m}-image`,style:l},C),h&&c.createElement("div",{className:`${m}-description`},h),a&&c.createElement("div",{className:`${m}-footer`},a)))};Ro.PRESENTED_IMAGE_DEFAULT=cE;Ro.PRESENTED_IMAGE_SIMPLE=uE;const dE=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(ut),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Ro,{image:Ro.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Ro,{image:Ro.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return ce.createElement(Ro,null)}},L8=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function z8(e,t){return e||L8(t)}const j8=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"}},F8=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Yt(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,[`
${o}${l}bottomLeft,
${i}${l}bottomLeft
`]:{animationName:Ug},[`
${o}${l}topLeft,
${i}${l}topLeft,
${o}${l}topRight,
${i}${l}topRight
`]:{animationName:Gg},[`${a}${l}bottomLeft`]:{animationName:qg},[`
${a}${l}topLeft,
${a}${l}topRight
`]:{animationName:Xg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},j8(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"},Ki),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},nl(e,"slide-up"),nl(e,"slide-down"),Wu(e,"move-up"),Wu(e,"move-down")]},la=2,A8=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function np(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=A8(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(la).mul(2).equal(),paddingBlock:e.calc(a).sub(la).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${te(la)} 0`,lineHeight:te(i),visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:la,marginBottom:la,lineHeight:te(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(la).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},_d()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:te(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const B8=e=>{const{componentCls:t}=e,n=wt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=wt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[np(e),np(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},np(r,"lg")]};function rp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Yt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:te(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${te(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:te(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${te(r)}`,"&:after":{display:"none"}}}}}}}function H8(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[rp(e),rp(wt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${te(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},rp(wt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const V8=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},op=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:s}=t,u=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},u),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${te(s)} ${l}`,outline:0}})}}},K8=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","-webkit-appearance":"none"}}}},W8=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Yt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},V8(e)),K8(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ki),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},_d()),{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",[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}-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",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},U8=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},W8(e),H8(e),B8(e),F8(e),{[`${t}-rtl`]:{direction:"rtl"}},op(t,wt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),op(`${t}-status-error`,wt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),op(`${t}-status-warning`,wt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Kg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},q8=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:u,colorBgContainer:d,colorFillSecondary:f,controlHeightLG:p,controlHeightSM:m,colorBgContainerDisabled:g,colorTextDisabled:y}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:d,clearBg:d,singleItemHeightLG:p,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightLG:r,multipleSelectorBgDisabled:g,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},G8=mn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=wt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[U8(r)]},q8,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var X8={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"},Y8=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:X8}))};const oh=c.forwardRef(Y8);var Q8={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"},J8=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Q8}))};const fE=c.forwardRef(J8);var Z8={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"},e6=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Z8}))};const wr=c.forwardRef(e6);function t6(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=n??c.createElement(js,null),g=h=>t===null&&!l&&!f?null:c.createElement(c.Fragment,null,u!==!1&&h,l&&d);let y=null;if(t!==void 0)y=g(t);else if(i)y=g(c.createElement(el,{spin:!0}));else{const h=`${s}-suffix`;y=S=>{let{open:C,showSearch:$}=S;return g(C&&$?c.createElement(wr,{className:h}):c.createElement(fE,{className:h}))}}let b=null;r!==void 0?b=r:a?b=c.createElement(oh,null):b=null;let v=null;return o!==void 0?v=o:v=c.createElement(Fs,null),{clearIcon:m,suffixIcon:y,itemIcon:b,removeIcon:v}}function n6(e,t){return t!==void 0?t:e!==null}var r6=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 pE="SECRET_COMBOBOX_MODE_DO_NOT_USE",o6=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:y,notFoundContent:b,status:v,builtinPlacements:h,dropdownMatchSelectWidth:S,popupMatchSelectWidth:C,direction:$,style:O,allowClear:E}=e,w=r6(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:x,getPrefixCls:I,renderEmpty:R,direction:T,virtual:M,popupMatchSelectWidth:k,popupOverflow:_,select:D}=c.useContext(ut),[,N]=xn(),P=m??(N==null?void 0:N.controlHeight),z=I("select",o),j=I(),F=$??T,{compactSize:L,compactItemClassnames:A}=Hs(z,F),G=Kr(z),[H,V,J]=G8(z,G),X=c.useMemo(()=>{const{mode:pe}=w;if(pe!=="combobox")return pe===pE?"combobox":pe},[w.mode]),K=X==="multiple"||X==="tags",q=n6(w.suffixIcon,w.showArrow),U=(n=C??S)!==null&&n!==void 0?n:k,{status:Q,hasFeedback:Y,isFormItemInput:ne,feedbackIcon:ee}=c.useContext(Fo),ie=rh(Q,v);let ue;b!==void 0?ue=b:X==="combobox"?ue=null:ue=(R==null?void 0:R("Select"))||c.createElement(dE,{componentName:"Select"});const{suffixIcon:me,itemIcon:ae,removeIcon:re,clearIcon:de}=t6(Object.assign(Object.assign({},w),{multiple:K,hasFeedback:Y,feedbackIcon:ee,showSuffixIcon:q,prefixCls:z,showArrow:w.showArrow,componentName:"Select"})),se=E===!0?{clearIcon:de}:E,he=kn(w,["suffixIcon","itemIcon"]),$e=Z(u||d,{[`${z}-dropdown-${F}`]:F==="rtl"},l,J,G,V),Ce=bo(pe=>{var Ie;return(Ie=g??L)!==null&&Ie!==void 0?Ie:pe}),ye=c.useContext(oo),We=y??ye,Ke=Z({[`${z}-lg`]:Ce==="large",[`${z}-sm`]:Ce==="small",[`${z}-rtl`]:F==="rtl",[`${z}-borderless`]:!i,[`${z}-in-form-item`]:ne},Fa(z,ie,Y),A,D==null?void 0:D.className,a,l,J,G,V),Ue=c.useMemo(()=>p!==void 0?p:F==="rtl"?"bottomRight":"bottomLeft",[p,F]),[Ee]=Ld("SelectLike",(r=w.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return H(c.createElement(nh,Object.assign({ref:t,virtual:M,showSearch:D==null?void 0:D.showSearch},he,{style:Object.assign(Object.assign({},D==null?void 0:D.style),O),dropdownMatchSelectWidth:U,builtinPlacements:z8(h,_),transitionName:xw(j,"slide-up",w.transitionName),listHeight:f,listItemHeight:P,mode:X,prefixCls:z,placement:Ue,direction:F,suffixIcon:me,menuItemSelectedIcon:ae,removeIcon:re,allowClear:se,notFoundContent:ue,className:Ke,getPopupContainer:s||x,dropdownClassName:$e,disabled:We,dropdownStyle:Object.assign(Object.assign({},w==null?void 0:w.dropdownStyle),{zIndex:Ee})})))},Ho=c.forwardRef(o6),i6=Uw(Ho);Ho.SECRET_COMBOBOX_MODE_DO_NOT_USE=pE;Ho.Option=th;Ho.OptGroup=eh;Ho._InternalPanelDoNotUseOrYouWillBeFired=i6;const a6=["xxl","xl","lg","md","sm","xs"],l6=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)`}),s6=e=>{const t=e,n=[].concat(a6).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`)}}),e};function c6(){const[,e]=xn(),t=l6(s6(e));return ce.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function ih(){const[,e]=c.useReducer(t=>t+1,0);return e}function mE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=ih(),r=c6();return Pt(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}function vE(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return c.createElement("div",{className:Z("".concat(n,"-content"),i),style:a},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var sa={shiftX:64,adjustY:1},ca={adjustX:1,shiftY:!0},Tr=[0,0],u6={left:{points:["cr","cl"],overflow:ca,offset:[-4,0],targetOffset:Tr},right:{points:["cl","cr"],overflow:ca,offset:[4,0],targetOffset:Tr},top:{points:["bc","tc"],overflow:sa,offset:[0,-4],targetOffset:Tr},bottom:{points:["tc","bc"],overflow:sa,offset:[0,4],targetOffset:Tr},topLeft:{points:["bl","tl"],overflow:sa,offset:[0,-4],targetOffset:Tr},leftTop:{points:["tr","tl"],overflow:ca,offset:[-4,0],targetOffset:Tr},topRight:{points:["br","tr"],overflow:sa,offset:[0,-4],targetOffset:Tr},rightTop:{points:["tl","tr"],overflow:ca,offset:[4,0],targetOffset:Tr},bottomRight:{points:["tr","br"],overflow:sa,offset:[0,4],targetOffset:Tr},rightBottom:{points:["bl","br"],overflow:ca,offset:[4,0],targetOffset:Tr},bottomLeft:{points:["tl","bl"],overflow:sa,offset:[0,4],targetOffset:Tr},leftBottom:{points:["br","bl"],overflow:ca,offset:[-4,0],targetOffset:Tr}},d6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],f6=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,u=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,y=t.afterVisibleChange,b=t.transitionName,v=t.animation,h=t.motion,S=t.placement,C=S===void 0?"right":S,$=t.align,O=$===void 0?{}:$,E=t.destroyTooltipOnHide,w=E===void 0?!1:E,x=t.defaultVisible,I=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,M=t.id,k=t.showArrow,_=k===void 0?!0:k,D=nt(t,d6),N=c.useRef(null);c.useImperativeHandle(n,function(){return N.current});var P=W({},D);"visible"in t&&(P.popupVisible=t.visible);var z=function(){return c.createElement(vE,{key:"content",prefixCls:p,id:M,overlayInnerStyle:R},T)};return c.createElement(Vd,fe({popupClassName:r,prefixCls:p,popup:z,action:i,builtinPlacements:u6,popupPlacement:C,ref:N,popupAlign:O,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:v,popupMotion:h,defaultPopupVisible:x,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:_},P),m)};const p6=c.forwardRef(f6);function gE(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,p=d,m=2*o-l,g=s,y=2*o-i,b=a,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1),S=`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`,C=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${m} ${g} A ${r} ${r} 0 0 0 ${y} ${b} Z')`;return{arrowShadowWidth:v,arrowPath:C,arrowPolygon:S}}const m6=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},hE=8;function ah(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?hE:r}}function Pc(e,t){return e?t:{}}function yE(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},m6(e,t,o)),{"&:before":{background:t}})]},Pc(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Pc(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Pc(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Pc(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function v6(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Eb={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"]}},g6={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"]}},h6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bE(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Eb).forEach(u=>{const d=r&&g6[u]||Eb[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=f,h6.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const p=ah({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+l;break}f.overflow=v6(u,p,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const y6=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${te(e.calc(u).div(2).equal())} ${te(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,hE)}},[`${t}-content`]:{position:"relative"}}),Yx(e,(f,p)=>{let{darkColor:m}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},yE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},b6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ah({contentRadius:e.borderRadius,limitVerticalRadius:!0})),gE(wt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),SE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return mn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=wt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[y6(l),Yg(r,"zoom-big-fast")]},b6,{resetStyle:!1,injectStyle:t})(e)},S6=ju.map(e=>`${e}-inverse`),C6=["success","processing","error","default","warning"];function CE(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Se(S6),Se(ju)).includes(e):ju.includes(e)}function x6(e){return C6.includes(e)}function xE(e,t){const n=CE(t),r=Z({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const w6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=c.useContext(ut),s=l("tooltip",t),[u,d,f]=SE(s),p=xE(s,i),m=p.arrowStyle,g=Object.assign(Object.assign({},a),p.overlayStyle),y=Z(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return u(c.createElement("div",{className:y,style:m},c.createElement("div",{className:`${s}-arrow`}),c.createElement(vE,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),o)))};var E6=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 gi=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:y,overlay:b,builtinPlacements:v,arrowPointAtCenter:h=!1,autoAdjustOverflow:S=!0}=e,C=!!g,[,$]=xn(),{getPopupContainer:O,getPrefixCls:E,direction:w}=c.useContext(ut),x=Yi(),I=c.useRef(null),R=()=>{var he;(he=I.current)===null||he===void 0||he.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{x.deprecated(!1,"forcePopupAlign","forceAlign"),R()}}));const[T,M]=on(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=!y&&!b&&y!==0,_=he=>{var $e,Ce;M(k?!1:he),k||(($e=e.onOpenChange)===null||$e===void 0||$e.call(e,he),(Ce=e.onVisibleChange)===null||Ce===void 0||Ce.call(e,he))},D=c.useMemo(()=>{var he,$e;let Ce=h;return typeof g=="object"&&(Ce=($e=(he=g.pointAtCenter)!==null&&he!==void 0?he:g.arrowPointAtCenter)!==null&&$e!==void 0?$e:h),v||bE({arrowPointAtCenter:Ce,autoAdjustOverflow:S,arrowWidth:C?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[h,g,v,$]),N=c.useMemo(()=>y===0?y:b||y||"",[b,y]),P=c.createElement(Hu,null,typeof N=="function"?N():N),{getPopupContainer:z,placement:j="top",mouseEnterDelay:F=.1,mouseLeaveDelay:L=.1,overlayStyle:A,rootClassName:G}=e,H=E6(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=E("tooltip",o),J=E(),X=e["data-popover-inject"];let K=T;!("open"in e)&&!("visible"in e)&&k&&(K=!1);const q=cr(d)&&!gw(d)?d:c.createElement("span",null,d),U=q.props,Q=!U.className||typeof U.className=="string"?Z(U.className,i||`${V}-open`):U.className,[Y,ne,ee]=SE(V,!X),ie=xE(V,s),ue=ie.arrowStyle,me=Object.assign(Object.assign({},u),ie.overlayStyle),ae=Z(l,{[`${V}-rtl`]:w==="rtl"},ie.className,G,ne,ee),[re,de]=Ld("Tooltip",H.zIndex),se=c.createElement(p6,Object.assign({},H,{zIndex:re,showArrow:C,placement:j,mouseEnterDelay:F,mouseLeaveDelay:L,prefixCls:V,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},ue),A),getTooltipContainer:z||a||O,ref:I,builtinPlacements:D,overlay:P,visible:K,onVisibleChange:_,afterVisibleChange:f??p,overlayInnerStyle:me,arrowContent:c.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:xw(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),K?Xn(q,{className:Q}):q);return Y(c.createElement(Ag.Provider,{value:de},se))});gi._InternalPanelDoNotUseOrYouWillBeFired=w6;var $6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},O6=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:$6}))};const dv=c.forwardRef(O6);var I6=ge.ESC,R6=ge.TAB;function P6(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=c.useRef(!1),l=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case I6:l();break;case R6:{var p=!1;a.current||(p=s()),p?f.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&zt(s,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var N6=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=c.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Or(t,i==null?void 0:i.ref);return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:"".concat(o,"-arrow")}),ce.cloneElement(i,{ref:yo(i)?a:void 0}))}),ua={adjustX:1,adjustY:1},da=[0,0],T6={topLeft:{points:["bl","tl"],overflow:ua,offset:[0,-4],targetOffset:da},top:{points:["bc","tc"],overflow:ua,offset:[0,-4],targetOffset:da},topRight:{points:["br","tr"],overflow:ua,offset:[0,-4],targetOffset:da},bottomLeft:{points:["tl","bl"],overflow:ua,offset:[0,4],targetOffset:da},bottom:{points:["tc","bc"],overflow:ua,offset:[0,4],targetOffset:da},bottomRight:{points:["tr","br"],overflow:ua,offset:[0,4],targetOffset:da}},M6=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function k6(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,m=p===void 0?T6:p,g=e.getPopupContainer,y=e.showAction,b=e.hideAction,v=e.overlayClassName,h=e.overlayStyle,S=e.visible,C=e.trigger,$=C===void 0?["hover"]:C,O=e.autoFocus,E=e.overlay,w=e.children,x=e.onVisibleChange,I=nt(e,M6),R=ce.useState(),T=oe(R,2),M=T[0],k=T[1],_="visible"in e?S:M,D=ce.useRef(null),N=ce.useRef(null),P=ce.useRef(null);ce.useImperativeHandle(t,function(){return D.current});var z=function(X){k(X),x==null||x(X)};P6({visible:_,triggerRef:P,onVisibleChange:z,autoFocus:O,overlayRef:N});var j=function(X){var K=e.onOverlayClick;k(!1),K&&K(X)},F=function(){return ce.createElement(N6,{ref:N,overlay:E,prefixCls:a,arrow:o})},L=function(){return typeof E=="function"?F:F()},A=function(){var X=e.minOverlayWidthMatchTrigger,K=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!K},G=function(){var X=e.openClassName;return X!==void 0?X:"".concat(a,"-open")},H=ce.cloneElement(w,{className:Z((n=w.props)===null||n===void 0?void 0:n.className,_&&G()),ref:yo(w)?Or(P,w.ref):void 0}),V=b;return!V&&$.indexOf("contextMenu")!==-1&&(V=["click"]),ce.createElement(Vd,fe({builtinPlacements:m},I,{prefixCls:a,ref:D,popupClassName:Z(v,B({},"".concat(a,"-show-arrow"),o)),popupStyle:h,action:$,showAction:y,hideAction:V,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:_,stretch:A()?"minWidth":"",popup:L(),onPopupVisibleChange:z,onPopupClick:j,getPopupContainer:g}),H)}const D6=ce.forwardRef(k6);var wE=c.createContext(null);function EE(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function $E(e){var t=c.useContext(wE);return EE(t,e)}var _6=["children","locked"],ao=c.createContext(null);function L6(e,t){var n=W({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ns(e){var t=e.children,n=e.locked,r=nt(e,_6),o=c.useContext(ao),i=Xi(function(){return L6(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!zo(a[1],l[1],!0))});return c.createElement(ao.Provider,{value:i},t)}var z6=[],OE=c.createContext(null);function Wd(){return c.useContext(OE)}var IE=c.createContext(z6);function pl(e){var t=c.useContext(IE);return c.useMemo(function(){return e!==void 0?[].concat(Se(t),[e]):t},[t,e])}var RE=c.createContext(null),lh=c.createContext({});function $b(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(jd(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function j6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Se(e.querySelectorAll("*")).filter(function(r){return $b(r,t)});return $b(e,t)&&n.unshift(e),n}var fv=ge.LEFT,pv=ge.RIGHT,mv=ge.UP,nu=ge.DOWN,ru=ge.ENTER,PE=ge.ESC,Pl=ge.HOME,Nl=ge.END,Ob=[mv,nu,fv,pv];function F6(e,t,n,r){var o,i,a,l,s="prev",u="next",d="children",f="parent";if(e==="inline"&&r===ru)return{inlineTrigger:!0};var p=(o={},B(o,mv,s),B(o,nu,u),o),m=(i={},B(i,fv,n?u:s),B(i,pv,n?s:u),B(i,nu,d),B(i,ru,d),i),g=(a={},B(a,mv,s),B(a,nu,u),B(a,ru,d),B(a,PE,f),B(a,fv,n?d:f),B(a,pv,n?f:d),a),y={inline:p,horizontal:m,vertical:g,inlineSub:p,horizontalSub:g,verticalSub:g},b=(l=y["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(b){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function A6(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function B6(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function sh(e,t){var n=j6(e,!0);return n.filter(function(r){return t.has(r)})}function Ib(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=sh(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var vv=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(EE(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function H6(e,t,n,r,o,i,a,l,s,u){var d=c.useRef(),f=c.useRef();f.current=t;var p=function(){zt.cancel(d.current)};return c.useEffect(function(){return function(){p()}},[]),function(m){var g=m.which;if([].concat(Ob,[ru,PE,Pl,Nl]).includes(g)){var y=i(),b=vv(y,r),v=b,h=v.elements,S=v.key2element,C=v.element2key,$=S.get(t),O=B6($,h),E=C.get(O),w=F6(e,a(E,!0).length===1,n,g);if(!w&&g!==Pl&&g!==Nl)return;(Ob.includes(g)||[Pl,Nl].includes(g))&&m.preventDefault();var x=function(N){if(N){var P=N,z=N.querySelector("a");z!=null&&z.getAttribute("href")&&(P=z);var j=C.get(N);l(j),p(),d.current=zt(function(){f.current===j&&P.focus()})}};if([Pl,Nl].includes(g)||w.sibling||!O){var I;!O||e==="inline"?I=o.current:I=A6(O);var R,T=sh(I,h);g===Pl?R=T[0]:g===Nl?R=T[T.length-1]:R=Ib(I,h,O,w.offset),x(R)}else if(w.inlineTrigger)s(E);else if(w.offset>0)s(E,!0),p(),d.current=zt(function(){b=vv(y,r);var D=O.getAttribute("aria-controls"),N=document.getElementById(D),P=Ib(N,b.elements);x(P)},5);else if(w.offset<0){var M=a(E,!0),k=M[M.length-2],_=S.get(k);s(k,!1),x(_)}}u==null||u(m)}}function V6(e){Promise.resolve().then(e)}var ch="__RC_UTIL_PATH_SPLIT__",Rb=function(t){return t.join(ch)},K6=function(t){return t.split(ch)},gv="rc-menu-more";function W6(){var e=c.useState({}),t=oe(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),i=c.useState([]),a=oe(i,2),l=a[0],s=a[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},p=c.useCallback(function(S,C){var $=Rb(C);o.current.set($,S),r.current.set(S,$),u.current+=1;var O=u.current;V6(function(){O===u.current&&f()})},[]),m=c.useCallback(function(S,C){var $=Rb(C);o.current.delete($),r.current.delete(S)},[]),g=c.useCallback(function(S){s(S)},[]),y=c.useCallback(function(S,C){var $=r.current.get(S)||"",O=K6($);return C&&l.includes(O[0])&&O.unshift(gv),O},[l]),b=c.useCallback(function(S,C){return S.some(function($){var O=y($,!0);return O.includes(C)})},[y]),v=function(){var C=Se(r.current.keys());return l.length&&C.push(gv),C},h=c.useCallback(function(S){var C="".concat(r.current.get(S)).concat(ch),$=new Set;return Se(o.current.keys()).forEach(function(O){O.startsWith(C)&&$.add(o.current.get(O))}),$},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:g,isSubPathKey:b,getKeyPath:y,getKeys:v,getSubPathKeys:h}}function zl(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var U6=Math.random().toFixed(5).toString().slice(2),Pb=0;function q6(e){var t=on(e,{value:e}),n=oe(t,2),r=n[0],o=n[1];return c.useEffect(function(){Pb+=1;var i="".concat(U6,"-").concat(Pb);o("rc-menu-uuid-".concat(i))},[]),r}function NE(e,t,n,r){var o=c.useContext(ao),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},s.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),s}function TE(e){var t=c.useContext(ao),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function ME(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,W({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var G6=["item"];function qu(e){var t=e.item,n=nt(e,G6);return Object.defineProperty(n,"item",{get:function(){return Ut(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var X6=["title","attribute","elementRef"],Y6=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Q6=["active"],J6=function(e){lo(n,e);var t=so(n);function n(){return En(this,n),t.apply(this,arguments)}return $n(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=nt(o,X6),u=kn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ut(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(ho.Item,fe({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(c.Component),Z6=c.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,m=e.onKeyDown,g=e.onFocus,y=nt(e,Y6),b=$E(i),v=c.useContext(ao),h=v.prefixCls,S=v.onItemClick,C=v.disabled,$=v.overflowDisabled,O=v.itemIcon,E=v.selectedKeys,w=v.onActive,x=c.useContext(lh),I=x._internalRenderMenuItem,R="".concat(h,"-item"),T=c.useRef(),M=c.useRef(),k=C||a,_=ul(t,M),D=pl(i),N=function(q){return{key:i,keyPath:Se(D).reverse(),item:T.current,domEvent:q}},P=l||O,z=NE(i,k,d,f),j=z.active,F=nt(z,Q6),L=E.includes(i),A=TE(D.length),G=function(q){if(!k){var U=N(q);p==null||p(qu(U)),S(U)}},H=function(q){if(m==null||m(q),q.which===ge.ENTER){var U=N(q);p==null||p(qu(U)),S(U)}},V=function(q){w(i),g==null||g(q)},J={};e.role==="option"&&(J["aria-selected"]=L);var X=c.createElement(J6,fe({ref:T,elementRef:_,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":$&&b?null:b},y,F,J,{component:"li","aria-disabled":a,style:W(W({},A),r),className:Z(R,(n={},B(n,"".concat(R,"-active"),j),B(n,"".concat(R,"-selected"),L),B(n,"".concat(R,"-disabled"),k),n),o),onClick:G,onKeyDown:H,onFocus:V}),s,c.createElement(ME,{props:W(W({},e),{},{isSelected:L}),icon:P}));return I&&(X=I(X,e,{selected:L})),X});function eD(e,t){var n=e.eventKey,r=Wd(),o=pl(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(Z6,fe({},e,{ref:t}))}const Ud=c.forwardRef(eD);var tD=["className","children"],nD=function(t,n){var r=t.className,o=t.children,i=nt(t,tD),a=c.useContext(ao),l=a.prefixCls,s=a.mode,u=a.rtl;return c.createElement("ul",fe({className:Z(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},uh=c.forwardRef(nD);uh.displayName="SubMenuList";function dh(e,t){return xr(e).map(function(n,r){if(c.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(Se(t),[r]).join("-")));var u={key:l,eventKey:l};return c.cloneElement(n,u)}return n})}var Un={adjustX:1,adjustY:1},rD={topLeft:{points:["bl","tl"],overflow:Un},topRight:{points:["br","tr"],overflow:Un},bottomLeft:{points:["tl","bl"],overflow:Un},bottomRight:{points:["tr","br"],overflow:Un},leftTop:{points:["tr","tl"],overflow:Un},leftBottom:{points:["br","bl"],overflow:Un},rightTop:{points:["tl","tr"],overflow:Un},rightBottom:{points:["bl","br"],overflow:Un}},oD={topLeft:{points:["bl","tl"],overflow:Un},topRight:{points:["br","tr"],overflow:Un},bottomLeft:{points:["tl","bl"],overflow:Un},bottomRight:{points:["tr","br"],overflow:Un},rightTop:{points:["tr","tl"],overflow:Un},rightBottom:{points:["br","bl"],overflow:Un},leftTop:{points:["tl","tr"],overflow:Un},leftBottom:{points:["bl","br"],overflow:Un}};function kE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var iD={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aD(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(ao),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,y=f.subMenuCloseDelay,b=f.builtinPlacements,v=f.triggerSubMenuAction,h=f.forceSubMenuRender,S=f.rootClassName,C=f.motion,$=f.defaultMotions,O=c.useState(!1),E=oe(O,2),w=E[0],x=E[1],I=W(m?W({},oD):W({},rD),b),R=iD[u],T=kE(u,C,$),M=c.useRef(T);u!=="inline"&&(M.current=T);var k=W(W({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=c.useRef();return c.useEffect(function(){return _.current=zt(function(){x(n)}),function(){zt.cancel(_.current)}},[n]),c.createElement(Vd,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),B({},"".concat(t,"-rtl"),m),a,S),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:I,popupPlacement:R,popupVisible:w,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[v],mouseEnterDelay:g,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:h,popupMotion:k,fresh:!0},r)}function lD(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=c.useContext(ao),l=a.prefixCls,s=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,p=c.useRef(!1);p.current=f===i;var m=c.useState(!p.current),g=oe(m,2),y=g[0],b=g[1],v=p.current?n:!1;c.useEffect(function(){p.current&&b(!1)},[f]);var h=W({},kE(i,u,d));r.length>1&&(h.motionAppear=!1);var S=h.onVisibleChanged;return h.onVisibleChanged=function(C){return!p.current&&!C&&b(!0),S==null?void 0:S(C)},y?null:c.createElement(Ns,{mode:i,locked:!p.current},c.createElement(Bo,fe({visible:v},h,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var $=C.className,O=C.style;return c.createElement(uh,{id:t,className:$,style:O},o)}))}var sD=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cD=["active"],uD=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,u=t.children,d=t.itemIcon,f=t.expandIcon,p=t.popupClassName,m=t.popupOffset,g=t.popupStyle,y=t.onClick,b=t.onMouseEnter,v=t.onMouseLeave,h=t.onTitleClick,S=t.onTitleMouseEnter,C=t.onTitleMouseLeave,$=nt(t,sD),O=$E(a),E=c.useContext(ao),w=E.prefixCls,x=E.mode,I=E.openKeys,R=E.disabled,T=E.overflowDisabled,M=E.activeKey,k=E.selectedKeys,_=E.itemIcon,D=E.expandIcon,N=E.onItemClick,P=E.onOpenChange,z=E.onActive,j=c.useContext(lh),F=j._internalRenderSubMenuItem,L=c.useContext(RE),A=L.isSubPathKey,G=pl(),H="".concat(w,"-submenu"),V=R||l,J=c.useRef(),X=c.useRef(),K=d??_,q=f??D,U=I.includes(a),Q=!T&&U,Y=A(k,a),ne=NE(a,V,S,C),ee=ne.active,ie=nt(ne,cD),ue=c.useState(!1),me=oe(ue,2),ae=me[0],re=me[1],de=function(xe){V||re(xe)},se=function(xe){de(!0),b==null||b({key:a,domEvent:xe})},he=function(xe){de(!1),v==null||v({key:a,domEvent:xe})},$e=c.useMemo(function(){return ee||(x!=="inline"?ae||A([M],a):!1)},[x,ee,M,ae,a,A]),Ce=TE(G.length),ye=function(xe){V||(h==null||h({key:a,domEvent:xe}),x==="inline"&&P(a,!U))},We=zl(function(Oe){y==null||y(qu(Oe)),N(Oe)}),Ke=function(xe){x!=="inline"&&P(a,xe)},Ue=function(){z(a)},Ee=O&&"".concat(O,"-popup"),pe=c.createElement("div",fe({role:"menuitem",style:Ce,className:"".concat(H,"-title"),tabIndex:V?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":T&&O?null:O,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":V,onClick:ye,onFocus:Ue},ie),i,c.createElement(ME,{icon:x!=="horizontal"?q:void 0,props:W(W({},t),{},{isOpen:Q,isSubMenu:!0})},c.createElement("i",{className:"".concat(H,"-arrow")}))),Ie=c.useRef(x);if(x!=="inline"&&G.length>1?Ie.current="vertical":Ie.current=x,!T){var be=Ie.current;pe=c.createElement(aD,{mode:be,prefixCls:H,visible:!s&&Q&&x!=="inline",popupClassName:p,popupOffset:m,popupStyle:g,popup:c.createElement(Ns,{mode:be==="horizontal"?"vertical":be},c.createElement(uh,{id:Ee,ref:X},u)),disabled:V,onVisibleChange:Ke},pe)}var Re=c.createElement(ho.Item,fe({role:"none"},$,{component:"li",style:r,className:Z(H,"".concat(H,"-").concat(x),o,(n={},B(n,"".concat(H,"-open"),Q),B(n,"".concat(H,"-active"),$e),B(n,"".concat(H,"-selected"),Y),B(n,"".concat(H,"-disabled"),V),n)),onMouseEnter:se,onMouseLeave:he}),pe,!T&&c.createElement(lD,{id:Ee,open:Q,keyPath:G},u));return F&&(Re=F(Re,t,{selected:Y,active:$e,open:Q,disabled:V})),c.createElement(Ns,{onItemClick:We,mode:x==="horizontal"?"vertical":x,itemIcon:K,expandIcon:q},Re)};function qd(e){var t=e.eventKey,n=e.children,r=pl(t),o=dh(n,r),i=Wd();c.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=c.createElement(uD,e,o),c.createElement(IE.Provider,{value:r},a)}var dD=["className","title","eventKey","children"],fD=["children"],pD=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=nt(t,dD),a=c.useContext(ao),l=a.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",fe({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:Z(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Gd(e){var t=e.children,n=nt(e,fD),r=pl(n.eventKey),o=dh(t,r),i=Wd();return i?o:c.createElement(pD,kn(n,["warnKey"]),o)}function fh(e){var t=e.className,n=e.style,r=c.useContext(ao),o=r.prefixCls,i=Wd();return i?null:c.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),t),style:n})}var mD=["label","children","key","type"];function hv(e){return(e||[]).map(function(t,n){if(t&&tt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,s=nt(r,mD),u=a??"tmp-".concat(n);return i||l==="group"?l==="group"?c.createElement(Gd,fe({key:u},s,{title:o}),hv(i)):c.createElement(qd,fe({key:u},s,{title:o}),hv(i)):l==="divider"?c.createElement(fh,fe({key:u},s)):c.createElement(Ud,fe({key:u},s),o)}return null}).filter(function(t){return t})}function vD(e,t,n){var r=e;return t&&(r=hv(t)),dh(r,n)}var gD=["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"],fa=[],hD=c.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,p=o.items,m=o.children,g=o.direction,y=o.id,b=o.mode,v=b===void 0?"vertical":b,h=o.inlineCollapsed,S=o.disabled,C=o.disabledOverflow,$=o.subMenuOpenDelay,O=$===void 0?.1:$,E=o.subMenuCloseDelay,w=E===void 0?.1:E,x=o.forceSubMenuRender,I=o.defaultOpenKeys,R=o.openKeys,T=o.activeKey,M=o.defaultActiveFirst,k=o.selectable,_=k===void 0?!0:k,D=o.multiple,N=D===void 0?!1:D,P=o.defaultSelectedKeys,z=o.selectedKeys,j=o.onSelect,F=o.onDeselect,L=o.inlineIndent,A=L===void 0?24:L,G=o.motion,H=o.defaultMotions,V=o.triggerSubMenuAction,J=V===void 0?"hover":V,X=o.builtinPlacements,K=o.itemIcon,q=o.expandIcon,U=o.overflowedIndicator,Q=U===void 0?"...":U,Y=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ee=o.onClick,ie=o.onOpenChange,ue=o.onKeyDown;o.openAnimation,o.openTransitionName;var me=o._internalRenderMenuItem,ae=o._internalRenderSubMenuItem,re=nt(o,gD),de=c.useMemo(function(){return vD(m,p,fa)},[m,p]),se=c.useState(!1),he=oe(se,2),$e=he[0],Ce=he[1],ye=c.useRef(),We=q6(y),Ke=g==="rtl",Ue=on(I,{value:R,postState:function(at){return at||fa}}),Ee=oe(Ue,2),pe=Ee[0],Ie=Ee[1],be=function(at){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function St(){Ie(at),ie==null||ie(at)}mt?Ar.flushSync(St):St()},Re=c.useState(pe),Oe=oe(Re,2),xe=Oe[0],Fe=Oe[1],Qe=c.useRef(!1),Ze=c.useMemo(function(){return(v==="inline"||v==="vertical")&&h?["vertical",h]:[v,!1]},[v,h]),ve=oe(Ze,2),De=ve[0],qe=ve[1],lt=De==="inline",Je=c.useState(De),Te=oe(Je,2),ze=Te[0],ke=Te[1],Ve=c.useState(qe),we=oe(Ve,2),_e=we[0],Ne=we[1];c.useEffect(function(){ke(De),Ne(qe),Qe.current&&(lt?Ie(xe):be(fa))},[De,qe]);var Me=c.useState(0),st=oe(Me,2),ft=st[0],jt=st[1],Le=ft>=de.length-1||ze!=="horizontal"||C;c.useEffect(function(){lt&&Fe(pe)},[pe]),c.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var Ae=W6(),rt=Ae.registerPath,it=Ae.unregisterPath,bt=Ae.refreshOverflowKeys,Tt=Ae.isSubPathKey,He=Ae.getKeyPath,Be=Ae.getKeys,et=Ae.getSubPathKeys,Et=c.useMemo(function(){return{registerPath:rt,unregisterPath:it}},[rt,it]),Dt=c.useMemo(function(){return{isSubPathKey:Tt}},[Tt]);c.useEffect(function(){bt(Le?fa:de.slice(ft+1).map(function(je){return je.key}))},[ft,Le]);var $t=on(T||M&&((n=de[0])===null||n===void 0?void 0:n.key),{value:T}),an=oe($t,2),cn=an[0],vn=an[1],On=zl(function(je){vn(je)}),Vt=zl(function(){vn(void 0)});c.useImperativeHandle(t,function(){return{list:ye.current,focus:function(at){var mt,St=Be(),Nt=vv(St,We),Qt=Nt.elements,_n=Nt.key2element,Ln=Nt.element2key,In=sh(ye.current,Qt),Rn=cn??(In[0]?Ln.get(In[0]):(mt=de.find(function(xt){return!xt.props.disabled}))===null||mt===void 0?void 0:mt.key),rr=_n.get(Rn);if(Rn&&rr){var ht;rr==null||(ht=rr.focus)===null||ht===void 0||ht.call(rr,at)}}}});var Dn=on(P||[],{value:z,postState:function(at){return Array.isArray(at)?at:at==null?fa:[at]}}),tr=oe(Dn,2),Xe=tr[0],yt=tr[1],Ot=function(at){if(_){var mt=at.key,St=Xe.includes(mt),Nt;N?St?Nt=Xe.filter(function(_n){return _n!==mt}):Nt=[].concat(Se(Xe),[mt]):Nt=[mt],yt(Nt);var Qt=W(W({},at),{},{selectedKeys:Nt});St?F==null||F(Qt):j==null||j(Qt)}!N&&pe.length&&ze!=="inline"&&be(fa)},qt=zl(function(je){ee==null||ee(qu(je)),Ot(je)}),gn=zl(function(je,at){var mt=pe.filter(function(Nt){return Nt!==je});if(at)mt.push(je);else if(ze!=="inline"){var St=et(je);mt=mt.filter(function(Nt){return!St.has(Nt)})}zo(pe,mt,!0)||be(mt,!0)}),Ir=function(at,mt){var St=mt??!pe.includes(at);gn(at,St)},dr=H6(ze,cn,Ke,We,ye,Be,He,vn,Ir,ue);c.useEffect(function(){Ce(!0)},[]);var hn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:ae}},[me,ae]),nr=ze!=="horizontal"||C?de:de.map(function(je,at){return c.createElement(Ns,{key:je.key,overflowDisabled:at>ft},je)}),ct=c.createElement(ho,fe({id:y,ref:ye,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ud,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(ze),u,(r={},B(r,"".concat(a,"-inline-collapsed"),_e),B(r,"".concat(a,"-rtl"),Ke),r),l),dir:g,style:s,role:"menu",tabIndex:f,data:nr,renderRawItem:function(at){return at},renderRawRest:function(at){var mt=at.length,St=mt?de.slice(-mt):null;return c.createElement(qd,{eventKey:gv,title:Q,disabled:Le,internalPopupClose:mt===0,popupClassName:Y},St)},maxCount:ze!=="horizontal"||C?ho.INVALIDATE:ho.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){jt(at)},onKeyDown:dr},re));return c.createElement(lh.Provider,{value:hn},c.createElement(wE.Provider,{value:We},c.createElement(Ns,{prefixCls:a,rootClassName:l,mode:ze,openKeys:pe,rtl:Ke,disabled:S,motion:$e?G:null,defaultMotions:$e?H:null,activeKey:cn,onActive:On,onInactive:Vt,selectedKeys:Xe,inlineIndent:A,subMenuOpenDelay:O,subMenuCloseDelay:w,forceSubMenuRender:x,builtinPlacements:X,triggerSubMenuAction:J,getPopupContainer:ne,itemIcon:K,expandIcon:q,onItemClick:qt,onOpenChange:gn},c.createElement(RE.Provider,{value:Dt},ct),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(OE.Provider,{value:Et},de)))))}),Us=hD;Us.Item=Ud;Us.SubMenu=qd;Us.ItemGroup=Gd;Us.Divider=fh;var yD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},bD=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:yD}))};const Nb=c.forwardRef(bD),DE=c.createContext({});var SD=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 _E=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=SD(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(ut),a=i("menu",t),l=Z({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(fh,Object.assign({className:l},o))},Gu=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),LE=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=c.useContext(Gu),p=h=>{const S=c.createElement("span",{className:`${l}-title-content`},r);return(!o||cr(r)&&r.type==="span")&&r&&h&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:m}=c.useContext(DE);let g=i;typeof i>"u"?g=s?r:"":i===!1&&(g="");const y={title:g};!m&&!f&&(y.title=null,y.open=!1);const b=xr(r).length;let v=c.createElement(Ud,Object.assign({},kn(e,["title","icon","danger"]),{className:Z({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),Xn(o,{className:Z(cr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(f));return d||(v=c.createElement(gi,Object.assign({},y,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v},zE=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(Gu),{prefixCls:l,inlineCollapsed:s,theme:u}=a,d=pl();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const g=cr(o)&&o.type==="span";f=c.createElement(c.Fragment,null,Xn(r,{className:Z(cr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:c.createElement("span",{className:`${l}-title-content`},o))}const p=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[m]=Ld("Menu");return c.createElement(Gu.Provider,{value:p},c.createElement(qd,Object.assign({},kn(e,["icon"]),{title:f,popupClassName:Z(l,n,`${l}-${i||u}`),popupStyle:{zIndex:m}})))};var CD={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"},xD=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:CD}))};const jE=c.forwardRef(xD);var wD=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 yv(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=wD(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?c.createElement(Gd,Object.assign({key:u},s,{title:o}),yv(i)):c.createElement(zE,Object.assign({key:u},s,{title:o}),yv(i)):l==="divider"?c.createElement(_E,Object.assign({key:u},s)):c.createElement(LE,Object.assign({key:u},s),o)}return null}).filter(t=>t)}function ED(e){return c.useMemo(()=>e&&yv(e),[e])}var $D=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 Xu=c.createContext(null),FE=c.forwardRef((e,t)=>{const{children:n}=e,r=$D(e,["children"]),o=c.useContext(Xu),i=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=GI(n),l=ul(t,a?n.ref:null);return c.createElement(Xu.Provider,{value:i},c.createElement(Hu,null,a?c.cloneElement(n,{ref:l}):n))}),OD=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},ID=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(n)})`}}}}},Tb=e=>Object.assign({},vi(e)),Mb=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:y,motionDurationMid:b,itemHoverColor:v,lineType:h,colorSplit:S,itemDisabledColor:C,dangerItemColor:$,dangerItemHoverColor:O,dangerItemSelectedColor:E,dangerItemActiveBg:w,dangerItemSelectedBg:x,itemHoverBg:I,itemActiveBg:R,menuSubMenuBg:T,horizontalItemSelectedColor:M,horizontalItemSelectedBg:k,horizontalItemBorderRadius:_,horizontalItemHoverBg:D,popupBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Tb(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:x}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Tb(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${te(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:k,"&:hover":{backgroundColor:k},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(f)} ${h} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(",")}}}}}},kb=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:u}}},RD=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:g,collapsedWidth:y,collapsedIconSize:b}=e,v={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},kb(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},kb(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${te(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(f).div(2).equal())} - ${te(d)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:te(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ki),{paddingInline:m})}}]},Db=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},_d()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_b=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(a)})`}}}}},PD=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:g,menuArrowOffset:y,lineType:b,menuPanelMaskInset:v,groupTitleLineHeight:h,groupTitleFontSize:S}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Za()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),Za()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${te(l)} ${te(s)}`,fontSize:S,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Db(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${te(v)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},Db(e)),_b(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),_b(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te(y)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ND=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:u,lineWidth:d,lineWidthBold:f,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:g,lineHeight:y,colorBgElevated:b,marginXXS:v,padding:h,fontSize:S,controlHeightSM:C,fontSizeLG:$,colorTextLightSolid:O,colorErrorHover:E}=e,w=new gt(O).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:u,itemActiveBg:p,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:d,activeBarBorderWidth:d,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:y,collapsedWidth:g*2,popupBg:b,itemMarginBlock:v,itemPaddingInline:h,horizontalLineHeight:`${g*1.15}px`,iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:$,groupTitleFontSize:S,darkItemDisabledColor:new gt(O).setAlpha(.25).toRgbString(),darkItemColor:w,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:w,darkItemHoverColor:O,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:n,itemWidth:""}},TD=e=>Object.assign(Object.assign({},e),{itemWidth:e.activeBarWidth?`calc(100% + ${e.activeBarBorderWidth}px)`:`calc(100% - ${e.itemMarginInline*2}px)`}),MD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return mn("Menu",o=>{const{colorBgElevated:i,colorPrimary:a,colorTextLightSolid:l,controlHeightLG:s,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:p,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:y,darkDangerItemSelectedBg:b,darkItemHoverBg:v,darkGroupTitleColor:h,darkItemHoverColor:S,darkItemDisabledColor:C,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:E}=o,w=o.calc(u).div(7).mul(5).equal(),x=wt(o,{menuArrowSize:w,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(w).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:i,calc:o.calc}),I=wt(x,{itemColor:d,itemHoverColor:S,groupTitleColor:h,itemSelectedColor:g,itemBg:p,popupBg:p,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:C,dangerItemColor:f,dangerItemHoverColor:$,dangerItemSelectedColor:O,dangerItemActiveBg:E,dangerItemSelectedBg:b,menuSubMenuBg:m,horizontalItemSelectedColor:l,horizontalItemSelectedBg:a});return[PD(x),OD(x),RD(x),Mb(x,"light"),Mb(I,"dark"),ID(x),Qg(x),nl(x,"slide-up"),nl(x,"slide-down"),Yg(x,"zoom-big")]},ND,{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"]],format:TD,injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var kD=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 DD=c.forwardRef((e,t)=>{var n,r;const o=c.useContext(Xu),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:u}=c.useContext(ut),d=a(),{prefixCls:f,className:p,style:m,theme:g="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:h,items:S,children:C,rootClassName:$,mode:O,selectable:E,onClick:w,overflowedIndicatorPopupClassName:x}=e,I=kD(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=kn(I,["collapsedWidth"]),T=ED(S)||C;(n=i.validator)===null||n===void 0||n.call(i,{mode:O});const M=fn(function(){var V;w==null||w.apply(void 0,arguments),(V=i.onClick)===null||V===void 0||V.call(i)}),k=i.mode||O,_=E??i.selectable,D=c.useMemo(()=>h!==void 0?h:v,[v,h]),N={horizontal:{motionName:`${d}-slide-up`},inline:Bg(d),other:{motionName:`${d}-zoom-big`}},P=a("menu",f||i.prefixCls),z=Kr(P),[j,F,L]=MD(P,z,!o),A=Z(`${P}-${g}`,u==null?void 0:u.className,p);let G;if(typeof y=="function")G=y;else if(y===null||y===!1)G=null;else if(i.expandIcon===null||i.expandIcon===!1)G=null;else{const V=y??i.expandIcon;G=Xn(V,{className:Z(`${P}-submenu-expand-icon`,cr(V)?(r=V.props)===null||r===void 0?void 0:r.className:"")})}const H=c.useMemo(()=>({prefixCls:P,inlineCollapsed:D||!1,direction:s,firstLevel:!0,theme:g,mode:k,disableMenuItemTitleTooltip:b}),[P,D,s,b,g]);return j(c.createElement(Xu.Provider,{value:null},c.createElement(Gu.Provider,{value:H},c.createElement(Us,Object.assign({getPopupContainer:l,overflowedIndicator:c.createElement(jE,null),overflowedIndicatorPopupClassName:Z(P,`${P}-${g}`,x),mode:k,selectable:_,onClick:M},R,{inlineCollapsed:D,style:Object.assign(Object.assign({},u==null?void 0:u.style),m),className:A,prefixCls:P,direction:s,defaultMotions:N,expandIcon:G,ref:t,rootClassName:Z($,F,i.rootClassName,L,z)}),T))))}),Ji=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(DE);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(DD,Object.assign({ref:n},e,r))});Ji.Item=LE;Ji.SubMenu=zE;Ji.Divider=_E;Ji.ItemGroup=Gd;const _D=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},LD=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:g,colorBgElevated:y}=e;return[{[t]:Object.assign(Object.assign({},Yt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ug},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Gg},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:qg},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Xg}})},yE(e,y,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Os(e)),{[`${n}-item-group-title`]:{padding:`${te(u)} ${te(g)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${te(u)} ${te(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Os(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[nl(e,"slide-up"),nl(e,"slide-down"),Wu(e,"move-up"),Wu(e,"move-down"),Yg(e,"zoom-big")]]},zD=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ah({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),gE(e)),jD=mn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=wt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[LD(i),_D(i)]},zD),Xd=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,visible:g,onVisibleChange:y,mouseEnterDelay:b=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:h=!0,placement:S="",overlay:C,transitionName:$}=e,{getPopupContainer:O,getPrefixCls:E,direction:w,dropdown:x}=c.useContext(ut);Yi();const I=c.useMemo(()=>{const Q=E();return $!==void 0?$:S.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[E,S,$]),R=c.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:w==="rtl"?"bottomRight":"bottomLeft",[S,w]),T=E("dropdown",r),M=Kr(T),[k,_,D]=jD(T,M),[,N]=xn(),P=c.Children.only(o),z=Xn(P,{className:Z(`${T}-trigger`,{[`${T}-rtl`]:w==="rtl"},P.props.className),disabled:a}),j=a?[]:i;let F;j&&j.includes("contextMenu")&&(F=!0);const[L,A]=on(!1,{value:p??g}),G=fn(Q=>{m==null||m(Q,{source:"trigger"}),y==null||y(Q),A(Q)}),H=Z(u,d,_,D,M,x==null?void 0:x.className,{[`${T}-rtl`]:w==="rtl"}),V=bE({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:h,offset:N.marginXXS,arrowWidth:n?N.sizePopupArrow:0,borderRadius:N.borderRadius}),J=c.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(m==null||m(!1,{source:"menu"}),A(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),X=()=>{let Q;return t!=null&&t.items?Q=c.createElement(Ji,Object.assign({},t)):typeof C=="function"?Q=C():Q=C,l&&(Q=l(Q)),Q=c.Children.only(typeof Q=="string"?c.createElement("span",null,Q):Q),c.createElement(FE,{prefixCls:`${T}-menu`,rootClassName:D,expandIcon:c.createElement("span",{className:`${T}-menu-submenu-arrow`},c.createElement(dv,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:Y=>{}},Q)},[K,q]=Ld("Dropdown",f==null?void 0:f.zIndex);let U=c.createElement(D6,Object.assign({alignPoint:F},kn(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:v,visible:L,builtinPlacements:V,arrow:!!n,overlayClassName:H,prefixCls:T,getPopupContainer:s||O,transitionName:I,trigger:j,overlay:X,placement:R,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.style),f),{zIndex:K})}),z);return K&&(U=c.createElement(Ag.Provider,{value:q},U)),k(U)};function FD(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const AD=Uw(Xd,"dropdown",e=>e,FD),BD=e=>c.createElement(AD,Object.assign({},e),c.createElement("span",null));Xd._InternalPanelDoNotUseOrYouWillBeFired=BD;const AE=c.createContext(null),HD=AE.Provider,BE=c.createContext(null),VD=BE.Provider;var KD=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],HE=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,p=f===void 0?"checkbox":f,m=e.title,g=e.onChange,y=nt(e,KD),b=c.useRef(null),v=on(d,{value:l}),h=oe(v,2),S=h[0],C=h[1];c.useImperativeHandle(t,function(){return{focus:function(){var w;(w=b.current)===null||w===void 0||w.focus()},blur:function(){var w;(w=b.current)===null||w===void 0||w.blur()},input:b.current}});var $=Z(o,i,(n={},B(n,"".concat(o,"-checked"),S),B(n,"".concat(o,"-disabled"),s),n)),O=function(w){s||("checked"in e||C(w.target.checked),g==null||g({target:W(W({},e),{},{type:p,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:$,title:m,style:a},c.createElement("input",fe({},y,{className:"".concat(o,"-input"),ref:b,onChange:O,disabled:s,checked:!!S,type:p})),c.createElement("span",{className:"".concat(o,"-inner")}))});const WD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Yt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},UD=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:g,lineType:y,radioColor:b,radioBgColor:v,calc:h}=e,S=`${t}-inner`,$=h(o).sub(h(4).mul(2)),O=h(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Yt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${te(d)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Yt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},vi(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:O,height:O,marginBlockStart:h(1).mul(o).div(-2).equal(),marginInlineStart:h(1).mul(o).div(-2).equal(),backgroundColor:b,borderBlockStart:0,borderInlineStart:0,borderRadius:O,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:O,height:O,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${h($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},qD=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:m,controlHeightSM:g,paddingXS:y,borderRadius:b,borderRadiusSM:v,borderRadiusLG:h,buttonCheckedBg:S,buttonSolidCheckedColor:C,colorTextDisabled:$,colorBgContainerDisabled:O,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:w,colorPrimary:x,colorPrimaryHover:I,colorPrimaryActive:R,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:k,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:te(_(n).sub(_(o).mul(2)).equal()),background:f,border:`${te(o)} ${i} ${a}`,borderBlockStartWidth:_(o).add(.02).equal(),borderInlineStartWidth:0,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(:first-child)":{"&::before":{position:"absolute",insetBlockStart:_(o).mul(-1).equal(),insetInlineStart:_(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${te(o)} ${i} ${a}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:p,lineHeight:te(_(m).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},[`${r}-group-small &`]:{height:g,paddingInline:_(y).sub(o).equal(),paddingBlock:0,lineHeight:te(_(g).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:x},"&:has(:focus-visible)":Object.assign({},vi(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:x,background:S,borderColor:x,"&::before":{backgroundColor:x},"&:first-child":{borderColor:x},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:T,borderColor:T,"&:hover":{color:C,background:M,borderColor:M},"&:active":{color:C,background:k,borderColor:k}},"&-disabled":{color:$,backgroundColor:O,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:O,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:E,borderColor:a,boxShadow:"none"}}}},GD=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:g}=e,y=4,b=i,v=t?b-y*2:b-(y+o)*2;return{radioSize:b,dotSize:v,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?l:f}},VE=mn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,i=wt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[WD(i),UD(i),qD(i)]},GD,{unitless:{radioSize:!0,dotSize:!0}});var XD=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 YD=(e,t)=>{var n,r;const o=c.useContext(AE),i=c.useContext(BE),{getPrefixCls:a,direction:l,radio:s}=c.useContext(ut),u=c.useRef(null),d=Or(t,u),{isFormItemInput:f}=c.useContext(Fo),p=M=>{var k,_;(k=e.onChange)===null||k===void 0||k.call(e,M),(_=o==null?void 0:o.onChange)===null||_===void 0||_.call(o,M)},{prefixCls:m,className:g,rootClassName:y,children:b,style:v}=e,h=XD(e,["prefixCls","className","rootClassName","children","style"]),S=a("radio",m),C=((o==null?void 0:o.optionType)||i)==="button",$=C?`${S}-button`:S,O=Kr(S),[E,w,x]=VE(S,O),I=Object.assign({},h),R=c.useContext(oo);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:R;const T=Z(`${$}-wrapper`,{[`${$}-wrapper-checked`]:I.checked,[`${$}-wrapper-disabled`]:I.disabled,[`${$}-wrapper-rtl`]:l==="rtl",[`${$}-wrapper-in-form-item`]:f},s==null?void 0:s.className,g,y,w,x,O);return E(c.createElement(Bs,{component:"Radio",disabled:I.disabled},c.createElement("label",{className:T,style:Object.assign(Object.assign({},s==null?void 0:s.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},c.createElement(HE,Object.assign({},I,{className:Z(I.className,!C&&Fd),type:"radio",prefixCls:$,ref:d})),b!==void 0?c.createElement("span",null,b):null)))},Yu=c.forwardRef(YD),QD=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(ut),[o,i]=on(e.defaultValue,{value:e.value}),a=k=>{const _=o,D=k.target.value;"value"in e||i(D);const{onChange:N}=e;N&&D!==_&&N(k)},{prefixCls:l,className:s,rootClassName:u,options:d,buttonStyle:f="outline",disabled:p,children:m,size:g,style:y,id:b,onMouseEnter:v,onMouseLeave:h,onFocus:S,onBlur:C}=e,$=n("radio",l),O=`${$}-group`,E=Kr($),[w,x,I]=VE($,E);let R=m;d&&d.length>0&&(R=d.map(k=>typeof k=="string"||typeof k=="number"?c.createElement(Yu,{key:k.toString(),prefixCls:$,disabled:p,value:k,checked:o===k},k):c.createElement(Yu,{key:`radio-group-value-options-${k.value}`,prefixCls:$,disabled:k.disabled||p,value:k.value,checked:o===k.value,title:k.title,style:k.style,id:k.id,required:k.required},k.label)));const T=bo(g),M=Z(O,`${O}-${f}`,{[`${O}-${T}`]:T,[`${O}-rtl`]:r==="rtl"},s,u,x,I,E);return w(c.createElement("div",Object.assign({},io(e,{aria:!0,data:!0}),{className:M,style:y,onMouseEnter:v,onMouseLeave:h,onFocus:S,onBlur:C,id:b,ref:t}),c.createElement(HD,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},R)))}),JD=c.memo(QD);var ZD=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 e_=(e,t)=>{const{getPrefixCls:n}=c.useContext(ut),{prefixCls:r}=e,o=ZD(e,["prefixCls"]),i=n("radio",r);return c.createElement(VD,{value:"button"},c.createElement(Yu,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},t_=c.forwardRef(e_),qs=Yu;qs.Button=t_;qs.Group=JD;qs.__ANT_RADIO=!0;const n_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),KE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),bv=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),WE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},KE(wt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),UE=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${te(t)} ${te(i)}`,fontSize:n,lineHeight:r,borderRadius:o}},ph=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,borderRadius:e.borderRadiusSM}),qE=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},bv(wt(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},bv(wt(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},mh=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},n_(e.colorTextPlaceholder)),{"&:hover":Object.assign({},KE(e)),"&:focus, &:focus-within":Object.assign({},bv(e)),"&-disabled, &[disabled]":Object.assign({},WE(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},UE(e)),"&-sm":Object.assign({},ph(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),r_=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({},UE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ph(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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(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:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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"},Za()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{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,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${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}}}})}},o_=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({},Yt(e)),mh(e)),qE(e,t)),{'&[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':{"-webkit-appearance":"none"}})}},i_=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},a_=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mh(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),i_(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),qE(e,`${t}-affix-wrapper`))}},l_=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Yt(e)),r_(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},WE(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}}}})}},s_=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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,
> ${t},
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},c_=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},u_=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function GE(e){return wt(e,{inputAffixPadding:e.paddingXXS})}const XE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:y,controlOutline:b,colorErrorOutline:v,colorWarningOutline:h}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${y}px ${b}`,errorActiveShadow:`0 0 0 ${y}px ${v}`,warningActiveShadow:`0 0 0 ${y}px ${h}`,hoverBg:"",activeBg:""}},vh=mn("Input",e=>{const t=wt(e,GE(e));return[o_(t),c_(t),a_(t),l_(t),s_(t),u_(t),Kg(t)]},XE);function d_(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,u=s===void 0?void 0:s,d,f=!1,p=0;function m(){d&&clearTimeout(d)}function g(b){var v=b||{},h=v.upcomingOnly,S=h===void 0?!1:h;m(),f=!S}function y(){for(var b=arguments.length,v=new Array(b),h=0;h<b;h++)v[h]=arguments[h];var S=this,C=Date.now()-p;if(f)return;function $(){p=Date.now(),t.apply(S,v)}function O(){d=void 0}!l&&u&&!d&&$(),m(),u===void 0&&C>e?l?(p=Date.now(),i||(d=setTimeout(u?O:$,e))):$():i!==!0&&(d=setTimeout(u?O:$,u===void 0?e-C:e))}return y.cancel=g,y}function f_(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return d_(e,t,{debounceMode:i!==!1})}function hr(e,t){return e[t]}var p_=["children"];function YE(e,t){return"".concat(e,"-").concat(t)}function m_(e){return e&&e.type&&e.type.isTreeNode}function Gs(e,t){return e??t}function rl(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function QE(e){function t(n){var r=xr(n);return r.map(function(o){if(!m_(o))return Ut(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,s=nt(a,p_),u=W({key:i},s),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function ip(e,t,n){var r=rl(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),s=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,m){for(var g=YE(f?f.pos:"0",m),y=Gs(p[i],g),b,v=0;v<o.length;v+=1){var h=o[v];if(p[h]!==void 0){b=p[h];break}}var S=W(W({},kn(p,[].concat(Se(o),[i,a]))),{},{title:b,key:y,parent:f,pos:g,children:null,data:p,isStart:[].concat(Se(f?f.isStart:[]),[m===0]),isEnd:[].concat(Se(f?f.isEnd:[]),[m===d.length-1])});return s.push(S),t===!0||l.has(y)?S.children=u(p[a]||[],S):S.children=[],S})}return u(e),s}function v_(e,t,n){var r={};tt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,l=o.fieldNames,s=rl(l),u=s.key,d=s.children,f=i||d,p;a?typeof a=="string"?p=function(y){return y[a]}:typeof a=="function"&&(p=function(y){return a(y)}):p=function(y,b){return Gs(y[u],b)};function m(g,y,b,v){var h=g?g[f]:e,S=g?YE(b.pos,y):"0",C=g?[].concat(Se(v),[g]):[];if(g){var $=p(g,S),O={node:g,index:y,pos:S,key:$,parentPos:b.node?b.pos:null,level:b.level+1,nodes:C};t(O)}h&&h.forEach(function(E,w){m(E,w,{node:g,pos:S,level:b?b.level+1:-1},C)})}m(null)}function gh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,u=i||s,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),v_(e,function(m){var g=m.node,y=m.index,b=m.pos,v=m.key,h=m.parentPos,S=m.level,C=m.nodes,$={node:g,nodes:C,index:y,key:v,pos:b,level:S},O=Gs(v,b);d[b]=$,f[O]=$,$.parent=d[h],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,p)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),o&&o(p),p}function ns(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=hr(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1};return p}function un(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,m=e.eventKey,g=W(W({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Ut(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function JE(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function g_(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function h_(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(f){var p=f.key,m=f.node,g=f.children,y=g===void 0?[]:g;o.has(p)&&!r(m)&&y.filter(function(b){return!r(b.node)}).forEach(function(b){o.add(b.key)})})}for(var s=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,m=f.node;if(!(r(m)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(p.key);return}var g=!0,y=!1;(p.children||[]).filter(function(b){return!r(b.node)}).forEach(function(b){var v=b.key,h=o.has(v);g&&!h&&(g=!1),!y&&(h||i.has(v))&&(y=!0)}),g&&o.add(p.key),y&&i.add(p.key),s.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(JE(i,o))}}function y_(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(p){var m=p.key,g=p.node,y=p.children,b=y===void 0?[]:y;!i.has(m)&&!a.has(m)&&!o(g)&&b.filter(function(v){return!o(v.node)}).forEach(function(v){i.delete(v.key)})})}a=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var m=p.parent,g=p.node;if(!(o(g)||!p.parent||u.has(p.parent.key))){if(o(p.parent.node)){u.add(m.key);return}var y=!0,b=!1;(m.children||[]).filter(function(v){return!o(v.node)}).forEach(function(v){var h=v.key,S=i.has(h);y&&!S&&(y=!1),!b&&(S||a.has(h))&&(b=!0)}),y||i.delete(m.key),b&&a.add(m.key),u.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(JE(a,i))}}function Aa(e,t,n,r){var o=[],i;r?i=r:i=g_;var a=new Set(e.filter(function(d){var f=!!hr(n,d);return f||o.push(d),f})),l=new Map,s=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,m=l.get(p);m||(m=new Set,l.set(p,m)),m.add(f),s=Math.max(s,p)}),Ut(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=h_(a,l,s,i):u=y_(a,t.halfCheckedKeys,l,s,i),u}const b_=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Yt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Yt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Yt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},vi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${te(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ZE(e,t){const n=wt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[b_(n)]}const e$=mn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[ZE(n,e)]}),t$=ce.createContext(null);var S_=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 C_=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,m=S_(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:y,checkbox:b}=c.useContext(ut),v=c.useContext(t$),{isFormItemInput:h}=c.useContext(Fo),S=c.useContext(oo),C=(n=(v==null?void 0:v.disabled)||p)!==null&&n!==void 0?n:S,$=c.useRef(m.value);c.useEffect(()=>{v==null||v.registerValue(m.value)},[]),c.useEffect(()=>{if(!f)return m.value!==$.current&&(v==null||v.cancelValue($.current),v==null||v.registerValue(m.value),$.current=m.value),()=>v==null?void 0:v.cancelValue(m.value)},[m.value]);const O=g("checkbox",r),E=Kr(O),[w,x,I]=e$(O,E),R=Object.assign({},m);v&&!f&&(R.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),v.toggleOption&&v.toggleOption({label:a,value:m.value})},R.name=v.name,R.checked=v.value.includes(m.value));const T=Z(`${O}-wrapper`,{[`${O}-rtl`]:y==="rtl",[`${O}-wrapper-checked`]:R.checked,[`${O}-wrapper-disabled`]:C,[`${O}-wrapper-in-form-item`]:h},b==null?void 0:b.className,o,i,I,E,x),M=Z({[`${O}-indeterminate`]:l},Fd,x),k=l?"mixed":void 0;return w(c.createElement(Bs,{component:"Checkbox",disabled:C},c.createElement("label",{className:T,style:Object.assign(Object.assign({},b==null?void 0:b.style),s),onMouseEnter:u,onMouseLeave:d},c.createElement(HE,Object.assign({"aria-checked":k},R,{prefixCls:O,className:M,disabled:C,ref:t})),a!==void 0&&c.createElement("span",null,a))))},n$=c.forwardRef(C_);var x_=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 w_=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:u}=e,d=x_(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=c.useContext(ut),[m,g]=c.useState(d.value||n||[]),[y,b]=c.useState([]);c.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const v=c.useMemo(()=>o.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),[o]),h=_=>{b(D=>D.filter(N=>N!==_))},S=_=>{b(D=>[].concat(Se(D),[_]))},C=_=>{const D=m.indexOf(_.value),N=Se(m);D===-1?N.push(_.value):N.splice(D,1),"value"in d||g(N),u==null||u(N.filter(P=>y.includes(P)).sort((P,z)=>{const j=v.findIndex(L=>L.value===P),F=v.findIndex(L=>L.value===z);return j-F}))},$=f("checkbox",i),O=`${$}-group`,E=Kr($),[w,x,I]=e$($,E),R=kn(d,["value","disabled"]),T=o.length?v.map(_=>c.createElement(n$,{prefixCls:$,key:_.value.toString(),disabled:"disabled"in _?_.disabled:d.disabled,value:_.value,checked:m.includes(_.value),onChange:_.onChange,className:`${O}-item`,style:_.style,title:_.title,id:_.id,required:_.required},_.label)):r,M={toggleOption:C,value:m,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:h},k=Z(O,{[`${O}-rtl`]:p==="rtl"},a,l,I,E,x);return w(c.createElement("div",Object.assign({className:k,style:s},R,{ref:t}),c.createElement(t$.Provider,{value:M},T)))},E_=c.forwardRef(w_),$_=c.memo(E_),ol=n$;ol.Group=$_;ol.__ANT_CHECKBOX=!0;function pa(e){return!!(e.addonBefore||e.addonAfter)}function ap(e){return!!(e.prefix||e.suffix||e.allowClear)}function Qu(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.type!=="file"&&(a.value=r),n(o);return}n(o)}}function O_(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 r$=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,u=t.addonAfter,d=t.className,f=t.style,p=t.disabled,m=t.readOnly,g=t.focused,y=t.triggerFocus,b=t.allowClear,v=t.value,h=t.handleReset,S=t.hidden,C=t.classes,$=t.classNames,O=t.dataAttrs,E=t.styles,w=t.components,x=(w==null?void 0:w.affixWrapper)||"span",I=(w==null?void 0:w.groupWrapper)||"span",R=(w==null?void 0:w.wrapper)||"span",T=(w==null?void 0:w.groupAddon)||"span",M=c.useRef(null),k=function(V){var J;(J=M.current)!==null&&J!==void 0&&J.contains(V.target)&&(y==null||y())},_=function(){var V;if(!b)return null;var J=!p&&!m&&v,X="".concat(i,"-clear-icon"),K=tt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";return ce.createElement("span",{onClick:h,onMouseDown:function(U){return U.preventDefault()},className:Z(X,(V={},B(V,"".concat(X,"-hidden"),!J),B(V,"".concat(X,"-has-suffix"),!!l),V)),role:"button",tabIndex:-1},K)},D=c.cloneElement(o,{value:v,hidden:S,className:Z((n=o.props)===null||n===void 0?void 0:n.className,!ap(t)&&!pa(t)&&d)||null,style:W(W({},(r=o.props)===null||r===void 0?void 0:r.style),!ap(t)&&!pa(t)?f:{})});if(ap(t)){var N,P="".concat(i,"-affix-wrapper"),z=Z(P,(N={},B(N,"".concat(P,"-disabled"),p),B(N,"".concat(P,"-focused"),g),B(N,"".concat(P,"-readonly"),m),B(N,"".concat(P,"-input-with-clear-btn"),l&&b&&v),N),!pa(t)&&d,C==null?void 0:C.affixWrapper,$==null?void 0:$.affixWrapper),j=(l||b)&&ce.createElement("span",{className:Z("".concat(i,"-suffix"),$==null?void 0:$.suffix),style:E==null?void 0:E.suffix},_(),l);D=ce.createElement(x,fe({className:z,style:W(W({},pa(t)?void 0:f),E==null?void 0:E.affixWrapper),hidden:!pa(t)&&S,onClick:k},O==null?void 0:O.affixWrapper,{ref:M}),a&&ce.createElement("span",{className:Z("".concat(i,"-prefix"),$==null?void 0:$.prefix),style:E==null?void 0:E.prefix},a),c.cloneElement(o,{value:v,hidden:null}),j)}if(pa(t)){var F="".concat(i,"-group"),L="".concat(F,"-addon"),A=Z("".concat(i,"-wrapper"),F,C==null?void 0:C.wrapper),G=Z("".concat(i,"-group-wrapper"),d,C==null?void 0:C.group);return ce.createElement(I,{className:G,style:f,hidden:S},ce.createElement(R,{className:A},s&&ce.createElement(T,{className:L},s),c.cloneElement(D,{hidden:null}),u&&ce.createElement(T,{className:L},u)))}return D},I_=["show"];function o$(e,t){return c.useMemo(function(){var n={};t&&(n.show=tt(t)==="object"&&t.formatter?t.formatter:!!t),n=W(W({},n),e);var r=n,o=r.show,i=nt(r,I_);return W(W({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var R_=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],P_=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,p=e.className,m=e.maxLength,g=e.suffix,y=e.showCount,b=e.count,v=e.type,h=v===void 0?"text":v,S=e.classes,C=e.classNames,$=e.styles,O=e.onCompositionStart,E=e.onCompositionEnd,w=nt(e,R_),x=c.useState(!1),I=oe(x,2),R=I[0],T=I[1],M=ce.useRef(!1),k=c.useRef(null),_=function(re){k.current&&O_(k.current,re)},D=on(e.defaultValue,{value:e.value}),N=oe(D,2),P=N[0],z=N[1],j=P==null?"":String(P),F=ce.useState(null),L=oe(F,2),A=L[0],G=L[1],H=o$(b,y),V=H.max||m,J=H.strategy(j),X=!!V&&J>V;c.useImperativeHandle(t,function(){return{focus:_,blur:function(){var re;(re=k.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,de,se){var he;(he=k.current)===null||he===void 0||he.setSelectionRange(re,de,se)},select:function(){var re;(re=k.current)===null||re===void 0||re.select()},input:k.current}}),c.useEffect(function(){T(function(ae){return ae&&d?!1:ae})},[d]);var K=function(re,de){var se=de;if(!M.current&&H.exceedFormatter&&H.max&&H.strategy(de)>H.max&&(se=H.exceedFormatter(de,{max:H.max}),de!==se)){var he,$e;G([((he=k.current)===null||he===void 0?void 0:he.selectionStart)||0,(($e=k.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}z(se),k.current&&Qu(k.current,re,r,se)};ce.useEffect(function(){if(A){var ae;(ae=k.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,Se(A))}},[A]);var q=function(re){K(re,re.target.value)},U=function(re){M.current=!1,K(re,re.currentTarget.value),E==null||E(re)},Q=function(re){a&&re.key==="Enter"&&a(re),l==null||l(re)},Y=function(re){T(!0),o==null||o(re)},ne=function(re){T(!1),i==null||i(re)},ee=function(re){z(""),_(),k.current&&Qu(k.current,re,r)},ie=X&&"".concat(u,"-out-of-range"),ue=function(){var re=kn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return ce.createElement("input",fe({autoComplete:n},re,{onChange:q,onFocus:Y,onBlur:ne,onKeyDown:Q,className:Z(u,B({},"".concat(u,"-disabled"),d),C==null?void 0:C.input),style:$==null?void 0:$.input,ref:k,size:f,type:h,onCompositionStart:function(se){M.current=!0,O==null||O(se)},onCompositionEnd:U}))},me=function(){var re=Number(V)>0;if(g||H.show){var de=H.showFormatter?H.showFormatter({value:j,count:J,maxLength:V}):"".concat(J).concat(re?" / ".concat(V):"");return ce.createElement(ce.Fragment,null,H.show&&ce.createElement("span",{className:Z("".concat(u,"-show-count-suffix"),B({},"".concat(u,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:W({},$==null?void 0:$.count)},de),g)}return null};return ce.createElement(r$,fe({},w,{prefixCls:u,className:Z(p,ie),inputElement:ue(),handleReset:ee,value:j,focused:R,triggerFocus:_,suffix:me(),disabled:d,classes:S,classNames:C,styles:$}))});const N_=e=>{const{getPrefixCls:t,direction:n}=c.useContext(ut),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=vh(a),u=Z(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),d=c.useContext(Fo),f=c.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(c.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Fo.Provider,{value:f},e.children)))};function i$(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function T_(e){return!!(e.prefix||e.suffix||e.allowClear)}var M_=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 k_(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const hh=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:m,className:g,style:y,styles:b,rootClassName:v,onChange:h,classNames:S}=e,C=M_(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$,direction:O,input:E}=ce.useContext(ut),w=$("input",r),x=c.useRef(null),I=Kr(w),[R,T,M]=vh(w,I),{compactSize:k,compactItemClassnames:_}=Hs(w,O),D=bo(q=>{var U;return(U=a??k)!==null&&U!==void 0?U:q}),N=ce.useContext(oo),P=l??N,{status:z,hasFeedback:j,feedbackIcon:F}=c.useContext(Fo),L=rh(z,i),A=T_(e)||!!j;c.useRef(A);const G=i$(x,!0),H=q=>{G(),s==null||s(q)},V=q=>{G(),u==null||u(q)},J=q=>{G(),h==null||h(q)},X=(j||d)&&ce.createElement(ce.Fragment,null,d,j&&F);let K;return typeof f=="object"&&(f!=null&&f.clearIcon)?K=f:f&&(K={clearIcon:ce.createElement(js,null)}),R(ce.createElement(P_,Object.assign({ref:Or(t,x),prefixCls:w,autoComplete:E==null?void 0:E.autoComplete},C,{disabled:P,onBlur:H,onFocus:V,style:Object.assign(Object.assign({},E==null?void 0:E.style),y),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),b),suffix:X,allowClear:K,className:Z(g,v,M,I,T,_,E==null?void 0:E.className),onChange:J,addonAfter:p&&ce.createElement(Hu,null,ce.createElement(rb,{override:!0,status:!0},p)),addonBefore:m&&ce.createElement(Hu,null,ce.createElement(rb,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign(Object.assign({},S),E==null?void 0:E.classNames),{input:Z({[`${w}-sm`]:D==="small",[`${w}-lg`]:D==="large",[`${w}-rtl`]:O==="rtl",[`${w}-borderless`]:!o},!A&&Fa(w,L),S==null?void 0:S.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,T)}),classes:{affixWrapper:Z({[`${w}-affix-wrapper-sm`]:D==="small",[`${w}-affix-wrapper-lg`]:D==="large",[`${w}-affix-wrapper-rtl`]:O==="rtl",[`${w}-affix-wrapper-borderless`]:!o},Fa(`${w}-affix-wrapper`,L,j),T),wrapper:Z({[`${w}-group-rtl`]:O==="rtl"},T),group:Z({[`${w}-group-wrapper-sm`]:D==="small",[`${w}-group-wrapper-lg`]:D==="large",[`${w}-group-wrapper-rtl`]:O==="rtl",[`${w}-group-wrapper-disabled`]:P},Fa(`${w}-group-wrapper`,L,j),T)}})))});var D_={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"},__=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:D_}))};const L_=c.forwardRef(__);var z_={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"},j_=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:z_}))};const a$=c.forwardRef(j_);var F_=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 A_=e=>e?c.createElement(a$,null):c.createElement(L_,null),B_={click:"onClick",hover:"onMouseOver"},H_=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=c.useState(()=>r?n.visible:!1),a=c.useRef(null);c.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=i$(a),s=()=>{const{disabled:$}=e;$||(o&&l(),i(O=>{var E;const w=!O;return typeof n=="object"&&((E=n.onVisibleChange)===null||E===void 0||E.call(n,w)),w}))},u=$=>{const{action:O="click",iconRender:E=A_}=e,w=B_[O]||"",x=E(o),I={[w]:s,className:`${$}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return c.cloneElement(c.isValidElement(x)?x:c.createElement("span",null,x),I)},{className:d,prefixCls:f,inputPrefixCls:p,size:m}=e,g=F_(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=c.useContext(ut),b=y("input",p),v=y("input-password",f),h=n&&u(v),S=Z(v,d,{[`${v}-${m}`]:!!m}),C=Object.assign(Object.assign({},kn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:b,suffix:h});return m&&(C.size=m),c.createElement(hh,Object.assign({ref:Or(t,a)},C))});var V_=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 K_=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g}=e,y=V_(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:v}=c.useContext(ut),h=c.useRef(!1),S=b("input-search",n),C=b("input",r),{compactSize:$}=Hs(S,v),O=bo(j=>{var F;return(F=i??$)!==null&&F!==void 0?F:j}),E=c.useRef(null),w=j=>{j&&j.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),p&&p(j)},x=j=>{var F;document.activeElement===((F=E.current)===null||F===void 0?void 0:F.input)&&j.preventDefault()},I=j=>{var F,L;f&&f((L=(F=E.current)===null||F===void 0?void 0:F.input)===null||L===void 0?void 0:L.value,j,{source:"input"})},R=j=>{h.current||u||I(j)},T=typeof l=="boolean"?c.createElement(wr,null):null,M=`${S}-button`;let k;const _=l||{},D=_.type&&_.type.__ANT_BUTTON===!0;D||_.type==="button"?k=Xn(_,Object.assign({onMouseDown:x,onClick:j=>{var F,L;(L=(F=_==null?void 0:_.props)===null||F===void 0?void 0:F.onClick)===null||L===void 0||L.call(F,j),I(j)},key:"enterButton"},D?{className:M,size:O}:{})):k=c.createElement(kt,{className:M,type:l?"primary":void 0,size:O,disabled:d,key:"enterButton",onMouseDown:x,onClick:I,loading:u,icon:T},l),s&&(k=[k,Xn(s,{key:"addonAfter"})]);const N=Z(S,{[`${S}-rtl`]:v==="rtl",[`${S}-${O}`]:!!O,[`${S}-with-button`]:!!l},o),P=j=>{h.current=!0,m==null||m(j)},z=j=>{h.current=!1,g==null||g(j)};return c.createElement(hh,Object.assign({ref:Or(E,t),onPressEnter:R},y,{size:O,onCompositionStart:P,onCompositionEnd:z,prefixCls:C,addonAfter:k,suffix:a,onChange:w,className:N,disabled:d}))});var W_=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,U_=["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"],lp={},Mr;function q_(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&&lp[n])return lp[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=U_.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(lp[n]=s),s}function G_(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;Mr||(Mr=document.createElement("textarea"),Mr.setAttribute("tab-index","-1"),Mr.setAttribute("aria-hidden","true"),document.body.appendChild(Mr)),e.getAttribute("wrap")?Mr.setAttribute("wrap",e.getAttribute("wrap")):Mr.removeAttribute("wrap");var o=q_(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Mr.setAttribute("style","".concat(s,";").concat(W_)),Mr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=Mr.scrollHeight;if(l==="border-box"?p+=a:l==="content-box"&&(p-=i),n!==null||r!==null){Mr.value=" ";var m=Mr.scrollHeight-i;n!==null&&(u=m*n,l==="border-box"&&(u=u+i+a),p=Math.max(u,p)),r!==null&&(d=m*r,l==="border-box"&&(d=d+i+a),f=p>d?"":"hidden",p=Math.min(d,p))}var g={height:p,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var X_=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],sp=0,cp=1,up=2,Y_=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=nt(n,X_),m=on(o,{value:i,postState:function(G){return G??""}}),g=oe(m,2),y=g[0],b=g[1],v=function(G){b(G.target.value),f==null||f(G)},h=c.useRef();c.useImperativeHandle(t,function(){return{textArea:h.current}});var S=c.useMemo(function(){return a&&tt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=oe(S,2),$=C[0],O=C[1],E=!!a,w=function(){try{if(document.activeElement===h.current){var G=h.current,H=G.selectionStart,V=G.selectionEnd,J=G.scrollTop;h.current.setSelectionRange(H,V),h.current.scrollTop=J}}catch{}},x=c.useState(up),I=oe(x,2),R=I[0],T=I[1],M=c.useState(),k=oe(M,2),_=k[0],D=k[1],N=function(){T(sp)};Pt(function(){E&&N()},[i,$,O,E]),Pt(function(){if(R===sp)T(cp);else if(R===cp){var A=G_(h.current,!1,$,O);T(up),D(A)}else w()},[R]);var P=c.useRef(),z=function(){zt.cancel(P.current)},j=function(G){R===up&&(l==null||l(G),a&&(z(),P.current=zt(function(){N()})))};c.useEffect(function(){return z},[]);var F=E?_:null,L=W(W({},u),F);return(R===sp||R===cp)&&(L.overflowY="hidden",L.overflowX="hidden"),c.createElement(Vr,{onResize:j,disabled:!(a||l)},c.createElement("textarea",fe({},p,{ref:h,style:L,className:Z(r,s,B({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:v})))}),Q_=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],J_=ce.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,y=g===void 0?"rc-textarea":g,b=e.classes,v=e.showCount,h=e.count,S=e.className,C=e.style,$=e.disabled,O=e.hidden,E=e.classNames,w=e.styles,x=e.onResize,I=nt(e,Q_),R=on(o,{value:i,defaultValue:o}),T=oe(R,2),M=T[0],k=T[1],_=M==null?"":String(M),D=ce.useState(!1),N=oe(D,2),P=N[0],z=N[1],j=ce.useRef(!1),F=ce.useState(null),L=oe(F,2),A=L[0],G=L[1],H=c.useRef(null),V=function(){var pe;return(pe=H.current)===null||pe===void 0?void 0:pe.textArea},J=function(){V().focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:H.current,focus:J,blur:function(){V().blur()}}}),c.useEffect(function(){z(function(Ee){return!$&&Ee})},[$]);var X=ce.useState(null),K=oe(X,2),q=K[0],U=K[1];ce.useEffect(function(){if(q){var Ee;(Ee=V()).setSelectionRange.apply(Ee,Se(q))}},[q]);var Q=o$(h,v),Y=(n=Q.max)!==null&&n!==void 0?n:d,ne=Number(Y)>0,ee=Q.strategy(_),ie=!!Y&&ee>Y,ue=function(pe,Ie){var be=Ie;!j.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Ie)>Q.max&&(be=Q.exceedFormatter(Ie,{max:Q.max}),Ie!==be&&U([V().selectionStart||0,V().selectionEnd||0])),k(be),Qu(pe.currentTarget,pe,s,be)},me=function(pe){j.current=!0,f==null||f(pe)},ae=function(pe){j.current=!1,ue(pe,pe.currentTarget.value),p==null||p(pe)},re=function(pe){ue(pe,pe.target.value)},de=function(pe){var Ie=I.onPressEnter,be=I.onKeyDown;pe.key==="Enter"&&Ie&&Ie(pe),be==null||be(pe)},se=function(pe){z(!0),a==null||a(pe)},he=function(pe){z(!1),l==null||l(pe)},$e=function(pe){k(""),J(),Qu(V(),pe,s)},Ce=m,ye;Q.show&&(Q.showFormatter?ye=Q.showFormatter({value:_,count:ee,maxLength:Y}):ye="".concat(ee).concat(ne?" / ".concat(Y):""),Ce=ce.createElement(ce.Fragment,null,Ce,ce.createElement("span",{className:Z("".concat(y,"-data-count"),E==null?void 0:E.count),style:w==null?void 0:w.count},ye)));var We=function(pe){var Ie;x==null||x(pe),(Ie=V())!==null&&Ie!==void 0&&Ie.style.height&&G(!0)},Ke=!I.autoSize&&!v&&!u,Ue=ce.createElement(r$,{value:_,allowClear:u,handleReset:$e,suffix:Ce,prefixCls:y,classes:{affixWrapper:Z(b==null?void 0:b.affixWrapper,(r={},B(r,"".concat(y,"-show-count"),v),B(r,"".concat(y,"-textarea-allow-clear"),u),r))},disabled:$,focused:P,className:Z(S,ie&&"".concat(y,"-out-of-range")),style:W(W({},C),A&&!Ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ye=="string"?ye:void 0}},hidden:O,inputElement:ce.createElement(Y_,fe({},I,{maxLength:d,onKeyDown:de,onChange:re,onFocus:se,onBlur:he,onCompositionStart:me,onCompositionEnd:ae,className:Z(E==null?void 0:E.textarea),style:W(W({},w==null?void 0:w.textarea),{},{resize:C==null?void 0:C.resize}),disabled:$,prefixCls:y,onResize:We,ref:H}))});return Ue}),Z_=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 l$=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:u,rootClassName:d,className:f}=e,p=Z_(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:m,direction:g}=c.useContext(ut),y=bo(i),b=c.useContext(oo),v=a??b,{status:h,hasFeedback:S,feedbackIcon:C}=c.useContext(Fo),$=rh(h,l),O=c.useRef(null);c.useImperativeHandle(t,()=>{var M;return{resizableTextArea:(M=O.current)===null||M===void 0?void 0:M.resizableTextArea,focus:k=>{var _,D;k_((D=(_=O.current)===null||_===void 0?void 0:_.resizableTextArea)===null||D===void 0?void 0:D.textArea,k)},blur:()=>{var k;return(k=O.current)===null||k===void 0?void 0:k.blur()}}});const E=m("input",r);let w;typeof s=="object"&&(s!=null&&s.clearIcon)?w=s:s&&(w={clearIcon:c.createElement(js,null)});const x=Kr(E),[I,R,T]=vh(E,x);return I(c.createElement(J_,Object.assign({},p,{disabled:v,allowClear:w,className:Z(T,x,f,d),classes:{affixWrapper:Z(`${E}-textarea-affix-wrapper`,{[`${E}-affix-wrapper-rtl`]:g==="rtl",[`${E}-affix-wrapper-borderless`]:!o,[`${E}-affix-wrapper-sm`]:y==="small",[`${E}-affix-wrapper-lg`]:y==="large",[`${E}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Fa(`${E}-affix-wrapper`,$),R)},classNames:Object.assign(Object.assign({},u),{textarea:Z({[`${E}-borderless`]:!o,[`${E}-sm`]:y==="small",[`${E}-lg`]:y==="large"},Fa(E,$),R,u==null?void 0:u.textarea)}),prefixCls:E,suffix:S&&c.createElement("span",{className:`${E}-textarea-suffix`},C),ref:O})))}),So=hh;So.Group=N_;So.Search=K_;So.TextArea=l$;So.Password=H_;function Lb(e){return["small","middle","large"].includes(e)}function zb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const s$=ce.createContext({latestIndex:0}),e5=s$.Provider,t5=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=c.useContext(s$);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:i},r),n<a&&o&&c.createElement("span",{className:`${t}-split`},o))};var n5=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 r5=c.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=c.useContext(ut),{size:l=(i==null?void 0:i.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:m,split:g,style:y,wrap:b=!1,classNames:v,styles:h}=e,S=n5(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,$]=Array.isArray(l)?l:[l,l],O=Lb($),E=Lb(C),w=zb($),x=zb(C),I=xr(f,{keepEmpty:!0}),R=s===void 0&&p==="horizontal"?"center":s,T=o("space",m),[M,k,_]=ww(T),D=Z(T,i==null?void 0:i.className,k,`${T}-${p}`,{[`${T}-rtl`]:a==="rtl",[`${T}-align-${R}`]:R,[`${T}-gap-row-${$}`]:O,[`${T}-gap-col-${C}`]:E},u,d,_),N=Z(`${T}-item`,(n=v==null?void 0:v.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let P=0;const z=I.map((L,A)=>{var G,H;L!=null&&(P=A);const V=L&&L.key||`${N}-${A}`;return c.createElement(t5,{className:N,key:V,index:A,split:g,style:(G=h==null?void 0:h.item)!==null&&G!==void 0?G:(H=i==null?void 0:i.styles)===null||H===void 0?void 0:H.item},L)}),j=c.useMemo(()=>({latestIndex:P}),[P]);if(I.length===0)return null;const F={};return b&&(F.flexWrap="wrap"),!E&&x&&(F.columnGap=C),!O&&w&&(F.rowGap=$),M(c.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},F),i==null?void 0:i.style),y)},S),c.createElement(e5,{value:j},z)))}),Ci=r5;Ci.Compact=E4;var o5=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 c$=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(ut),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:y,overlay:b,trigger:v,align:h,open:S,onOpenChange:C,placement:$,getPopupContainer:O,href:E,icon:w=c.createElement(jE,null),title:x,buttonsRender:I=X=>X,mouseEnterDelay:R,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:k,destroyPopupOnHide:_,dropdownRender:D}=e,N=o5(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","destroyPopupOnHide","dropdownRender"]),P=n("dropdown",o),z=`${P}-button`,j={menu:m,arrow:g,autoFocus:y,align:h,disabled:l,trigger:l?[]:v,onOpenChange:C,getPopupContainer:O||t,mouseEnterDelay:R,mouseLeaveDelay:T,overlayClassName:M,overlayStyle:k,destroyPopupOnHide:_,dropdownRender:D},{compactSize:F,compactItemClassnames:L}=Hs(P,r),A=Z(z,L,p);"overlay"in e&&(j.overlay=b),"open"in e&&(j.open=S),"placement"in e?j.placement=$:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const G=c.createElement(kt,{type:i,danger:a,disabled:l,loading:s,onClick:u,htmlType:d,href:E,title:x},f),H=c.createElement(kt,{type:i,danger:a,icon:w}),[V,J]=I([G,H]);return c.createElement(Ci.Compact,Object.assign({className:A,size:F,block:!0},N),V,c.createElement(Xd,Object.assign({},j),J))};c$.__ANT_BUTTON=!0;const yh=Xd;yh.Button=c$;function jb(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Nc(e,t,n,r){var o=Tu.unstable_batchedUpdates?function(a){Tu.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const i5=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var a5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},l5=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:a5}))};const Fb=c.forwardRef(l5);var s5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},c5=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:s5}))};const Ab=c.forwardRef(c5);var u5={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},d5=["10","20","50","100"],f5=function(t){var n=t.pageSizeOptions,r=n===void 0?d5:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,p=t.disabled,m=t.buildOptionText,g=ce.useState(""),y=oe(g,2),b=y[0],v=y[1],h=function(){return!b||Number.isNaN(b)?void 0:Number(b)},S=typeof m=="function"?m:function(k){return"".concat(k," ").concat(o.items_per_page)},C=function(_){i==null||i(Number(_))},$=function(_){v(_.target.value)},O=function(_){l||b===""||(v(""),!(_.relatedTarget&&(_.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||_.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(h())))},E=function(_){b!==""&&(_.keyCode===ge.ENTER||_.type==="click")&&(v(""),s==null||s(h()))},w=function(){return r.some(function(_){return _.toString()===a.toString()})?r:r.concat([a.toString()]).sort(function(_,D){var N=Number.isNaN(Number(_))?0:Number(_),P=Number.isNaN(Number(D))?0:Number(D);return N-P})},x="".concat(u,"-options");if(!i&&!s)return null;var I=null,R=null,T=null;if(i&&d){var M=w().map(function(k,_){return ce.createElement(d.Option,{key:_,value:k.toString()},S(k))});I=ce.createElement(d,{disabled:p,prefixCls:f,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),onChange:C,getPopupContainer:function(_){return _.parentNode},"aria-label":o.page_size,defaultOpen:!1},M)}return s&&(l&&(T=typeof l=="boolean"?ce.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:p,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):ce.createElement("span",{onClick:E,onKeyUp:E},l)),R=ce.createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,ce.createElement("input",{disabled:p,type:"text",value:b,onChange:$,onKeyUp:E,onBlur:O,"aria-label":o.page}),o.page,T)),ce.createElement("li",{className:x},I,R)},Tl=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=Z(f,"".concat(f,"-").concat(o),(n={},B(n,"".concat(f,"-active"),i),B(n,"".concat(f,"-disabled"),!o),n),a),m=function(){s(o)},g=function(v){u(v,s,o)},y=d(o,"page",ce.createElement("a",{rel:"nofollow"},o));return y?ce.createElement("li",{title:l?String(o):null,className:p,onClick:m,onKeyDown:g,tabIndex:0},y):null},p5=function(t,n,r){return r};function Bb(){}function Hb(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function xi(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var m5=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,l=t.className,s=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,p=t.total,m=p===void 0?0:p,g=t.pageSize,y=t.defaultPageSize,b=y===void 0?10:y,v=t.onChange,h=v===void 0?Bb:v,S=t.hideOnSinglePage,C=t.showPrevNextJumpers,$=C===void 0?!0:C,O=t.showQuickJumper,E=t.showLessItems,w=t.showTitle,x=w===void 0?!0:w,I=t.onShowSizeChange,R=I===void 0?Bb:I,T=t.locale,M=T===void 0?u5:T,k=t.style,_=t.totalBoundaryShowSizeChanger,D=_===void 0?50:_,N=t.disabled,P=t.simple,z=t.showTotal,j=t.showSizeChanger,F=t.pageSizeOptions,L=t.itemRender,A=L===void 0?p5:L,G=t.jumpPrevIcon,H=t.jumpNextIcon,V=t.prevIcon,J=t.nextIcon,X=ce.useRef(null),K=on(10,{value:g,defaultValue:b}),q=oe(K,2),U=q[0],Q=q[1],Y=on(1,{value:u,defaultValue:f,postState:function(yt){return Math.max(1,Math.min(yt,xi(void 0,U,m)))}}),ne=oe(Y,2),ee=ne[0],ie=ne[1],ue=ce.useState(ee),me=oe(ue,2),ae=me[0],re=me[1];c.useEffect(function(){re(ee)},[ee]);var de=Math.max(1,ee-(E?3:5)),se=Math.min(xi(void 0,U,m),ee+(E?3:5));function he(Xe,yt){var Ot=Xe||ce.createElement("button",{type:"button","aria-label":yt,className:"".concat(o,"-item-link")});return typeof Xe=="function"&&(Ot=ce.createElement(Xe,W({},t))),Ot}function $e(Xe){var yt=Xe.target.value,Ot=xi(void 0,U,m),qt;return yt===""?qt=yt:Number.isNaN(Number(yt))?qt=ae:yt>=Ot?qt=Ot:qt=Number(yt),qt}function Ce(Xe){return Hb(Xe)&&Xe!==ee&&Hb(m)&&m>0}var ye=m>U?O:!1;function We(Xe){(Xe.keyCode===ge.UP||Xe.keyCode===ge.DOWN)&&Xe.preventDefault()}function Ke(Xe){var yt=$e(Xe);switch(yt!==ae&&re(yt),Xe.keyCode){case ge.ENTER:pe(yt);break;case ge.UP:pe(yt-1);break;case ge.DOWN:pe(yt+1);break}}function Ue(Xe){pe($e(Xe))}function Ee(Xe){var yt=xi(Xe,U,m),Ot=ee>yt&&yt!==0?yt:ee;Q(Xe),re(Ot),R==null||R(ee,Xe),ie(Ot),h==null||h(Ot,Xe)}function pe(Xe){if(Ce(Xe)&&!N){var yt=xi(void 0,U,m),Ot=Xe;return Xe>yt?Ot=yt:Xe<1&&(Ot=1),Ot!==ae&&re(Ot),ie(Ot),h==null||h(Ot,U),Ot}return ee}var Ie=ee>1,be=ee<xi(void 0,U,m),Re=j??m>D;function Oe(){Ie&&pe(ee-1)}function xe(){be&&pe(ee+1)}function Fe(){pe(de)}function Qe(){pe(se)}function Ze(Xe,yt){if(Xe.key==="Enter"||Xe.charCode===ge.ENTER||Xe.keyCode===ge.ENTER){for(var Ot=arguments.length,qt=new Array(Ot>2?Ot-2:0),gn=2;gn<Ot;gn++)qt[gn-2]=arguments[gn];yt.apply(void 0,qt)}}function ve(Xe){Ze(Xe,Oe)}function De(Xe){Ze(Xe,xe)}function qe(Xe){Ze(Xe,Fe)}function lt(Xe){Ze(Xe,Qe)}function Je(Xe){var yt=A(Xe,"prev",he(V,"prev page"));return ce.isValidElement(yt)?ce.cloneElement(yt,{disabled:!Ie}):yt}function Te(Xe){var yt=A(Xe,"next",he(J,"next page"));return ce.isValidElement(yt)?ce.cloneElement(yt,{disabled:!be}):yt}function ze(Xe){(Xe.type==="click"||Xe.keyCode===ge.ENTER)&&pe(ae)}var ke=null,Ve=io(t,{aria:!0,data:!0}),we=z&&ce.createElement("li",{className:"".concat(o,"-total-text")},z(m,[m===0?0:(ee-1)*U+1,ee*U>m?m:ee*U])),_e=null,Ne=xi(void 0,U,m);if(S&&m<=U)return null;var Me=[],st={rootPrefixCls:o,onClick:pe,onKeyPress:Ze,showTitle:x,itemRender:A,page:-1},ft=ee-1>0?ee-1:0,jt=ee+1<Ne?ee+1:Ne,Le=O&&O.goButton,Ae=Le,rt=null;P&&(Le&&(typeof Le=="boolean"?Ae=ce.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},M.jump_to_confirm):Ae=ce.createElement("span",{onClick:ze,onKeyUp:ze},Le),Ae=ce.createElement("li",{title:x?"".concat(M.jump_to).concat(ee,"/").concat(Ne):null,className:"".concat(o,"-simple-pager")},Ae)),rt=ce.createElement("li",{title:x?"".concat(ee,"/").concat(Ne):null,className:"".concat(o,"-simple-pager")},ce.createElement("input",{type:"text",value:ae,disabled:N,onKeyDown:We,onKeyUp:Ke,onChange:Ke,onBlur:Ue,size:3}),ce.createElement("span",{className:"".concat(o,"-slash")},"/"),Ne));var it=E?1:2;if(Ne<=3+it*2){Ne||Me.push(ce.createElement(Tl,fe({},st,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var bt=1;bt<=Ne;bt+=1)Me.push(ce.createElement(Tl,fe({},st,{key:bt,page:bt,active:ee===bt})))}else{var Tt=E?M.prev_3:M.prev_5,He=E?M.next_3:M.next_5,Be=A(de,"jump-prev",he(G,"prev page")),et=A(se,"jump-next",he(H,"next page"));$&&(ke=Be?ce.createElement("li",{title:x?Tt:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:qe,className:Z("".concat(o,"-jump-prev"),B({},"".concat(o,"-jump-prev-custom-icon"),!!G))},Be):null,_e=et?ce.createElement("li",{title:x?He:null,key:"next",onClick:Qe,tabIndex:0,onKeyDown:lt,className:Z("".concat(o,"-jump-next"),B({},"".concat(o,"-jump-next-custom-icon"),!!H))},et):null);var Et=Math.max(1,ee-it),Dt=Math.min(ee+it,Ne);ee-1<=it&&(Dt=1+it*2),Ne-ee<=it&&(Et=Ne-it*2);for(var $t=Et;$t<=Dt;$t+=1)Me.push(ce.createElement(Tl,fe({},st,{key:$t,page:$t,active:ee===$t})));if(ee-1>=it*2&&ee!==3&&(Me[0]=ce.cloneElement(Me[0],{className:Z("".concat(o,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(ke)),Ne-ee>=it*2&&ee!==Ne-2){var an=Me[Me.length-1];Me[Me.length-1]=ce.cloneElement(an,{className:Z("".concat(o,"-item-before-jump-next"),an.props.className)}),Me.push(_e)}Et!==1&&Me.unshift(ce.createElement(Tl,fe({},st,{key:1,page:1}))),Dt!==Ne&&Me.push(ce.createElement(Tl,fe({},st,{key:Ne,page:Ne})))}var cn=Je(ft);if(cn){var vn=!Ie||!Ne;cn=ce.createElement("li",{title:x?M.prev_page:null,onClick:Oe,tabIndex:vn?null:0,onKeyDown:ve,className:Z("".concat(o,"-prev"),B({},"".concat(o,"-disabled"),vn)),"aria-disabled":vn},cn)}var On=Te(jt);if(On){var Vt,Dn;P?(Vt=!be,Dn=Ie?0:null):(Vt=!be||!Ne,Dn=Vt?null:0),On=ce.createElement("li",{title:x?M.next_page:null,onClick:xe,tabIndex:Dn,onKeyDown:De,className:Z("".concat(o,"-next"),B({},"".concat(o,"-disabled"),Vt)),"aria-disabled":Vt},On)}var tr=Z(o,l,(n={},B(n,"".concat(o,"-simple"),P),B(n,"".concat(o,"-disabled"),N),n));return ce.createElement("ul",fe({className:tr,style:k,ref:X},Ve),we,cn,P?rt:Me,On,ce.createElement(f5,{locale:M,rootPrefixCls:o,disabled:N,selectComponentClass:s,selectPrefixCls:a,changeSize:Re?Ee:null,pageSize:U,pageSizeOptions:F,quickGo:ye?pe:null,goButton:Ae}))};const u$=e=>c.createElement(Ho,Object.assign({},e,{showSearch:!0,size:"small"})),d$=e=>c.createElement(Ho,Object.assign({},e,{showSearch:!0,size:"middle"}));u$.Option=Ho.Option;d$.Option=Ho.Option;const v5=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},g5=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),input:Object.assign(Object.assign({},ph(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},h5=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},y5=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${te(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:te(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign({},mh(e)),{width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},b5=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},S5=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),b5(e)),y5(e)),h5(e)),g5(e)),v5(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},C5=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Os(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},vi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},vi(e))}}}},f$=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},XE(e)),p$=e=>wt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},GE(e)),x5=mn("Pagination",e=>{const t=p$(e);return[S5(t),C5(t)]},f$),w5=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},E5=zs(["Pagination","bordered"],e=>{const t=p$(e);return[w5(t)]},f$);var $5=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 O5=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:d}=e,f=$5(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=mE(u),[,m]=xn(),{getPrefixCls:g,direction:y,pagination:b={}}=c.useContext(ut),v=g("pagination",t),[h,S,C]=x5(v),$=d??b.showSizeChanger,O=c.useMemo(()=>{const k=c.createElement("span",{className:`${v}-item-ellipsis`},"•••"),_=c.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(dv,null):c.createElement(Nb,null)),D=c.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(Nb,null):c.createElement(dv,null)),N=c.createElement("a",{className:`${v}-item-link`},c.createElement("div",{className:`${v}-item-container`},y==="rtl"?c.createElement(Ab,{className:`${v}-item-link-icon`}):c.createElement(Fb,{className:`${v}-item-link-icon`}),k)),P=c.createElement("a",{className:`${v}-item-link`},c.createElement("div",{className:`${v}-item-container`},y==="rtl"?c.createElement(Fb,{className:`${v}-item-link-icon`}):c.createElement(Ab,{className:`${v}-item-link-icon`}),k));return{prevIcon:_,nextIcon:D,jumpPrevIcon:N,jumpNextIcon:P}},[y,v]),[E]=Dd("Pagination",Tx),w=Object.assign(Object.assign({},E),l),x=bo(a),I=x==="small"||!!(p&&!x&&u),R=g("select",n),T=Z({[`${v}-mini`]:I,[`${v}-rtl`]:y==="rtl",[`${v}-bordered`]:m.wireframe},b==null?void 0:b.className,r,o,S,C),M=Object.assign(Object.assign({},b==null?void 0:b.style),i);return h(c.createElement(c.Fragment,null,m.wireframe&&c.createElement(E5,{prefixCls:v}),c.createElement(m5,Object.assign({},O,f,{style:M,prefixCls:v,selectPrefixCls:R,className:T,selectComponentClass:s||(I?u$:d$),locale:w,showSizeChanger:$}))))},I5=new Ct("antSpinMove",{to:{opacity:1}}),R5=new Ct("antRotate",{to:{transform:"rotate(405deg)"}}),P5=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Yt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:I5,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:R5,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},N5=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},T5=mn("Spin",e=>{const t=wt(e,{spinDotDefault:e.colorTextDescription});return[P5(t)]},N5);var M5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ou=null;function k5(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:cr(n)?Xn(n,{className:Z(n.props.className,r)}):cr(ou)?Xn(ou,{className:Z(ou.props.className,r)}):c.createElement("span",{className:Z(r,`${e}-dot-spin`)},c.createElement("i",{className:`${e}-dot-item`,key:1}),c.createElement("i",{className:`${e}-dot-item`,key:2}),c.createElement("i",{className:`${e}-dot-item`,key:3}),c.createElement("i",{className:`${e}-dot-item`,key:4}))}function D5(e,t){return!!e&&!!t&&!isNaN(Number(t))}const m$=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:u,children:d,fullscreen:f}=e,p=M5(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:m}=c.useContext(ut),g=m("spin",t),[y,b,v]=T5(g),[h,S]=c.useState(()=>n&&!D5(n,r));c.useEffect(()=>{if(n){const T=f_(r,()=>{S(!0)});return T(),()=>{var M;(M=T==null?void 0:T.cancel)===null||M===void 0||M.call(T)}}S(!1)},[r,n]);const C=c.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:O}=c.useContext(ut),E=Z(g,O==null?void 0:O.className,{[`${g}-sm`]:a==="small",[`${g}-lg`]:a==="large",[`${g}-spinning`]:h,[`${g}-show-text`]:!!l,[`${g}-fullscreen`]:f,[`${g}-fullscreen-show`]:f&&h,[`${g}-rtl`]:$==="rtl"},o,i,b,v),w=Z(`${g}-container`,{[`${g}-blur`]:h}),x=kn(p,["indicator"]),I=Object.assign(Object.assign({},O==null?void 0:O.style),u),R=c.createElement("div",Object.assign({},x,{style:I,className:E,"aria-live":"polite","aria-busy":h}),k5(g,e),l&&(C||f)?c.createElement("div",{className:`${g}-text`},l):null);return y(C?c.createElement("div",Object.assign({},x,{className:Z(`${g}-nested-loading`,s,b,v)}),h&&c.createElement("div",{key:"loading"},R),c.createElement("div",{className:w,key:"container"},d)):R)};m$.setDefaultIndicator=e=>{ou=e};let Qr=null,iu=e=>e(),Ju=[],Zu={};function Vb(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=Zu,a=e??uw().getPrefixCls("notification"),l=(t==null?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>l,rtl:n,maxCount:r,top:o,bottom:i}}const _5=c.forwardRef((e,t)=>{const[n,r]=c.useState(Vb),[o,i]=Ww(n),a=uw(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),u=a.getTheme(),d=()=>{r(Vb)};return c.useEffect(d,[]),c.useImperativeHandle(t,()=>{const f=Object.assign({},o);return Object.keys(f).forEach(p=>{f[p]=function(){return d(),o[p].apply(o,arguments)}}),{instance:f,sync:d}}),c.createElement(Qi,{prefixCls:l,iconPrefixCls:s,theme:u},i)});function bh(){if(!Qr){const e=document.createDocumentFragment(),t={fragment:e};Qr=t,iu(()=>{Cw(c.createElement(_5,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,bh())})}}),e)});return}Qr.instance&&(Ju.forEach(e=>{switch(e.type){case"open":{iu(()=>{Qr.instance.open(Object.assign(Object.assign({},Zu),e.config))});break}case"destroy":iu(()=>{Qr==null||Qr.instance.destroy(e.key)});break}}),Ju=[])}function L5(e){Zu=Object.assign(Object.assign({},Zu),e),iu(()=>{var t;(t=Qr==null?void 0:Qr.sync)===null||t===void 0||t.call(Qr)})}function v$(e){Ju.push({type:"open",config:e}),bh()}function z5(e){Ju.push({type:"destroy",key:e}),bh()}const j5=["success","info","warning","error"],F5={open:v$,destroy:z5,config:L5,useNotification:rk,_InternalPanelDoNotUseOrYouWillBeFired:G3},g$=F5;j5.forEach(e=>{g$[e]=t=>v$(Object.assign(Object.assign({},t),{type:e}))});var A5={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},B5=function(){var t=c.useRef([]),n=c.useRef(null);return c.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},Kb=0,H5=Mn();function V5(){var e;return H5?(e=Kb,Kb+=1):e="TEST_OR_SSR",e}const K5=function(e){var t=c.useState(),n=oe(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_progress_".concat(V5()))},[]),e||r};var Wb=function(t){var n=t.bg,r=t.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function Ub(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var W5=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&tt(r)==="object",m=p?"#FFF":void 0,g=d/2,y=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:g,cy:g,stroke:m,strokeLinecap:s,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!p)return y;var b="".concat(o,"-conic"),v=f?"".concat(180+f/2,"deg"):"0deg",h=Ub(r,(360-f)/360),S=Ub(r,1),C="conic-gradient(from ".concat(v,", ").concat(h.join(", "),")"),$="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:b},y),c.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},c.createElement(Wb,{bg:$},c.createElement(Wb,{bg:C}))))}),jl=100,dp=function(t,n,r,o,i,a,l,s,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*n;u==="round"&&o!==100&&(g+=d/2,g>=n&&(g=n-.01));var y=jl/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(i+p+m,"deg)"),transformOrigin:"".concat(y,"px ").concat(y,"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}},U5=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qb(e){var t=e??[];return Array.isArray(t)?t:[t]}var q5=function(t){var n=W(W({},A5),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,m=n.style,g=n.className,y=n.strokeColor,b=n.percent,v=nt(n,U5),h=jl/2,S=K5(r),C="".concat(S,"-gradient"),$=h-a/2,O=Math.PI*2*$,E=u>0?90+u/2:-90,w=O*((360-u)/360),x=tt(i)==="object"?i:{count:i,space:2},I=x.count,R=x.space,T=qb(b),M=qb(y),k=M.find(function(F){return F&&tt(F)==="object"}),_=k&&tt(k)==="object",D=_?"butt":p,N=dp(O,w,0,100,E,u,d,f,D,a),P=B5(),z=function(){var L=0;return T.map(function(A,G){var H=M[G]||M[M.length-1],V=dp(O,w,L,A,E,u,d,H,D,a);return L+=A,c.createElement(W5,{key:G,color:H,ptg:A,radius:$,prefixCls:o,gradientId:C,style:V,strokeLinecap:D,strokeWidth:a,gapDegree:u,ref:function(X){P[G]=X},size:jl})}).reverse()},j=function(){var L=Math.round(I*(T[0]/100)),A=100/I,G=0;return new Array(I).fill(null).map(function(H,V){var J=V<=L-1?M[0]:f,X=J&&tt(J)==="object"?"url(#".concat(C,")"):void 0,K=dp(O,w,G,A,E,u,d,J,"butt",a,R);return G+=(w-K.strokeDashoffset+R)*100/w,c.createElement("circle",{key:V,className:"".concat(o,"-circle-path"),r:$,cx:h,cy:h,stroke:X,strokeWidth:a,opacity:1,style:K,ref:function(U){P[V]=U}})})};return c.createElement("svg",fe({className:Z("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(jl," ").concat(jl),style:m,id:r,role:"presentation"},v),!I&&c.createElement("circle",{className:"".concat(o,"-circle-trail"),r:$,cx:h,cy:h,stroke:f,strokeLinecap:D,strokeWidth:l||a,style:N}),I?j():z())};function To(e){return!e||e<0?0:e>100?100:e}function ed(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const G5=e=>{let{percent:t,success:n,successPercent:r}=e;const o=To(ed({success:n,successPercent:r}));return[o,To(To(t)-o)]},X5=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||La.green,n||null]},Yd=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,s]},Y5=3,Q5=e=>Y5/e*100,J5=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:s,success:u,size:d=a}=e,[f,p]=Yd(d,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Q5(f),6));const g={width:f,height:p,fontSize:f*.15+6},y=c.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),b=o||l==="dashboard"&&"bottom"||void 0,v=Object.prototype.toString.call(e.strokeColor)==="[object Object]",h=X5({success:u,strokeColor:e.strokeColor}),S=Z(`${t}-inner`,{[`${t}-circle-gradient`]:v}),C=c.createElement(q5,{percent:G5(e),strokeWidth:m,trailWidth:m,strokeColor:h,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:b});return c.createElement("div",{className:S,style:g},f<=20?c.createElement(gi,{title:s},c.createElement("span",null,C)):c.createElement(c.Fragment,null,C,s))};var Z5=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 eL=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},tL=(e,t)=>{const{from:n=La.blue,to:r=La.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Z5(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=eL(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},nL=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:u=null,success:d}=e,{direction:f}=c.useContext(ut),p=a&&typeof a!="string"?tL(a,n):{backgroundColor:a},m=l==="square"||l==="butt"?0:void 0,g={backgroundColor:u||void 0,borderRadius:m},y=o??[-1,i||(o==="small"?6:8)],[b,v]=Yd(y,"line",{strokeWidth:i}),h=l==="square"||l==="butt"?0:"100px",S=Object.assign({width:"100%",height:v,borderRadius:m,clipPath:f==="rtl"?`inset(0 0 0 ${100-To(r)}% round ${h})`:`inset(0 ${100-To(r)}% 0 0 round ${h})`},p),C=ed(e),$={width:"100%",height:v,borderRadius:m,clipPath:f==="rtl"?`inset(0 0 0 ${100-To(C)}% round ${h})`:`inset(0 ${100-To(C)}% 0 0 round ${h})`,backgroundColor:d==null?void 0:d.strokeColor},O={width:b<0?"100%":b,height:v};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:O},c.createElement("div",{className:`${t}-inner`,style:g},c.createElement("div",{className:`${t}-bg`,style:S}),C!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:$}):null)),s)},rL=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[p,m]=Yd(f,"step",{steps:n,strokeWidth:o}),g=p/n,y=new Array(n);for(let b=0;b<n;b++){const v=Array.isArray(i)?i[b]:i;y[b]=c.createElement("div",{key:b,className:Z(`${l}-steps-item`,{[`${l}-steps-item-active`]:b<=u-1}),style:{backgroundColor:b<=u-1?v:a,width:g,height:m}})}return c.createElement("div",{className:`${l}-steps-outer`},y,s)},Gb=e=>{const t=e?"100%":"-100%";return new Ct(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},oL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Yt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${te(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${te(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Gb(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Gb(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},iL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},aL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},lL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},sL=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),cL=mn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=wt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[oL(n),iL(n),aL(n),lL(n)]},sL);var uL=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 dL=["normal","exception","active","success"],fL=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:m}=e,g=uL(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),y=c.useMemo(()=>{var M,k;const _=ed(e);return parseInt(_!==void 0?(M=_??0)===null||M===void 0?void 0:M.toString():(k=l??0)===null||k===void 0?void 0:k.toString(),10)},[l,e.success,e.successPercent]),b=c.useMemo(()=>!dL.includes(f)&&y>=100?"success":f||"normal",[f,y]),{getPrefixCls:v,direction:h,progress:S}=c.useContext(ut),C=v("progress",n),[$,O,E]=cL(C),w=c.useMemo(()=>{if(!u)return null;const M=ed(e);let k;const _=p||(N=>`${N}%`),D=d==="line";return p||b!=="exception"&&b!=="success"?k=_(To(l),To(M)):b==="exception"?k=D?c.createElement(js,null):c.createElement(Fs,null):b==="success"&&(k=D?c.createElement(vw,null):c.createElement(oh,null)),c.createElement("span",{className:`${C}-text`,title:typeof k=="string"?k:void 0},k)},[u,l,y,b,d,C,p]),x=Array.isArray(a)?a[0]:a,I=typeof a=="string"||Array.isArray(a)?a:void 0;let R;d==="line"?R=i?c.createElement(rL,Object.assign({},e,{strokeColor:I,prefixCls:C,steps:i}),w):c.createElement(nL,Object.assign({},e,{strokeColor:x,prefixCls:C,direction:h}),w):(d==="circle"||d==="dashboard")&&(R=c.createElement(J5,Object.assign({},e,{strokeColor:x,prefixCls:C,progressStatus:b}),w));const T=Z(C,`${C}-status-${b}`,`${C}-${d==="dashboard"&&"circle"||i&&"steps"||d}`,{[`${C}-inline-circle`]:d==="circle"&&Yd(s,"circle")[0]<=20,[`${C}-show-info`]:u,[`${C}-${s}`]:typeof s=="string",[`${C}-rtl`]:h==="rtl"},S==null?void 0:S.className,r,o,O,E);return $(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},S==null?void 0:S.style),m),className:T,role:"progressbar","aria-valuenow":y},kn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))});var pL=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],h$=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,m=e.onChange,g=e.onKeyDown,y=nt(e,pL),b=on(!1,{value:a,defaultValue:l}),v=oe(b,2),h=v[0],S=v[1];function C(w,x){var I=h;return s||(I=w,S(I),m==null||m(I,x)),I}function $(w){w.which===ge.LEFT?C(!1,w):w.which===ge.RIGHT&&C(!0,w),g==null||g(w)}function O(w){var x=C(!h,w);p==null||p(x,w)}var E=Z(o,i,(n={},B(n,"".concat(o,"-checked"),h),B(n,"".concat(o,"-disabled"),s),n));return c.createElement("button",fe({},y,{type:"button",role:"switch","aria-checked":h,disabled:s,className:E,ref:t,onKeyDown:$,onClick:O}),u,c.createElement("span",{className:"".concat(o,"-inner")},c.createElement("span",{className:"".concat(o,"-inner-checked")},d),c.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});h$.displayName="Switch";const mL=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,d=te(s(l).add(s(r).mul(2)).equal()),f=te(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:te(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${te(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},vL=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}}}},gL=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${te(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},hL=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,u=te(l(a).add(l(r).mul(2)).equal()),d=te(l(i).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-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"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},yL=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${te(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}}),Os(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"}})}},bL=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,s=i-l*2,u=a-l*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new gt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},SL=mn("Switch",e=>{const t=wt(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[yL(t),hL(t),gL(t),vL(t),mL(t)]},bL);var CL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y$=c.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:m}=e,g=CL(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[y,b]=on(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:v,direction:h,switch:S}=c.useContext(ut),C=c.useContext(oo),$=(o??C)||i,O=v("switch",n),E=c.createElement("div",{className:`${O}-handle`},i&&c.createElement(el,{className:`${O}-loading-icon`})),[w,x,I]=SL(O),R=bo(r),T=Z(S==null?void 0:S.className,{[`${O}-small`]:R==="small",[`${O}-loading`]:i,[`${O}-rtl`]:h==="rtl"},a,l,x,I),M=Object.assign(Object.assign({},S==null?void 0:S.style),s),k=function(){b(arguments.length<=0?void 0:arguments[0]),m==null||m.apply(void 0,arguments)};return w(c.createElement(Bs,{component:"Switch"},c.createElement(h$,Object.assign({},g,{checked:y,onChange:k,prefixCls:O,className:T,style:M,disabled:$,ref:t,loadingIcon:E}))))});y$.__ANT_SWITCH=!0;var Xo={},Xs="rc-table-internal-hook";function Sh(e){var t=c.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=c.useRef(i);l.current=i;var s=c.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=oe(s,1),d=u[0];return Pt(function(){Ar.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),c.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function Jn(e,t){var n=fn(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(m){p[m]=f[m]}),p}),r=c.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=c.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var s=c.useState({}),u=oe(s,2),d=u[1];return Pt(function(){if(!r)return;function f(p){var m=n(p);zo(l.current,m,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),l.current}function xL(){var e=c.createContext(null);function t(){return c.useContext(e)}function n(o,i){var a=yo(o),l=function(u,d){var f=a?{ref:d}:{},p=c.useRef(0),m=c.useRef(u),g=t();return g!==null?c.createElement(o,fe({},u,f)):((!i||i(m.current,u))&&(p.current+=1),m.current=u,c.createElement(e.Provider,{value:p.current},c.createElement(o,fe({},u,f))))};return a?c.forwardRef(l):l}function r(o,i){var a=yo(o),l=function(u,d){var f=a?{ref:d}:{};return t(),c.createElement(o,fe({},u,f))};return a?c.memo(c.forwardRef(l),i):c.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Ch=xL(),b$=Ch.makeImmutable,ml=Ch.responseImmutable,wL=Ch.useImmutableMark,ur=Sh();function EL(e,t){var n=c.useRef(0);n.current+=1;var r=c.useRef(e),o=[];Object.keys({}).map(function(a){var l;((l=r.current)===null||l===void 0?void 0:l[a])!==void 0&&o.push(a)}),r.current=e;var i=c.useRef([]);return o.length&&(i.current=o),c.useDebugValue(n.current),c.useDebugValue(i.current.join(", ")),n.current}var $L=c.memo(function(){var e=EL();return c.createElement("h1",null,"Render Times: ",e)});$L.displayName="RenderBlock";var S$=c.createContext({renderWithProps:!1}),OL="RC_TABLE_KEY";function IL(e){return e==null?[]:Array.isArray(e)?e:[e]}function Qd(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||IL(a).join("-")||OL;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Sv(e){return e!=null}function RL(e){return e&&tt(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function PL(e,t,n,r,o,i){var a=c.useContext(S$),l=wL(),s=Xi(function(){if(Sv(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Lr(e,u),f=d,p=void 0;if(o){var m=o(d,e,n);RL(m)?(f=m.children,p=m.props,a.renderWithProps=!0):f=m}return[f,p]},[l,e,r,t,o,n],function(u,d){if(i){var f=oe(u,2),p=f[1],m=oe(d,2),g=m[1];return i(g,p)}return a.renderWithProps?!0:!zo(u,d,!0)});return s}function NL(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function TL(e,t){return Jn(ur,function(n){var r=NL(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var ML=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():c.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function kL(e){var t,n,r,o,i,a,l,s,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,m=e.prefixCls,g=e.className,y=e.align,b=e.record,v=e.render,h=e.dataIndex,S=e.renderIndex,C=e.shouldCellUpdate,$=e.index,O=e.rowType,E=e.colSpan,w=e.rowSpan,x=e.fixLeft,I=e.fixRight,R=e.firstFixLeft,T=e.lastFixLeft,M=e.firstFixRight,k=e.lastFixRight,_=e.appendNode,D=e.additionalProps,N=D===void 0?{}:D,P=e.isSticky,z="".concat(m,"-cell"),j=Jn(ur,["supportSticky","allColumnsFixedLeft"]),F=j.supportSticky,L=j.allColumnsFixedLeft,A=PL(b,h,S,d,v,C),G=oe(A,2),H=G[0],V=G[1],J={},X=typeof x=="number"&&F,K=typeof I=="number"&&F;X&&(J.position="sticky",J.left=x),K&&(J.position="sticky",J.right=I);var q=(t=(n=(r=V==null?void 0:V.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,U=(o=(i=(a=V==null?void 0:V.rowSpan)!==null&&a!==void 0?a:N.rowSpan)!==null&&i!==void 0?i:w)!==null&&o!==void 0?o:1,Q=TL($,U),Y=oe(Q,2),ne=Y[0],ee=Y[1],ie=fn(function(he){var $e;b&&ee($,$+U-1),N==null||($e=N.onMouseEnter)===null||$e===void 0||$e.call(N,he)}),ue=fn(function(he){var $e;b&&ee(-1,-1),N==null||($e=N.onMouseLeave)===null||$e===void 0||$e.call(N,he)});if(q===0||U===0)return null;var me=(l=N.title)!==null&&l!==void 0?l:ML({rowType:O,ellipsis:f,children:H}),ae=Z(z,g,(s={},B(s,"".concat(z,"-fix-left"),X&&F),B(s,"".concat(z,"-fix-left-first"),R&&F),B(s,"".concat(z,"-fix-left-last"),T&&F),B(s,"".concat(z,"-fix-left-all"),T&&L&&F),B(s,"".concat(z,"-fix-right"),K&&F),B(s,"".concat(z,"-fix-right-first"),M&&F),B(s,"".concat(z,"-fix-right-last"),k&&F),B(s,"".concat(z,"-ellipsis"),f),B(s,"".concat(z,"-with-append"),_),B(s,"".concat(z,"-fix-sticky"),(X||K)&&P&&F),B(s,"".concat(z,"-row-hover"),!V&&ne),s),N.className,V==null?void 0:V.className),re={};y&&(re.textAlign=y);var de=W(W(W(W({},J),N.style),re),V==null?void 0:V.style),se=H;return tt(se)==="object"&&!Array.isArray(se)&&!c.isValidElement(se)&&(se=null),f&&(T||M)&&(se=c.createElement("span",{className:"".concat(z,"-content")},se)),c.createElement(u,fe({},V,N,{className:ae,style:de,title:me,scope:p,onMouseEnter:ie,onMouseLeave:ue,colSpan:q!==1?q:null,rowSpan:U!==1?U:null}),_,se)}const Zi=c.memo(kL);function xh(e,t,n,r,o,i){var a=n[e]||{},l=n[t]||{},s,u;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(u=r.right[o==="rtl"?e:t]);var d=!1,f=!1,p=!1,m=!1,g=n[t+1],y=n[e-1],b=!(i!=null&&i.children);if(o==="rtl"){if(s!==void 0){var v=y&&y.fixed==="left";m=!v&&b}else if(u!==void 0){var h=g&&g.fixed==="right";p=!h&&b}}else if(s!==void 0){var S=g&&g.fixed==="left";d=!S&&b}else if(u!==void 0){var C=y&&y.fixed==="right";f=!C&&b}return{fixLeft:s,fixRight:u,lastFixLeft:d,firstFixRight:f,lastFixRight:p,firstFixLeft:m,isSticky:r.isSticky}}var C$=c.createContext({});function DL(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,s=Jn(ur,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=c.useContext(C$),p=f.scrollColumnIndex,m=f.stickyOffsets,g=f.flattenColumns,y=f.columns,b=n+i-1,v=b+1===p?i+1:i,h=xh(n,n+v-1,g,m,d,y==null?void 0:y[n]);return c.createElement(Zi,fe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:a,render:function(){return r}},h))}var _L=["children"];function LL(e){var t=e.children,n=nt(e,_L);return c.createElement("tr",n,t)}function Jd(e){var t=e.children;return t}Jd.Row=LL;Jd.Cell=DL;function zL(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=Jn(ur,"prefixCls"),a=r.length-1,l=r[a],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?a:null,columns:o}},[l,r,a,n,o]);return c.createElement(C$.Provider,{value:s},c.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const Tc=ml(zL);var x$=Jd;function jL(e){return null}function FL(e){return null}function w$(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),s=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&s)for(var u=0;u<t[r].length;u+=1)w$(e,t[r][u],n+1,r,o,i,u)}function E$(e,t,n,r){var o=c.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];w$(i,l,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(s,u){return{record:s,indent:0,index:u}})},[e,t,n,r]);return o}function $$(e,t,n,r){var o=Jn(ur,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,l=o.expandedKeys,s=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,p=o.expandRowByClick,m=o.rowClassName,g=a==="nest",y=a==="row"&&(!d||d(e)),b=y||g,v=l&&l.has(t),h=s&&e&&e[s],S=fn(u),C=f==null?void 0:f(e,n),$=C==null?void 0:C.onClick,O=function(I){p&&b&&u(e,I);for(var R=arguments.length,T=new Array(R>1?R-1:0),M=1;M<R;M++)T[M-1]=arguments[M];$==null||$.apply(void 0,[I].concat(T))},E;typeof m=="string"?E=m:typeof m=="function"&&(E=m(e,n,r));var w=Qd(i);return W(W({},o),{},{columnsKey:w,nestExpandable:g,expanded:v,hasNestChildren:h,record:e,onTriggerExpand:S,rowSupportExpand:y,expandable:b,rowProps:W(W({},C),{},{className:Z(E,C==null?void 0:C.className),onClick:O})})}function O$(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,s=e.isEmpty,u=Jn(ur,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,m=u.componentWidth,g=u.horizonScroll,y=n;return(s?g&&m:p)&&(y=c.createElement("div",{style:{width:m-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),c.createElement(r,{className:i,style:{display:a?null:"none"}},c.createElement(Zi,{component:o,prefixCls:t,colSpan:l},y))}function I$(e,t,n,r,o){var i=e.record,a=e.prefixCls,l=e.columnsKey,s=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,p=e.expandIcon,m=e.expanded,g=e.hasNestChildren,y=e.onTriggerExpand,b=l[n],v=s[n],h;n===(u||0)&&d&&(h=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),p({prefixCls:a,expanded:m,expandable:g,record:i,onExpand:y})));var S;return t.onCell&&(S=t.onCell(i,o)),{key:b,fixedInfo:v,appendCellNode:h,additionalCellProps:S||{}}}function R$(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.indent,s=l===void 0?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=$$(r,a,o,s),m=p.prefixCls,g=p.flattenColumns,y=p.expandedRowClassName,b=p.expandedRowRender,v=p.rowProps,h=p.expanded,S=p.rowSupportExpand,C=c.useRef(!1);C.current||(C.current=h);var $=c.createElement(u,fe({},v,{"data-row-key":a,className:Z(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(s),v==null?void 0:v.className),style:W(W({},n),v==null?void 0:v.style)}),g.map(function(x,I){var R=x.render,T=x.dataIndex,M=x.className,k=I$(p,x,I,s,o),_=k.key,D=k.fixedInfo,N=k.appendCellNode,P=k.additionalCellProps;return c.createElement(Zi,fe({className:M,ellipsis:x.ellipsis,align:x.align,scope:x.rowScope,component:x.rowScope?f:d,prefixCls:m,key:_,record:r,index:o,renderIndex:i,dataIndex:T,render:R,shouldCellUpdate:x.shouldCellUpdate},D,{appendNode:N,additionalProps:P}))})),O;if(S&&(C.current||h)){var E=b(r,o,s+1,h),w=y&&y(r,o,s);O=c.createElement(O$,{expanded:h,className:Z("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(s+1),w),prefixCls:m,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},E)}return c.createElement(c.Fragment,null,$,O)}R$.displayName="BodyRow";const AL=ml(R$);function BL(e){var t=e.columnKey,n=e.onColumnResize,r=c.useRef();return c.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),c.createElement(Vr,{data:t},c.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},c.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function HL(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return c.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},c.createElement(Vr.Collection,{onBatchResize:function(i){i.forEach(function(a){var l=a.data,s=a.size;r(l,s.offsetWidth)})}},n.map(function(o){return c.createElement(BL,{key:o,columnKey:o,onColumnResize:r})})))}function P$(e){var t=e.data,n=e.measureColumnWidth,r=Jn(ur,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,s=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,p=E$(t,d,u,s),m=c.useRef({renderWithProps:!1}),g=i(["body","wrapper"],"tbody"),y=i(["body","row"],"tr"),b=i(["body","cell"],"td"),v=i(["body","cell"],"th"),h;t.length?h=p.map(function(C,$){var O=C.record,E=C.indent,w=C.index,x=s(O,$);return c.createElement(AL,{key:x,rowKey:x,record:O,index:$,renderIndex:w,rowComponent:y,cellComponent:b,scopeCellComponent:v,getRowKey:s,indent:E})}):h=c.createElement(O$,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:y,cellComponent:b,colSpan:l.length,isEmpty:!0},f);var S=Qd(l);return c.createElement(S$.Provider,{value:m.current},c.createElement(g,{className:"".concat(o,"-tbody")},n&&c.createElement(HL,{prefixCls:o,columnsKey:S,onColumnResize:a}),h))}P$.displayName="Body";const VL=ml(P$);var KL=["expandable"],rs="RC_TABLE_INTERNAL_COL_DEFINE";function WL(e){var t=e.expandable,n=nt(e,KL),r;return"expandable"in e?r=W(W({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var UL=["columnType"];function N$(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],i=r||n.length,a=!1,l=i-1;l>=0;l-=1){var s=t[l],u=n&&n[l],d=u&&u[rs];if(s||d||a){var f=d||{};f.columnType;var p=nt(f,UL);o.unshift(c.createElement("col",fe({key:l,style:{width:s}},p))),a=!0}}return c.createElement("colgroup",null,o)}var qL=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function GL(e,t){return c.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var T$=c.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,p=e.stickyBottomOffset,m=e.stickyClassName,g=e.onScroll,y=e.maxContentScroll,b=e.children,v=nt(e,qL),h=Jn(ur,["prefixCls","scrollbarSize","isSticky"]),S=h.prefixCls,C=h.scrollbarSize,$=h.isSticky,O=$&&!d?0:C,E=c.useRef(null),w=c.useCallback(function(D){Cs(t,D),Cs(E,D)},[]);c.useEffect(function(){var D;function N(P){var z=P,j=z.currentTarget,F=z.deltaX;F&&(g({currentTarget:j,scrollLeft:j.scrollLeft+F}),P.preventDefault())}return(D=E.current)===null||D===void 0||D.addEventListener("wheel",N),function(){var P;(P=E.current)===null||P===void 0||P.removeEventListener("wheel",N)}},[]);var x=c.useMemo(function(){return i.every(function(D){return D.width})},[i]),I=i[i.length-1],R={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(S,"-cell-scrollbar")}}},T=c.useMemo(function(){return O?[].concat(Se(o),[R]):o},[O,o]),M=c.useMemo(function(){return O?[].concat(Se(i),[R]):i},[O,i]),k=c.useMemo(function(){var D=s.right,N=s.left;return W(W({},s),{},{left:u==="rtl"?[].concat(Se(N.map(function(P){return P+O})),[0]):N,right:u==="rtl"?D:[].concat(Se(D.map(function(P){return P+O})),[0]),isSticky:$})},[O,s,$]),_=GL(a,l);return c.createElement("div",{style:W({overflow:"hidden"},$?{top:f,bottom:p}:{}),ref:w,className:Z(n,B({},m,!!m))},c.createElement("table",{style:{tableLayout:"fixed",visibility:r||_?null:"hidden"}},(!r||!y||x)&&c.createElement(N$,{colWidths:_?[].concat(Se(_),[O]):[],columCount:l+1,columns:M}),b(W(W({},v),{},{stickyOffsets:k,columns:T,flattenColumns:M}))))});T$.displayName="FixedHolder";const Xb=c.memo(T$);function M$(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,l=e.onHeaderRow,s=e.index,u=Jn(ur,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,p;l&&(p=l(t.map(function(g){return g.column}),s));var m=Qd(t.map(function(g){return g.column}));return c.createElement(o,p,t.map(function(g,y){var b=g.column,v=xh(g.colStart,g.colEnd,r,n,f,b),h;return b&&b.onHeaderCell&&(h=g.column.onHeaderCell(b)),c.createElement(Zi,fe({},g,{scope:b.title?g.colSpan>1?"colgroup":"col":null,ellipsis:b.ellipsis,align:b.align,component:b.title?i:a,prefixCls:d,key:m[y]},v,{additionalProps:h,rowType:"header"}))}))}M$.displayName="HeaderRow";function XL(e){var t=[];function n(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[s]=t[s]||[];var u=l,d=a.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},m=1,g=f.children;return g&&g.length>0&&(m=n(g,u,s+1).reduce(function(y,b){return y+b},0),p.hasSubColumns=!0),"colSpan"in f&&(m=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=m,p.colEnd=p.colStart+m-1,t[s].push(p),u+=m,m});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(s){!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=r-l)})},i=0;i<r;i+=1)o(i);return t}function YL(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=Jn(ur,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,s=c.useMemo(function(){return XL(n)},[n]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th"),p=l(["header","cell"],"td");return c.createElement(u,{className:"".concat(a,"-thead")},s.map(function(m,g){var y=c.createElement(M$,{key:g,flattenColumns:r,cells:m,stickyOffsets:t,rowComponent:d,cellComponent:f,tdCellComponent:p,onHeaderRow:o,index:g});return y}))}const Yb=ml(YL);function Qb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function QL(e,t,n){return c.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(p){var m=Qb(t,p.width);m?r+=m:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,s=a/o,u=0,d=e.map(function(p){var m=W({},p),g=Qb(t,m.width);if(g)m.width=g;else{var y=Math.floor(s);m.width=l===1?a:y,a-=y,l-=1}return u+=m.width,m});if(u<i){var f=i/u;a=i,d.forEach(function(p,m){var g=Math.floor(p.width*f);p.width=m===d.length-1?a:g,a-=g})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var JL=["children"],ZL=["fixed"];function wh(e){return xr(e).filter(function(t){return c.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=nt(r,JL),a=W({key:n},i);return o&&(a.children=wh(o)),a})}function Cv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&tt(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,l="".concat(t,"-").concat(o),s=r.children;return s&&s.length>0?[].concat(Se(n),Se(Cv(s,l).map(function(u){return W({fixed:a},u)}))):[].concat(Se(n),[W(W({key:l},r),{},{fixed:a})])},[])}function ez(e){return e.map(function(t){var n=t.fixed,r=nt(t,ZL),o=n;return n==="left"?o="right":n==="right"&&(o="left"),W({fixed:o},r)})}function tz(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,g=e.expandRowByClick,y=e.columnWidth,b=e.fixed,v=e.scrollWidth,h=e.clientWidth,S=c.useMemo(function(){return r||wh(o)},[r,o]),C=c.useMemo(function(){if(i){var R,T=S.slice();if(!T.includes(Xo)){var M=p||0;M>=0&&T.splice(M,0,Xo)}var k=T.indexOf(Xo);T=T.filter(function(P,z){return P!==Xo||z===k});var _=S[k],D;(b==="left"||b)&&!p?D="left":(b==="right"||b)&&p===S.length?D="right":D=_?_.fixed:null;var N=(R={},B(R,rs,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),B(R,"title",l),B(R,"fixed",D),B(R,"className","".concat(n,"-row-expand-icon-cell")),B(R,"width",y),B(R,"render",function(z,j,F){var L=s(j,F),A=a.has(L),G=f?f(j):!0,H=d({prefixCls:n,expanded:A,expandable:G,record:j,onExpand:u});return g?c.createElement("span",{onClick:function(J){return J.stopPropagation()}},H):H}),R);return T.map(function(P){return P===Xo?N:P})}return S.filter(function(P){return P!==Xo})},[i,S,s,a,d,m]),$=c.useMemo(function(){var R=C;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,C,m]),O=c.useMemo(function(){return m==="rtl"?ez(Cv($)):Cv($)},[$,m,v]),E=QL(O,v,h),w=oe(E,2),x=w[0],I=w[1];return[$,x,I]}function nz(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return c.createElement("span",{className:Z(l,"".concat(n,"-row-spaced"))});var s=function(d){o(r,d),d.stopPropagation()};return c.createElement("span",{className:Z(l,(t={},B(t,"".concat(n,"-row-expanded"),i),B(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:s})}function rz(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function oz(e,t,n){var r=WL(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,p=o||nz,m=f||"children",g=c.useMemo(function(){return s?"row":e.expandable&&e.internalHooks===Xs&&e.expandable.__PARENT_RENDER_ICON__||t.some(function($){return $&&tt($)==="object"&&$[m]})?"nest":!1},[!!s,t]),y=c.useState(function(){return a||(l?rz(t,n,m):[])}),b=oe(y,2),v=b[0],h=b[1],S=c.useMemo(function(){return new Set(i||v||[])},[i,v]),C=c.useCallback(function($){var O=n($,t.indexOf($)),E,w=S.has(O);w?(S.delete(O),E=Se(S)):E=[].concat(Se(S),[O]),h(E),u&&u(!w,$),d&&d(E)},[n,S,t,u,d]);return[r,g,S,p,m,C]}function iz(e,t,n,r){var o=e.map(function(i,a){return xh(a,a,e,t,n,r==null?void 0:r[a])});return Xi(function(){return o},[o],function(i,a){return!zo(i,a)})}function k$(e){var t=c.useRef(e),n=c.useState({}),r=oe(n,2),o=r[1],i=c.useRef(null),a=c.useRef([]);function l(s){a.current.push(s);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(p){t.current=p(t.current)}),i.current=null,f!==t.current&&o({})}})}return c.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function az(e){var t=c.useRef(null),n=c.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return c.useEffect(function(){return r},[]),[o,i]}function lz(){var e=c.useState(-1),t=oe(e,2),n=t[0],r=t[1],o=c.useState(-1),i=oe(o,2),a=i[0],l=i[1],s=c.useCallback(function(u,d){r(u),l(d)},[]);return[n,a,s]}var Jb=Mn()?window:null;function sz(e,t){var n=tt(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,s=l===void 0?0:l,u=n.getContainer,d=u===void 0?function(){return Jb}:u,f=d()||Jb;return c.useMemo(function(){var p=!!e;return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:f}},[s,o,a,t,f])}function cz(e,t,n){var r=c.useMemo(function(){for(var o=[],i=[],a=0,l=0,s=0;s<t;s+=1)if(n==="rtl"){i[s]=l,l+=e[s]||0;var u=t-s-1;o[u]=a,a+=e[u]||0}else{o[s]=a,a+=e[s]||0;var d=t-s-1;i[d]=l,l+=e[d]||0}return{left:o,right:i}},[e,t,n]);return r}function Zb(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)}var uz=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,s=t.container,u=Jn(ur,"prefixCls"),d=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,f=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,p=d&&f*(f/d),m=c.useRef(),g=k$({scrollLeft:0,isHiddenScrollBar:!1}),y=oe(g,2),b=y[0],v=y[1],h=c.useRef({delta:0,x:0}),S=c.useState(!1),C=oe(S,2),$=C[0],O=C[1],E=function(){O(!1)},w=function(M){M.persist(),h.current.delta=M.pageX-b.scrollLeft,h.current.x=0,O(!0),M.preventDefault()},x=function(M){var k,_=M||((k=window)===null||k===void 0?void 0:k.event),D=_.buttons;if(!$||D===0){$&&O(!1);return}var N=h.current.x+M.pageX-h.current.x-h.current.delta;N<=0&&(N=0),N+p>=f&&(N=f-p),a({scrollLeft:N/f*(d+2)}),h.current.x=M.pageX},I=function(){if(i.current){var M=jb(i.current).top,k=M+i.current.offsetHeight,_=s===window?document.documentElement.scrollTop+window.innerHeight:jb(s).top+s.clientHeight;k-Gm()<=_||M>=_-l?v(function(D){return W(W({},D),{},{isHiddenScrollBar:!0})}):v(function(D){return W(W({},D),{},{isHiddenScrollBar:!1})})}},R=function(M){v(function(k){return W(W({},k),{},{scrollLeft:M/d*f||0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:R}}),c.useEffect(function(){var T=Nc(document.body,"mouseup",E,!1),M=Nc(document.body,"mousemove",x,!1);return I(),function(){T.remove(),M.remove()}},[p,$]),c.useEffect(function(){var T=Nc(s,"scroll",I,!1),M=Nc(window,"resize",I,!1);return function(){T.remove(),M.remove()}},[s]),c.useEffect(function(){b.isHiddenScrollBar||v(function(T){var M=i.current;return M?W(W({},T),{},{scrollLeft:M.scrollLeft/M.scrollWidth*M.clientWidth}):T})},[b.isHiddenScrollBar]),d<=f||!p||b.isHiddenScrollBar?null:c.createElement("div",{style:{height:Gm(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},c.createElement("div",{onMouseDown:w,ref:m,className:Z("".concat(u,"-sticky-scroll-bar"),B({},"".concat(u,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const dz=c.forwardRef(uz);var D$="rc-table",fz=[],pz={};function mz(){return"No Data"}function vz(e,t){var n,r=W({rowKey:"key",prefixCls:D$,emptyText:mz},e),o=r.prefixCls,i=r.className,a=r.rowClassName,l=r.style,s=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,m=r.title,g=r.footer,y=r.summary,b=r.caption,v=r.id,h=r.showHeader,S=r.components,C=r.emptyText,$=r.onRow,O=r.onHeaderRow,E=r.internalHooks,w=r.transformColumns,x=r.internalRefs,I=r.tailor,R=r.getContainerWidth,T=r.sticky,M=s||fz,k=!!M.length,_=E===Xs,D=c.useCallback(function(ht,xt){return Lr(S,ht)||xt},[S]),N=c.useMemo(function(){return typeof u=="function"?u:function(ht){var xt=ht&&ht[u];return xt}},[u]),P=D(["body"]),z=lz(),j=oe(z,3),F=j[0],L=j[1],A=j[2],G=oz(r,M,N),H=oe(G,6),V=H[0],J=H[1],X=H[2],K=H[3],q=H[4],U=H[5],Q=d==null?void 0:d.x,Y=c.useState(0),ne=oe(Y,2),ee=ne[0],ie=ne[1],ue=tz(W(W(W({},r),V),{},{expandable:!!V.expandedRowRender,columnTitle:V.columnTitle,expandedKeys:X,getRowKey:N,onTriggerExpand:U,expandIcon:K,expandIconColumnIndex:V.expandIconColumnIndex,direction:p,scrollWidth:_&&I&&typeof Q=="number"?Q:null,clientWidth:ee}),_?w:null),me=oe(ue,3),ae=me[0],re=me[1],de=me[2],se=de??Q,he=c.useMemo(function(){return{columns:ae,flattenColumns:re}},[ae,re]),$e=c.useRef(),Ce=c.useRef(),ye=c.useRef(),We=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:$e.current,scrollTo:function(xt){var Pn;if(ye.current instanceof HTMLElement){var yn=xt.index,_t=xt.top,Rr=xt.key;if(_t){var Pr;(Pr=ye.current)===null||Pr===void 0||Pr.scrollTo({top:_t})}else{var zn,fr=Rr??N(M[yn]);(zn=ye.current.querySelector('[data-row-key="'.concat(fr,'"]')))===null||zn===void 0||zn.scrollIntoView()}}else(Pn=ye.current)!==null&&Pn!==void 0&&Pn.scrollTo&&ye.current.scrollTo(xt)}}});var Ke=c.useRef(),Ue=c.useState(!1),Ee=oe(Ue,2),pe=Ee[0],Ie=Ee[1],be=c.useState(!1),Re=oe(be,2),Oe=Re[0],xe=Re[1],Fe=k$(new Map),Qe=oe(Fe,2),Ze=Qe[0],ve=Qe[1],De=Qd(re),qe=De.map(function(ht){return Ze.get(ht)}),lt=c.useMemo(function(){return qe},[qe.join("_")]),Je=cz(lt,re.length,p),Te=d&&Sv(d.y),ze=d&&Sv(se)||!!V.fixed,ke=ze&&re.some(function(ht){var xt=ht.fixed;return xt}),Ve=c.useRef(),we=sz(T,o),_e=we.isSticky,Ne=we.offsetHeader,Me=we.offsetSummary,st=we.offsetScroll,ft=we.stickyClassName,jt=we.container,Le=c.useMemo(function(){return y==null?void 0:y(M)},[y,M]),Ae=(Te||_e)&&c.isValidElement(Le)&&Le.type===Jd&&Le.props.fixed,rt,it,bt;Te&&(it={overflowY:"scroll",maxHeight:d.y}),ze&&(rt={overflowX:"auto"},Te||(it={overflowY:"hidden"}),bt={width:se===!0?"auto":se,minWidth:"100%"});var Tt=c.useCallback(function(ht,xt){jd($e.current)&&ve(function(Pn){if(Pn.get(ht)!==xt){var yn=new Map(Pn);return yn.set(ht,xt),yn}return Pn})},[]),He=az(),Be=oe(He,2),et=Be[0],Et=Be[1];function Dt(ht,xt){xt&&(typeof xt=="function"?xt(ht):xt.scrollLeft!==ht&&(xt.scrollLeft=ht,xt.scrollLeft!==ht&&setTimeout(function(){xt.scrollLeft=ht},0)))}var $t=fn(function(ht){var xt=ht.currentTarget,Pn=ht.scrollLeft,yn=p==="rtl",_t=typeof Pn=="number"?Pn:xt.scrollLeft,Rr=xt||pz;if(!Et()||Et()===Rr){var Pr;et(Rr),Dt(_t,Ce.current),Dt(_t,ye.current),Dt(_t,Ke.current),Dt(_t,(Pr=Ve.current)===null||Pr===void 0?void 0:Pr.setScrollLeft)}var zn=xt||Ce.current;if(zn){var fr=zn.scrollWidth,co=zn.clientWidth;if(fr===co){Ie(!1),xe(!1);return}yn?(Ie(-_t<fr-co),xe(-_t>0)):(Ie(_t>0),xe(_t<fr-co))}}),an=function(){ze&&ye.current?$t({currentTarget:ye.current}):(Ie(!1),xe(!1))},cn=function(xt){var Pn=xt.width,yn=$e.current?$e.current.offsetWidth:Pn;_&&R&&$e.current&&(yn=R($e.current,yn)||yn),yn!==ee&&(an(),ie(yn))},vn=c.useRef(!1);c.useEffect(function(){vn.current&&an()},[ze,s,ae.length]),c.useEffect(function(){vn.current=!0},[]);var On=c.useState(0),Vt=oe(On,2),Dn=Vt[0],tr=Vt[1],Xe=c.useState(!0),yt=oe(Xe,2),Ot=yt[0],qt=yt[1];c.useEffect(function(){(!I||!_)&&(ye.current instanceof Element?tr(Xm(ye.current).width):tr(Xm(We.current).width)),qt(Ym("position","sticky"))},[]),c.useEffect(function(){_&&x&&(x.body.current=ye.current)});var gn=c.useCallback(function(ht){return c.createElement(c.Fragment,null,c.createElement(Yb,ht),Ae==="top"&&c.createElement(Tc,ht,Le))},[Ae,Le]),Ir=c.useCallback(function(ht){return c.createElement(Tc,ht,Le)},[Le]),dr=D(["table"],"table"),hn=c.useMemo(function(){return f||(ke?se==="max-content"?"auto":"fixed":Te||_e||re.some(function(ht){var xt=ht.ellipsis;return xt})?"fixed":"auto")},[Te,ke,re,f,_e]),nr,ct={colWidths:lt,columCount:re.length,stickyOffsets:Je,onHeaderRow:O,fixHeader:Te,scroll:d},je=c.useMemo(function(){return k?null:typeof C=="function"?C():C},[k,C]),at=c.createElement(VL,{data:M,measureColumnWidth:Te||ze||_e}),mt=c.createElement(N$,{colWidths:re.map(function(ht){var xt=ht.width;return xt}),columns:re}),St=b!=null?c.createElement("caption",{className:"".concat(o,"-caption")},b):void 0,Nt=io(r,{data:!0}),Qt=io(r,{aria:!0});if(Te||_e){var _n;typeof P=="function"?(_n=P(M,{scrollbarSize:Dn,ref:ye,onScroll:$t}),ct.colWidths=re.map(function(ht,xt){var Pn=ht.width,yn=xt===re.length-1?Pn-Dn:Pn;return typeof yn=="number"&&!Number.isNaN(yn)?yn:0})):_n=c.createElement("div",{style:W(W({},rt),it),onScroll:$t,ref:ye,className:Z("".concat(o,"-body"))},c.createElement(dr,fe({style:W(W({},bt),{},{tableLayout:hn})},Qt),St,mt,at,!Ae&&Le&&c.createElement(Tc,{stickyOffsets:Je,flattenColumns:re,columns:ae},Le)));var Ln=W(W(W({noData:!M.length,maxContentScroll:ze&&se==="max-content"},ct),he),{},{direction:p,stickyClassName:ft,onScroll:$t});nr=c.createElement(c.Fragment,null,h!==!1&&c.createElement(Xb,fe({},Ln,{stickyTopOffset:Ne,className:"".concat(o,"-header"),ref:Ce}),gn),_n,Ae&&Ae!=="top"&&c.createElement(Xb,fe({},Ln,{stickyBottomOffset:Me,className:"".concat(o,"-summary"),ref:Ke}),Ir),_e&&ye.current&&ye.current instanceof Element&&c.createElement(dz,{ref:Ve,offsetScroll:st,scrollBodyRef:ye,onScroll:$t,container:jt}))}else nr=c.createElement("div",{style:W(W({},rt),it),className:Z("".concat(o,"-content")),onScroll:$t,ref:ye},c.createElement(dr,fe({style:W(W({},bt),{},{tableLayout:hn})},Qt),St,mt,h!==!1&&c.createElement(Yb,fe({},ct,he)),at,Le&&c.createElement(Tc,{stickyOffsets:Je,flattenColumns:re,columns:ae},Le)));var In=c.createElement("div",fe({className:Z(o,i,(n={},B(n,"".concat(o,"-rtl"),p==="rtl"),B(n,"".concat(o,"-ping-left"),pe),B(n,"".concat(o,"-ping-right"),Oe),B(n,"".concat(o,"-layout-fixed"),f==="fixed"),B(n,"".concat(o,"-fixed-header"),Te),B(n,"".concat(o,"-fixed-column"),ke),B(n,"".concat(o,"-scroll-horizontal"),ze),B(n,"".concat(o,"-has-fix-left"),re[0]&&re[0].fixed),B(n,"".concat(o,"-has-fix-right"),re[re.length-1]&&re[re.length-1].fixed==="right"),n)),style:l,id:v,ref:$e},Nt),m&&c.createElement(Zb,{className:"".concat(o,"-title")},m(M)),c.createElement("div",{ref:We,className:"".concat(o,"-container")},nr),g&&c.createElement(Zb,{className:"".concat(o,"-footer")},g(M)));ze&&(In=c.createElement(Vr,{onResize:cn},In));var Rn=iz(re,Je,p,ae),rr=c.useMemo(function(){return{scrollX:se,prefixCls:o,getComponent:D,scrollbarSize:Dn,direction:p,fixedInfoList:Rn,isSticky:_e,supportSticky:Ot,componentWidth:ee,fixHeader:Te,fixColumn:ke,horizonScroll:ze,tableLayout:hn,rowClassName:a,expandedRowClassName:V.expandedRowClassName,expandIcon:K,expandableType:J,expandRowByClick:V.expandRowByClick,expandedRowRender:V.expandedRowRender,onTriggerExpand:U,expandIconColumnIndex:V.expandIconColumnIndex,indentSize:V.indentSize,allColumnsFixedLeft:re.every(function(ht){return ht.fixed==="left"}),emptyNode:je,columns:ae,flattenColumns:re,onColumnResize:Tt,hoverStartRow:F,hoverEndRow:L,onHover:A,rowExpandable:V.rowExpandable,onRow:$,getRowKey:N,expandedKeys:X,childrenColumnName:q}},[se,o,D,Dn,p,Rn,_e,Ot,ee,Te,ke,ze,hn,a,V.expandedRowClassName,K,J,V.expandRowByClick,V.expandedRowRender,U,V.expandIconColumnIndex,V.indentSize,je,ae,re,Tt,F,L,A,V.rowExpandable,$,N,X,q]);return c.createElement(ur.Provider,{value:rr},In)}var gz=c.forwardRef(vz);function _$(e){return b$(gz,e)}var vl=_$();vl.EXPAND_COLUMN=Xo;vl.INTERNAL_HOOKS=Xs;vl.Column=jL;vl.ColumnGroup=FL;vl.Summary=x$;var L$=Sh(null),z$=Sh(null);function hz(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function yz(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.renderIndex,l=e.record,s=e.style,u=e.className,d=e.inverse,f=e.getHeight,p=n.render,m=n.dataIndex,g=n.className,y=n.width,b=Jn(z$,["columnsOffset"]),v=b.columnsOffset,h=I$(t,n,r,o,i),S=h.key,C=h.fixedInfo,$=h.appendCellNode,O=h.additionalCellProps,E=O.style,w=O.colSpan,x=w===void 0?1:w,I=O.rowSpan,R=I===void 0?1:I,T=r-1,M=hz(T,x,v),k=x>1?y-M:0,_=W(W(W({},E),s),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:k,pointerEvents:"auto"}),D=c.useMemo(function(){return d?R<=1:x===0||R===0||R>1},[R,x,d]);D?_.visibility="hidden":d&&(_.height=f==null?void 0:f(R));var N=D?function(){return null}:p,P={};return(R===0||x===0)&&(P.rowSpan=1,P.colSpan=1),c.createElement(Zi,fe({className:Z(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:S,record:l,index:i,renderIndex:a,dataIndex:m,render:N,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:$,additionalProps:W(W({},O),{},{style:_},P)}))}var bz=["data","index","className","rowKey","style","extra","getHeight"],Sz=c.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,l=e.extra,s=e.getHeight,u=nt(e,bz),d=n.record,f=n.indent,p=n.index,m=Jn(ur,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=m.scrollX,y=m.flattenColumns,b=m.prefixCls,v=m.fixColumn,h=m.componentWidth,S=$$(d,i,r,f),C=S.rowSupportExpand,$=S.expanded,O=S.rowProps,E=S.expandedRowRender,w=S.expandedRowClassName,x;if(C&&$){var I=E(d,r,f+1,$),R=w==null?void 0:w(d,r,f),T={};v&&(T={style:B({},"--virtual-width","".concat(h,"px"))});var M="".concat(b,"-expanded-row-cell");x=c.createElement("div",{className:Z("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),R)},c.createElement(Zi,{component:"div",prefixCls:b,className:Z(M,B({},"".concat(M,"-fixed"),v)),additionalProps:T},I))}var k=W(W({},a),{},{width:g});l&&(k.position="absolute",k.pointerEvents="none");var _=c.createElement("div",fe({},O,u,{ref:C?null:t,className:Z(o,"".concat(b,"-row"),O==null?void 0:O.className,B({},"".concat(b,"-row-extra"),l)),style:W(W({},k),O==null?void 0:O.style)}),y.map(function(D,N){return c.createElement(yz,{key:N,rowInfo:S,column:D,colIndex:N,indent:f,index:r,renderIndex:p,record:d,inverse:l,getHeight:s})}));return C?c.createElement("div",{ref:t},_,x):_}),eS=ml(Sz),Cz=c.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Jn(ur,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,s=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,p=o.scrollX,m=Jn(L$),g=m.sticky,y=m.scrollY,b=m.listItemHeight,v=c.useRef(),h=E$(n,d,s,l),S=c.useMemo(function(){var R=0;return i.map(function(T){var M=T.width,k=T.key;return R+=M,[k,M,R]})},[i]),C=c.useMemo(function(){return S.map(function(R){return R[2]})},[S]);c.useEffect(function(){S.forEach(function(R){var T=oe(R,2),M=T[0],k=T[1];a(M,k)})},[S]),c.useImperativeHandle(t,function(){var R={scrollTo:function(M){var k;(k=v.current)===null||k===void 0||k.scrollTo(M)}};return Object.defineProperty(R,"scrollLeft",{get:function(){var M;return((M=v.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var k;(k=v.current)===null||k===void 0||k.scrollTo({left:M})}}),R});var $=function(T,M){var k,_=(k=h[M])===null||k===void 0?void 0:k.record,D=T.onCell;if(D){var N,P=D(_,M);return(N=P==null?void 0:P.rowSpan)!==null&&N!==void 0?N:1}return 1},O=function(T){var M=T.start,k=T.end,_=T.getSize,D=T.offsetY;if(k<0)return null;for(var N=i.filter(function(K){return $(K,M)===0}),P=M,z=function(q){if(N=N.filter(function(U){return $(U,q)===0}),!N.length)return P=q,1},j=M;j>=0&&!z(j);j-=1);for(var F=i.filter(function(K){return $(K,k)!==1}),L=k,A=function(q){if(F=F.filter(function(U){return $(U,q)!==1}),!F.length)return L=Math.max(q-1,k),1},G=k;G<h.length&&!A(G);G+=1);for(var H=[],V=function(q){var U=h[q];if(!U)return 1;i.some(function(Q){return $(Q,q)>1})&&H.push(q)},J=P;J<=L;J+=1)V(J);var X=H.map(function(K){var q=h[K],U=l(q.record,K),Q=function(ee){var ie=K+ee-1,ue=l(h[ie].record,ie),me=_(U,ue);return me.bottom-me.top},Y=_(U);return c.createElement(eS,{key:K,data:q,rowKey:U,index:K,style:{top:-D+Y.top},extra:!0,getHeight:Q})});return X},E=c.useMemo(function(){return{columnsOffset:C}},[C]),w="".concat(u,"-tbody"),x;if(h.length){var I={};g&&(I.position="sticky",I.bottom=0,tt(g)==="object"&&g.offsetScroll&&(I.bottom=g.offsetScroll)),x=c.createElement(Kd,{fullHeight:!1,ref:v,styles:{horizontalScrollBar:I},className:Z(w,"".concat(w,"-virtual")),height:y,itemHeight:b||24,data:h,itemKey:function(T){return l(T.record)},scrollWidth:p,onVirtualScroll:function(T){var M=T.x;r({scrollLeft:M})},extraRender:O},function(R,T,M){var k=l(R.record,T);return c.createElement(eS,fe({data:R,rowKey:k,index:T},M))})}else x=c.createElement("div",{className:Z("".concat(u,"-placeholder"))},c.createElement(Zi,{component:"div",prefixCls:u},f));return c.createElement(z$.Provider,{value:E},x)}),xz=ml(Cz),wz=function(t,n){var r=n.ref,o=n.onScroll;return c.createElement(xz,{ref:r,data:t,onScroll:o})};function Ez(e,t){var n=e.columns,r=e.scroll,o=e.sticky,i=e.prefixCls,a=i===void 0?D$:i,l=e.className,s=e.listItemHeight,u=e.components,d=r||{},f=d.x,p=d.y;typeof f!="number"&&(f=1),typeof p!="number"&&(p=500);var m=c.useMemo(function(){return{sticky:o,scrollY:p,listItemHeight:s}},[o,p,s]);return c.createElement(L$.Provider,{value:m},c.createElement(vl,fe({},e,{className:Z(l,"".concat(a,"-virtual")),scroll:W(W({},r),{},{x:f}),components:W(W({},u),{},{body:wz}),columns:n,internalHooks:Xs,tailor:!0,ref:t})))}var $z=c.forwardRef(Ez);function j$(e){return b$($z,e)}j$();function Oz(e){return null}function Iz(e){return null}var Eh=c.createContext(null),Rz=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],s=0;s<r;s+=1){var u;l.push(c.createElement("span",{key:s,className:Z(a,(u={},B(u,"".concat(a,"-start"),o[s]),B(u,"".concat(a,"-end"),i[s]),u))}))}return c.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const Pz=c.memo(Rz);var Nz=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],tS="open",nS="close",Tz="---",Mz=function(e){lo(n,e);var t=so(n);function n(){var r;En(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={dragNodeHighlight:!1},r.selectHandle=void 0,r.cacheIndent=void 0,r.onSelectorClick=function(l){var s=r.props.context.onNodeClick;s(l,un(r.props)),r.isSelectable()?r.onSelect(l):r.onCheck(l)},r.onSelectorDoubleClick=function(l){var s=r.props.context.onNodeDoubleClick;s(l,un(r.props))},r.onSelect=function(l){if(!r.isDisabled()){var s=r.props.context.onNodeSelect;s(l,un(r.props))}},r.onCheck=function(l){if(!r.isDisabled()){var s=r.props,u=s.disableCheckbox,d=s.checked,f=r.props.context.onNodeCheck;if(!(!r.isCheckable()||u)){var p=!d;f(l,un(r.props),p)}}},r.onMouseEnter=function(l){var s=r.props.context.onNodeMouseEnter;s(l,un(r.props))},r.onMouseLeave=function(l){var s=r.props.context.onNodeMouseLeave;s(l,un(r.props))},r.onContextMenu=function(l){var s=r.props.context.onNodeContextMenu;s(l,un(r.props))},r.onDragStart=function(l){var s=r.props.context.onNodeDragStart;l.stopPropagation(),r.setState({dragNodeHighlight:!0}),s(l,ot(r));try{l.dataTransfer.setData("text/plain","")}catch{}},r.onDragEnter=function(l){var s=r.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),s(l,ot(r))},r.onDragOver=function(l){var s=r.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),s(l,ot(r))},r.onDragLeave=function(l){var s=r.props.context.onNodeDragLeave;l.stopPropagation(),s(l,ot(r))},r.onDragEnd=function(l){var s=r.props.context.onNodeDragEnd;l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,ot(r))},r.onDrop=function(l){var s=r.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,ot(r))},r.onExpand=function(l){var s=r.props,u=s.loading,d=s.context.onNodeExpand;u||d(l,un(r.props))},r.setSelectHandle=function(l){r.selectHandle=l},r.getNodeState=function(){var l=r.props.expanded;return r.isLeaf()?null:l?tS:nS},r.hasChildren=function(){var l=r.props.eventKey,s=r.props.context.keyEntities,u=hr(s,l)||{},d=u.children;return!!(d||[]).length},r.isLeaf=function(){var l=r.props,s=l.isLeaf,u=l.loaded,d=r.props.context.loadData,f=r.hasChildren();return s===!1?!1:s||!d&&!f||d&&u&&!f},r.isDisabled=function(){var l=r.props.disabled,s=r.props.context.disabled;return!!(s||l)},r.isCheckable=function(){var l=r.props.checkable,s=r.props.context.checkable;return!s||l===!1?!1:s},r.syncLoadData=function(l){var s=l.expanded,u=l.loading,d=l.loaded,f=r.props.context,p=f.loadData,m=f.onNodeLoad;u||p&&s&&!r.isLeaf()&&!r.hasChildren()&&!d&&m(un(r.props))},r.isDraggable=function(){var l=r.props,s=l.data,u=l.context.draggable;return!!(u&&(!u.nodeDraggable||u.nodeDraggable(s)))},r.renderDragHandler=function(){var l=r.props.context,s=l.draggable,u=l.prefixCls;return s!=null&&s.icon?c.createElement("span",{className:"".concat(u,"-draggable-icon")},s.icon):null},r.renderSwitcherIconDom=function(l){var s=r.props.switcherIcon,u=r.props.context.switcherIcon,d=s||u;return typeof d=="function"?d(W(W({},r.props),{},{isLeaf:l})):d},r.renderSwitcher=function(){var l=r.props.expanded,s=r.props.context.prefixCls;if(r.isLeaf()){var u=r.renderSwitcherIconDom(!0);return u!==!1?c.createElement("span",{className:Z("".concat(s,"-switcher"),"".concat(s,"-switcher-noop"))},u):null}var d=Z("".concat(s,"-switcher"),"".concat(s,"-switcher_").concat(l?tS:nS)),f=r.renderSwitcherIconDom(!1);return f!==!1?c.createElement("span",{onClick:r.onExpand,className:d},f):null},r.renderCheckbox=function(){var l=r.props,s=l.checked,u=l.halfChecked,d=l.disableCheckbox,f=r.props.context.prefixCls,p=r.isDisabled(),m=r.isCheckable();if(!m)return null;var g=typeof m!="boolean"?m:null;return c.createElement("span",{className:Z("".concat(f,"-checkbox"),s&&"".concat(f,"-checkbox-checked"),!s&&u&&"".concat(f,"-checkbox-indeterminate"),(p||d)&&"".concat(f,"-checkbox-disabled")),onClick:r.onCheck},g)},r.renderIcon=function(){var l=r.props.loading,s=r.props.context.prefixCls;return c.createElement("span",{className:Z("".concat(s,"-iconEle"),"".concat(s,"-icon__").concat(r.getNodeState()||"docu"),l&&"".concat(s,"-icon_loading"))})},r.renderSelector=function(){var l=r.state.dragNodeHighlight,s=r.props,u=s.title,d=u===void 0?Tz:u,f=s.selected,p=s.icon,m=s.loading,g=s.data,y=r.props.context,b=y.prefixCls,v=y.showIcon,h=y.icon,S=y.loadData,C=y.titleRender,$=r.isDisabled(),O="".concat(b,"-node-content-wrapper"),E;if(v){var w=p||h;E=w?c.createElement("span",{className:Z("".concat(b,"-iconEle"),"".concat(b,"-icon__customize"))},typeof w=="function"?w(r.props):w):r.renderIcon()}else S&&m&&(E=r.renderIcon());var x;typeof d=="function"?x=d(g):C?x=C(g):x=d;var I=c.createElement("span",{className:"".concat(b,"-title")},x);return c.createElement("span",{ref:r.setSelectHandle,title:typeof d=="string"?d:"",className:Z("".concat(O),"".concat(O,"-").concat(r.getNodeState()||"normal"),!$&&(f||l)&&"".concat(b,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},E,I,r.renderDropIndicator())},r.renderDropIndicator=function(){var l=r.props,s=l.disabled,u=l.eventKey,d=r.props.context,f=d.draggable,p=d.dropLevelOffset,m=d.dropPosition,g=d.prefixCls,y=d.indent,b=d.dropIndicatorRender,v=d.dragOverNodeKey,h=d.direction,S=!!f,C=!s&&S&&v===u,$=y??r.cacheIndent;return r.cacheIndent=y,C?b({dropPosition:m,dropLevelOffset:p,indent:$,prefixCls:g,direction:h}):null},r}return $n(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,i=this.props.context.selectable;return typeof o=="boolean"?o:i}},{key:"render",value:function(){var o,i=this.props,a=i.eventKey,l=i.className,s=i.style,u=i.dragOver,d=i.dragOverGapTop,f=i.dragOverGapBottom,p=i.isLeaf,m=i.isStart,g=i.isEnd,y=i.expanded,b=i.selected,v=i.checked,h=i.halfChecked,S=i.loading,C=i.domRef,$=i.active;i.data;var O=i.onMouseMove,E=i.selectable,w=nt(i,Nz),x=this.props.context,I=x.prefixCls,R=x.filterTreeNode,T=x.keyEntities,M=x.dropContainerKey,k=x.dropTargetKey,_=x.draggingNodeKey,D=this.isDisabled(),N=io(w,{aria:!0,data:!0}),P=hr(T,a)||{},z=P.level,j=g[g.length-1],F=this.isDraggable(),L=!D&&F,A=_===a,G=E!==void 0?{"aria-selected":!!E}:void 0;return c.createElement("div",fe({ref:C,className:Z(l,"".concat(I,"-treenode"),(o={},B(o,"".concat(I,"-treenode-disabled"),D),B(o,"".concat(I,"-treenode-switcher-").concat(y?"open":"close"),!p),B(o,"".concat(I,"-treenode-checkbox-checked"),v),B(o,"".concat(I,"-treenode-checkbox-indeterminate"),h),B(o,"".concat(I,"-treenode-selected"),b),B(o,"".concat(I,"-treenode-loading"),S),B(o,"".concat(I,"-treenode-active"),$),B(o,"".concat(I,"-treenode-leaf-last"),j),B(o,"".concat(I,"-treenode-draggable"),F),B(o,"dragging",A),B(o,"drop-target",k===a),B(o,"drop-container",M===a),B(o,"drag-over",!D&&u),B(o,"drag-over-gap-top",!D&&d),B(o,"drag-over-gap-bottom",!D&&f),B(o,"filter-node",R&&R(un(this.props))),o)),style:s,draggable:L,"aria-grabbed":A,onDragStart:L?this.onDragStart:void 0,onDragEnter:F?this.onDragEnter:void 0,onDragOver:F?this.onDragOver:void 0,onDragLeave:F?this.onDragLeave:void 0,onDrop:F?this.onDrop:void 0,onDragEnd:F?this.onDragEnd:void 0,onMouseMove:O},G,N),c.createElement(Pz,{prefixCls:I,level:z,isStart:m,isEnd:g}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(c.Component),il=function(t){return c.createElement(Eh.Consumer,null,function(n){return c.createElement(Mz,fe({},t,{context:n}))})};il.displayName="TreeNode";il.isTreeNode=1;function fo(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function wo(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function $h(e){return e.split("-")}function kz(e,t){var n=[],r=hr(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,s=a.children;n.push(l),o(s)})}return o(r.children),n}function Dz(e){if(e.parent){var t=$h(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function _z(e){var t=$h(e.pos);return Number(t[t.length-1])===0}function rS(e,t,n,r,o,i,a,l,s,u){var d,f=e.clientX,p=e.clientY,m=e.target.getBoundingClientRect(),g=m.top,y=m.height,b=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),v=(b-12)/r,h=hr(l,n.props.eventKey);if(p<g+y/2){var S=a.findIndex(function(_){return _.key===h.key}),C=S<=0?0:S-1,$=a[C].key;h=hr(l,$)}var O=h.key,E=h,w=h.key,x=0,I=0;if(!s.includes(O))for(var R=0;R<v&&Dz(h);R+=1)h=h.parent,I+=1;var T=t.props.data,M=h.node,k=!0;return _z(h)&&h.level===0&&p<g+y/2&&i({dragNode:T,dropNode:M,dropPosition:-1})&&h.key===n.props.eventKey?x=-1:(E.children||[]).length&&s.includes(w)?i({dragNode:T,dropNode:M,dropPosition:0})?x=0:k=!1:I===0?v>-1.5?i({dragNode:T,dropNode:M,dropPosition:1})?x=1:k=!1:i({dragNode:T,dropNode:M,dropPosition:0})?x=0:i({dragNode:T,dropNode:M,dropPosition:1})?x=1:k=!1:i({dragNode:T,dropNode:M,dropPosition:1})?x=1:k=!1,{dropPosition:x,dropLevelOffset:I,dropTargetKey:h.key,dropTargetPos:h.pos,dragOverNodeKey:w,dropContainerKey:x===0?null:((d=h.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:k}}function oS(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function fp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(tt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ut(!1,"`checkedKeys` is not an array or an object"),null;return t}function xv(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=hr(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Se(n)}function Lz(e){const[t,n]=c.useState(null);return[c.useCallback((i,a,l)=>{const s=t??i,u=Math.min(s||0,i),d=Math.max(s||0,i),f=a.slice(u,d+1).map(g=>e(g)),p=f.some(g=>!l.has(g)),m=[];return f.forEach(g=>{p?(l.has(g)||m.push(g),l.add(g)):(l.delete(g),m.push(g))}),n(p?d:null),m},[t]),i=>{n(i)}]}const Uo={},wv="SELECT_ALL",Ev="SELECT_INVERT",$v="SELECT_NONE",iS=[],F$=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Se(n),Se(F$(e,r[e]))))}),n},zz=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:g,fixed:y,renderCell:b,hideSelectAll:v,checkStrictly:h=!0}=t||{},{prefixCls:S,data:C,pageData:$,getRecordByKey:O,getRowKey:E,expandType:w,childrenColumnName:x,locale:I,getPopupContainer:R}=e,T=Yi(),[M,k]=Lz(U=>U),[_,D]=on(r||o||iS,{value:r}),N=c.useRef(new Map),P=c.useCallback(U=>{if(n){const Q=new Map;U.forEach(Y=>{let ne=O(Y);!ne&&N.current.has(Y)&&(ne=N.current.get(Y)),Q.set(Y,ne)}),N.current=Q}},[O,n]);c.useEffect(()=>{P(_)},[_]);const{keyEntities:z}=c.useMemo(()=>{if(h)return{keyEntities:null};let U=C;if(n){const Q=new Set(C.map((ne,ee)=>E(ne,ee))),Y=Array.from(N.current).reduce((ne,ee)=>{let[ie,ue]=ee;return Q.has(ie)?ne:ne.concat(ue)},[]);U=[].concat(Se(U),Se(Y))}return gh(U,{externalGetKey:E,childrenPropName:x})},[C,E,h,x,n]),j=c.useMemo(()=>F$(x,$),[x,$]),F=c.useMemo(()=>{const U=new Map;return j.forEach((Q,Y)=>{const ne=E(Q,Y),ee=(i?i(Q):null)||{};U.set(ne,ee)}),U},[j,E,i]),L=c.useCallback(U=>{var Q;return!!(!((Q=F.get(E(U)))===null||Q===void 0)&&Q.disabled)},[F,E]),[A,G]=c.useMemo(()=>{if(h)return[_||[],[]];const{checkedKeys:U,halfCheckedKeys:Q}=Aa(_,!0,z,L);return[U||[],Q]},[_,h,z,L]),H=c.useMemo(()=>{const U=m==="radio"?A.slice(0,1):A;return new Set(U)},[A,m]),V=c.useMemo(()=>m==="radio"?new Set:new Set(G),[G,m]);c.useEffect(()=>{t||D(iS)},[!!t]);const J=c.useCallback((U,Q)=>{let Y,ne;P(U),n?(Y=U,ne=U.map(ee=>N.current.get(ee))):(Y=[],ne=[],U.forEach(ee=>{const ie=O(ee);ie!==void 0&&(Y.push(ee),ne.push(ie))})),D(Y),a==null||a(Y,ne,{type:Q})},[D,O,a,n]),X=c.useCallback((U,Q,Y,ne)=>{if(l){const ee=Y.map(ie=>O(ie));l(O(U),Q,ee,ne)}J(Y,"single")},[l,O,J]),K=c.useMemo(()=>!g||v?null:(g===!0?[wv,Ev,$v]:g).map(Q=>Q===wv?{key:"all",text:I.selectionAll,onSelect(){J(C.map((Y,ne)=>E(Y,ne)).filter(Y=>{const ne=F.get(Y);return!(ne!=null&&ne.disabled)||H.has(Y)}),"all")}}:Q===Ev?{key:"invert",text:I.selectInvert,onSelect(){const Y=new Set(H);$.forEach((ee,ie)=>{const ue=E(ee,ie),me=F.get(ue);me!=null&&me.disabled||(Y.has(ue)?Y.delete(ue):Y.add(ue))});const ne=Array.from(Y);u&&(T.deprecated(!1,"onSelectInvert","onChange"),u(ne)),J(ne,"invert")}}:Q===$v?{key:"none",text:I.selectNone,onSelect(){d==null||d(),J(Array.from(H).filter(Y=>{const ne=F.get(Y);return ne==null?void 0:ne.disabled}),"none")}}:Q).map(Q=>Object.assign(Object.assign({},Q),{onSelect:function(){for(var Y,ne,ee=arguments.length,ie=new Array(ee),ue=0;ue<ee;ue++)ie[ue]=arguments[ue];(ne=Q.onSelect)===null||ne===void 0||(Y=ne).call.apply(Y,[Q].concat(ie)),k(null)}})),[g,H,$,E,u,J]);return[c.useCallback(U=>{var Q;if(!t)return U.filter(Ee=>Ee!==Uo);let Y=Se(U);const ne=new Set(H),ee=j.map(E).filter(Ee=>!F.get(Ee).disabled),ie=ee.every(Ee=>ne.has(Ee)),ue=ee.some(Ee=>ne.has(Ee)),me=()=>{const Ee=[];ie?ee.forEach(Ie=>{ne.delete(Ie),Ee.push(Ie)}):ee.forEach(Ie=>{ne.has(Ie)||(ne.add(Ie),Ee.push(Ie))});const pe=Array.from(ne);s==null||s(!ie,pe.map(Ie=>O(Ie)),Ee.map(Ie=>O(Ie))),J(pe,"all"),k(null)};let ae,re;if(m!=="radio"){let Ee;if(K){const Oe={getPopupContainer:R,items:K.map((xe,Fe)=>{const{key:Qe,text:Ze,onSelect:ve}=xe;return{key:Qe??Fe,onClick:()=>{ve==null||ve(ee)},label:Ze}})};Ee=c.createElement("div",{className:`${S}-selection-extra`},c.createElement(yh,{menu:Oe,getPopupContainer:R},c.createElement("span",null,c.createElement(fE,null))))}const pe=j.map((Oe,xe)=>{const Fe=E(Oe,xe),Qe=F.get(Fe)||{};return Object.assign({checked:ne.has(Fe)},Qe)}).filter(Oe=>{let{disabled:xe}=Oe;return xe}),Ie=!!pe.length&&pe.length===j.length,be=Ie&&pe.every(Oe=>{let{checked:xe}=Oe;return xe}),Re=Ie&&pe.some(Oe=>{let{checked:xe}=Oe;return xe});re=c.createElement(ol,{checked:Ie?be:!!j.length&&ie,indeterminate:Ie?!be&&Re:!ie&&ue,onChange:me,disabled:j.length===0||Ie,"aria-label":Ee?"Custom selection":"Select all",skipGroup:!0}),ae=!v&&c.createElement("div",{className:`${S}-selection`},re,Ee)}let de;m==="radio"?de=(Ee,pe,Ie)=>{const be=E(pe,Ie),Re=ne.has(be);return{node:c.createElement(qs,Object.assign({},F.get(be),{checked:Re,onClick:Oe=>Oe.stopPropagation(),onChange:Oe=>{ne.has(be)||X(be,!0,[be],Oe.nativeEvent)}})),checked:Re}}:de=(Ee,pe,Ie)=>{var be;const Re=E(pe,Ie),Oe=ne.has(Re),xe=V.has(Re),Fe=F.get(Re);let Qe;return w==="nest"?Qe=xe:Qe=(be=Fe==null?void 0:Fe.indeterminate)!==null&&be!==void 0?be:xe,{node:c.createElement(ol,Object.assign({},Fe,{indeterminate:Qe,checked:Oe,skipGroup:!0,onClick:Ze=>Ze.stopPropagation(),onChange:Ze=>{let{nativeEvent:ve}=Ze;const{shiftKey:De}=ve,qe=ee.findIndex(Je=>Je===Re),lt=A.some(Je=>ee.includes(Je));if(De&&h&<){const Je=M(qe,ee,ne),Te=Array.from(ne);f==null||f(!Oe,Te.map(ze=>O(ze)),Je.map(ze=>O(ze))),J(Te,"multiple")}else{const Je=A;if(h){const Te=Oe?fo(Je,Re):wo(Je,Re);X(Re,!Oe,Te,ve)}else{const Te=Aa([].concat(Se(Je),[Re]),!0,z,L),{checkedKeys:ze,halfCheckedKeys:ke}=Te;let Ve=ze;if(Oe){const we=new Set(ze);we.delete(Re),Ve=Aa(Array.from(we),{checked:!1,halfCheckedKeys:ke},z,L).checkedKeys}X(Re,!Oe,Ve,ve)}}k(Oe?null:qe)}})),checked:Oe}};const se=(Ee,pe,Ie)=>{const{node:be,checked:Re}=de(Ee,pe,Ie);return b?b(Re,pe,Ie,be):be};if(!Y.includes(Uo))if(Y.findIndex(Ee=>{var pe;return((pe=Ee[rs])===null||pe===void 0?void 0:pe.columnType)==="EXPAND_COLUMN"})===0){const[Ee,...pe]=Y;Y=[Ee,Uo].concat(Se(pe))}else Y=[Uo].concat(Se(Y));const he=Y.indexOf(Uo);Y=Y.filter((Ee,pe)=>Ee!==Uo||pe===he);const $e=Y[he-1],Ce=Y[he+1];let ye=y;ye===void 0&&((Ce==null?void 0:Ce.fixed)!==void 0?ye=Ce.fixed:($e==null?void 0:$e.fixed)!==void 0&&(ye=$e.fixed)),ye&&$e&&((Q=$e[rs])===null||Q===void 0?void 0:Q.columnType)==="EXPAND_COLUMN"&&$e.fixed===void 0&&($e.fixed=ye);const We=Z(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:g&&m==="checkbox"}),Ke=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(re):t.columnTitle:ae,Ue={fixed:ye,width:p,className:`${S}-selection-column`,title:Ke(),render:se,onCell:t.onCell,[rs]:{className:We}};return Y.map(Ee=>Ee===Uo?Ue:Ee)},[E,j,t,A,H,V,p,K,w,F,f,X,L]),H]};function jz(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Fz(e,t){return c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):jz(r,n)})}function Az(e){return function(n){let{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:l}=n;const s=`${r}-row-expand-icon`;return c.createElement("button",{type:"button",onClick:u=>{o(i,u),u.stopPropagation()},className:Z(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Bz(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s}return i}}function Wi(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ys(e,t){return t?`${t}-${e}`:`${e}`}function Zd(e,t){return typeof e=="function"?e(t):e}function Hz(e,t){const n=Zd(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var Vz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Kz=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Vz}))};const Wz=c.forwardRef(Kz);function Uz(e){const t=c.useRef(e),n=ih();return[()=>t.current,r=>{t.current=r,n()}]}function qz(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return c.createElement("div",{style:o})}function A$(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Gz(e,t){var n=c.useState(!1),r=oe(n,2),o=r[0],i=r[1];Pt(function(){if(o)return e(),function(){t()}},[o]),Pt(function(){return i(!0),function(){i(!1)}},[])}var Xz=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],B$=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,s=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=nt(t,Xz),m=c.useState(!0),g=oe(m,2),y=g[0],b=g[1],v=c.useContext(Eh),h=v.prefixCls,S=a&&l!=="hide";Pt(function(){a&&S!==y&&b(S)},[a]);var C=function(){a&&s()},$=c.useRef(!1),O=function(){a&&!$.current&&($.current=!0,u())};Gz(C,O);var E=function(x){S===x&&O()};return a?c.createElement(Bo,fe({ref:n,visible:y},i,{motionAppear:l==="show",onVisibleChanged:E}),function(w,x){var I=w.className,R=w.style;return c.createElement("div",{ref:x,className:Z("".concat(h,"-treenode-motion"),I),style:R},a.map(function(T){var M=fe({},(A$(T.data),T.data)),k=T.title,_=T.key,D=T.isStart,N=T.isEnd;delete M.children;var P=ns(_,f);return c.createElement(il,fe({},M,P,{title:k,active:d,data:T.data,key:_,isStart:D,isEnd:N}))}))}):c.createElement(il,fe({domRef:n,className:r,style:o},p,{active:d}))};B$.displayName="MotionTreeNode";var Yz=c.forwardRef(B$);function Qz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var l=new Map;i.forEach(function(u){l.set(u,!0)});var s=a.filter(function(u){return!l.has(u)});return s.length===1?s[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function aS(e,t,n){var r=e.findIndex(function(l){return l.key===n}),o=e[r+1],i=t.findIndex(function(l){return l.key===n});if(o){var a=t.findIndex(function(l){return l.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var Jz=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],lS={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zz=function(){},Ui="RC_TREE_MOTION_".concat(Math.random()),Ov={key:Ui},H$={key:Ui,level:0,index:0,pos:"0",node:Ov,nodes:[Ov]},sS={parent:null,children:[],pos:H$.pos,data:Ov,title:null,key:Ui,isStart:[],isEnd:[]};function cS(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function uS(e){var t=e.key,n=e.pos;return Gs(t,n)}function ej(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var V$=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,m=e.dragOverNodeKey,g=e.dropPosition,y=e.motion,b=e.height,v=e.itemHeight,h=e.virtual,S=e.focusable,C=e.activeItem,$=e.focused,O=e.tabIndex,E=e.onKeyDown,w=e.onFocus,x=e.onBlur,I=e.onActiveChange,R=e.onListChangeStart,T=e.onListChangeEnd,M=nt(e,Jz),k=c.useRef(null),_=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(de){k.current.scrollTo(de)},getIndentWidth:function(){return _.current.offsetWidth}}});var D=c.useState(o),N=oe(D,2),P=N[0],z=N[1],j=c.useState(r),F=oe(j,2),L=F[0],A=F[1],G=c.useState(r),H=oe(G,2),V=H[0],J=H[1],X=c.useState([]),K=oe(X,2),q=K[0],U=K[1],Q=c.useState(null),Y=oe(Q,2),ne=Y[0],ee=Y[1],ie=c.useRef(r);ie.current=r;function ue(){var re=ie.current;A(re),J(re),U([]),ee(null),T()}Pt(function(){z(o);var re=Qz(P,o);if(re.key!==null)if(re.add){var de=L.findIndex(function(We){var Ke=We.key;return Ke===re.key}),se=cS(aS(L,r,re.key),h,b,v),he=L.slice();he.splice(de+1,0,sS),J(he),U(se),ee("show")}else{var $e=r.findIndex(function(We){var Ke=We.key;return Ke===re.key}),Ce=cS(aS(r,L,re.key),h,b,v),ye=r.slice();ye.splice($e+1,0,sS),J(ye),U(Ce),ee("hide")}else L!==r&&(A(r),J(r))},[o,r]),c.useEffect(function(){p||ue()},[p]);var me=y?V:r,ae={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:g,keyEntities:d};return c.createElement(c.Fragment,null,$&&C&&c.createElement("span",{style:lS,"aria-live":"assertive"},ej(C)),c.createElement("div",null,c.createElement("input",{style:lS,disabled:S===!1||f,tabIndex:S!==!1?O:null,onKeyDown:E,onFocus:w,onBlur:x,value:"",onChange:Zz,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:_,className:"".concat(n,"-indent-unit")}))),c.createElement(Kd,fe({},M,{data:me,itemKey:uS,height:b,fullHeight:!1,virtual:h,itemHeight:v,prefixCls:"".concat(n,"-list"),ref:k,onVisibleChange:function(de,se){var he=new Set(de),$e=se.filter(function(Ce){return!he.has(Ce)});$e.some(function(Ce){return uS(Ce)===Ui})&&ue()}}),function(re){var de=re.pos,se=fe({},(A$(re.data),re.data)),he=re.title,$e=re.key,Ce=re.isStart,ye=re.isEnd,We=Gs($e,de);delete se.key,delete se.children;var Ke=ns(We,ae);return c.createElement(Yz,fe({},se,Ke,{title:he,active:!!C&&$e===C.key,pos:de,data:re.data,isStart:Ce,isEnd:ye,motion:y,motionNodes:$e===Ui?q:null,motionType:ne,onMotionStart:R,onMotionEnd:ue,treeNodeRequiredProps:ae,onMouseMove:function(){I(null)}}))}))});V$.displayName="NodeList";var tj=10,Oh=function(e){lo(n,e);var t=so(n);function n(){var r;En(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.destroyed=!1,r.delayedDragEnterLogic=void 0,r.loadingRetryTimes={},r.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:rl()},r.dragStartMousePosition=null,r.dragNode=void 0,r.currentMouseOverDroppableNodeKey=null,r.listRef=c.createRef(),r.onNodeDragStart=function(l,s){var u=r.state,d=u.expandedKeys,f=u.keyEntities,p=r.props.onDragStart,m=s.props.eventKey;r.dragNode=s,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var g=fo(d,m);r.setState({draggingNodeKey:m,dragChildrenKeys:kz(m,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(g),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:l,node:un(s.props)})},r.onNodeDragEnter=function(l,s){var u=r.state,d=u.expandedKeys,f=u.keyEntities,p=u.dragChildrenKeys,m=u.flattenNodes,g=u.indent,y=r.props,b=y.onDragEnter,v=y.onExpand,h=y.allowDrop,S=y.direction,C=s.props,$=C.pos,O=C.eventKey,E=ot(r),w=E.dragNode;if(r.currentMouseOverDroppableNodeKey!==O&&(r.currentMouseOverDroppableNodeKey=O),!w){r.resetDragState();return}var x=rS(l,w,s,g,r.dragStartMousePosition,h,m,f,d,S),I=x.dropPosition,R=x.dropLevelOffset,T=x.dropTargetKey,M=x.dropContainerKey,k=x.dropTargetPos,_=x.dropAllowed,D=x.dragOverNodeKey;if(p.indexOf(T)!==-1||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(N){clearTimeout(r.delayedDragEnterLogic[N])}),w.props.eventKey!==s.props.eventKey&&(l.persist(),r.delayedDragEnterLogic[$]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var N=Se(d),P=hr(f,s.props.eventKey);P&&(P.children||[]).length&&(N=wo(d,s.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(N),v==null||v(N,{node:un(s.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),w.props.eventKey===T&&R===0){r.resetDragState();return}r.setState({dragOverNodeKey:D,dropPosition:I,dropLevelOffset:R,dropTargetKey:T,dropContainerKey:M,dropTargetPos:k,dropAllowed:_}),b==null||b({event:l,node:un(s.props),expandedKeys:d})},r.onNodeDragOver=function(l,s){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,p=u.keyEntities,m=u.expandedKeys,g=u.indent,y=r.props,b=y.onDragOver,v=y.allowDrop,h=y.direction,S=ot(r),C=S.dragNode;if(C){var $=rS(l,C,s,g,r.dragStartMousePosition,v,f,p,m,h),O=$.dropPosition,E=$.dropLevelOffset,w=$.dropTargetKey,x=$.dropContainerKey,I=$.dropAllowed,R=$.dropTargetPos,T=$.dragOverNodeKey;d.indexOf(w)!==-1||!I||(C.props.eventKey===w&&E===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():O===r.state.dropPosition&&E===r.state.dropLevelOffset&&w===r.state.dropTargetKey&&x===r.state.dropContainerKey&&R===r.state.dropTargetPos&&I===r.state.dropAllowed&&T===r.state.dragOverNodeKey||r.setState({dropPosition:O,dropLevelOffset:E,dropTargetKey:w,dropContainerKey:x,dropTargetPos:R,dropAllowed:I,dragOverNodeKey:T}),b==null||b({event:l,node:un(s.props)}))}},r.onNodeDragLeave=function(l,s){r.currentMouseOverDroppableNodeKey===s.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:un(s.props)})},r.onWindowDragEnd=function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDragEnd=function(l,s){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:un(s.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDrop=function(l,s){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,m=f.dropPosition,g=f.dropTargetKey,y=f.dropTargetPos,b=f.dropAllowed;if(b){var v=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var h=W(W({},ns(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:hr(r.state.keyEntities,g).node}),S=p.indexOf(g)!==-1;Ut(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=$h(y),$={event:l,node:un(h),dragNode:r.dragNode?un(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:m!==0,dropPosition:m+Number(C[C.length-1])};d||v==null||v($),r.dragNode=null}}},r.cleanDragState=function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null},r.triggerExpandActionExpand=function(l,s){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=s.expanded,m=s.key,g=s.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var y=f.filter(function(v){return v.key===m})[0],b=un(W(W({},ns(m,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(p?fo(d,m):wo(d,m)),r.onNodeExpand(l,b)}},r.onNodeClick=function(l,s){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)},r.onNodeDoubleClick=function(l,s){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)},r.onNodeSelect=function(l,s){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,m=r.props,g=m.onSelect,y=m.multiple,b=s.selected,v=s[p.key],h=!b;h?y?u=wo(u,v):u=[v]:u=fo(u,v);var S=u.map(function(C){var $=hr(f,C);return $?$.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:h,node:s,selectedNodes:S,nativeEvent:l.nativeEvent})},r.onNodeCheck=function(l,s,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,m=d.halfCheckedKeys,g=r.props,y=g.checkStrictly,b=g.onCheck,v=s.key,h,S={event:"check",node:s,checked:u,nativeEvent:l.nativeEvent};if(y){var C=u?wo(p,v):fo(p,v),$=fo(m,v);h={checked:C,halfChecked:$},S.checkedNodes=C.map(function(R){return hr(f,R)}).filter(function(R){return R}).map(function(R){return R.node}),r.setUncontrolledState({checkedKeys:C})}else{var O=Aa([].concat(Se(p),[v]),!0,f),E=O.checkedKeys,w=O.halfCheckedKeys;if(!u){var x=new Set(E);x.delete(v);var I=Aa(Array.from(x),{checked:!1,halfCheckedKeys:w},f);E=I.checkedKeys,w=I.halfCheckedKeys}h=E,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=w,E.forEach(function(R){var T=hr(f,R);if(T){var M=T.node,k=T.pos;S.checkedNodes.push(M),S.checkedNodesPositions.push({node:M,pos:k})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:w})}b==null||b(h,S)},r.onNodeLoad=function(l){var s=l.key,u=new Promise(function(d,f){r.setState(function(p){var m=p.loadedKeys,g=m===void 0?[]:m,y=p.loadingKeys,b=y===void 0?[]:y,v=r.props,h=v.loadData,S=v.onLoad;if(!h||g.indexOf(s)!==-1||b.indexOf(s)!==-1)return null;var C=h(l);return C.then(function(){var $=r.state.loadedKeys,O=wo($,s);S==null||S(O,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(E){return{loadingKeys:fo(E.loadingKeys,s)}}),d()}).catch(function($){if(r.setState(function(E){return{loadingKeys:fo(E.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=tj){var O=r.state.loadedKeys;Ut(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:wo(O,s)}),d()}f($)}),{loadingKeys:wo(b,s)}})});return u.catch(function(){}),u},r.onNodeMouseEnter=function(l,s){var u=r.props.onMouseEnter;u==null||u({event:l,node:s})},r.onNodeMouseLeave=function(l,s){var u=r.props.onMouseLeave;u==null||u({event:l,node:s})},r.onNodeContextMenu=function(l,s){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:s}))},r.onFocus=function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)},r.onBlur=function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)},r.getTreeNodeRequiredProps=function(){var l=r.state,s=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,p=l.checkedKeys,m=l.halfCheckedKeys,g=l.dragOverNodeKey,y=l.dropPosition,b=l.keyEntities;return{expandedKeys:s||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:p||[],halfCheckedKeys:m||[],dragOverNodeKey:g,dropPosition:y,keyEntities:b}},r.setExpandedKeys=function(l){var s=r.state,u=s.treeData,d=s.fieldNames,f=ip(u,l,d);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)},r.onNodeExpand=function(l,s){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,p=d.fieldNames,m=r.props,g=m.onExpand,y=m.loadData,b=s.expanded,v=s[p.key];if(!f){var h=u.indexOf(v),S=!b;if(Ut(b&&h!==-1||!b&&h===-1,"Expand state not sync with index check"),S?u=wo(u,v):u=fo(u,v),r.setExpandedKeys(u),g==null||g(u,{node:s,expanded:S,nativeEvent:l.nativeEvent}),S&&y){var C=r.onNodeLoad(s);C&&C.then(function(){var $=ip(r.state.treeData,u,p);r.setUncontrolledState({flattenNodes:$})}).catch(function(){var $=r.state.expandedKeys,O=fo($,v);r.setExpandedKeys(O)})}}},r.onListChangeStart=function(){r.setUncontrolledState({listChanging:!0})},r.onListChangeEnd=function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})},r.onActiveChange=function(l){var s=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,p=f===void 0?0:f;s!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:p}),d==null||d(l))},r.getActiveItem=function(){var l=r.state,s=l.activeKey,u=l.flattenNodes;return s===null?null:u.find(function(d){var f=d.key;return f===s})||null},r.offsetActiveKey=function(l){var s=r.state,u=s.flattenNodes,d=s.activeKey,f=u.findIndex(function(g){var y=g.key;return y===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var p=u[f];if(p){var m=p.key;r.onActiveChange(m)}else r.onActiveChange(null)},r.onKeyDown=function(l){var s=r.state,u=s.activeKey,d=s.expandedKeys,f=s.checkedKeys,p=s.fieldNames,m=r.props,g=m.onKeyDown,y=m.checkable,b=m.selectable;switch(l.which){case ge.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case ge.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var v=r.getActiveItem();if(v&&v.data){var h=r.getTreeNodeRequiredProps(),S=v.data.isLeaf===!1||!!(v.data[p.children]||[]).length,C=un(W(W({},ns(u,h)),{},{data:v.data,active:!0}));switch(l.which){case ge.LEFT:{S&&d.includes(u)?r.onNodeExpand({},C):v.parent&&r.onActiveChange(v.parent.key),l.preventDefault();break}case ge.RIGHT:{S&&!d.includes(u)?r.onNodeExpand({},C):v.children&&v.children.length&&r.onActiveChange(v.children[0].key),l.preventDefault();break}case ge.ENTER:case ge.SPACE:{y&&!C.disabled&&C.checkable!==!1&&!C.disableCheckbox?r.onNodeCheck({},C,!f.includes(u)):!y&&b&&!C.disabled&&C.selectable!==!1&&r.onNodeSelect({},C);break}}}g==null||g(l)},r.setUncontrolledState=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(l).forEach(function(m){if(m in r.props){f=!1;return}d=!0,p[m]=l[m]}),d&&(!s||f)&&r.setState(W(W({},p),u))}},r.scrollTo=function(l){r.listRef.current.scrollTo(l)},r}return $n(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o,i=this.state,a=i.focused,l=i.flattenNodes,s=i.keyEntities,u=i.draggingNodeKey,d=i.activeKey,f=i.dropLevelOffset,p=i.dropContainerKey,m=i.dropTargetKey,g=i.dropPosition,y=i.dragOverNodeKey,b=i.indent,v=this.props,h=v.prefixCls,S=v.className,C=v.style,$=v.showLine,O=v.focusable,E=v.tabIndex,w=E===void 0?0:E,x=v.selectable,I=v.showIcon,R=v.icon,T=v.switcherIcon,M=v.draggable,k=v.checkable,_=v.checkStrictly,D=v.disabled,N=v.motion,P=v.loadData,z=v.filterTreeNode,j=v.height,F=v.itemHeight,L=v.virtual,A=v.titleRender,G=v.dropIndicatorRender,H=v.onContextMenu,V=v.onScroll,J=v.direction,X=v.rootClassName,K=v.rootStyle,q=io(this.props,{aria:!0,data:!0}),U;return M&&(tt(M)==="object"?U=M:typeof M=="function"?U={nodeDraggable:M}:U={}),c.createElement(Eh.Provider,{value:{prefixCls:h,selectable:x,showIcon:I,icon:R,switcherIcon:T,draggable:U,draggingNodeKey:u,checkable:k,checkStrictly:_,disabled:D,keyEntities:s,dropLevelOffset:f,dropContainerKey:p,dropTargetKey:m,dropPosition:g,dragOverNodeKey:y,indent:b,direction:J,dropIndicatorRender:G,loadData:P,filterTreeNode:z,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:Z(h,S,X,(o={},B(o,"".concat(h,"-show-line"),$),B(o,"".concat(h,"-focused"),a),B(o,"".concat(h,"-active-focused"),d!==null),o)),style:K},c.createElement(V$,fe({ref:this.listRef,prefixCls:h,style:C,data:l,disabled:D,selectable:x,checkable:!!k,motion:N,dragging:u!==null,height:j,itemHeight:F,virtual:L,focusable:O,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:V},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function s(O){return!a&&O in o||a&&a[O]!==o[O]}var u,d=i.fieldNames;if(s("fieldNames")&&(d=rl(o.fieldNames),l.fieldNames=d),s("treeData")?u=o.treeData:s("children")&&(Ut(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=QE(o.children)),u){l.treeData=u;var f=gh(u,{fieldNames:d});l.keyEntities=W(B({},Ui,H$),f.keyEntities)}var p=l.keyEntities||i.keyEntities;if(s("expandedKeys")||a&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?xv(o.expandedKeys,p):o.expandedKeys;else if(!a&&o.defaultExpandAll){var m=W({},p);delete m[Ui],l.expandedKeys=Object.keys(m).map(function(O){return m[O].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?xv(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var g=ip(u||i.treeData,l.expandedKeys||i.expandedKeys,d);l.flattenNodes=g}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=oS(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=oS(o.defaultSelectedKeys,o))),o.checkable){var y;if(s("checkedKeys")?y=fp(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?y=fp(o.defaultCheckedKeys)||{}:u&&(y=fp(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),y){var b=y,v=b.checkedKeys,h=v===void 0?[]:v,S=b.halfCheckedKeys,C=S===void 0?[]:S;if(!o.checkStrictly){var $=Aa(h,!0,p);h=$.checkedKeys,C=$.halfCheckedKeys}l.checkedKeys=h,l.halfCheckedKeys=C}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);Oh.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:qz,allowDrop:function(){return!0},expandAction:!1};Oh.TreeNode=il;var nj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},rj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:nj}))};const K$=c.forwardRef(rj);var oj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ij=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:oj}))};const aj=c.forwardRef(ij);var lj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},sj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:lj}))};const cj=c.forwardRef(sj);var uj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},dj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:uj}))};const fj=c.forwardRef(dj),pj=new Ct("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mj=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),vj=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),gj=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Yt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},vi(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:pj,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${te(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${te(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},mj(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${te(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${te(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${te(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${te(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${te(i)}`,userSelect:"none"},vj(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${te(t.calc(i).div(2).equal())} !important`}}}}})}},hj=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},yj=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=wt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[gj(e,i),hj(i)]},bj=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Sj=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},bj(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Cj=mn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ZE(`${n}-checkbox`,e)},yj(n,e),Qg(e)]},Sj),dS=4;function xj(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-n*o+dS,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+dS;break}return ce.createElement("div",{style:s,className:`${r}-drop-indicator`})}var wj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ej=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:wj}))};const $j=c.forwardRef(Ej);var Oj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ij=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Oj}))};const Rj=c.forwardRef(Ij);var Pj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Nj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Pj}))};const Tj=c.forwardRef(Nj),Mj=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return c.createElement(el,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),i){if(!o)return null;if(typeof s!="boolean"&&s){const f=typeof s=="function"?s(r):s,p=`${t}-switcher-line-custom-icon`;return cr(f)?Xn(f,{className:Z(f.props.className||"",p)}):f}return s?c.createElement(K$,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return cr(d)?Xn(d,{className:Z(d.props.className||"",u)}):d!==void 0?d:o?a?c.createElement(Rj,{className:`${t}-switcher-line-icon`}):c.createElement(Tj,{className:`${t}-switcher-line-icon`}):c.createElement($j,{className:u})},W$=ce.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=ce.useContext(ut),{prefixCls:l,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:p=!1,children:m,checkable:g=!1,selectable:y=!0,draggable:b,motion:v,style:h}=e,S=r("tree",l),C=r(),$=v??Object.assign(Object.assign({},Bg(C)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:g,selectable:y,showIcon:u,motion:$,blockNode:p,showLine:!!d,dropIndicatorRender:xj}),[E,w,x]=Cj(S),[,I]=xn(),R=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),T=ce.useMemo(()=>{if(!b)return!1;let k={};switch(typeof b){case"function":k.nodeDraggable=b;break;case"object":k=Object.assign({},b);break}return k.icon!==!1&&(k.icon=k.icon||ce.createElement(fj,null)),k},[b]),M=k=>ce.createElement(Mj,{prefixCls:S,switcherIcon:f,treeNodeProps:k,showLine:d});return E(ce.createElement(Oh,Object.assign({itemHeight:R,ref:t,virtual:i},O,{style:Object.assign(Object.assign({},a==null?void 0:a.style),h),prefixCls:S,className:Z({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:p,[`${S}-unselectable`]:!y,[`${S}-rtl`]:o==="rtl"},a==null?void 0:a.className,s,w,x),direction:o,checkable:g&&ce.createElement("span",{className:`${S}-checkbox-inner`}),selectable:y,switcherIcon:M,draggable:T}),m))});var $o;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})($o||($o={}));function Ih(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],s=a[o];t(l,a)!==!1&&Ih(s||[],t,n)}e.forEach(i)}function kj(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=$o.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(u){return u===r||u===o}return Ih(t,u=>{if(l===$o.End)return!1;if(s(u)){if(a.push(u),l===$o.None)l=$o.Start;else if(l===$o.Start)return l=$o.End,!1}else l===$o.Start&&a.push(u);return n.includes(u)},rl(i)),a}function pp(e,t,n){const r=Se(t),o=[];return Ih(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},rl(n)),o}var fS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dj(e){const{isLeaf:t,expanded:n}=e;return t?c.createElement(K$,null):n?c.createElement(aj,null):c.createElement(cj,null)}function pS(e){let{treeData:t,children:n}=e;return t||QE(n)}const _j=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=fS(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(),l=c.useRef(),s=()=>{const{keyEntities:w}=gh(pS(i));let x;return n?x=Object.keys(w):r?x=xv(i.expandedKeys||o||[],w):x=i.expandedKeys||o,x},[u,d]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,p]=c.useState(()=>s());c.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&p(i.expandedKeys)},[i.expandedKeys]);const m=(w,x)=>{var I;return"expandedKeys"in i||p(w),(I=i.onExpand)===null||I===void 0?void 0:I.call(i,w,x)},g=(w,x)=>{var I;const{multiple:R,fieldNames:T}=i,{node:M,nativeEvent:k}=x,{key:_=""}=M,D=pS(i),N=Object.assign(Object.assign({},x),{selected:!0}),P=(k==null?void 0:k.ctrlKey)||(k==null?void 0:k.metaKey),z=k==null?void 0:k.shiftKey;let j;R&&P?(j=w,a.current=_,l.current=j,N.selectedNodes=pp(D,j,T)):R&&z?(j=Array.from(new Set([].concat(Se(l.current||[]),Se(kj({treeData:D,expandedKeys:f,startKey:_,endKey:a.current,fieldNames:T}))))),N.selectedNodes=pp(D,j,T)):(j=[_],a.current=_,l.current=j,N.selectedNodes=pp(D,j,T)),(I=i.onSelect)===null||I===void 0||I.call(i,j,N),"selectedKeys"in i||d(j)},{getPrefixCls:y,direction:b}=c.useContext(ut),{prefixCls:v,className:h,showIcon:S=!0,expandAction:C="click"}=i,$=fS(i,["prefixCls","className","showIcon","expandAction"]),O=y("tree",v),E=Z(`${O}-directory`,{[`${O}-directory-rtl`]:b==="rtl"},h);return c.createElement(W$,Object.assign({icon:Dj,ref:t,blockNode:!0},$,{showIcon:S,expandAction:C,prefixCls:O,className:E,expandedKeys:f,selectedKeys:u,onSelect:g,onExpand:m}))},Lj=c.forwardRef(_j),Rh=W$;Rh.DirectoryTree=Lj;Rh.TreeNode=il;function mS(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?c.createElement("div",{className:`${o}-filter-dropdown-search`},c.createElement(So,{prefix:c.createElement(wr,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const zj=e=>{const{keyCode:t}=e;t===ge.ENTER&&e.stopPropagation()},jj=c.forwardRef((e,t)=>c.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:zj,ref:t},e.children));function Ba(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Se(t),Se(Ba(o))))}),t}function Fj(e){return e.some(t=>{let{children:n}=t;return n})}function U$(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function q$(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const u=String(l.value);if(l.children)return{key:u||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:q$({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?ol:qs,f={key:l.value!==void 0?u:s,label:c.createElement(c.Fragment,null,c.createElement(d,{checked:r.includes(u)}),c.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?f:null:U$(i,l.text)?f:null:f})}function mp(e){return e||[]}function Aj(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:s,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:m,children:g,getPopupContainer:y,rootClassName:b}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:h,filterResetToDefaultFilteredValue:S,defaultFilteredValue:C,filterDropdownVisible:$,onFilterDropdownVisibleChange:O}=i,[E,w]=c.useState(!1),x=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),I=ie=>{w(ie),h==null||h(ie),O==null||O(ie)},R=(n=v??$)!==null&&n!==void 0?n:E,T=f==null?void 0:f.filteredKeys,[M,k]=Uz(mp(T)),_=ie=>{let{selectedKeys:ue}=ie;k(ue)},D=(ie,ue)=>{let{node:me,checked:ae}=ue;_(s?{selectedKeys:ie}:{selectedKeys:ae&&me.key?[me.key]:[]})};c.useEffect(()=>{E&&_({selectedKeys:mp(T)})},[T]);const[N,P]=c.useState([]),z=ie=>{P(ie)},[j,F]=c.useState(""),L=ie=>{const{value:ue}=ie.target;F(ue)};c.useEffect(()=>{E||F("")},[E]);const A=ie=>{const ue=ie&&ie.length?ie:null;if(ue===null&&(!f||!f.filteredKeys)||zo(ue,f==null?void 0:f.filteredKeys,!0))return null;p({column:i,key:l,filteredKeys:ue})},G=()=>{I(!1),A(M())},H=function(){let{confirm:ie,closeDropdown:ue}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ie&&A([]),ue&&I(!1),F(""),k(S?(C||[]).map(me=>String(me)):[])},V=function(){let{closeDropdown:ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ie&&I(!1),A(M())},J=(ie,ue)=>{ue.source==="trigger"&&(ie&&T!==void 0&&k(mp(T)),I(ie),!ie&&!i.filterDropdown&&G())},X=Z({[`${a}-menu-without-submenu`]:!Fj(i.filters||[])}),K=ie=>{if(ie.target.checked){const ue=Ba(i==null?void 0:i.filters).map(me=>String(me));k(ue)}else k([])},q=ie=>{let{filters:ue}=ie;return(ue||[]).map((me,ae)=>{const re=String(me.value),de={title:me.text,key:me.value!==void 0?re:String(ae)};return me.children&&(de.children=q({filters:me.children})),de})},U=ie=>{var ue;return Object.assign(Object.assign({},ie),{text:ie.title,value:ie.key,children:((ue=ie.children)===null||ue===void 0?void 0:ue.map(me=>U(me)))||[]})};let Q;if(typeof i.filterDropdown=="function")Q=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:ie=>_({selectedKeys:ie}),selectedKeys:M(),confirm:V,clearFilters:H,filters:i.filters,visible:R,close:()=>{I(!1)}});else if(i.filterDropdown)Q=i.filterDropdown;else{const ie=M()||[],ue=()=>(i.filters||[]).length===0?c.createElement(Ro,{image:Ro.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):u==="tree"?c.createElement(c.Fragment,null,c.createElement(mS,{filterSearch:d,value:j,onChange:L,tablePrefixCls:r,locale:m}),c.createElement("div",{className:`${r}-filter-dropdown-tree`},s?c.createElement(ol,{checked:ie.length===Ba(i.filters).length,indeterminate:ie.length>0&&ie.length<Ba(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:K},m.filterCheckall):null,c.createElement(Rh,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${a}-menu`,onCheck:D,checkedKeys:ie,selectedKeys:ie,showIcon:!1,treeData:q({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:j.trim()?ae=>typeof d=="function"?d(j,U(ae)):U$(j,ae.title):void 0}))):c.createElement(c.Fragment,null,c.createElement(mS,{filterSearch:d,value:j,onChange:L,tablePrefixCls:r,locale:m}),c.createElement(Ji,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:X,onSelect:_,onDeselect:_,selectedKeys:ie,getPopupContainer:y,openKeys:N,onOpenChange:z,items:q$({filters:i.filters||[],filterSearch:d,prefixCls:o,filteredKeys:M(),filterMultiple:s,searchValue:j})})),me=()=>S?zo((C||[]).map(ae=>String(ae)),ie,!0):ie.length===0;Q=c.createElement(c.Fragment,null,ue(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(kt,{type:"link",size:"small",disabled:me(),onClick:()=>H()},m.filterReset),c.createElement(kt,{type:"primary",size:"small",onClick:G},m.filterConfirm)))}i.filterDropdown&&(Q=c.createElement(FE,{selectable:void 0},Q));const Y=()=>c.createElement(jj,{className:`${o}-dropdown`},Q);let ne;typeof i.filterIcon=="function"?ne=i.filterIcon(x):i.filterIcon?ne=i.filterIcon:ne=c.createElement(Wz,null);const{direction:ee}=c.useContext(ut);return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${r}-column-title`},g),c.createElement(yh,{dropdownRender:Y,trigger:["click"],open:R,onOpenChange:J,getPopupContainer:y,placement:ee==="rtl"?"bottomLeft":"bottomRight",rootClassName:b},c.createElement("span",{role:"button",tabIndex:-1,className:Z(`${o}-trigger`,{active:x}),onClick:ie=>{ie.stopPropagation()}},ne)))}function Iv(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const l=Ys(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let s=o.filteredValue;"filterDropdown"in o||(s=(a=s==null?void 0:s.map(String))!==null&&a!==void 0?a:s),r.push({column:o,key:Wi(o,l),filteredKeys:s,forceFiltered:o.filtered})}else r.push({column:o,key:Wi(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Se(r),Se(Iv(o.children,t,l))))}),r}function G$(e,t,n,r,o,i,a,l,s){return n.map((u,d)=>{const f=Ys(d,l),{filterMultiple:p=!0,filterMode:m,filterSearch:g}=u;let y=u;if(y.filters||y.filterDropdown){const b=Wi(y,f),v=r.find(h=>{let{key:S}=h;return b===S});y=Object.assign(Object.assign({},y),{title:h=>c.createElement(Aj,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:b,filterState:v,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},Zd(u.title,h))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:G$(e,t,y.children,r,o,i,a,f,s)})),y})}function vS(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:s}=i;if(s)t[a]=o||null;else if(Array.isArray(o)){const u=Ba(l);t[a]=u.filter(d=>o.includes(String(d)))}else t[a]=null}),t}function gS(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(l=>a.some(s=>{const u=Ba(i),d=u.findIndex(p=>String(p)===String(s)),f=d!==-1?u[d]:s;return o(f,l)})):n},e)}const X$=e=>e.flatMap(t=>"children"in t?[t].concat(Se(X$(t.children||[]))):[t]);function Bj(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;Yi();const s=c.useMemo(()=>X$(r||[]),[r]),[u,d]=c.useState(()=>Iv(s,!0)),f=c.useMemo(()=>{const y=Iv(s,!1);if(y.length===0)return y;let b=!0;if(y.forEach(v=>{let{filteredKeys:h}=v;h!==void 0&&(b=!1)}),b){const v=(s||[]).map((h,S)=>Wi(h,Ys(S)));return u.filter(h=>{let{key:S}=h;return v.includes(S)}).map(h=>{const S=s[v.findIndex(C=>C===h.key)];return Object.assign(Object.assign({},h),{column:Object.assign(Object.assign({},h.column),S),forceFiltered:S.filtered})})}return y},[s,u]),p=c.useMemo(()=>vS(f),[f]),m=y=>{const b=f.filter(v=>{let{key:h}=v;return h!==y.key});b.push(y),d(b),o(vS(b),b)};return[y=>G$(t,n,y,f,a,m,i,void 0,l),f,p]}function Hj(e,t,n){const r=c.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(u){u.forEach((d,f)=>{const p=n(d,f);l.set(p,d),d&&typeof d=="object"&&t in d&&s(d[t]||[])})};var a=s;const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var Vj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y$=10;function Kj(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function Wj(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=Vj(r,["total"]),[a,l]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Y$})),s=i5(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(p,m)=>{l({current:p??1,pageSize:m||s.pageSize})},f=(p,m)=>{var g;n&&((g=n.onChange)===null||g===void 0||g.call(n,p,m)),d(p,m),t(p,m||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:f}),d]}var Uj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},qj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Uj}))};const Gj=c.forwardRef(qj);var Xj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Yj=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:Xj}))};const Qj=c.forwardRef(Yj),au="ascend",vp="descend";function td(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function hS(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function Jj(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Rv(e,t,n){let r=[];function o(i,a){r.push({column:i,key:Wi(i,a),multiplePriority:td(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=Ys(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(Se(r),Se(Rv(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Wi(i,l),multiplePriority:td(i),sortOrder:i.defaultSortOrder}))}),r}function Q$(e,t,n,r,o,i,a,l){return(t||[]).map((s,u)=>{const d=Ys(u,l);let f=s;if(f.sorter){const p=f.sortDirections||o,m=f.showSorterTooltip===void 0?a:f.showSorterTooltip,g=Wi(f,d),y=n.find(w=>{let{key:x}=w;return x===g}),b=y?y.sortOrder:null,v=Jj(p,b);let h;if(s.sortIcon)h=s.sortIcon({sortOrder:b});else{const w=p.includes(au)&&c.createElement(Qj,{className:Z(`${e}-column-sorter-up`,{active:b===au})}),x=p.includes(vp)&&c.createElement(Gj,{className:Z(`${e}-column-sorter-down`,{active:b===vp})});h=c.createElement("span",{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(w&&x)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},w,x))}const{cancelSort:S,triggerAsc:C,triggerDesc:$}=i||{};let O=S;v===vp?O=$:v===au&&(O=C);const E=typeof m=="object"?Object.assign({title:O},m):{title:O};f=Object.assign(Object.assign({},f),{className:Z(f.className,{[`${e}-column-sort`]:b}),title:w=>{const x=c.createElement("div",{className:`${e}-column-sorters`},c.createElement("span",{className:`${e}-column-title`},Zd(s.title,w)),h);return m?c.createElement(gi,Object.assign({},E),x):x},onHeaderCell:w=>{const x=s.onHeaderCell&&s.onHeaderCell(w)||{},I=x.onClick,R=x.onKeyDown;x.onClick=k=>{r({column:s,key:g,sortOrder:v,multiplePriority:td(s)}),I==null||I(k)},x.onKeyDown=k=>{k.keyCode===ge.ENTER&&(r({column:s,key:g,sortOrder:v,multiplePriority:td(s)}),R==null||R(k))};const T=Hz(s.title,{}),M=T==null?void 0:T.toString();return b?x["aria-sort"]=b==="ascend"?"ascending":"descending":x["aria-label"]=M||"",x.className=Z(x.className,`${e}-column-has-sorters`),x.tabIndex=0,s.ellipsis&&(x.title=(T??"").toString()),x}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:Q$(e,f.children,n,r,o,i,a,d)})),f})}function yS(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function bS(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(yS);return t.length===0&&e.length?Object.assign(Object.assign({},yS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Pv(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return hS(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s<i.length;s+=1){const u=i[s],{column:{sorter:d},sortOrder:f}=u,p=hS(d);if(p&&f){const m=p(a,l,f);if(m!==0)return f===au?m:-m}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:Pv(l,t,n)}):a}):o}function Zj(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=c.useState(Rv(n,!0)),u=c.useMemo(()=>{let g=!0;const y=Rv(n,!1);if(!y.length)return l;const b=[];function v(S){g?b.push(S):b.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let h=null;return y.forEach(S=>{h===null?(v(S),S.sortOrder&&(S.multiplePriority===!1?g=!1:h=!0)):(h&&S.multiplePriority!==!1||(g=!1),v(S))}),b},[n,l]),d=c.useMemo(()=>{const g=u.map(y=>{let{column:b,sortOrder:v}=y;return{column:b,order:v}});return{sortColumns:g,sortColumn:g[0]&&g[0].column,sortOrder:g[0]&&g[0].order}},[u]);function f(g){let y;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?y=[g]:y=[].concat(Se(u.filter(b=>{let{key:v}=b;return v!==g.key})),[g]),s(y),r(bS(y),y)}return[g=>Q$(t,g,u,f,o,i,a),u,d,()=>bS(u)]}function J$(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=Zd(n.title,t),"children"in r&&(r.children=J$(r.children,t)),r})}function eF(e){return[c.useCallback(n=>J$(n,e),[e])]}const tF=_$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),nF=j$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),rF=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,u=`${te(n)} ${r} ${o}`,d=(f,p,m)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${te(s(p).mul(-1).equal())}
${te(s(s(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${te(s(a).mul(-1).equal())} ${te(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${te(n)} 0 ${te(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},oF=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ki),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},iF=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},aF=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:g,expandIconMarginTop:y,expandIconSize:b,expandIconHalfInner:v,expandIconScale:h,calc:S}=e,C=`${te(o)} ${a} ${l}`,$=S(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},zg(e)),{position:"relative",float:"left",boxSizing:"border-box",width:b,height:b,padding:0,color:"inherit",lineHeight:te(b),background:s,border:C,borderRadius:d,transform:`scale(${h})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:$,insetInlineStart:$,height:o},"&::after":{top:$,bottom:$,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:y,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${te(S(f).mul(-1).equal())} ${te(S(p).mul(-1).equal())}`,padding:`${te(f)} ${te(p)}`}}}},lF=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:g,borderRadius:y,motionDurationSlow:b,colorTextDescription:v,colorPrimary:h,tableHeaderFilterActiveBg:S,colorTextDisabled:C,tableFilterDropdownBg:$,tableFilterDropdownHeight:O,controlItemBgHover:E,controlItemBgActive:w,boxShadowSecondary:x,filterDropdownMenuBg:I,calc:R}=e,T=`${n}-dropdown`,M=`${t}-filter-dropdown`,k=`${n}-tree`,_=`${te(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(a).mul(-1).equal(),marginInline:`${te(a)} ${te(R(g).div(2).mul(-1).equal())}`,padding:`0 ${te(a)}`,color:p,fontSize:m,borderRadius:y,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:v,background:S},"&.active":{color:h}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},Yt(e)),{minWidth:o,backgroundColor:$,borderRadius:y,boxShadow:x,overflow:"hidden",[`${T}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${te(l)} 0`,color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${te(l)} 0`,paddingInline:l,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:E},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${M}-search`]:{padding:l,borderBottom:_,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${te(R(l).sub(u).equal())} ${te(l)}`,overflow:"hidden",borderTop:_}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sF=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,u=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:i,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}}}}},cF=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${te(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},uF=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${te(n)} ${te(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${te(n)} ${te(n)}`}}}}},dF=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},fF=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(i).div(4)).add(g(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:te(g(m).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},pF=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${te(a)} ${te(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:te(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${te(r(a).mul(-1).equal())} ${te(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:te(r(a).mul(-1).equal()),marginInline:`${te(r(n).sub(l).equal())} ${te(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:te(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},mF=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},vF=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:u,lineType:d,tableBorderColor:f}=e,p=`${te(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${te(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},SS=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${te(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${te(o(n).mul(-1).equal())} 0 ${r}`}}}},gF=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${te(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${te(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},hF=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:g,tableHeaderCellSplitColor:y,tableFooterTextColor:b,tableFooterBg:v,calc:h}=e,S=`${te(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Za()),{[t]:Object.assign(Object.assign({},Yt(e)),{fontSize:u,background:d,borderRadius:`${te(f)} ${te(f)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${te(f)} ${te(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${te(r)} ${te(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${te(r)} ${te(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:g,borderBottom:S,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:y,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:S,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:te(h(r).mul(-1).equal()),marginInline:`${te(h(i).sub(o).equal())}
${te(h(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:g,borderBottom:S,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${te(r)} ${te(o)}`,color:b,background:v}})}},yF=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:m,colorTextPlaceholder:g,fontSize:y,fontSizeSM:b,lineHeight:v,lineWidth:h,colorIcon:S,colorIconHover:C,opacityLoading:$,controlInteractiveSize:O}=e,E=new gt(o).onBackground(n).toHexShortString(),w=new gt(i).onBackground(n).toHexShortString(),x=new gt(t).onBackground(n).toHexShortString(),I=new gt(S),R=new gt(C),T=O/2-h,M=T*2+h*3;return{headerBg:x,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:w,bodySortBg:x,rowHoverBg:x,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:x,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*v-h*3)/2-Math.ceil((b*1.4-h*3)/2),headerIconColor:I.clone().setAlpha(I.getAlpha()*$).toRgbString(),headerIconHoverColor:R.clone().setAlpha(R.getAlpha()*$).toRgbString(),expandIconHalfInner:T,expandIconSize:M,expandIconScale:O/M}},bF=mn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:g,cellPaddingInline:y,cellPaddingBlockMD:b,cellPaddingInlineMD:v,cellPaddingBlockSM:h,cellPaddingInlineSM:S,borderColor:C,footerBg:$,footerColor:O,headerBorderRadius:E,cellFontSize:w,cellFontSizeMD:x,cellFontSizeSM:I,headerSplitColor:R,fixedHeaderSortActiveBg:T,headerFilterHoverBg:M,filterDropdownBg:k,expandIconBg:_,selectionColumnWidth:D,stickyScrollBarBg:N,calc:P}=e,z=2,j=wt(e,{tableFontSize:w,tableBg:r,tableRadius:E,tablePaddingVertical:g,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:b,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:h,tablePaddingHorizontalSmall:S,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:O,tableFooterBg:$,tableHeaderCellSplitColor:R,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:u,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:k,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,zIndexTableFixed:z,zIndexTableSticky:z+1,tableFontSizeMiddle:x,tableFontSizeSmall:I,tableSelectionColumnWidth:D,tableExpandIconBg:_,tableExpandColumnWidth:P(o).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[hF(j),cF(j),SS(j),mF(j),lF(j),rF(j),uF(j),aF(j),SS(j),iF(j),fF(j),sF(j),vF(j),oF(j),pF(j),dF(j),gF(j)]},yF,{unitless:{expandIconScale:!0}}),SF=[],CF=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:u,pagination:d,rowSelection:f,rowKey:p="key",rowClassName:m,columns:g,children:y,childrenColumnName:b,onChange:v,getPopupContainer:h,loading:S,expandIcon:C,expandable:$,expandedRowRender:O,expandIconColumnIndex:E,indentSize:w,scroll:x,sortDirections:I,locale:R,showSorterTooltip:T=!0,virtual:M}=e;Yi();const k=c.useMemo(()=>g||wh(y),[g,y]),_=c.useMemo(()=>k.some(Le=>Le.responsive),[k]),D=mE(_),N=c.useMemo(()=>{const Le=new Set(Object.keys(D).filter(Ae=>D[Ae]));return k.filter(Ae=>!Ae.responsive||Ae.responsive.some(rt=>Le.has(rt)))},[k,D]),P=kn(e,["className","style","columns"]),{locale:z=mi,direction:j,table:F,renderEmpty:L,getPrefixCls:A,getPopupContainer:G}=c.useContext(ut),H=bo(a),V=Object.assign(Object.assign({},z.Table),R),J=u||SF,X=A("table",n),K=A("dropdown",s),[,q]=xn(),U=Kr(X),[Q,Y,ne]=bF(X,U),ee=Object.assign({childrenColumnName:b,expandIconColumnIndex:E},$),{childrenColumnName:ie="children"}=ee,ue=c.useMemo(()=>J.some(Le=>Le==null?void 0:Le[ie])?"nest":O||$&&$.expandedRowRender?"row":null,[J]),me={body:c.useRef()},ae=Bz(X),re=c.useRef(null),de=c.useRef(null);Fz(t,()=>Object.assign(Object.assign({},de.current),{nativeElement:re.current}));const se=c.useMemo(()=>typeof p=="function"?p:Le=>Le==null?void 0:Le[p],[p]),[he]=Hj(J,ie,se),$e={},Ce=function(Le,Ae){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var it,bt,Tt;const He=Object.assign(Object.assign({},$e),Le);rt&&((it=$e.resetPagination)===null||it===void 0||it.call($e),!((bt=He.pagination)===null||bt===void 0)&&bt.current&&(He.pagination.current=1),d&&d.onChange&&d.onChange(1,(Tt=He.pagination)===null||Tt===void 0?void 0:Tt.pageSize)),x&&x.scrollToFirstRowOnChange!==!1&&me.body.current&&HT(0,{getContainer:()=>me.body.current}),v==null||v(He.pagination,He.filters,He.sorter,{currentDataSource:gS(Pv(J,He.sorterStates,ie),He.filterStates),action:Ae})},ye=(Le,Ae)=>{Ce({sorter:Le,sorterStates:Ae},"sort",!1)},[We,Ke,Ue,Ee]=Zj({prefixCls:X,mergedColumns:N,onSorterChange:ye,sortDirections:I||["ascend","descend"],tableLocale:V,showSorterTooltip:T}),pe=c.useMemo(()=>Pv(J,Ke,ie),[J,Ke]);$e.sorter=Ee(),$e.sorterStates=Ke;const Ie=(Le,Ae)=>{Ce({filters:Le,filterStates:Ae},"filter",!0)},[be,Re,Oe]=Bj({prefixCls:X,locale:V,dropdownPrefixCls:K,mergedColumns:N,onFilterChange:Ie,getPopupContainer:h||G,rootClassName:Z(o,U)}),xe=gS(pe,Re);$e.filters=Oe,$e.filterStates=Re;const Fe=c.useMemo(()=>{const Le={};return Object.keys(Oe).forEach(Ae=>{Oe[Ae]!==null&&(Le[Ae]=Oe[Ae])}),Object.assign(Object.assign({},Ue),{filters:Le})},[Ue,Oe]),[Qe]=eF(Fe),Ze=(Le,Ae)=>{Ce({pagination:Object.assign(Object.assign({},$e.pagination),{current:Le,pageSize:Ae})},"paginate")},[ve,De]=Wj(xe.length,Ze,d);$e.pagination=d===!1?{}:Kj(ve,d),$e.resetPagination=De;const qe=c.useMemo(()=>{if(d===!1||!ve.pageSize)return xe;const{current:Le=1,total:Ae,pageSize:rt=Y$}=ve;return xe.length<Ae?xe.length>rt?xe.slice((Le-1)*rt,Le*rt):xe:xe.slice((Le-1)*rt,Le*rt)},[!!d,xe,ve&&ve.current,ve&&ve.pageSize,ve&&ve.total]),[lt,Je]=zz({prefixCls:X,data:xe,pageData:qe,getRowKey:se,getRecordByKey:he,expandType:ue,childrenColumnName:ie,locale:V,getPopupContainer:h||G},f),Te=(Le,Ae,rt)=>{let it;return typeof m=="function"?it=Z(m(Le,Ae,rt)):it=Z(m),Z({[`${X}-row-selected`]:Je.has(se(Le,Ae))},it)};ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||C||Az(V),ue==="nest"&&ee.expandIconColumnIndex===void 0?ee.expandIconColumnIndex=f?1:0:ee.expandIconColumnIndex>0&&f&&(ee.expandIconColumnIndex-=1),typeof ee.indentSize!="number"&&(ee.indentSize=typeof w=="number"?w:15);const ze=c.useCallback(Le=>Qe(lt(be(We(Le)))),[We,be,lt]);let ke,Ve;if(d!==!1&&(ve!=null&&ve.total)){let Le;ve.size?Le=ve.size:Le=H==="small"||H==="middle"?"small":void 0;const Ae=bt=>c.createElement(O5,Object.assign({},ve,{className:Z(`${X}-pagination ${X}-pagination-${bt}`,ve.className),size:Le})),rt=j==="rtl"?"left":"right",{position:it}=ve;if(it!==null&&Array.isArray(it)){const bt=it.find(Be=>Be.includes("top")),Tt=it.find(Be=>Be.includes("bottom")),He=it.every(Be=>`${Be}`=="none");!bt&&!Tt&&!He&&(Ve=Ae(rt)),bt&&(ke=Ae(bt.toLowerCase().replace("top",""))),Tt&&(Ve=Ae(Tt.toLowerCase().replace("bottom","")))}else Ve=Ae(rt)}let we;typeof S=="boolean"?we={spinning:S}:typeof S=="object"&&(we=Object.assign({spinning:!0},S));const _e=Z(ne,U,`${X}-wrapper`,F==null?void 0:F.className,{[`${X}-wrapper-rtl`]:j==="rtl"},r,o,Y),Ne=Object.assign(Object.assign({},F==null?void 0:F.style),i),Me=R&&R.emptyText||(L==null?void 0:L("Table"))||c.createElement(dE,{componentName:"Table"}),st=M?nF:tF,ft={},jt=c.useMemo(()=>{const{fontSize:Le,lineHeight:Ae,padding:rt,paddingXS:it,paddingSM:bt}=q,Tt=Math.floor(Le*Ae);switch(H){case"large":return rt*2+Tt;case"small":return it*2+Tt;default:return bt*2+Tt}},[q,H]);return M&&(ft.listItemHeight=jt),Q(c.createElement("div",{ref:re,className:_e,style:Ne},c.createElement(m$,Object.assign({spinning:!1},we),ke,c.createElement(st,Object.assign({},ft,P,{ref:de,columns:N,direction:j,expandable:ee,prefixCls:X,className:Z({[`${X}-middle`]:H==="middle",[`${X}-small`]:H==="small",[`${X}-bordered`]:l,[`${X}-empty`]:J.length===0},ne,U,Y),data:qe,rowKey:se,rowClassName:Te,emptyText:Me,internalHooks:Xs,internalRefs:me,transformColumns:ze,getContainerWidth:ae})),Ve)))},xF=c.forwardRef(CF),wF=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(xF,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Vn=c.forwardRef(wF);Vn.SELECTION_COLUMN=Uo;Vn.EXPAND_COLUMN=Xo;Vn.SELECTION_ALL=wv;Vn.SELECTION_INVERT=Ev;Vn.SELECTION_NONE=$v;Vn.Column=Oz;Vn.ColumnGroup=Iz;Vn.Summary=x$;const EF=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Yt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Ph=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return wt(e,{tagFontSize:o,tagLineHeight:te(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Nh=e=>({defaultBg:new gt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Z$=mn("Tag",e=>{const t=Ph(e);return EF(t)},Nh);var $F=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 OF=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=$F(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=c.useContext(ut),f=v=>{a==null||a(!i),l==null||l(v)},p=u("tag",n),[m,g,y]=Z$(p),b=Z(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},d==null?void 0:d.className,o,g,y);return m(c.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:b,onClick:f})))}),IF=e=>Yx(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),RF=zs(["Tag","preset"],e=>{const t=Ph(e);return IF(t)},Nh);function PF(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Mc=(e,t,n)=>{const r=PF(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"}}}},NF=zs(["Tag","status"],e=>{const t=Ph(e);return[Mc(t,"success","Success"),Mc(t,"processing","Info"),Mc(t,"error","Error"),Mc(t,"warning","Warning")]},Nh);var TF=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 MF=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:u,closeIcon:d,closable:f,bordered:p=!0}=e,m=TF(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:y,tag:b}=c.useContext(ut),[v,h]=c.useState(!0);c.useEffect(()=>{"visible"in m&&h(m.visible)},[m.visible]);const S=CE(s),C=x6(s),$=S||C,O=Object.assign(Object.assign({backgroundColor:s&&!$?s:void 0},b==null?void 0:b.style),i),E=g("tag",n),[w,x,I]=Z$(E),R=Z(E,b==null?void 0:b.className,{[`${E}-${s}`]:$,[`${E}-has-color`]:s&&!$,[`${E}-hidden`]:!v,[`${E}-rtl`]:y==="rtl",[`${E}-borderless`]:!p},r,o,x,I),T=P=>{P.stopPropagation(),u==null||u(P),!P.defaultPrevented&&h(!1)},[,M]=uM(f,d,P=>P===null?c.createElement(Fs,{className:`${E}-close-icon`,onClick:T}):c.createElement("span",{className:`${E}-close-icon`,onClick:T},P),null,!1),k=typeof m.onClick=="function"||a&&a.type==="a",_=l||null,D=_?c.createElement(c.Fragment,null,_,a&&c.createElement("span",null,a)):a,N=c.createElement("span",Object.assign({},m,{ref:t,className:R,style:O}),D,M,S&&c.createElement(RF,{key:"preset",prefixCls:E}),C&&c.createElement(NF,{key:"status",prefixCls:E}));return w(k?c.createElement(Bs,{component:"Tag"},N):N)},e2=c.forwardRef(MF);e2.CheckableTag=OF;var kF={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"},DF=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:kF}))};const _F=c.forwardRef(DF);var LF=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 zF={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},CS=c.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===ge.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===ge.ENTER&&f&&f()},{style:o,noStyle:i,disabled:a}=e,l=LF(e,["style","noStyle","disabled"]);let s={};return i||(s=Object.assign({},zF)),a&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),o),c.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))});var jF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},FF=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:jF}))};const AF=c.forwardRef(FF);var BF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},HF=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:BF}))};const VF=c.forwardRef(HF);var KF=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},WF=KF,xS={"text/plain":"Text","text/html":"Url",default:"Text"},UF="Copy to clipboard: #{key}, Enter";function qF(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function GF(e,t){var n,r,o,i,a,l,s=!1;t||(t={}),n=t.debug||!1;try{o=WF(),i=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=xS[t.format]||xS.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");s=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=qF("message"in t?t.message:UF),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return s}var XF=GF;const YF=al(XF);var QF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},JF=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:QF}))};const ZF=c.forwardRef(JF),eA=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},tA=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=eA(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},nA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},zg(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},rA=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:nN[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),oA=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${te(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},iA=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),aA=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),lA=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},tA(e)),{[`
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),rA(e)),nA(e)),{[`
${t}-expand,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},zg(e)),{marginInlineStart:e.marginXXS})}),oA(e)),iA(e)),aA()),{"&-rtl":{direction:"rtl"}})}},sA=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),t2=mn("Typography",e=>[lA(e)],sA),cA=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=c.createElement(ZF,null)}=e,g=c.useRef(null),y=c.useRef(!1),b=c.useRef(),[v,h]=c.useState(s);c.useEffect(()=>{h(s)},[s]),c.useEffect(()=>{if(g.current&&g.current.resizableTextArea){const{textArea:_}=g.current.resizableTextArea;_.focus();const{length:D}=_.value;_.setSelectionRange(D,D)}},[]);const S=_=>{let{target:D}=_;h(D.value.replace(/[\n\r]/g,""))},C=()=>{y.current=!0},$=()=>{y.current=!1},O=_=>{let{keyCode:D}=_;y.current||(b.current=D)},E=()=>{u(v.trim())},w=_=>{let{keyCode:D,ctrlKey:N,altKey:P,metaKey:z,shiftKey:j}=_;b.current===D&&!y.current&&!N&&!P&&!z&&!j&&(D===ge.ENTER?(E(),f==null||f()):D===ge.ESC&&d())},x=()=>{E()},I=p?`${t}-${p}`:"",[R,T,M]=t2(t),k=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,I,T,M);return R(c.createElement("div",{className:k,style:o},c.createElement(l$,{ref:g,maxLength:a,value:v,onChange:S,onKeyDown:O,onKeyUp:w,onCompositionStart:C,onCompositionEnd:$,onBlur:x,"aria-label":n,rows:1,autoSize:l}),m!==null?Xn(m,{className:`${t}-edit-content-confirm`}):null))};function gp(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const uA=(e,t)=>{const n=c.useRef(!1);c.useEffect(()=>{n.current?e():n.current=!0},t)};var dA=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 n2=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:s,style:u}=e,d=dA(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:m}=c.useContext(ut),g=s??p;let y=t;a&&(y=Or(t,a));const b=f("typography",n),[v,h,S]=t2(b),C=Z(b,m==null?void 0:m.className,{[`${b}-rtl`]:g==="rtl"},o,i,h,S),$=Object.assign(Object.assign({},m==null?void 0:m.style),u);return v(c.createElement(r,Object.assign({className:C,style:$,ref:y},d),l))});function r2(e){const t=typeof e;return t==="string"||t==="number"}function fA(e){let t=0;return e.forEach(n=>{r2(n)?t+=String(n).length:t+=1}),t}function hp(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=r2(i)?String(i).length:1,s=n+l;if(s>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=s}return e}const pA=0,kc=1,wS=2,yp=3,bp=4,mA=e=>{let{enabledMeasure:t,children:n,text:r,width:o,fontSize:i,rows:a,onEllipsis:l}=e;const[[s,u,d],f]=c.useState([0,0,0]),[p,m]=c.useState(0),[g,y]=c.useState(pA),[b,v]=c.useState(0),h=c.useRef(null),S=c.useRef(null),C=c.useMemo(()=>xr(r),[r]),$=c.useMemo(()=>fA(C),[C]),O=c.useMemo(()=>!t||g!==yp?p&&g!==bp&&t?n(hp(C,p),p<$):n(C,!1):n(hp(C,u),u<$),[t,g,n,C,u,$]);Pt(()=>{t&&o&&i&&$&&(y(kc),f([0,Math.ceil($/2),$]))},[t,o,i,r,$,a]),Pt(()=>{var I;g===kc&&v(((I=h.current)===null||I===void 0?void 0:I.offsetHeight)||0)},[g]),Pt(()=>{var I,R;if(b){if(g===kc){const T=((I=S.current)===null||I===void 0?void 0:I.offsetHeight)||0,M=a*b;T<=M?(y(bp),l(!1)):y(wS)}else if(g===wS)if(s!==d){const T=((R=S.current)===null||R===void 0?void 0:R.offsetHeight)||0,M=a*b;let k=s,_=d;s===d-1?_=s:T<=M?k=u:_=u;const D=Math.ceil((k+_)/2);f([k,D,_])}else y(yp),m(u),l(!0)}},[g,s,d,a,b]);const E={width:o,whiteSpace:"normal",margin:0,padding:0},w=(I,R,T)=>c.createElement("span",{"aria-hidden":!0,ref:R,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(i/2)*2},T)},I),x=(I,R)=>{const T=hp(C,I);return w(n(T,!0),R,E)};return c.createElement(c.Fragment,null,O,t&&g!==yp&&g!==bp&&c.createElement(c.Fragment,null,w("lg",h,{wordBreak:"keep-all",whiteSpace:"nowrap"}),g===kc?w(n(C,!1),S,E):x(u,S)))},vA=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:c.createElement(gi,Object.assign({open:n?void 0:!1},o),r)};var gA=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 hA(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:s}=e,u=t;function d(f,p){p&&(u=c.createElement(f,{},u))}return d("strong",a),d("u",o),d("del",i),d("code",r),d("mark",n),d("kbd",l),d("i",s),u}function Dc(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ES(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const yA="...",ef=c.forwardRef((e,t)=>{var n,r,o;const{prefixCls:i,className:a,style:l,type:s,disabled:u,children:d,ellipsis:f,editable:p,copyable:m,component:g,title:y}=e,b=gA(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:h}=c.useContext(ut),[S]=Dd("Text"),C=c.useRef(null),$=c.useRef(null),O=v("typography",i),E=kn(b,["mark","code","delete","underline","strong","keyboard","italic"]),[w,x]=gp(p),[I,R]=on(!1,{value:x.editing}),{triggerType:T=["icon"]}=x,M=ve=>{var De;ve&&((De=x.onStart)===null||De===void 0||De.call(x)),R(ve)};uA(()=>{var ve;I||(ve=$.current)===null||ve===void 0||ve.focus()},[I]);const k=ve=>{ve==null||ve.preventDefault(),M(!0)},_=ve=>{var De;(De=x.onChange)===null||De===void 0||De.call(x,ve),M(!1)},D=()=>{var ve;(ve=x.onCancel)===null||ve===void 0||ve.call(x),M(!1)},[N,P]=gp(m),[z,j]=c.useState(!1),F=c.useRef(null),L={};P.format&&(L.format=P.format);const A=()=>{F.current&&clearTimeout(F.current)},G=ve=>{var De;ve==null||ve.preventDefault(),ve==null||ve.stopPropagation(),YF(P.text||String(d)||"",L),j(!0),A(),F.current=setTimeout(()=>{j(!1)},3e3),(De=P.onCopy)===null||De===void 0||De.call(P,ve)};c.useEffect(()=>A,[]);const[H,V]=c.useState(!1),[J,X]=c.useState(!1),[K,q]=c.useState(!1),[U,Q]=c.useState(!1),[Y,ne]=c.useState(!1),[ee,ie]=c.useState(!0),[ue,me]=gp(f,{expandable:!1}),ae=ue&&!K,{rows:re=1}=me,de=c.useMemo(()=>!ae||me.suffix!==void 0||me.onEllipsis||me.expandable||w||N,[ae,me,w,N]);Pt(()=>{ue&&!de&&(V(Ym("webkitLineClamp")),X(Ym("textOverflow")))},[de,ue]);const se=c.useMemo(()=>de?!1:re===1?J:H,[de,J,H]),he=ae&&(se?Y:U),$e=ae&&re===1&&se,Ce=ae&&re>1&&se,ye=ve=>{var De;q(!0),(De=me.onExpand)===null||De===void 0||De.call(me,ve)},[We,Ke]=c.useState(0),[Ue,Ee]=c.useState(0),pe=(ve,De)=>{let{offsetWidth:qe}=ve;var lt;Ke(qe),Ee(parseInt((lt=window.getComputedStyle)===null||lt===void 0?void 0:lt.call(window,De).fontSize,10)||0)},Ie=ve=>{var De;Q(ve),U!==ve&&((De=me.onEllipsis)===null||De===void 0||De.call(me,ve))};c.useEffect(()=>{const ve=C.current;if(ue&&se&&ve){const De=Ce?ve.offsetHeight<ve.scrollHeight:ve.offsetWidth<ve.scrollWidth;Y!==De&&ne(De)}},[ue,se,d,Ce,ee,We]),c.useEffect(()=>{const ve=C.current;if(typeof IntersectionObserver>"u"||!ve||!se||!ae)return;const De=new IntersectionObserver(()=>{ie(!!ve.offsetParent)});return De.observe(ve),()=>{De.disconnect()}},[se,ae]);let be={};me.tooltip===!0?be={title:(n=x.text)!==null&&n!==void 0?n:d}:c.isValidElement(me.tooltip)?be={title:me.tooltip}:typeof me.tooltip=="object"?be=Object.assign({title:(r=x.text)!==null&&r!==void 0?r:d},me.tooltip):be={title:me.tooltip};const Re=c.useMemo(()=>{const ve=De=>["string","number"].includes(typeof De);if(!(!ue||se)){if(ve(x.text))return x.text;if(ve(d))return d;if(ve(y))return y;if(ve(be.title))return be.title}},[ue,se,y,be.title,he]);if(I)return c.createElement(cA,{value:(o=x.text)!==null&&o!==void 0?o:typeof d=="string"?d:"",onSave:_,onCancel:D,onEnd:x.onEnd,prefixCls:O,className:a,style:l,direction:h,component:g,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});const Oe=()=>{const{expandable:ve,symbol:De}=me;if(!ve)return null;let qe;return De?qe=De:qe=S==null?void 0:S.expand,c.createElement("a",{key:"expand",className:`${O}-expand`,onClick:ye,"aria-label":S==null?void 0:S.expand},qe)},xe=()=>{if(!w)return;const{icon:ve,tooltip:De}=x,qe=xr(De)[0]||(S==null?void 0:S.edit),lt=typeof qe=="string"?qe:"";return T.includes("icon")?c.createElement(gi,{key:"edit",title:De===!1?"":qe},c.createElement(CS,{ref:$,className:`${O}-edit`,onClick:k,"aria-label":lt},ve||c.createElement(VF,{role:"button"}))):null},Fe=()=>{if(!N)return;const{tooltips:ve,icon:De}=P,qe=ES(ve),lt=ES(De),Je=z?Dc(qe[1],S==null?void 0:S.copied):Dc(qe[0],S==null?void 0:S.copy),Te=z?S==null?void 0:S.copied:S==null?void 0:S.copy,ze=typeof Je=="string"?Je:Te;return c.createElement(gi,{key:"copy",title:Je},c.createElement(CS,{className:Z(`${O}-copy`,z&&`${O}-copy-success`),onClick:G,"aria-label":ze},z?Dc(lt[1],c.createElement(oh,null),!0):Dc(lt[0],c.createElement(AF,null),!0)))},Qe=ve=>[ve&&Oe(),xe(),Fe()],Ze=ve=>[ve&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},yA),me.suffix,Qe(ve)];return c.createElement(Vr,{onResize:pe,disabled:!ae},ve=>c.createElement(vA,{tooltipProps:be,enabledEllipsis:ae,isEllipsis:he},c.createElement(n2,Object.assign({className:Z({[`${O}-${s}`]:s,[`${O}-disabled`]:u,[`${O}-ellipsis`]:ue,[`${O}-single-line`]:ae&&re===1,[`${O}-ellipsis-single-line`]:$e,[`${O}-ellipsis-multiple-line`]:Ce},a),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Ce?re:void 0}),component:g,ref:Or(ve,C,t),direction:h,onClick:T.includes("text")?k:void 0,"aria-label":Re==null?void 0:Re.toString(),title:y},E),c.createElement(mA,{enabledMeasure:ae&&!se,text:d,rows:re,width:We,fontSize:Ue,onEllipsis:Ie},(De,qe)=>{let lt=De;return De.length&&qe&&Re&&(lt=c.createElement("span",{key:"show-content","aria-hidden":!0},lt)),hA(e,c.createElement(c.Fragment,null,lt,Ze(qe)))}))))});var bA=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 SA=c.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=bA(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,c.createElement(ef,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),CA=c.forwardRef((e,t)=>c.createElement(ef,Object.assign({ref:t},e,{component:"div"})));var xA=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 wA=(e,t)=>{var{ellipsis:n}=e,r=xA(e,["ellipsis"]);const o=c.useMemo(()=>n&&typeof n=="object"?kn(n,["expandable","rows"]):n,[n]);return c.createElement(ef,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},EA=c.forwardRef(wA);var $A=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 OA=[1,2,3,4,5],IA=c.forwardRef((e,t)=>{const{level:n=1}=e,r=$A(e,["level"]);let o;return OA.includes(n)?o=`h${n}`:o="h1",c.createElement(ef,Object.assign({ref:t},r,{component:o}))}),ea=n2;ea.Text=EA;ea.Link=SA;ea.Title=IA;ea.Paragraph=CA;const Sp=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){var s=r.toLowerCase(),u=l.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return s.endsWith(f)})}return/\/\*$/.test(l)?i===l.replace(/\/.*$/,""):o===l?!0:/^\w+$/.test(l)?(Ut(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function RA(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function $S(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function PA(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(RA(e,t),$S(t)):e.onSuccess($S(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}function NA(e,t){var n=e.createReader(),r=[];function o(){n.readEntries(function(i){var a=Array.prototype.slice.apply(i);r=r.concat(a);var l=!a.length;l?t(r):o()})}o()}var TA=function(t,n,r){var o=function i(a,l){a&&(a.path=l||"",a.isFile?a.file(function(s){r(s)&&(a.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),n([s]))}):a.isDirectory&&NA(a,function(s){s.forEach(function(u){i(u,"".concat(l).concat(a.name,"/"))})}))};t.forEach(function(i){o(i.webkitGetAsEntry())})},MA=+new Date,kA=0;function Cp(){return"rc-upload-".concat(MA,"-").concat(++kA)}var DA=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],_A=function(e){lo(n,e);var t=so(n);function n(){var r;En(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),B(ot(r),"state",{uid:Cp()}),B(ot(r),"reqs",{}),B(ot(r),"fileInput",void 0),B(ot(r),"_isMounted",void 0),B(ot(r),"onChange",function(l){var s=r.props,u=s.accept,d=s.directory,f=l.target.files,p=Se(f).filter(function(m){return!d||Sp(m,u)});r.uploadFiles(p),r.reset()}),B(ot(r),"onClick",function(l){var s=r.fileInput;if(s){var u=l.target,d=r.props.onClick;if(u&&u.tagName==="BUTTON"){var f=s.parentNode;f.focus(),u.blur()}s.click(),d&&d(l)}}),B(ot(r),"onKeyDown",function(l){l.key==="Enter"&&r.onClick(l)}),B(ot(r),"onFileDrop",function(l){var s=r.props.multiple;if(l.preventDefault(),l.type!=="dragover")if(r.props.directory)TA(Array.prototype.slice.call(l.dataTransfer.items),r.uploadFiles,function(d){return Sp(d,r.props.accept)});else{var u=Se(l.dataTransfer.files).filter(function(d){return Sp(d,r.props.accept)});s===!1&&(u=u.slice(0,1)),r.uploadFiles(u)}}),B(ot(r),"uploadFiles",function(l){var s=Se(l),u=s.map(function(d){return d.uid=Cp(),r.processFile(d,s)});Promise.all(u).then(function(d){var f=r.props.onBatchStart;f==null||f(d.map(function(p){var m=p.origin,g=p.parsedFile;return{file:m,parsedFile:g}})),d.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),B(ot(r),"processFile",function(){var l=Si(Hn().mark(function s(u,d){var f,p,m,g,y,b,v,h,S;return Hn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(f=r.props.beforeUpload,p=u,!f){$.next=14;break}return $.prev=3,$.next=6,f(u,d);case 6:p=$.sent,$.next=12;break;case 9:$.prev=9,$.t0=$.catch(3),p=!1;case 12:if(p!==!1){$.next=14;break}return $.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){$.next=21;break}return $.next=18,m(u);case 18:g=$.sent,$.next=22;break;case 21:g=m;case 22:if(y=r.props.data,typeof y!="function"){$.next=29;break}return $.next=26,y(u);case 26:b=$.sent,$.next=30;break;case 29:b=y;case 30:return v=(tt(p)==="object"||typeof p=="string")&&p?p:u,v instanceof File?h=v:h=new File([v],u.name,{type:u.type}),S=h,S.uid=u.uid,$.abrupt("return",{origin:u,data:b,parsedFile:S,action:g});case 35:case"end":return $.stop()}},s,null,[[3,9]])}));return function(s,u){return l.apply(this,arguments)}}()),B(ot(r),"saveFileInput",function(l){r.fileInput=l}),r}return $n(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(o){var i=this,a=o.data,l=o.origin,s=o.action,u=o.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,p=d.customRequest,m=d.name,g=d.headers,y=d.withCredentials,b=d.method,v=l.uid,h=p||PA,S={action:s,filename:m,data:a,file:u,headers:g,withCredentials:y,method:b||"post",onProgress:function($){var O=i.props.onProgress;O==null||O($,u)},onSuccess:function($,O){var E=i.props.onSuccess;E==null||E($,u,O),delete i.reqs[v]},onError:function($,O){var E=i.props.onError;E==null||E($,O,u),delete i.reqs[v]}};f(l),this.reqs[v]=h(S)}}},{key:"reset",value:function(){this.setState({uid:Cp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(l){i[l]&&i[l].abort&&i[l].abort(),delete i[l]})}},{key:"render",value:function(){var o,i=this.props,a=i.component,l=i.prefixCls,s=i.className,u=i.classNames,d=u===void 0?{}:u,f=i.disabled,p=i.id,m=i.style,g=i.styles,y=g===void 0?{}:g,b=i.multiple,v=i.accept,h=i.capture,S=i.children,C=i.directory,$=i.openFileDialogOnClick,O=i.onMouseEnter,E=i.onMouseLeave,w=i.hasControlInside,x=nt(i,DA),I=Z((o={},B(o,l,!0),B(o,"".concat(l,"-disabled"),f),B(o,s,s),o)),R=C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},T=f?{}:{onClick:$?this.onClick:function(){},onKeyDown:$?this.onKeyDown:function(){},onMouseEnter:O,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:w?void 0:"0"};return ce.createElement(a,fe({},T,{className:I,role:w?void 0:"button",style:m}),ce.createElement("input",fe({},io(x,{aria:!0,data:!0}),{id:p,disabled:f,type:"file",ref:this.saveFileInput,onClick:function(k){return k.stopPropagation()},key:this.state.uid,style:W({display:"none"},y.input),className:d.input,accept:v},R,{multiple:b,onChange:this.onChange},h!=null?{capture:h}:{})),S)}}]),n}(c.Component);function xp(){}var Nv=function(e){lo(n,e);var t=so(n);function n(){var r;En(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),B(ot(r),"uploader",void 0),B(ot(r),"saveUploader",function(l){r.uploader=l}),r}return $n(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return ce.createElement(_A,fe({},this.props,{ref:this.saveUploader}))}}]),n}(c.Component);B(Nv,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:xp,onError:xp,onSuccess:xp,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const LA=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"flex",placeContent:"center",outline:"none",borderRadius:e.borderRadiusLG,"&:focus":{outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${te(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},zA=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,s=`${l}-actions`,u=`${l}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Za()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},Ki),{padding:`0 ${te(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${u}:focus-visible,
&.picture ${u}
`]:{opacity:1},[`${u}${n}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},OS=new Ct("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),IS=new Ct("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),jA=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:OS},[`${n}-leave`]:{animationName:IS}}},{[`${t}-wrapper`]:d3(e)},OS,IS]},FA=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
`]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Ki),{width:r,height:r,lineHeight:te(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${te(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${zm[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${zm.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},AA=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},Za()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${te(e.marginXS)}`,marginInline:`0 ${te(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${te(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},BA=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},HA=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Yt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},VA=e=>({actionsColor:e.colorTextDescription}),KA=mn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=wt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[HA(a),LA(a),FA(a),AA(a),zA(a),jA(a),BA(a),Qg(a)]},VA);var WA={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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:t}}]}},name:"file",theme:"twotone"},UA=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:WA}))};const qA=c.forwardRef(UA);var GA={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"},XA=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:GA}))};const YA=c.forwardRef(XA);var QA={icon:function(t,n){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:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{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:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{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:t}}]}},name:"picture",theme:"twotone"},JA=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:QA}))};const ZA=c.forwardRef(JA);function _c(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 Lc(e,t){const n=Se(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function wp(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function e7(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const t7=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},o2=e=>e.indexOf("image/")===0,n7=e=>{if(e.type&&!e.thumbUrl)return o2(e.type);const t=e.thumbUrl||e.url||"",n=t7(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Wo=200;function r7(e){return new Promise(t=>{if(!e.type||!o2(e.type)){t("");return}const n=document.createElement("canvas");n.width=Wo,n.height=Wo,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Wo}px; height: ${Wo}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let l=Wo,s=Wo,u=0,d=0;i>a?(s=a*(Wo/i),d=-(s-l)/2):(l=i*(Wo/a),u=-(l-s)/2),r.drawImage(o,u,d,l,s);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var o7={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"},i7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:o7}))};const a7=c.forwardRef(i7),l7=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:l,items:s,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:m,showPreviewIcon:g,showRemoveIcon:y,showDownloadIcon:b,previewIcon:v,removeIcon:h,downloadIcon:S,onPreview:C,onDownload:$,onClose:O}=e;var E,w;const{status:x}=l,[I,R]=c.useState(x);c.useEffect(()=>{x!=="removed"&&R(x)},[x]);const[T,M]=c.useState(!1);c.useEffect(()=>{const q=setTimeout(()=>{M(!0)},300);return()=>{clearTimeout(q)}},[]);const k=d(l);let _=c.createElement("div",{className:`${n}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!l.thumbUrl&&!l.url){const q=Z(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:I!=="uploading"});_=c.createElement("div",{className:q},k)}else{const q=m!=null&&m(l)?c.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):k,U=Z(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(l)});_=c.createElement("a",{className:U,onClick:Q=>C(l,Q),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const D=Z(`${n}-list-item`,`${n}-list-item-${I}`),N=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,P=y?f((typeof h=="function"?h(l):h)||c.createElement(_F,null),()=>O(l),n,i.removeFile,!0):null,z=b&&I==="done"?f((typeof S=="function"?S(l):S)||c.createElement(a7,null),()=>$(l),n,i.downloadFile):null,j=a!=="picture-card"&&a!=="picture-circle"&&c.createElement("span",{key:"download-delete",className:Z(`${n}-list-item-actions`,{picture:a==="picture"})},z,P),F=Z(`${n}-list-item-name`),L=l.url?[c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:l.name},N,{href:l.url,onClick:q=>C(l,q)}),l.name),j]:[c.createElement("span",{key:"view",className:F,onClick:q=>C(l,q),title:l.name},l.name),j],A=g&&(l.url||l.thumbUrl)?c.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>C(l,q),title:i.previewFile},typeof v=="function"?v(l):v||c.createElement(a$,null)):null,G=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&c.createElement("span",{className:`${n}-list-item-actions`},A,I==="done"&&z,P),{getPrefixCls:H}=c.useContext(ut),V=H(),J=c.createElement("div",{className:D},_,L,G,T&&c.createElement(Bo,{motionName:`${V}-fade`,visible:I==="uploading",motionDeadline:2e3},q=>{let{className:U}=q;const Q="percent"in l?c.createElement(fL,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return c.createElement("div",{className:Z(`${n}-list-item-progress`,U)},Q)})),X=l.response&&typeof l.response=="string"?l.response:((E=l.error)===null||E===void 0?void 0:E.statusText)||((w=l.error)===null||w===void 0?void 0:w.message)||i.uploadError,K=I==="error"?c.createElement(gi,{title:X,getPopupContainer:q=>q.parentNode},J):J;return c.createElement("div",{className:Z(`${n}-list-item-container`,r),style:o,ref:t},p?p(K,l,s,{download:$.bind(null,l),preview:C.bind(null,l),remove:O.bind(null,l)}):K)}),s7=(e,t)=>{const{listType:n="text",previewFile:r=r7,onPreview:o,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:u=n7,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:g=!1,removeIcon:y,previewIcon:b,downloadIcon:v,progress:h={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:$,disabled:O}=e,E=ih(),[w,x]=c.useState(!1);c.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(A=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(A.originFileObj instanceof File||A.originFileObj instanceof Blob)||A.thumbUrl!==void 0||(A.thumbUrl="",r&&r(A.originFileObj).then(G=>{A.thumbUrl=G||"",E()}))})},[n,f,r]),c.useEffect(()=>{x(!0)},[]);const I=(A,G)=>{if(o)return G==null||G.preventDefault(),o(A)},R=A=>{typeof i=="function"?i(A):A.url&&window.open(A.url)},T=A=>{a==null||a(A)},M=A=>{if(s)return s(A,n);const G=A.status==="uploading",H=u&&u(A)?c.createElement(ZA,null):c.createElement(qA,null);let V=G?c.createElement(el,null):c.createElement(YA,null);return n==="picture"?V=G?c.createElement(el,null):H:(n==="picture-card"||n==="picture-circle")&&(V=G?l.uploading:H),V},k=(A,G,H,V,J)=>{const X={type:"text",size:"small",title:V,onClick:K=>{G(),cr(A)&&A.props.onClick&&A.props.onClick(K)},className:`${H}-list-item-action`};if(J&&(X.disabled=O),cr(A)){const K=Xn(A,Object.assign(Object.assign({},A.props),{onClick:()=>{}}));return c.createElement(kt,Object.assign({},X,{icon:K}))}return c.createElement(kt,Object.assign({},X),c.createElement("span",null,A))};c.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:R}));const{getPrefixCls:_}=c.useContext(ut),D=_("upload",d),N=_(),P=Z(`${D}-list`,`${D}-list-${n}`),z=Se(f.map(A=>({key:A.uid,file:A})));let F={motionDeadline:2e3,motionName:`${D}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:z,motionAppear:w};const L=c.useMemo(()=>{const A=Object.assign({},Bg(N));return delete A.onAppearEnd,delete A.onEnterEnd,delete A.onLeaveEnd,A},[N]);return n!=="picture-card"&&n!=="picture-circle"&&(F=Object.assign(Object.assign({},L),F)),c.createElement("div",{className:P},c.createElement(lw,Object.assign({},F,{component:!1}),A=>{let{key:G,file:H,className:V,style:J}=A;return c.createElement(l7,{key:G,locale:l,prefixCls:D,className:V,style:J,file:H,items:f,progress:h,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:g,removeIcon:y,previewIcon:b,downloadIcon:v,iconRender:M,actionIconRender:k,itemRender:$,onPreview:I,onDownload:R,onClose:T})}),S&&c.createElement(Bo,Object.assign({},F,{visible:C,forceRender:!0}),A=>{let{className:G,style:H}=A;return Xn(S,V=>({className:Z(V.className,G),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:G?"none":void 0}),V.style)}))}))},c7=c.forwardRef(s7);var u7=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function s(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,s)}u((r=r.apply(e,[])).next())})};const Fl=`__LIST_IGNORE_${Date.now()}__`,d7=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:l,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:y,progress:b,prefixCls:v,className:h,type:S="select",children:C,style:$,itemRender:O,maxCount:E,data:w={},multiple:x=!1,hasControlInside:I=!0,action:R="",accept:T="",supportServerRender:M=!0,rootClassName:k}=e,_=c.useContext(oo),D=p??_,[N,P]=on(r||[],{value:n,postState:be=>be??[]}),[z,j]=c.useState("drop"),F=c.useRef(null);c.useMemo(()=>{const be=Date.now();(n||[]).forEach((Re,Oe)=>{!Re.uid&&!Object.isFrozen(Re)&&(Re.uid=`__AUTO__${be}_${Oe}__`)})},[n]);const L=(be,Re,Oe)=>{let xe=Se(Re),Fe=!1;E===1?xe=xe.slice(-1):E&&(Fe=xe.length>E,xe=xe.slice(0,E)),Ar.flushSync(()=>{P(xe)});const Qe={file:be,fileList:xe};Oe&&(Qe.event=Oe),(!Fe||xe.some(Ze=>Ze.uid===be.uid))&&Ar.flushSync(()=>{u==null||u(Qe)})},A=(be,Re)=>u7(void 0,void 0,void 0,function*(){const{beforeUpload:Oe,transformFile:xe}=e;let Fe=be;if(Oe){const Qe=yield Oe(be,Re);if(Qe===!1)return!1;if(delete be[Fl],Qe===Fl)return Object.defineProperty(be,Fl,{value:!0,configurable:!0}),!1;typeof Qe=="object"&&Qe&&(Fe=Qe)}return xe&&(Fe=yield xe(Fe)),Fe}),G=be=>{const Re=be.filter(Fe=>!Fe.file[Fl]);if(!Re.length)return;const Oe=Re.map(Fe=>_c(Fe.file));let xe=Se(N);Oe.forEach(Fe=>{xe=Lc(Fe,xe)}),Oe.forEach((Fe,Qe)=>{let Ze=Fe;if(Re[Qe].parsedFile)Fe.status="uploading";else{const{originFileObj:ve}=Fe;let De;try{De=new File([ve],ve.name,{type:ve.type})}catch{De=new Blob([ve],{type:ve.type}),De.name=ve.name,De.lastModifiedDate=new Date,De.lastModified=new Date().getTime()}De.uid=Fe.uid,Ze=De}L(Ze,xe)})},H=(be,Re,Oe)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!wp(Re,N))return;const xe=_c(Re);xe.status="done",xe.percent=100,xe.response=be,xe.xhr=Oe;const Fe=Lc(xe,N);L(xe,Fe)},V=(be,Re)=>{if(!wp(Re,N))return;const Oe=_c(Re);Oe.status="uploading",Oe.percent=be.percent;const xe=Lc(Oe,N);L(Oe,xe,be)},J=(be,Re,Oe)=>{if(!wp(Oe,N))return;const xe=_c(Oe);xe.error=be,xe.response=Re,xe.status="error";const Fe=Lc(xe,N);L(xe,Fe)},X=be=>{let Re;Promise.resolve(typeof o=="function"?o(be):o).then(Oe=>{var xe;if(Oe===!1)return;const Fe=e7(be,N);Fe&&(Re=Object.assign(Object.assign({},be),{status:"removed"}),N==null||N.forEach(Qe=>{const Ze=Re.uid!==void 0?"uid":"name";Qe[Ze]===Re[Ze]&&!Object.isFrozen(Qe)&&(Qe.status="removed")}),(xe=F.current)===null||xe===void 0||xe.abort(Re),L(Re,Fe))})},K=be=>{j(be.type),be.type==="drop"&&(d==null||d(be))};c.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:H,onProgress:V,onError:J,fileList:N,upload:F.current}));const{getPrefixCls:q,direction:U,upload:Q}=c.useContext(ut),Y=q("upload",v),ne=Object.assign(Object.assign({onBatchStart:G,onError:J,onProgress:V,onSuccess:H},e),{data:w,multiple:x,action:R,accept:T,supportServerRender:M,prefixCls:Y,disabled:D,beforeUpload:A,onChange:void 0,hasControlInside:I});delete ne.className,delete ne.style,(!C||D)&&delete ne.id;const ee=`${Y}-wrapper`,[ie,ue,me]=KA(Y,ee),[ae]=Dd("Upload",mi.Upload),{showRemoveIcon:re,showPreviewIcon:de,showDownloadIcon:se,removeIcon:he,previewIcon:$e,downloadIcon:Ce}=typeof i=="boolean"?{}:i,ye=typeof re>"u"?!D:!!re,We=(be,Re)=>i?c.createElement(c7,{prefixCls:Y,listType:a,items:N,previewFile:f,onPreview:l,onDownload:s,onRemove:X,showRemoveIcon:ye,showPreviewIcon:de,showDownloadIcon:se,removeIcon:he,previewIcon:$e,downloadIcon:Ce,iconRender:g,locale:Object.assign(Object.assign({},ae),m),isImageUrl:y,progress:b,appendAction:be,appendActionVisible:Re,itemRender:O,disabled:D}):be,Ke=Z(ee,h,k,ue,me,Q==null?void 0:Q.className,{[`${Y}-rtl`]:U==="rtl",[`${Y}-picture-card-wrapper`]:a==="picture-card",[`${Y}-picture-circle-wrapper`]:a==="picture-circle"}),Ue=Object.assign(Object.assign({},Q==null?void 0:Q.style),$);if(S==="drag"){const be=Z(ue,Y,`${Y}-drag`,{[`${Y}-drag-uploading`]:N.some(Re=>Re.status==="uploading"),[`${Y}-drag-hover`]:z==="dragover",[`${Y}-disabled`]:D,[`${Y}-rtl`]:U==="rtl"});return ie(c.createElement("span",{className:Ke},c.createElement("div",{className:be,style:Ue,onDrop:K,onDragOver:K,onDragLeave:K},c.createElement(Nv,Object.assign({},ne,{ref:F,className:`${Y}-btn`}),c.createElement("div",{className:`${Y}-drag-container`},C))),We()))}const Ee=Z(Y,`${Y}-select`,{[`${Y}-disabled`]:D}),Ie=(be=>c.createElement("div",{className:Ee,style:be},c.createElement(Nv,Object.assign({},ne,{ref:F}))))(C?void 0:{display:"none"});return ie(a==="picture-card"||a==="picture-circle"?c.createElement("span",{className:Ke},We(Ie,!!C)):c.createElement("span",{className:Ke},Ie,We()))},i2=c.forwardRef(d7);var f7=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 p7=c.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=f7(e,["style","height","hasControlInside"]);return c.createElement(i2,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Th=i2;Th.Dragger=p7;Th.LIST_IGNORE=Fl;var a2={exports:{}};/* @license
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/(function(e,t){(function(n,r){e.exports=r()})(p2,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},l=0,s={parse:function(w,x){var I=(x=x||{}).dynamicTyping||!1;if(E(I)&&(x.dynamicTypingFunction=I,I={}),x.dynamicTyping=I,x.transform=!!E(x.transform)&&x.transform,x.worker&&s.WORKERS_SUPPORTED){var R=function(){if(!s.WORKERS_SUPPORTED)return!1;var M=(_=r.URL||r.webkitURL||null,D=n.toString(),s.BLOB_URL||(s.BLOB_URL=_.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",D,")();"],{type:"text/javascript"})))),k=new r.Worker(M),_,D;return k.onmessage=h,k.id=l++,a[k.id]=k}();return R.userStep=x.step,R.userChunk=x.chunk,R.userComplete=x.complete,R.userError=x.error,x.step=E(x.step),x.chunk=E(x.chunk),x.complete=E(x.complete),x.error=E(x.error),delete x.worker,void R.postMessage({input:w,config:x,workerId:R.id})}var T=null;return s.NODE_STREAM_INPUT,typeof w=="string"?(w=function(M){return M.charCodeAt(0)===65279?M.slice(1):M}(w),T=x.download?new f(x):new m(x)):w.readable===!0&&E(w.read)&&E(w.on)?T=new g(x):(r.File&&w instanceof File||w instanceof Object)&&(T=new p(x)),T.stream(w)},unparse:function(w,x){var I=!1,R=!0,T=",",M=`\r
`,k='"',_=k+k,D=!1,N=null,P=!1;(function(){if(typeof x=="object"){if(typeof x.delimiter!="string"||s.BAD_DELIMITERS.filter(function(L){return x.delimiter.indexOf(L)!==-1}).length||(T=x.delimiter),(typeof x.quotes=="boolean"||typeof x.quotes=="function"||Array.isArray(x.quotes))&&(I=x.quotes),typeof x.skipEmptyLines!="boolean"&&typeof x.skipEmptyLines!="string"||(D=x.skipEmptyLines),typeof x.newline=="string"&&(M=x.newline),typeof x.quoteChar=="string"&&(k=x.quoteChar),typeof x.header=="boolean"&&(R=x.header),Array.isArray(x.columns)){if(x.columns.length===0)throw new Error("Option columns is empty");N=x.columns}x.escapeChar!==void 0&&(_=x.escapeChar+k),(typeof x.escapeFormulae=="boolean"||x.escapeFormulae instanceof RegExp)&&(P=x.escapeFormulae instanceof RegExp?x.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var z=new RegExp(b(k),"g");if(typeof w=="string"&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return j(null,w,D);if(typeof w[0]=="object")return j(N||Object.keys(w[0]),w,D)}else if(typeof w=="object")return typeof w.data=="string"&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||N),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:typeof w.data[0]=="object"?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||typeof w.data[0]=="object"||(w.data=[w.data])),j(w.fields||[],w.data||[],D);throw new Error("Unable to serialize unrecognized input");function j(L,A,G){var H="";typeof L=="string"&&(L=JSON.parse(L)),typeof A=="string"&&(A=JSON.parse(A));var V=Array.isArray(L)&&0<L.length,J=!Array.isArray(A[0]);if(V&&R){for(var X=0;X<L.length;X++)0<X&&(H+=T),H+=F(L[X],X);0<A.length&&(H+=M)}for(var K=0;K<A.length;K++){var q=V?L.length:A[K].length,U=!1,Q=V?Object.keys(A[K]).length===0:A[K].length===0;if(G&&!V&&(U=G==="greedy"?A[K].join("").trim()==="":A[K].length===1&&A[K][0].length===0),G==="greedy"&&V){for(var Y=[],ne=0;ne<q;ne++){var ee=J?L[ne]:ne;Y.push(A[K][ee])}U=Y.join("").trim()===""}if(!U){for(var ie=0;ie<q;ie++){0<ie&&!Q&&(H+=T);var ue=V&&J?L[ie]:ie;H+=F(A[K][ue],ie)}K<A.length-1&&(!G||0<q&&!Q)&&(H+=M)}}return H}function F(L,A){if(L==null)return"";if(L.constructor===Date)return JSON.stringify(L).slice(1,25);var G=!1;P&&typeof L=="string"&&P.test(L)&&(L="'"+L,G=!0);var H=L.toString().replace(z,_);return(G=G||I===!0||typeof I=="function"&&I(L,A)||Array.isArray(I)&&I[A]||function(V,J){for(var X=0;X<J.length;X++)if(-1<V.indexOf(J[X]))return!0;return!1}(H,s.BAD_DELIMITERS)||-1<H.indexOf(T)||H.charAt(0)===" "||H.charAt(H.length-1)===" ")?k+H+k:H}}};if(s.RECORD_SEP="",s.UNIT_SEP="",s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!o&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=v,s.ParserHandle=y,s.NetworkStreamer=f,s.FileStreamer=p,s.StringStreamer=m,s.ReadableStreamStreamer=g,r.jQuery){var u=r.jQuery;u.fn.parse=function(w){var x=w.config||{},I=[];return this.each(function(M){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var k=0;k<this.files.length;k++)I.push({file:this.files[k],inputElem:this,instanceConfig:u.extend({},x)})}),R(),this;function R(){if(I.length!==0){var M,k,_,D,N=I[0];if(E(w.before)){var P=w.before(N.file,N.inputElem);if(typeof P=="object"){if(P.action==="abort")return M="AbortError",k=N.file,_=N.inputElem,D=P.reason,void(E(w.error)&&w.error({name:M},k,_,D));if(P.action==="skip")return void T();typeof P.config=="object"&&(N.instanceConfig=u.extend(N.instanceConfig,P.config))}else if(P==="skip")return void T()}var z=N.instanceConfig.complete;N.instanceConfig.complete=function(j){E(z)&&z(j,N.file,N.inputElem),T()},s.parse(N.file,N.instanceConfig)}else E(w.complete)&&w.complete()}function T(){I.splice(0,1),R()}}}function d(w){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(x){var I=$(x);I.chunkSize=parseInt(I.chunkSize),x.step||x.chunk||(I.chunkSize=null),this._handle=new y(I),(this._handle.streamer=this)._config=I}).call(this,w),this.parseChunk=function(x,I){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var R=this._config.beforeFirstChunk(x);R!==void 0&&(x=R)}this.isFirstChunk=!1,this._halted=!1;var T=this._partialLine+x;this._partialLine="";var M=this._handle.parse(T,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var k=M.meta.cursor;this._finished||(this._partialLine=T.substring(k-this._baseIndex),this._baseIndex=k),M&&M.data&&(this._rowCount+=M.data.length);var _=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:M,workerId:s.WORKER_ID,finished:_});else if(E(this._config.chunk)&&!I){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);M=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!_||!E(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),_||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(x){E(this._config.error)?this._config.error(x):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:x,finished:!1})}}function f(w){var x;(w=w||{}).chunkSize||(w.chunkSize=s.RemoteChunkSize),d.call(this,w),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(x=new XMLHttpRequest,this._config.withCredentials&&(x.withCredentials=this._config.withCredentials),o||(x.onload=O(this._chunkLoaded,this),x.onerror=O(this._chunkError,this)),x.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var R in I)x.setRequestHeader(R,I[R])}if(this._config.chunkSize){var T=this._start+this._config.chunkSize-1;x.setRequestHeader("Range","bytes="+this._start+"-"+T)}try{x.send(this._config.downloadRequestBody)}catch(M){this._chunkError(M.message)}o&&x.status===0&&this._chunkError()}},this._chunkLoaded=function(){x.readyState===4&&(x.status<200||400<=x.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:x.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var R=I.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(x),this.parseChunk(x.responseText)))},this._chunkError=function(I){var R=x.statusText||I;this._sendError(new Error(R))}}function p(w){var x,I;(w=w||{}).chunkSize||(w.chunkSize=s.LocalChunkSize),d.call(this,w);var R=typeof FileReader<"u";this.stream=function(T){this._input=T,I=T.slice||T.webkitSlice||T.mozSlice,R?((x=new FileReader).onload=O(this._chunkLoaded,this),x.onerror=O(this._chunkError,this)):x=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var T=this._input;if(this._config.chunkSize){var M=Math.min(this._start+this._config.chunkSize,this._input.size);T=I.call(T,this._start,M)}var k=x.readAsText(T,this._config.encoding);R||this._chunkLoaded({target:{result:k}})},this._chunkLoaded=function(T){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(T.target.result)},this._chunkError=function(){this._sendError(x.error)}}function m(w){var x;d.call(this,w=w||{}),this.stream=function(I){return x=I,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var I,R=this._config.chunkSize;return R?(I=x.substring(0,R),x=x.substring(R)):(I=x,x=""),this._finished=!x,this.parseChunk(I)}}}function g(w){d.call(this,w=w||{});var x=[],I=!0,R=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(T){this._input=T,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){R&&x.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),x.length?this.parseChunk(x.shift()):I=!0},this._streamData=O(function(T){try{x.push(typeof T=="string"?T:T.toString(this._config.encoding)),I&&(I=!1,this._checkIsFinished(),this.parseChunk(x.shift()))}catch(M){this._streamError(M)}},this),this._streamError=O(function(T){this._streamCleanUp(),this._sendError(T)},this),this._streamEnd=O(function(){this._streamCleanUp(),R=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(w){var x,I,R,T=Math.pow(2,53),M=-T,k=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,_=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,D=this,N=0,P=0,z=!1,j=!1,F=[],L={data:[],errors:[],meta:{}};if(E(w.step)){var A=w.step;w.step=function(K){if(L=K,V())H();else{if(H(),L.data.length===0)return;N+=K.data.length,w.preview&&N>w.preview?I.abort():(L.data=L.data[0],A(L,D))}}}function G(K){return w.skipEmptyLines==="greedy"?K.join("").trim()==="":K.length===1&&K[0].length===0}function H(){return L&&R&&(X("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),R=!1),w.skipEmptyLines&&(L.data=L.data.filter(function(K){return!G(K)})),V()&&function(){if(!L)return;function K(U,Q){E(w.transformHeader)&&(U=w.transformHeader(U,Q)),F.push(U)}if(Array.isArray(L.data[0])){for(var q=0;V()&&q<L.data.length;q++)L.data[q].forEach(K);L.data.splice(0,1)}else L.data.forEach(K)}(),function(){if(!L||!w.header&&!w.dynamicTyping&&!w.transform)return L;function K(U,Q){var Y,ne=w.header?{}:[];for(Y=0;Y<U.length;Y++){var ee=Y,ie=U[Y];w.header&&(ee=Y>=F.length?"__parsed_extra":F[Y]),w.transform&&(ie=w.transform(ie,ee)),ie=J(ee,ie),ee==="__parsed_extra"?(ne[ee]=ne[ee]||[],ne[ee].push(ie)):ne[ee]=ie}return w.header&&(Y>F.length?X("FieldMismatch","TooManyFields","Too many fields: expected "+F.length+" fields but parsed "+Y,P+Q):Y<F.length&&X("FieldMismatch","TooFewFields","Too few fields: expected "+F.length+" fields but parsed "+Y,P+Q)),ne}var q=1;return!L.data.length||Array.isArray(L.data[0])?(L.data=L.data.map(K),q=L.data.length):L.data=K(L.data,0),w.header&&L.meta&&(L.meta.fields=F),P+=q,L}()}function V(){return w.header&&F.length===0}function J(K,q){return U=K,w.dynamicTypingFunction&&w.dynamicTyping[U]===void 0&&(w.dynamicTyping[U]=w.dynamicTypingFunction(U)),(w.dynamicTyping[U]||w.dynamicTyping)===!0?q==="true"||q==="TRUE"||q!=="false"&&q!=="FALSE"&&(function(Q){if(k.test(Q)){var Y=parseFloat(Q);if(M<Y&&Y<T)return!0}return!1}(q)?parseFloat(q):_.test(q)?new Date(q):q===""?null:q):q;var U}function X(K,q,U,Q){var Y={type:K,code:q,message:U};Q!==void 0&&(Y.row=Q),L.errors.push(Y)}this.parse=function(K,q,U){var Q=w.quoteChar||'"';if(w.newline||(w.newline=function(ee,ie){ee=ee.substring(0,1048576);var ue=new RegExp(b(ie)+"([^]*?)"+b(ie),"gm"),me=(ee=ee.replace(ue,"")).split("\r"),ae=ee.split(`
`),re=1<ae.length&&ae[0].length<me[0].length;if(me.length===1||re)return`
`;for(var de=0,se=0;se<me.length;se++)me[se][0]===`
`&&de++;return de>=me.length/2?`\r
`:"\r"}(K,Q)),R=!1,w.delimiter)E(w.delimiter)&&(w.delimiter=w.delimiter(K),L.meta.delimiter=w.delimiter);else{var Y=function(ee,ie,ue,me,ae){var re,de,se,he;ae=ae||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var $e=0;$e<ae.length;$e++){var Ce=ae[$e],ye=0,We=0,Ke=0;se=void 0;for(var Ue=new v({comments:me,delimiter:Ce,newline:ie,preview:10}).parse(ee),Ee=0;Ee<Ue.data.length;Ee++)if(ue&&G(Ue.data[Ee]))Ke++;else{var pe=Ue.data[Ee].length;We+=pe,se!==void 0?0<pe&&(ye+=Math.abs(pe-se),se=pe):se=pe}0<Ue.data.length&&(We/=Ue.data.length-Ke),(de===void 0||ye<=de)&&(he===void 0||he<We)&&1.99<We&&(de=ye,re=Ce,he=We)}return{successful:!!(w.delimiter=re),bestDelimiter:re}}(K,w.newline,w.skipEmptyLines,w.comments,w.delimitersToGuess);Y.successful?w.delimiter=Y.bestDelimiter:(R=!0,w.delimiter=s.DefaultDelimiter),L.meta.delimiter=w.delimiter}var ne=$(w);return w.preview&&w.header&&ne.preview++,x=K,I=new v(ne),L=I.parse(x,q,U),H(),z?{meta:{paused:!0}}:L||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,I.abort(),x=E(w.chunk)?"":x.substring(I.getCharIndex())},this.resume=function(){D.streamer._halted?(z=!1,D.streamer.parseChunk(x,!0)):setTimeout(D.resume,3)},this.aborted=function(){return j},this.abort=function(){j=!0,I.abort(),L.meta.aborted=!0,E(w.complete)&&w.complete(L),x=""}}function b(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(w){var x,I=(w=w||{}).delimiter,R=w.newline,T=w.comments,M=w.step,k=w.preview,_=w.fastMode,D=x=w.quoteChar===void 0||w.quoteChar===null?'"':w.quoteChar;if(w.escapeChar!==void 0&&(D=w.escapeChar),(typeof I!="string"||-1<s.BAD_DELIMITERS.indexOf(I))&&(I=","),T===I)throw new Error("Comment character same as delimiter");T===!0?T="#":(typeof T!="string"||-1<s.BAD_DELIMITERS.indexOf(T))&&(T=!1),R!==`
`&&R!=="\r"&&R!==`\r
`&&(R=`
`);var N=0,P=!1;this.parse=function(z,j,F){if(typeof z!="string")throw new Error("Input must be a string");var L=z.length,A=I.length,G=R.length,H=T.length,V=E(M),J=[],X=[],K=[],q=N=0;if(!z)return Ie();if(w.header&&!j){var U=z.split(R)[0].split(I),Q=[],Y={},ne=!1;for(var ee in U){var ie=U[ee];E(w.transformHeader)&&(ie=w.transformHeader(ie,ee));var ue=ie,me=Y[ie]||0;for(0<me&&(ne=!0,ue=ie+"_"+me),Y[ie]=me+1;Q.includes(ue);)ue=ue+"_"+me;Q.push(ue)}if(ne){var ae=z.split(R);ae[0]=Q.join(I),z=ae.join(R)}}if(_||_!==!1&&z.indexOf(x)===-1){for(var re=z.split(R),de=0;de<re.length;de++){if(K=re[de],N+=K.length,de!==re.length-1)N+=R.length;else if(F)return Ie();if(!T||K.substring(0,H)!==T){if(V){if(J=[],Ke(K.split(I)),be(),P)return Ie()}else Ke(K.split(I));if(k&&k<=de)return J=J.slice(0,k),Ie(!0)}}return Ie()}for(var se=z.indexOf(I,N),he=z.indexOf(R,N),$e=new RegExp(b(D)+b(x),"g"),Ce=z.indexOf(x,N);;)if(z[N]!==x)if(T&&K.length===0&&z.substring(N,N+H)===T){if(he===-1)return Ie();N=he+G,he=z.indexOf(R,N),se=z.indexOf(I,N)}else if(se!==-1&&(se<he||he===-1))K.push(z.substring(N,se)),N=se+A,se=z.indexOf(I,N);else{if(he===-1)break;if(K.push(z.substring(N,he)),pe(he+G),V&&(be(),P))return Ie();if(k&&J.length>=k)return Ie(!0)}else for(Ce=N,N++;;){if((Ce=z.indexOf(x,Ce+1))===-1)return F||X.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:J.length,index:N}),Ee();if(Ce===L-1)return Ee(z.substring(N,Ce).replace($e,x));if(x!==D||z[Ce+1]!==D){if(x===D||Ce===0||z[Ce-1]!==D){se!==-1&&se<Ce+1&&(se=z.indexOf(I,Ce+1)),he!==-1&&he<Ce+1&&(he=z.indexOf(R,Ce+1));var ye=Ue(he===-1?se:Math.min(se,he));if(z.substr(Ce+1+ye,A)===I){K.push(z.substring(N,Ce).replace($e,x)),z[N=Ce+1+ye+A]!==x&&(Ce=z.indexOf(x,N)),se=z.indexOf(I,N),he=z.indexOf(R,N);break}var We=Ue(he);if(z.substring(Ce+1+We,Ce+1+We+G)===R){if(K.push(z.substring(N,Ce).replace($e,x)),pe(Ce+1+We+G),se=z.indexOf(I,N),Ce=z.indexOf(x,N),V&&(be(),P))return Ie();if(k&&J.length>=k)return Ie(!0);break}X.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:J.length,index:N}),Ce++}}else Ce++}return Ee();function Ke(Re){J.push(Re),q=N}function Ue(Re){var Oe=0;if(Re!==-1){var xe=z.substring(Ce+1,Re);xe&&xe.trim()===""&&(Oe=xe.length)}return Oe}function Ee(Re){return F||(Re===void 0&&(Re=z.substring(N)),K.push(Re),N=L,Ke(K),V&&be()),Ie()}function pe(Re){N=Re,Ke(K),K=[],he=z.indexOf(R,N)}function Ie(Re){return{data:J,errors:X,meta:{delimiter:I,linebreak:R,aborted:P,truncated:!!Re,cursor:q+(j||0)}}}function be(){M(Ie()),J=[],X=[]}},this.abort=function(){P=!0},this.getCharIndex=function(){return N}}function h(w){var x=w.data,I=a[x.workerId],R=!1;if(x.error)I.userError(x.error,x.file);else if(x.results&&x.results.data){var T={abort:function(){R=!0,S(x.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(E(I.userStep)){for(var M=0;M<x.results.data.length&&(I.userStep({data:x.results.data[M],errors:x.results.errors,meta:x.results.meta},T),!R);M++);delete x.results}else E(I.userChunk)&&(I.userChunk(x.results,T,x.file),delete x.results)}x.finished&&!R&&S(x.workerId,x.results)}function S(w,x){var I=a[w];E(I.userComplete)&&I.userComplete(x),I.terminate(),delete a[w]}function C(){throw new Error("Not implemented.")}function $(w){if(typeof w!="object"||w===null)return w;var x=Array.isArray(w)?[]:{};for(var I in w)x[I]=$(w[I]);return x}function O(w,x){return function(){w.apply(x,arguments)}}function E(w){return typeof w=="function"}return i&&(r.onmessage=function(w){var x=w.data;if(s.WORKER_ID===void 0&&x&&(s.WORKER_ID=x.workerId),typeof x.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(x.input,x.config),finished:!0});else if(r.File&&x.input instanceof File||x.input instanceof Object){var I=s.parse(x.input,x.config);I&&r.postMessage({workerId:s.WORKER_ID,results:I,finished:!0})}}),(f.prototype=Object.create(d.prototype)).constructor=f,(p.prototype=Object.create(d.prototype)).constructor=p,(m.prototype=Object.create(m.prototype)).constructor=m,(g.prototype=Object.create(d.prototype)).constructor=g,s})})(a2);var m7=a2.exports;const v7=al(m7);var g7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},h7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:g7}))};const y7=c.forwardRef(h7);var b7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},S7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:b7}))};const C7=c.forwardRef(S7);var x7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},w7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:x7}))};const E7=c.forwardRef(w7);var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},O7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:$7}))};const I7=c.forwardRef(O7);var R7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},P7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:R7}))};const N7=c.forwardRef(P7);var T7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},M7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:T7}))};const k7=c.forwardRef(M7);var D7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},_7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:D7}))};const L7=c.forwardRef(_7);var z7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"},j7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:z7}))};const F7=c.forwardRef(j7);var A7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},B7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:A7}))};const H7=c.forwardRef(B7);var V7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},K7=function(t,n){return c.createElement(pt,fe({},t,{ref:n,icon:V7}))};const l2=c.forwardRef(K7),Mh=({severity:e})=>{let t;switch(e.toLowerCase()){case"critical":t="#FF6666";break;case"high":t="#FF9966";break;case"medium":t="#FFCC66";break;case"low":t="#FFFF99";break;default:t="#CCFFFF";break}return le.jsx(e2,{color:t,style:{backgroundColor:t,color:"#000"},children:e},e)},kh=[{text:"CRITICAL",value:"CRITICAL"},{text:"HIGH",value:"HIGH"},{text:"MEDIUM",value:"MEDIUM"},{text:"LOW",value:"LOW"}];var s2={exports:{}};(function(e){e.exports=function(t){var n={};function r(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=n,r.p="",r(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});function o(l){return l&&l.__esModule?l:{default:l}}var i=r(2),a=o(i);n.default=a.default,t.exports=n.default},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var v in b)Object.prototype.hasOwnProperty.call(b,v)&&(g[v]=b[v])}return g};n.default=m;function i(g){return g&&g.__esModule?g:{default:g}}function a(g,y){var b={};for(var v in g)y.indexOf(v)>=0||Object.prototype.hasOwnProperty.call(g,v)&&(b[v]=g[v]);return b}var l=r(3),s=r(4),u=i(s),d=r(14),f=r(15),p=i(f);m.propTypes={activeClassName:u.default.string,activeIndex:u.default.number,activeStyle:u.default.object,autoEscape:u.default.bool,className:u.default.string,findChunks:u.default.func,highlightClassName:u.default.oneOfType([u.default.object,u.default.string]),highlightStyle:u.default.object,highlightTag:u.default.oneOfType([u.default.node,u.default.func,u.default.string]),sanitize:u.default.func,searchWords:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.instanceOf(RegExp)])).isRequired,textToHighlight:u.default.string.isRequired,unhighlightTag:u.default.oneOfType([u.default.node,u.default.func,u.default.string]),unhighlightClassName:u.default.string,unhighlightStyle:u.default.object};function m(g){var y=g.activeClassName,b=y===void 0?"":y,v=g.activeIndex,h=v===void 0?-1:v,S=g.activeStyle,C=g.autoEscape,$=g.caseSensitive,O=$===void 0?!1:$,E=g.className,w=g.findChunks,x=g.highlightClassName,I=x===void 0?"":x,R=g.highlightStyle,T=R===void 0?{}:R,M=g.highlightTag,k=M===void 0?"mark":M,_=g.sanitize,D=g.searchWords,N=g.textToHighlight,P=g.unhighlightTag,z=P===void 0?"span":P,j=g.unhighlightClassName,F=j===void 0?"":j,L=g.unhighlightStyle,A=a(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),G=(0,l.findAll)({autoEscape:C,caseSensitive:O,findChunks:w,sanitize:_,searchWords:D,textToHighlight:N}),H=k,V=-1,J="",X=void 0,K=function(Q){var Y={};for(var ne in Q)Y[ne.toLowerCase()]=Q[ne];return Y},q=(0,p.default)(K);return(0,d.createElement)("span",o({className:E},A,{children:G.map(function(U,Q){var Y=N.substr(U.start,U.end-U.start);if(U.highlight){V++;var ne=void 0;typeof I=="object"?O?ne=I[Y]:(I=q(I),ne=I[Y.toLowerCase()]):ne=I;var ee=V===+h;J=ne+" "+(ee?b:""),X=ee===!0&&S!=null?Object.assign({},T,S):T;var ie={children:Y,className:J,key:Q,style:X};return typeof H!="string"&&(ie.highlightIndex=V),(0,d.createElement)(H,ie)}else return(0,d.createElement)(z,{children:Y,className:F,key:Q,style:L})})}))}t.exports=n.default},function(t,n){t.exports=function(r){var o={};function i(a){if(o[a])return o[a].exports;var l=o[a]={exports:{},id:a,loaded:!1};return r[a].call(l.exports,l,l.exports,i),l.loaded=!0,l.exports}return i.m=r,i.c=o,i.p="",i(0)}([function(r,o,i){r.exports=i(1)},function(r,o,i){Object.defineProperty(o,"__esModule",{value:!0});var a=i(2);Object.defineProperty(o,"combineChunks",{enumerable:!0,get:function(){return a.combineChunks}}),Object.defineProperty(o,"fillInChunks",{enumerable:!0,get:function(){return a.fillInChunks}}),Object.defineProperty(o,"findAll",{enumerable:!0,get:function(){return a.findAll}}),Object.defineProperty(o,"findChunks",{enumerable:!0,get:function(){return a.findChunks}})},function(r,o){Object.defineProperty(o,"__esModule",{value:!0}),o.findAll=function(f){var p=f.autoEscape,m=f.caseSensitive,g=m===void 0?!1:m,y=f.findChunks,b=y===void 0?a:y,v=f.sanitize,h=f.searchWords,S=f.textToHighlight;return l({chunksToHighlight:i({chunks:b({autoEscape:p,caseSensitive:g,sanitize:v,searchWords:h,textToHighlight:S})}),totalLength:S?S.length:0})};var i=o.combineChunks=function(f){var p=f.chunks;return p=p.sort(function(m,g){return m.start-g.start}).reduce(function(m,g){if(m.length===0)return[g];var y=m.pop();if(g.start<=y.end){var b=Math.max(y.end,g.end);m.push({start:y.start,end:b})}else m.push(y,g);return m},[]),p},a=function(f){var p=f.autoEscape,m=f.caseSensitive,g=f.sanitize,y=g===void 0?s:g,b=f.searchWords,v=f.textToHighlight;return v=y(v),b.filter(function(h){return h}).reduce(function(h,S){S=y(S),p&&(S=u(S));for(var C=new RegExp(S,m?"g":"gi"),$=void 0;$=C.exec(v);){var O=$.index,E=C.lastIndex;E>O&&h.push({start:O,end:E}),$.index==C.lastIndex&&C.lastIndex++}return h},[])};o.findChunks=a;var l=o.fillInChunks=function(f){var p=f.chunksToHighlight,m=f.totalLength,g=[],y=function(h,S,C){S-h>0&&g.push({start:h,end:S,highlight:C})};if(p.length===0)y(0,m,!1);else{var b=0;p.forEach(function(v){y(b,v.start,!1),y(v.start,v.end,!0),b=v.end}),y(b,m,!1)}return g};function s(d){return d}function u(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,n,r){(function(o){if(o.env.NODE_ENV!=="production"){var i=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,a=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===i},l=!0;t.exports=r(6)(a,l)}else t.exports=r(13)()}).call(n,r(5))},function(t,n){var r=t.exports={},o,i;function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=a}catch{o=a}try{typeof clearTimeout=="function"?i=clearTimeout:i=l}catch{i=l}})();function s(h){if(o===setTimeout)return setTimeout(h,0);if((o===a||!o)&&setTimeout)return o=setTimeout,setTimeout(h,0);try{return o(h,0)}catch{try{return o.call(null,h,0)}catch{return o.call(this,h,0)}}}function u(h){if(i===clearTimeout)return clearTimeout(h);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(h);try{return i(h)}catch{try{return i.call(null,h)}catch{return i.call(this,h)}}}var d=[],f=!1,p,m=-1;function g(){!f||!p||(f=!1,p.length?d=p.concat(d):m=-1,d.length&&y())}function y(){if(!f){var h=s(g);f=!0;for(var S=d.length;S;){for(p=d,d=[];++m<S;)p&&p[m].run();m=-1,S=d.length}p=null,f=!1,u(h)}}r.nextTick=function(h){var S=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)S[C-1]=arguments[C];d.push(new b(h,S)),d.length===1&&!f&&s(y)};function b(h,S){this.fun=h,this.array=S}b.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function v(){}r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(h){return[]},r.binding=function(h){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(h){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,n,r){(function(o){var i=r(7),a=r(8),l=r(9),s=r(10),u=r(11),d=r(12);t.exports=function(f,p){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function y(L){var A=L&&(m&&L[m]||L[g]);if(typeof A=="function")return A}var b="<<anonymous>>",v={array:$("array"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:O(),arrayOf:E,element:w(),instanceOf:x,node:M(),objectOf:R,oneOf:I,oneOfType:T,shape:k,exact:_};function h(L,A){return L===A?L!==0||1/L===1/A:L!==L&&A!==A}function S(L){this.message=L,this.stack=""}S.prototype=Error.prototype;function C(L){if(o.env.NODE_ENV!=="production")var A={},G=0;function H(J,X,K,q,U,Q,Y){if(q=q||b,Q=Q||K,Y!==u){if(p)a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(o.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=q+":"+K;!A[ne]&&G<3&&(l(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",Q,q),A[ne]=!0,G++)}}return X[K]==null?J?X[K]===null?new S("The "+U+" `"+Q+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new S("The "+U+" `"+Q+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:L(X,K,q,U,Q)}var V=H.bind(null,!1);return V.isRequired=H.bind(null,!0),V}function $(L){function A(G,H,V,J,X,K){var q=G[H],U=P(q);if(U!==L){var Q=z(q);return new S("Invalid "+J+" `"+X+"` of type "+("`"+Q+"` supplied to `"+V+"`, expected ")+("`"+L+"`."))}return null}return C(A)}function O(){return C(i.thatReturnsNull)}function E(L){function A(G,H,V,J,X){if(typeof L!="function")return new S("Property `"+X+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var K=G[H];if(!Array.isArray(K)){var q=P(K);return new S("Invalid "+J+" `"+X+"` of type "+("`"+q+"` supplied to `"+V+"`, expected an array."))}for(var U=0;U<K.length;U++){var Q=L(K,U,V,J,X+"["+U+"]",u);if(Q instanceof Error)return Q}return null}return C(A)}function w(){function L(A,G,H,V,J){var X=A[G];if(!f(X)){var K=P(X);return new S("Invalid "+V+" `"+J+"` of type "+("`"+K+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return C(L)}function x(L){function A(G,H,V,J,X){if(!(G[H]instanceof L)){var K=L.name||b,q=F(G[H]);return new S("Invalid "+J+" `"+X+"` of type "+("`"+q+"` supplied to `"+V+"`, expected ")+("instance of `"+K+"`."))}return null}return C(A)}function I(L){if(!Array.isArray(L))return o.env.NODE_ENV!=="production"&&l(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;function A(G,H,V,J,X){for(var K=G[H],q=0;q<L.length;q++)if(h(K,L[q]))return null;var U=JSON.stringify(L);return new S("Invalid "+J+" `"+X+"` of value `"+K+"` "+("supplied to `"+V+"`, expected one of "+U+"."))}return C(A)}function R(L){function A(G,H,V,J,X){if(typeof L!="function")return new S("Property `"+X+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var K=G[H],q=P(K);if(q!=="object")return new S("Invalid "+J+" `"+X+"` of type "+("`"+q+"` supplied to `"+V+"`, expected an object."));for(var U in K)if(K.hasOwnProperty(U)){var Q=L(K,U,V,J,X+"."+U,u);if(Q instanceof Error)return Q}return null}return C(A)}function T(L){if(!Array.isArray(L))return o.env.NODE_ENV!=="production"&&l(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var A=0;A<L.length;A++){var G=L[A];if(typeof G!="function")return l(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",j(G),A),i.thatReturnsNull}function H(V,J,X,K,q){for(var U=0;U<L.length;U++){var Q=L[U];if(Q(V,J,X,K,q,u)==null)return null}return new S("Invalid "+K+" `"+q+"` supplied to "+("`"+X+"`."))}return C(H)}function M(){function L(A,G,H,V,J){return D(A[G])?null:new S("Invalid "+V+" `"+J+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return C(L)}function k(L){function A(G,H,V,J,X){var K=G[H],q=P(K);if(q!=="object")return new S("Invalid "+J+" `"+X+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));for(var U in L){var Q=L[U];if(Q){var Y=Q(K,U,V,J,X+"."+U,u);if(Y)return Y}}return null}return C(A)}function _(L){function A(G,H,V,J,X){var K=G[H],q=P(K);if(q!=="object")return new S("Invalid "+J+" `"+X+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));var U=s({},G[H],L);for(var Q in U){var Y=L[Q];if(!Y)return new S("Invalid "+J+" `"+X+"` key `"+Q+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(G[H],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var ne=Y(K,Q,V,J,X+"."+Q,u);if(ne)return ne}return null}return C(A)}function D(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(D);if(L===null||f(L))return!0;var A=y(L);if(A){var G=A.call(L),H;if(A!==L.entries){for(;!(H=G.next()).done;)if(!D(H.value))return!1}else for(;!(H=G.next()).done;){var V=H.value;if(V&&!D(V[1]))return!1}}else return!1;return!0;default:return!1}}function N(L,A){return L==="symbol"||A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol}function P(L){var A=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":N(A,L)?"symbol":A}function z(L){if(typeof L>"u"||L===null)return""+L;var A=P(L);if(A==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return A}function j(L){var A=z(L);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function F(L){return!L.constructor||!L.constructor.name?b:L.constructor.name}return v.checkPropTypes=d,v.PropTypes=v,v}}).call(n,r(5))},function(t,n){function r(i){return function(){return i}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(i){return i},t.exports=o},function(t,n,r){(function(o){var i=function(s){};o.env.NODE_ENV!=="production"&&(i=function(s){if(s===void 0)throw new Error("invariant requires an error message argument")});function a(l,s,u,d,f,p,m,g){if(i(s),!l){var y;if(s===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=[u,d,f,p,m,g],v=0;y=new Error(s.replace(/%s/g,function(){return b[v++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}}t.exports=a}).call(n,r(5))},function(t,n,r){(function(o){var i=r(7),a=i;if(o.env.NODE_ENV!=="production"){var l=function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];var m=0,g="Warning: "+u.replace(/%s/g,function(){return f[m++]});typeof console<"u"&&console.error(g);try{throw new Error(g)}catch{}};a=function(u,d){if(d===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(d.indexOf("Failed Composite propType: ")!==0&&!u){for(var f=arguments.length,p=Array(f>2?f-2:0),m=2;m<f;m++)p[m-2]=arguments[m];l.apply(void 0,[d].concat(p))}}}t.exports=a}).call(n,r(5))},function(t,n){var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function l(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},d=0;d<10;d++)u["_"+String.fromCharCode(d)]=d;var f=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}t.exports=l()?Object.assign:function(s,u){for(var d,f=a(s),p,m=1;m<arguments.length;m++){d=Object(arguments[m]);for(var g in d)o.call(d,g)&&(f[g]=d[g]);if(r){p=r(d);for(var y=0;y<p.length;y++)i.call(d,p[y])&&(f[p[y]]=d[p[y]])}}return f}},function(t,n){var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},function(t,n,r){(function(o){if(o.env.NODE_ENV!=="production")var i=r(8),a=r(9),l=r(11),s={};function u(d,f,p,m,g){if(o.env.NODE_ENV!=="production"){for(var y in d)if(d.hasOwnProperty(y)){var b;try{i(typeof d[y]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",m||"React class",p,y,typeof d[y]),b=d[y](f,y,m,p,null,l)}catch(h){b=h}if(a(!b||b instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",p,y,typeof b),b instanceof Error&&!(b.message in s)){s[b.message]=!0;var v=g?g():"";a(!1,"Failed %s type: %s%s",p,b.message,v??"")}}}}t.exports=u}).call(n,r(5))},function(t,n,r){var o=r(7),i=r(8),a=r(11);t.exports=function(){function l(d,f,p,m,g,y){y!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}l.isRequired=l;function s(){return l}var u={array:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:s,element:l,instanceOf:s,node:l,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s};return u.checkPropTypes=o,u.PropTypes=u,u}},function(t,n){t.exports=c},function(t,n){var r=function(a,l){return a===l};function o(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,l=void 0,s=[],u=void 0,d=!1,f=function(g,y){return a(g,s[y])},p=function(){for(var g=arguments.length,y=Array(g),b=0;b<g;b++)y[b]=arguments[b];return d&&l===this&&y.length===s.length&&y.every(f)||(d=!0,l=this,s=y,u=i.apply(this,y)),u};return p}t.exports=o}])})(s2);var W7=s2.exports;const Qs=al(W7);class U7{constructor(t,n,r,o,i){dt(this,"key");dt(this,"Target","");dt(this,"ID");dt(this,"Library");dt(this,"Vulnerability");dt(this,"NVD_V2Score");dt(this,"NVD_V3Score");dt(this,"EPSS_Score");dt(this,"Severity");dt(this,"InstalledVersion");dt(this,"FixedVersion");dt(this,"PkgPath");dt(this,"Title");dt(this,"Type","");dt(this,"Message");dt(this,"IsVulnerability");dt(this,"References");dt(this,"Category");dt(this,"StartLine");dt(this,"EndLine");dt(this,"Successes");dt(this,"Failures");dt(this,"Exceptions");dt(this,"Class");dt(this,"Kind");dt(this,"Namespace");dt(this,"VulnerabilitiesSummary");dt(this,"MisconfigurationsSummary");dt(this,"SecretsSummary");dt(this,"DocSPDXID");dt(this,"DataLicense");dt(this,"DocumentNamespace");dt(this,"DocName");dt(this,"Created");dt(this,"SpdxVersion");dt(this,"Creators");dt(this,"SPDXID");dt(this,"FilesAnalyzed");dt(this,"LicenseConcluded");dt(this,"LicenseDeclared");dt(this,"Name");dt(this,"VersionInfo");this.key=t,this.Target=n,this.Type=r,this.Kind=o,this.Namespace=i,this.VulnerabilitiesSummary=new Ep,this.MisconfigurationsSummary=new Ep,this.SecretsSummary=new Ep}isNotEmptyForK8sSummary(){return!this.isEmptyForK8sSummary()}isEmptyForK8sSummary(){var t,n,r;return((t=this.VulnerabilitiesSummary)==null?void 0:t.isEmpty())&&((n=this.MisconfigurationsSummary)==null?void 0:n.isEmpty())&&((r=this.SecretsSummary)==null?void 0:r.isEmpty())}isRBACAssessment(){return this.Kind==="Role"||this.Kind==="RoleBinding"||this.Kind==="ClusterRole"||this.Kind==="ClusterRoleBinding"||this.Kind==="ServiceAccount"}isNotRBACAssessment(){return!this.isRBACAssessment()}}class Ep{constructor(){dt(this,"Critical");dt(this,"High");dt(this,"Medium");dt(this,"Low");dt(this,"Undefined");this.Critical=0,this.High=0,this.Medium=0,this.Low=0,this.Undefined=0}addSeverity(t){t==="CRITICAL"&&(this.Critical+=1),t==="HIGH"&&(this.High+=1),t==="MEDIUM"&&(this.Medium+=1),t==="LOW"&&(this.Low+=1),t==="UNDEFINED"&&(this.Undefined+=1)}isNotEmpty(){return!this.isEmpty()}isEmpty(){return this.Critical===0&&this.High===0&&this.Medium===0&&this.Low===0&&this.Undefined===0}}function q7(e,t){if(e===void 0)return[];let n=[];return e.forEach(r=>{let o=X7(r);o.length>0&&(n=n.concat(o))}),G7(n,t)}function G7(e,t){return e.forEach(n=>{let r=t.filter(o=>o.cve===n.ID)[0];r&&(n.EPSS_Score=parseFloat((r.percentile*100).toFixed(2)))}),e}function X7(e){return e.Results?c2(e.Results):e.Vulnerabilities?Op(e.Vulnerabilities):e.Resources?Op(e.Resources):e.Findings?Op(e.Findings):[]}function Y7(e){let t=[];return e===void 0||e.forEach(n=>{let r=Q7(n);r.length>0&&(t=t.concat(r))}),t}function Q7(e){return e.Results?J7(e.Results):[]}function Js(e,t){return e===void 0?!1:e.toString().toLowerCase().includes(t.toLowerCase())}function Lt(e,t){return e&&t?e.localeCompare(t):0}function $p(e,t){return e>t?1:e<t?-1:0}function RS(e){switch(e.toLowerCase()){case"critical":return 5;case"high":return 4;case"medium":return 3;case"low":return 2;default:return 1}}function Dh(e,t){return e&&t?RS(e)-RS(t):0}function Op(e){let t=[];return e===void 0||e.forEach(n=>{t=t.concat(c2(n.Results))}),t}function J7(e){const t=[];return e===void 0||e.forEach(n=>{n.Secrets&&n.Secrets.forEach(r=>{t.push({key:Math.random(),Target:n.Target,ID:r.RuleID,Title:r.Title,Category:r.Category,Severity:r.Severity,StartLine:""+r.StartLine,EndLine:""+r.EndLine})})}),t}function c2(e){const t=[];return e===void 0||e.forEach(n=>{n.Vulnerabilities&&n.Vulnerabilities.forEach(r=>{let o,i;if(r.CVSS){const a=r.CVSS;a.nvd&&(o=a.nvd.V2Score?a.nvd.V2Score:"",i=a.nvd.V3Score?a.nvd.V3Score:"")}t.push({key:Math.random(),Target:n.Target,ID:r.VulnerabilityID,Library:r.PkgName,Vulnerability:r.VulnerabilityID,NVD_V2Score:o,NVD_V3Score:i,Severity:r.Severity,InstalledVersion:r.InstalledVersion,PkgPath:r.PkgPath,FixedVersion:r.FixedVersion,Title:r.Title,References:r.References,IsVulnerability:!0})})}),t}function Z7(e){let t=[];return e===void 0||e.forEach(n=>{let r=eB(n);r.length>0&&(t=t.concat(r))}),t}function eB(e){return e.packages?tB(e):[]}function tB(e){const t=[];return e.packages&&e.packages.forEach(n=>{t.push({key:Math.random(),DocSPDXID:e.SPDXID,DataLicense:e.dataLicense,DocumentNamespace:e.documentNamespace,DocName:e.name,Created:e.creationInfo.created,Creators:e.creationInfo.creators,SpdxVersion:e.spdxVersion,SPDXID:n.SPDXID,FilesAnalyzed:n.filesAnalyzed?"true":"false",LicenseConcluded:n.licenseConcluded,LicenseDeclared:n.licenseDeclared,Name:n.name,VersionInfo:n.versionInfo})}),t}function nB(e){let t=[];return e===void 0||e.forEach(n=>{let r=rB(n);r.length>0&&(t=t.concat(r))}),t}function rB(e){return e.Resources?PS(e.Resources):e.Findings?PS(e.Findings):[]}function oB(e){let t=[];return e===void 0||e.forEach(n=>{let r=iB(n);r.length>0&&(t=t.concat(r))}),t}function iB(e){return e.Results?u2(e.Results):e.Misconfigurations?Ip(e.Misconfigurations):e.Resources?Ip(e.Resources):e.Findings?Ip(e.Findings):[]}function aB(e){let t=[];return e===void 0||e.forEach(n=>{let r=lB(n);r.length>0&&(t=t.concat(r))}),t}function lB(e){return e.Resources?nd(e.Resources).filter(t=>t.isNotRBACAssessment()):e.Findings?nd(e.Findings).filter(t=>t.isNotRBACAssessment()):[]}function sB(e){let t=[];return e===void 0||e.forEach(n=>{let r=cB(n);r.length>0&&(t=t.concat(r))}),t}function cB(e){return e.Resources?nd(e.Resources).filter(t=>t.isRBACAssessment()):e.Findings?nd(e.Findings).filter(t=>t.isRBACAssessment()):[]}function nd(e){let t=[];return e&&e.forEach(n=>t=t.concat(uB(n))),t}function uB(e){const t=[],n=new Map;return e.Results&&(e.Results.forEach(r=>{var o=n.get(r.Target);o||(o=new U7(Math.random(),r.Target,r.Type,e.Kind,e.Namespace)),r.Vulnerabilities&&r.Vulnerabilities.forEach(i=>{o.VulnerabilitiesSummary.addSeverity(i.Severity)}),r.Misconfigurations&&r.Misconfigurations.forEach(i=>{o.MisconfigurationsSummary.addSeverity(i.Severity)}),r.Secrets&&r.Secrets.forEach(i=>{o.SecretsSummary.addSeverity(i.Severity)}),n.set(r.Target,o)}),n.forEach(r=>{r.isNotEmptyForK8sSummary()&&t.push(r)})),t}function PS(e){let t=[];return e===void 0||e.forEach(n=>{t=t.concat(dB(n.Results))}),t}function Ip(e){let t=[];return e===void 0||e.forEach(n=>{t=t.concat(u2(n.Results))}),t}function u2(e){const t=[];return e&&e.forEach(n=>{n.Misconfigurations&&n.Misconfigurations.forEach(r=>{t.push({key:Math.random(),Target:n.Target,ID:r.ID,Severity:r.Severity,Title:r.Title,Type:r.Type,Message:r.Message,References:r.References})})}),t}function dB(e){const t=[];return e&&e.forEach(n=>{n.MisconfSummary&&t.push({key:Math.random(),Target:n.Target,Type:n.Type,Class:n.Class,Successes:n.MisconfSummary.Successes,Failures:n.MisconfSummary.Failures,Exceptions:n.MisconfSummary.Exceptions})}),t}const _h=({result:e,onSeverityClick:t})=>{const[n,r]=c.useState([]);return c.useEffect(()=>{const o={critical:0,high:0,medium:0,low:0,negligible:0};e.forEach(i=>{var a;switch((a=i.Severity)==null?void 0:a.toLowerCase()){case"critical":o.critical+=1;break;case"high":o.high+=1;break;case"medium":o.medium+=1;break;case"low":o.low+=1;break;default:o.negligible+=1;break}}),r([{severity:"Critical",count:o.critical,color:"#FF6666"},{severity:"High",count:o.high,color:"#FF9966"},{severity:"Medium",count:o.medium,color:"#FFCC66"},{severity:"Low",count:o.low,color:"#FFFF99"},{severity:"Negligible",count:o.negligible,color:"#CCFFFF"},{severity:"All",count:e.length,color:"#DDEE"}])},[e]),le.jsxs(Ci,{children:["Filter by:",n.map(({severity:o,count:i,color:a})=>le.jsxs(kt,{style:{backgroundColor:a,color:"#000"},onClick:()=>t(o.toLowerCase()),children:[i," ",o]},o))]})},{Link:fB}=ea,pB=({result:e})=>{console.log("Vulnerabilities:",e);const[t,n]=c.useState(""),[r,o]=c.useState(""),[i,a]=c.useState([]),l=c.useRef(null),[s,u]=c.useState([]);c.useEffect(()=>{a(e)},[e]);const d=b=>{const v=e.filter(h=>{var S;return b==="all"||((S=h.Severity)==null?void 0:S.toLowerCase())===b});a(v)},f=(b,v,h)=>{v(),n(b[0]),o(h)},p=b=>{b(),n("")},m=b=>({filterDropdown:({setSelectedKeys:v,selectedKeys:h,confirm:S,clearFilters:C,close:$})=>le.jsxs("div",{style:{padding:8},onKeyDown:O=>O.stopPropagation(),children:[le.jsx(So,{ref:l,placeholder:`Search ${b}`,value:h[0],onChange:O=>v(O.target.value?[O.target.value]:[]),onPressEnter:()=>f(h,S,b),style:{marginBottom:8,display:"block"}}),le.jsxs(Ci,{children:[le.jsx(kt,{type:"primary",onClick:()=>f(h,S,b),icon:le.jsx(wr,{}),size:"small",style:{width:90},children:"Search"}),le.jsx(kt,{onClick:()=>C&&p(C),size:"small",style:{width:90},children:"Reset"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{S({closeDropdown:!1}),n(h[0]),o(b)},children:"Filter"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{$()},children:"close"})]})]}),filterIcon:v=>le.jsx(wr,{style:{color:v?"#1677ff":void 0}}),onFilter:(v,h)=>Js(h[b],v),onFilterDropdownOpenChange:v=>{v&&setTimeout(()=>{var h;return(h=l.current)==null?void 0:h.select()},100)},render:v=>r===b?le.jsx(Qs,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:v?v.toString():""}):v}),g=[{title:"Target",dataIndex:"Target",key:"Target",width:"8%",...m("Target"),sorter:(b,v)=>Lt(b.Target,v.Target),sortDirections:["descend","ascend"]},{title:"ID",dataIndex:"ID",key:"ID",width:"7%",...m("ID"),sorter:(b,v)=>Lt(b.ID,v.ID),sortDirections:["descend","ascend"]},{title:"Title",dataIndex:"Title",key:"Title",width:"15%",...m("Title"),sorter:(b,v)=>Lt(b.Title,v.Title),sortDirections:["descend","ascend"]},{title:"Severity",dataIndex:"Severity",key:"Severity",width:"5%",filters:kh,onFilter:(b,v)=>v.Severity===b,render:(b,{Severity:v})=>le.jsx(Mh,{severity:v||""}),defaultSortOrder:"descend",sorter:(b,v)=>Dh(b.Severity,v.Severity),sortDirections:["descend","ascend"]},{title:"Type",dataIndex:"Type",key:"Type",width:"10%",...m("Type"),sorter:(b,v)=>Lt(b.Type,v.Type),sortDirections:["descend","ascend"]},{title:"Message",dataIndex:"Message",key:"Message",width:"15%",...m("Message"),sorter:(b,v)=>Lt(b.Message,v.Message),sortDirections:["descend","ascend"]}],y=(b,v)=>{u(b?h=>[...h,v.key]:h=>h.filter(S=>S!==v.key))};return le.jsxs(le.Fragment,{children:[le.jsx(_h,{result:e,onSeverityClick:d}),le.jsx(Vn,{columns:g,dataSource:i,pagination:{defaultPageSize:20},size:"small",sticky:!0,expandable:{expandedRowRender:b=>{var v;return le.jsxs("div",{style:{margin:0},children:[le.jsx("p",{children:le.jsx("strong",{children:"References:"})}),le.jsx("ul",{children:(v=b.References)==null?void 0:v.map((h,S)=>le.jsx(fB,{href:h,target:"_blank",children:le.jsx("li",{children:h},S)}))})]})},expandedRowKeys:s,onExpand:y,columnWidth:"2%"}})]})},{Link:mB}=ea,vB=({result:e})=>{console.log("Vulnerabilities:",e);const[t,n]=c.useState(""),[r,o]=c.useState(""),[i,a]=c.useState([]),[l,s]=c.useState([]),u=c.useRef(null);c.useEffect(()=>{a(e)},[e]);const d=(b,v,h)=>{v(),n(b[0]),o(h)},f=b=>{b(),n("")},p=b=>{const v=e.filter(h=>{var S;return b==="all"||((S=h.Severity)==null?void 0:S.toLowerCase())===b});a(v)},m=b=>({filterDropdown:({setSelectedKeys:v,selectedKeys:h,confirm:S,clearFilters:C,close:$})=>le.jsxs("div",{style:{padding:8},onKeyDown:O=>O.stopPropagation(),children:[le.jsx(So,{ref:u,placeholder:`Search ${b}`,value:h[0],onChange:O=>v(O.target.value?[O.target.value]:[]),onPressEnter:()=>d(h,S,b),style:{marginBottom:8,display:"block"}}),le.jsxs(Ci,{children:[le.jsx(kt,{type:"primary",onClick:()=>d(h,S,b),icon:le.jsx(wr,{}),size:"small",style:{width:90},children:"Search"}),le.jsx(kt,{onClick:()=>C&&f(C),size:"small",style:{width:90},children:"Reset"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{S({closeDropdown:!1}),n(h[0]),o(b)},children:"Filter"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{$()},children:"close"})]})]}),filterIcon:v=>le.jsx(wr,{style:{color:v?"#1677ff":void 0}}),onFilter:(v,h)=>Js(h[b],v),onFilterDropdownOpenChange:v=>{v&&setTimeout(()=>{var h;return(h=u.current)==null?void 0:h.select()},100)},render:v=>r===b?le.jsx(Qs,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:v?v.toString():""}):v}),g=[{title:"Target",dataIndex:"Target",key:"Target",width:"10%",...m("Target"),sorter:(b,v)=>Lt(b.Target,v.Target),sortDirections:["descend","ascend"]},{title:"Library/Package",dataIndex:"Library",key:"Library",width:"10%",...m("Library"),sorter:(b,v)=>Lt(b.Library,v.Library),sortDirections:["descend","ascend"]},{title:"Vulnerability",dataIndex:"Vulnerability",key:"Vulnerability",width:"6%",...m("Vulnerability"),sorter:(b,v)=>Lt(b.Vulnerability,v.Vulnerability),sortDirections:["descend","ascend"]},{title:"NVD V2Score",dataIndex:"NVD_V2Score",key:"NVD_V2Score",width:"4%",...m("NVD_V2Score"),sorter:(b,v)=>$p(b.NVD_V2Score,v.NVD_V2Score),sortDirections:["descend","ascend"]},{title:"NVD V3Score",dataIndex:"NVD_V3Score",key:"NVD_V3Score",width:"4%",...m("NVD_V3Score"),sorter:(b,v)=>$p(b.NVD_V3Score,v.NVD_V3Score),sortDirections:["descend","ascend"]},{title:"EPSS Score %",dataIndex:"EPSS_Score",key:"EPSS_Score",width:"5%",...m("EPSS_Score"),sorter:(b,v)=>$p(b.EPSS_Score,v.EPSS_Score),sortDirections:["descend","ascend"]},{title:"Severity",dataIndex:"Severity",key:"Severity",width:"5%",filters:kh,onFilter:(b,v)=>v.Severity===b,render:(b,{Severity:v})=>le.jsx(Mh,{severity:v||""}),defaultSortOrder:"descend",sorter:(b,v)=>Dh(b.Severity,v.Severity),sortDirections:["descend","ascend"]},{title:"Installed Version",dataIndex:"InstalledVersion",key:"InstalledVersion",width:"8%",...m("InstalledVersion"),sorter:(b,v)=>Lt(b.InstalledVersion,v.InstalledVersion),sortDirections:["descend","ascend"],render:(b,v)=>le.jsxs("span",{title:v.PkgPath?"Path: "+v.PkgPath:"",children:[b," "]})},{title:"Fixed Version",dataIndex:"FixedVersion",key:"FixedVersion",width:"8%",...m("FixedVersion"),sorter:(b,v)=>Lt(b.FixedVersion,v.FixedVersion),sortDirections:["descend","ascend"]},{title:"Title",dataIndex:"Title",key:"Title",width:"10%",...m("Title"),sorter:(b,v)=>Lt(b.Title,v.Title),sortDirections:["descend","ascend"]}],y=(b,v)=>{s(b?h=>[...h,v.key]:h=>h.filter(S=>S!==v.key))};return le.jsxs(le.Fragment,{children:[le.jsx(_h,{result:e,onSeverityClick:p}),le.jsx(Vn,{columns:g,dataSource:i,pagination:{defaultPageSize:20},size:"small",sticky:!0,expandable:{expandedRowRender:b=>{var v;return le.jsxs("div",{style:{margin:0},children:[le.jsx("p",{children:le.jsx("strong",{children:"References:"})}),le.jsx("ul",{children:(v=b.References)==null?void 0:v.map((h,S)=>le.jsx(mB,{href:h,target:"_blank",children:le.jsx("li",{children:h},S)}))})]})},expandedRowKeys:l,onExpand:y,columnWidth:"2%"}})]})},gB=({result:e})=>{console.log("MisconfigurationSummary:",e);const[t,n]=c.useState(""),[r,o]=c.useState(""),i=c.useRef(null),a=(d,f,p)=>{f(),n(d[0]),o(p)},l=d=>{d(),n("")},s=d=>({filterDropdown:({setSelectedKeys:f,selectedKeys:p,confirm:m,clearFilters:g,close:y})=>le.jsxs("div",{style:{padding:8},onKeyDown:b=>b.stopPropagation(),children:[le.jsx(So,{ref:i,placeholder:`Search ${d}`,value:p[0],onChange:b=>f(b.target.value?[b.target.value]:[]),onPressEnter:()=>a(p,m,d),style:{marginBottom:8,display:"block"}}),le.jsxs(Ci,{children:[le.jsx(kt,{type:"primary",onClick:()=>a(p,m,d),icon:le.jsx(wr,{}),size:"small",style:{width:90},children:"Search"}),le.jsx(kt,{onClick:()=>g&&l(g),size:"small",style:{width:90},children:"Reset"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{m({closeDropdown:!1}),n(p[0]),o(d)},children:"Filter"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{y()},children:"close"})]})]}),filterIcon:f=>le.jsx(wr,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,p)=>Js(p[d],f),onFilterDropdownOpenChange:f=>{f&&setTimeout(()=>{var p;return(p=i.current)==null?void 0:p.select()},100)},render:f=>r===d?le.jsx(Qs,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:f?f.toString():""}):f}),u=[{title:"Target",dataIndex:"Target",key:"Target",width:"50%",...s("Target"),sorter:(d,f)=>Lt(d.Target,f.Target),sortDirections:["descend","ascend"]},{title:"Type",dataIndex:"Type",key:"Type",width:"13%",...s("Type"),sorter:(d,f)=>Lt(d.Type,f.Type),sortDirections:["descend","ascend"]},{title:"Class",dataIndex:"Class",key:"Class",width:"13%",...s("Class"),sorter:(d,f)=>Lt(d.Class,f.Class),sortDirections:["descend","ascend"]},{title:"Successes",dataIndex:"Successes",key:"Successes",width:"8%",...s("Successes"),sorter:(d,f)=>d.Successes&&f.Successes?d.Successes-f.Successes:0,sortDirections:["descend","ascend"]},{title:"Failures",dataIndex:"Failures",key:"Failures",width:"8%",...s("Failures"),defaultSortOrder:"descend",sorter:(d,f)=>d.Failures&&f.Failures?d.Failures-f.Failures:0,sortDirections:["descend","ascend"]},{title:"Exceptions",dataIndex:"Exceptions",key:"Exceptions",width:"8%",...s("Exceptions"),defaultSortOrder:"descend",sorter:(d,f)=>d.Exceptions&&f.Exceptions?d.Exceptions-f.Exceptions:0,sortDirections:["descend","ascend"]}];return le.jsx(le.Fragment,{children:le.jsx(Vn,{columns:u,dataSource:e,pagination:{defaultPageSize:20},size:"small",sticky:!0})})},{Column:Gt,ColumnGroup:zc}=Vn,hB=({k8sClusterSummaryInfraAssessment:e,k8sClusterSummaryRBACAssessment:t})=>(console.log("K8sClusterSummary-k8sSummaryInfraAssessment:",e),console.log("K8sClusterSummary-k8sSummaryRBACAssessment:",t),le.jsxs(le.Fragment,{children:[le.jsxs(Vn,{dataSource:e,size:"small",bordered:!0,title:()=>"Infra Assessment",footer:()=>"CRITICAL=C HIGH= H, MEDIUM=M LOW=L UNDEFINED=U",children:[le.jsx(Gt,{title:"Namespace",dataIndex:"Namespace",sorter:(n,r)=>Lt(n.Namespace,r.Namespace)},"Namespace"),le.jsx(Gt,{title:"Resource",dataIndex:"Target",defaultSortOrder:"descend",sorter:(n,r)=>Lt(n.Target,r.Target)},"Resource"),le.jsxs(zc,{title:"Vulnerabilities",children:[le.jsx(Gt,{title:"C",render:n=>{var r,o;return((r=n.VulnerabilitiesSummary)==null?void 0:r.Critical)===0?"":(o=n.VulnerabilitiesSummary)==null?void 0:o.Critical},sorter:(n,r)=>n.VulnerabilitiesSummary&&r.VulnerabilitiesSummary?n.VulnerabilitiesSummary.Critical-r.VulnerabilitiesSummary.Critical:0},"c"),le.jsx(Gt,{title:"H",render:n=>{var r,o;return((r=n.VulnerabilitiesSummary)==null?void 0:r.High)===0?"":(o=n.VulnerabilitiesSummary)==null?void 0:o.High}},"h"),le.jsx(Gt,{title:"M",render:n=>{var r,o;return((r=n.VulnerabilitiesSummary)==null?void 0:r.Medium)===0?"":(o=n.VulnerabilitiesSummary)==null?void 0:o.Medium}},"m"),le.jsx(Gt,{title:"L",render:n=>{var r,o;return((r=n.VulnerabilitiesSummary)==null?void 0:r.Low)===0?"":(o=n.VulnerabilitiesSummary)==null?void 0:o.Low}},"l"),le.jsx(Gt,{title:"U",render:n=>{var r,o;return((r=n.VulnerabilitiesSummary)==null?void 0:r.Undefined)===0?"":(o=n.VulnerabilitiesSummary)==null?void 0:o.Undefined}},"u")]}),le.jsxs(zc,{title:"Misconfigurations",children:[le.jsx(Gt,{title:"C",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Critical)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Critical}},"c"),le.jsx(Gt,{title:"H",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.High)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.High}},"h"),le.jsx(Gt,{title:"M",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Medium)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Medium}},"m"),le.jsx(Gt,{title:"L",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Low)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Low}},"l"),le.jsx(Gt,{title:"U",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Undefined)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Undefined}},"u")]}),le.jsxs(zc,{title:"Secrets",children:[le.jsx(Gt,{title:"C",render:n=>{var r,o;return((r=n.SecretsSummary)==null?void 0:r.Critical)===0?"":(o=n.SecretsSummary)==null?void 0:o.Critical}},"c"),le.jsx(Gt,{title:"H",render:n=>{var r,o;return((r=n.SecretsSummary)==null?void 0:r.High)===0?"":(o=n.SecretsSummary)==null?void 0:o.High}},"h"),le.jsx(Gt,{title:"M",render:n=>{var r,o;return((r=n.SecretsSummary)==null?void 0:r.Medium)===0?"":(o=n.SecretsSummary)==null?void 0:o.Medium}},"m"),le.jsx(Gt,{title:"L",render:n=>{var r,o;return((r=n.SecretsSummary)==null?void 0:r.Low)===0?"":(o=n.SecretsSummary)==null?void 0:o.Low}},"l"),le.jsx(Gt,{title:"U",render:n=>{var r,o;return((r=n.SecretsSummary)==null?void 0:r.Undefined)===0?"":(o=n.SecretsSummary)==null?void 0:o.Undefined}},"u")]})]}),le.jsxs(Vn,{dataSource:t,size:"small",title:()=>"RBAC Assessment",bordered:!0,children:[le.jsx(Gt,{title:"Namespace",dataIndex:"Namespace",sorter:(n,r)=>Lt(n.Namespace,r.Namespace)},"Namespace"),le.jsx(Gt,{title:"Resource",dataIndex:"Target",defaultSortOrder:"descend",sorter:(n,r)=>Lt(n.Target,r.Target)},"Resource"),le.jsxs(zc,{title:"RBAC Assessment",children:[le.jsx(Gt,{title:"C",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Critical)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Critical},sorter:(n,r)=>n.MisconfigurationsSummary&&r.MisconfigurationsSummary?n.MisconfigurationsSummary.Critical-r.MisconfigurationsSummary.Critical:0},"c"),le.jsx(Gt,{title:"H",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.High)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.High}},"h"),le.jsx(Gt,{title:"M",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Medium)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Medium}},"m"),le.jsx(Gt,{title:"L",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Low)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Low}},"l"),le.jsx(Gt,{title:"U",render:n=>{var r,o;return((r=n.MisconfigurationsSummary)==null?void 0:r.Undefined)===0?"":(o=n.MisconfigurationsSummary)==null?void 0:o.Undefined}},"u")]})]})]})),yB=({result:e})=>{console.log("Vulnerabilities:",e);const[t,n]=c.useState(""),[r,o]=c.useState(""),i=c.useRef(null),a=(f,p,m)=>{p(),n(f[0]),o(m)},l=f=>{f(),n("")},s=f=>f.length==0?"":f[0].SpdxVersion+" | "+f[0].DataLicense+" | "+f[0].DocSPDXID+" | "+f[0].DocName+" | "+f[0].DocumentNamespace+" | "+f[0].Creators+" | "+f[0].Created,u=f=>({filterDropdown:({setSelectedKeys:p,selectedKeys:m,confirm:g,clearFilters:y,close:b})=>le.jsxs("div",{style:{padding:8},onKeyDown:v=>v.stopPropagation(),children:[le.jsx(So,{ref:i,placeholder:`Search ${f}`,value:m[0],onChange:v=>p(v.target.value?[v.target.value]:[]),onPressEnter:()=>a(m,g,f),style:{marginBottom:8,display:"block"}}),le.jsxs(Ci,{children:[le.jsx(kt,{type:"primary",onClick:()=>a(m,g,f),icon:le.jsx(wr,{}),size:"small",style:{width:90},children:"Search"}),le.jsx(kt,{onClick:()=>y&&l(y),size:"small",style:{width:90},children:"Reset"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{g({closeDropdown:!1}),n(m[0]),o(f)},children:"Filter"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{b()},children:"close"})]})]}),filterIcon:p=>le.jsx(wr,{style:{color:p?"#1677ff":void 0}}),onFilter:(p,m)=>Js(m[f],p),onFilterDropdownOpenChange:p=>{p&&setTimeout(()=>{var m;return(m=i.current)==null?void 0:m.select()},100)},render:p=>r===f?le.jsx(Qs,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:p?p.toString():""}):p}),d=[{title:"Package Name",dataIndex:"Name",key:"Name",width:"7%",...u("Name"),sorter:(f,p)=>Lt(f.Name,p.Name),sortDirections:["descend","ascend"]},{title:"SPDXID",dataIndex:"SPDXID",key:"SPDXID",width:"13%",...u("SPDXID"),sorter:(f,p)=>Lt(f.SPDXID,p.SPDXID),sortDirections:["descend","ascend"]},{title:"Package Version",dataIndex:"VersionInfo",key:"VersionInfo",width:"5%",...u("VersionInfo"),sorter:(f,p)=>Lt(f.VersionInfo,p.VersionInfo),sortDirections:["descend","ascend"]},{title:"Files Analyzed",dataIndex:"FilesAnalyzed",key:"FilesAnalyzed",width:"4%",...u("FilesAnalyzed"),sorter:(f,p)=>Lt(f.FilesAnalyzed,p.FilesAnalyzed),sortDirections:["descend","ascend"]},{title:"Package License Concluded",dataIndex:"LicenseConcluded",key:"LicenseConcluded",width:"12%",...u("LicenseConcluded"),sorter:(f,p)=>Lt(f.LicenseConcluded,p.LicenseConcluded),sortDirections:["descend","ascend"]},{title:"Package License Declared",dataIndex:"LicenseDeclared",key:"LicenseDeclared",width:"12%",...u("LicenseDeclared"),sorter:(f,p)=>Lt(f.LicenseDeclared,p.LicenseDeclared),sortDirections:["descend","ascend"]}];return le.jsx(le.Fragment,{children:le.jsx(Vn,{columns:d,dataSource:e,pagination:{defaultPageSize:20},size:"small",bordered:!0,title:()=>s(e),sticky:!0})})},bB=({onReportUpload:e,loadedReportFiles:t,manuallyLoadedReportFile:n})=>{const r=[{title:"Loaded Report Name",dataIndex:"fileName",key:"fileName"}],i=(n?[...t,n]:t).map((a,l)=>({key:l,index:l+1,fileName:a}));return le.jsxs("div",{children:[le.jsx(Th,{onChange:e,accept:".json",showUploadList:!1,beforeUpload:()=>!1,children:le.jsx(kt,{icon:le.jsx(l2,{}),children:"Select a Trivy JSON Report from your local file system"})}),le.jsx("div",{children:le.jsx(Vn,{dataSource:i,columns:r,pagination:!1,style:{marginTop:20}})})]})},SB=({result:e})=>{console.log("Secrets:",e);const[t,n]=c.useState(""),[r,o]=c.useState(""),[i,a]=c.useState([]),l=c.useRef(null);c.useEffect(()=>{a(e)},[e]);const s=m=>{const g=e.filter(y=>{var b;return m==="all"||((b=y.Severity)==null?void 0:b.toLowerCase())===m});a(g)},u=(m,g,y)=>{g(),n(m[0]),o(y)},d=m=>{m(),n("")},f=m=>({filterDropdown:({setSelectedKeys:g,selectedKeys:y,confirm:b,clearFilters:v,close:h})=>le.jsxs("div",{style:{padding:8},onKeyDown:S=>S.stopPropagation(),children:[le.jsx(So,{ref:l,placeholder:`Search ${m}`,value:y[0],onChange:S=>g(S.target.value?[S.target.value]:[]),onPressEnter:()=>u(y,b,m),style:{marginBottom:8,display:"block"}}),le.jsxs(Ci,{children:[le.jsx(kt,{type:"primary",onClick:()=>u(y,b,m),icon:le.jsx(wr,{}),size:"small",style:{width:90},children:"Search"}),le.jsx(kt,{onClick:()=>v&&d(v),size:"small",style:{width:90},children:"Reset"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{b({closeDropdown:!1}),n(y[0]),o(m)},children:"Filter"}),le.jsx(kt,{type:"link",size:"small",onClick:()=>{h()},children:"close"})]})]}),filterIcon:g=>le.jsx(wr,{style:{color:g?"#1677ff":void 0}}),onFilter:(g,y)=>Js(y[m],g),onFilterDropdownOpenChange:g=>{g&&setTimeout(()=>{var y;return(y=l.current)==null?void 0:y.select()},100)},render:g=>r===m?le.jsx(Qs,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:g?g.toString():""}):g}),p=[{title:"Target",dataIndex:"Target",key:"Target",width:"15%",...f("Target"),sorter:(m,g)=>Lt(m.Target,g.Target),sortDirections:["descend","ascend"]},{title:"ID",dataIndex:"ID",key:"ID",width:"15%",...f("ID"),sorter:(m,g)=>Lt(m.ID,g.ID),sortDirections:["descend","ascend"]},{title:"Category",dataIndex:"Category",key:"Category",width:"15%",...f("Category"),sorter:(m,g)=>Lt(m.Category,g.Category),sortDirections:["descend","ascend"]},{title:"Severity",dataIndex:"Severity",key:"Severity",width:"10%",filters:kh,onFilter:(m,g)=>g.Severity===m,render:(m,{Severity:g})=>le.jsx(Mh,{severity:g||""}),defaultSortOrder:"descend",sorter:(m,g)=>Dh(m.Severity,g.Severity),sortDirections:["descend","ascend"]},{title:"Title",dataIndex:"Title",key:"Title",width:"26%",...f("Title"),sorter:(m,g)=>Lt(m.Title,g.Title),sortDirections:["descend","ascend"]},{title:"Start Line",dataIndex:"StartLine",key:"StartLine",width:"10%",...f("StartLine"),sorter:(m,g)=>Lt(m.StartLine,g.StartLine),sortDirections:["descend","ascend"]},{title:"End Line",dataIndex:"EndLine",key:"EndLine",width:"10%",...f("EndLine"),sorter:(m,g)=>Lt(m.EndLine,g.EndLine),sortDirections:["descend","ascend"]}];return le.jsxs(le.Fragment,{children:[le.jsx(_h,{result:e,onSeverityClick:s}),le.jsx(Vn,{columns:p,dataSource:i,pagination:{defaultPageSize:20},size:"small",sticky:!0})]})},CB=({vulnerabilities:e,secrets:t,misconfigurations:n,misconfigurationSummary:r,k8sClusterSummaryInfraAssessment:o,k8sClusterSummaryRBACAssessment:i,selectedMenu:a,supplyChainSBOM:l,onReportUpload:s,loadedReportFiles:u,manuallyLoadedReportFile:d})=>(console.log("TrivyReport-vulnerabilities:",e),console.log("TrivyReport-secrets:",t),console.log("TrivyReport-misconfigurations:",n),console.log("TrivyReport-misconfigurationSummary:",r),console.log("TrivyReport-k8sClusterSummaryInfraAssessment:",o),console.log("TrivyReport-k8sClusterSummaryRBACAssessment:",i),console.log("TrivyReport-supplyChainSBOM:",l),le.jsxs(le.Fragment,{children:[a==="vulnerabilities"&&le.jsx(vB,{result:e}),a==="secrets"&&le.jsx(SB,{result:t}),a==="misconfigurations"&&le.jsx(pB,{result:n}),a==="misconfigurationSummary"&&le.jsx(gB,{result:r}),a==="k8sClusterSummary"&&le.jsx(hB,{k8sClusterSummaryInfraAssessment:o,k8sClusterSummaryRBACAssessment:i}),a==="supplyChainSBOM"&&le.jsx(yB,{result:l}),a==="loadAReport"&&le.jsx(bB,{onReportUpload:s,loadedReportFiles:u,manuallyLoadedReportFile:d})]})),{Title:xB,Link:NS}=ea,wB=({title:e="Trivy Report"})=>{const t="https://github.com/fatihtokus/scan2html";return le.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[le.jsx(xB,{level:3,children:e}),le.jsxs("div",{style:{display:"flex",alignItems:"center",paddingTop:"1.25rem"},children:[le.jsx(NS,{href:t,target:"_blank",children:"via scan2html(v0.3.6)"}),le.jsx(NS,{href:t,target:"_blank",children:le.jsx(I7,{style:{fontSize:"1.5em",marginLeft:"0.5em"}})})]})]})},EB=[{TEMP_RESULTS:0}],$B="TEMP_EPSS_DATA",OB=[{REPORT_TITLE:"Temp Trivy Report"}];function IB(){const[e,t]=c.useState([]),[n,r]=c.useState([]),[o,i]=c.useState([]),[a,l]=c.useState([]),[s,u]=c.useState([]),[d,f]=c.useState([]),[p,m]=c.useState([]),[g,y]=c.useState("vulnerabilities"),[b,v]=c.useState([]),[h,S]=c.useState(""),[C,$]=c.useState([{}]),[O,E]=c.useState([]),[w,x]=c.useState(!1),[I,R]=c.useState("light"),[T,M]=c.useState([]),[k,_]=c.useState("Trivy Report"),[D,N]=c.useState([]),P=new URLSearchParams(window.location.search),z=H=>{R(H?"dark":"light")},j=()=>{x(!w)},F=H=>{y(H.key)},L=H=>fetch(H).then(V=>V.json()).catch(V=>(console.error("Error fetching JSON data:",V),{error:"Failed to load JSON data"})),A=()=>{const H=$B.split(`
`).slice(1).join(`
`);console.log("cleanedEPSSData:",H),v7.parse(H,{header:!0,dynamicTyping:!0,complete:V=>{console.log("Parsed Results:",V.data),E(V.data)},error:V=>{console.error("Error parsing CSV:",V)}})};c.useEffect(()=>{A()},[]),c.useEffect(()=>{O.length>0?console.log("Updated EPSS Data:",O):console.log("EPSS Data is empty.");const H=P.getAll("reportUrls");console.log("reportUrls",H),H.length>0?v(H):$(EB)},[O]),c.useEffect(()=>{console.log(`loadedReportFiles ${b}`),b.length>0&&Promise.all(b.map(L)).then(H=>{const V=H.map(J=>({...J}));$(V)})},[b]),c.useEffect(()=>{console.log(`loadedData.length ${C.length}`),t(q7(C,O)),r(Y7(C)),i(oB(C)),l(nB(C)),u(aB(C)),f(sB(C)),m(Z7(C))},[C]),c.useEffect(()=>{M([{key:"vulnerabilities",icon:le.jsx(y7,{}),label:`Vulnerabilities (${e.length})`},{key:"secrets",icon:le.jsx(N7,{}),label:`Secrets (${n.length})`},{key:"misconfigurationSummary",icon:le.jsx(E7,{}),label:`Misconfiguration Summary (${a.length})`},{key:"misconfigurations",icon:le.jsx(H7,{}),label:`Misconfigurations (${o.length})`},{key:"k8sClusterSummary",icon:le.jsx(C7,{}),label:`K8s Cluster Summary (${s.length} / ${d.length})`},{key:"supplyChainSBOM",icon:le.jsx(F7,{}),label:`Supply Chain SBOM(spdx) (${p.length})`},{key:"loadAReport",icon:le.jsx(l2,{}),label:"Load a report"}])},[e,a,n,o,s,d,p]),c.useEffect(()=>{let H=[];e.length>0&&H.push("vulnerabilities"),n.length>0&&H.push("secrets"),o.length>0&&H.push("misconfigurations"),a.length>0&&H.push("misconfigurationSummary"),(s.length>0||d.length>0)&&H.push("k8sClusterSummary"),p.length>0&&H.push("supplyChainSBOM"),N(H)},[T]),c.useEffect(()=>{D.length>0&&y(D[0]),D.length===1&&x(!0)},[D]),c.useEffect(()=>{var H;if(T.length>0){const V=T.filter(J=>(J==null?void 0:J.key)==g);_(`${OB[0].REPORT_TITLE} - ${(H=V[0])==null?void 0:H.label}`)}},[g,T]);const G=H=>{console.log(H);const V=H.file;if(!(V instanceof Blob)){console.error("Uploaded file is not a Blob.");return}const J=new FileReader;J.onload=X=>{if(X.target&&X.target.result){const K=X.target.result;try{const q=JSON.parse(K);console.log("Parsed JSON object:",q);const U={...q};$([U])}catch(q){console.error("Error parsing JSON:",q)}console.log(H.file),S(H.file.name),g$.success({message:"File Uploaded",description:`${h} uploaded successfully.`})}},J.readAsText(V)};return le.jsxs("div",{style:{display:"flex",minHeight:"100vh"},children:[le.jsxs("div",{id:"menu",children:[le.jsx(y$,{checked:I==="dark",onChange:z,checkedChildren:"Dark",unCheckedChildren:"Light"}),le.jsx(kt,{type:"primary",onClick:j,style:{margin:16},children:w?le.jsx(L7,{}):le.jsx(k7,{})}),le.jsx(Ji,{defaultSelectedKeys:["vulnerabilities"],selectedKeys:[g],mode:"inline",theme:I,inlineCollapsed:w,items:T,onClick:F})]}),le.jsxs("div",{id:"content",style:{flexGrow:1,marginLeft:20},children:[le.jsx(wB,{title:k}),le.jsx(CB,{vulnerabilities:e,secrets:n,misconfigurations:o,misconfigurationSummary:a,k8sClusterSummaryInfraAssessment:s,k8sClusterSummaryRBACAssessment:d,selectedMenu:g,supplyChainSBOM:p,onReportUpload:G,loadedReportFiles:b,manuallyLoadedReportFile:h})]})]})}Rp.createRoot(document.getElementById("root")).render(le.jsx(ce.StrictMode,{children:le.jsx(IB,{})}));
</script>
</body>
</html>