extended-dynamic-forms 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +834 -394
- package/dist/extended-dynamic-forms.standalone.js +882 -0
- package/dist/style.css +1 -1
- package/examples/conditional-v2-example.tsx +64 -0
- package/examples/dynamic-array-items-example.tsx +211 -0
- package/examples/form-devtools-example.tsx +386 -0
- package/examples/global-ui-rules-example.tsx +356 -0
- package/examples/vanilla-js/README.md +212 -0
- package/examples/vanilla-js/basic-form.html +142 -0
- package/examples/vanilla-js/conditional-form.html +159 -0
- package/examples/vanilla-js/wizard-form.html +185 -0
- package/package.json +40 -47
- package/dist/ExtendedForm.d.ts +0 -4
- package/dist/WizardForm.d.ts +0 -26
- package/dist/components/arrays/ArrayFieldItemTemplate.d.ts +0 -3
- package/dist/components/arrays/ArrayFieldTemplate.d.ts +0 -3
- package/dist/components/arrays/index.d.ts +0 -2
- package/dist/components/fields/AddressField.d.ts +0 -3
- package/dist/components/fields/CurrencyField.d.ts +0 -4
- package/dist/components/fields/PhoneField.d.ts +0 -4
- package/dist/components/index.d.ts +0 -24
- package/dist/components/templates/FieldTemplate.d.ts +0 -4
- package/dist/components/templates/SubmitButton.d.ts +0 -4
- package/dist/components/templates/index.d.ts +0 -2
- package/dist/conditionals/ConditionalActions.d.ts +0 -13
- package/dist/conditionals/ConditionalContext.d.ts +0 -32
- package/dist/conditionals/DynamicArrayConditionalEngine.d.ts +0 -77
- package/dist/conditionals/SimpleConditionalEngine.d.ts +0 -41
- package/dist/conditionals/SmartJsonRulesTransformer.d.ts +0 -10
- package/dist/conditionals/index.d.ts +0 -7
- package/dist/events/FormEventContext.d.ts +0 -20
- package/dist/events/FormEventHub.d.ts +0 -27
- package/dist/events/FormEventManager.d.ts +0 -10
- package/dist/events/index.d.ts +0 -4
- package/dist/index.d.ts +0 -14
- package/dist/index.es.js +0 -44459
- package/dist/index.umd.js +0 -399
- package/dist/layouts/index.d.ts +0 -2
- package/dist/layouts/wizard/ProgressIndicator.d.ts +0 -10
- package/dist/layouts/wizard/StepNavigation.d.ts +0 -11
- package/dist/layouts/wizard/WizardLayout.d.ts +0 -31
- package/dist/layouts/wizard/WizardNavigation.d.ts +0 -16
- package/dist/layouts/wizard/WizardObjectFieldTemplate.d.ts +0 -4
- package/dist/layouts/wizard/WizardSectionTemplate.d.ts +0 -11
- package/dist/layouts/wizard/index.d.ts +0 -7
- package/dist/types/index.d.ts +0 -88
- package/dist/utils/formDataUtils.d.ts +0 -22
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/schemaUtils.d.ts +0 -24
- package/dist/utils/validationUtils.d.ts +0 -26
- package/dist/vanilla-wrapper.d.ts +0 -33
- package/dist/widgets/date/DateWidget.d.ts +0 -4
- package/dist/widgets/enhanced/EnhancedWidgets.d.ts +0 -36
- package/dist/widgets/file/FileWidget.d.ts +0 -4
- package/dist/widgets/index.d.ts +0 -33
- package/dist/widgets/input/ColorWidget.d.ts +0 -4
- package/dist/widgets/input/RangeWidget.d.ts +0 -4
- package/dist/widgets/input/RatingWidget.d.ts +0 -4
package/dist/index.umd.js
DELETED
|
@@ -1,399 +0,0 @@
|
|
|
1
|
-
(function(Ze,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("@rjsf/utils"),require("@rjsf/validator-ajv8"),require("@rjsf/core")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","@rjsf/utils","@rjsf/validator-ajv8","@rjsf/core"],D):(Ze=typeof globalThis<"u"?globalThis:Ze||self,D(Ze.ExtendedDynamicForms={},Ze.React,Ze.React.jsxRuntime,Ze.ReactDOM,Ze.RJSFUtils,Ze.RJSFValidatorAjv8,Ze.RJSFCore))})(this,function(Ze,D,oe,_r,et,Lc,Qw){"use strict";var r5=Object.defineProperty;var o5=(Ze,D,oe)=>D in Ze?r5(Ze,D,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Ze[D]=oe;var wn=(Ze,D,oe)=>o5(Ze,typeof D!="symbol"?D+"":D,oe);function Im(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Im(D),Nm=Im(_r);var lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Pm={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Pm);var _m=Pm.exports;const re=Hn(_m);function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(null,arguments)}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)}var Zw=Symbol.for("react.element"),e1=Symbol.for("react.transitional.element"),t1=Symbol.for("react.fragment");function Mm(e){return e&&tt(e)==="object"&&(e.$$typeof===Zw||e.$$typeof===e1)&&e.type===t1}function kn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return D.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(kn(r)):Mm(r)&&r.props?n=n.concat(kn(r.props.children,t)):n.push(r))}),n}var Hc={},kc=[],n1=function(t){kc.push(t)};function Wr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=kc.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function r1(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=kc.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Tm(){Hc={}}function Dm(e,t,n){!t&&!Hc[n]&&(e(!1,n),Hc[n]=!0)}function ut(e,t){Dm(Wr,e,t)}function Wc(e,t){Dm(r1,e,t)}ut.preMessage=n1,ut.resetWarned=Tm,ut.noteOnce=Wc;function o1(e,t){if(tt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rm(e){var t=o1(e,"string");return tt(t)=="symbol"?t:t+""}function W(e,t,n){return(t=Rm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fm(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 G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Da(e){return e instanceof HTMLElement||e instanceof SVGElement}function Am(e){return e&&tt(e)==="object"&&Da(e.nativeElement)?e.nativeElement:Da(e)?e:null}function Qi(e){var t=Am(e);if(t)return t;if(e instanceof D.Component){var n;return(n=_r.findDOMNode)===null||n===void 0?void 0:n.call(_r,e)}return null}var qc={exports:{}},Qt={};/**
|
|
6
|
-
* @license React
|
|
7
|
-
* react-is.production.min.js
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var jm;function a1(){if(jm)return Qt;jm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function b(m){if(typeof m=="object"&&m!==null){var p=m.$$typeof;switch(p){case e:switch(m=m.type,m){case n:case o:case r:case u:case d:return m;default:switch(m=m&&m.$$typeof,m){case l:case i:case s:case v:case f:case a:return m;default:return p}}case t:return p}}}return Qt.ContextConsumer=i,Qt.ContextProvider=a,Qt.Element=e,Qt.ForwardRef=s,Qt.Fragment=n,Qt.Lazy=v,Qt.Memo=f,Qt.Portal=t,Qt.Profiler=o,Qt.StrictMode=r,Qt.Suspense=u,Qt.SuspenseList=d,Qt.isAsyncMode=function(){return!1},Qt.isConcurrentMode=function(){return!1},Qt.isContextConsumer=function(m){return b(m)===i},Qt.isContextProvider=function(m){return b(m)===a},Qt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Qt.isForwardRef=function(m){return b(m)===s},Qt.isFragment=function(m){return b(m)===n},Qt.isLazy=function(m){return b(m)===v},Qt.isMemo=function(m){return b(m)===f},Qt.isPortal=function(m){return b(m)===t},Qt.isProfiler=function(m){return b(m)===o},Qt.isStrictMode=function(m){return b(m)===r},Qt.isSuspense=function(m){return b(m)===u},Qt.isSuspenseList=function(m){return b(m)===d},Qt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===u||m===d||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===s||m.$$typeof===h||m.getModuleId!==void 0)},Qt.typeOf=b,Qt}var Jt={};/**
|
|
14
|
-
* @license React
|
|
15
|
-
* react-is.development.js
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the MIT license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var zm;function i1(){return zm||(zm=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,b=!1,m=!1,p=!1,y=!1,C;C=Symbol.for("react.module.reference");function S(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===n||ne===o||y||ne===r||ne===u||ne===d||p||ne===g||h||b||m||typeof ne=="object"&&ne!==null&&(ne.$$typeof===v||ne.$$typeof===f||ne.$$typeof===a||ne.$$typeof===i||ne.$$typeof===s||ne.$$typeof===C||ne.getModuleId!==void 0))}function x(ne){if(typeof ne=="object"&&ne!==null){var ie=ne.$$typeof;switch(ie){case e:var te=ne.type;switch(te){case n:case o:case r:case u:case d:return te;default:var le=te&&te.$$typeof;switch(le){case l:case i:case s:case v:case f:case a:return le;default:return ie}}case t:return ie}}}var w=i,E=a,$=e,O=s,I=n,_=v,M=f,P=t,T=o,N=r,R=u,F=d,A=!1,j=!1;function H(ne){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(ne){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(ne){return x(ne)===i}function B(ne){return x(ne)===a}function V(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function L(ne){return x(ne)===s}function q(ne){return x(ne)===n}function Y(ne){return x(ne)===v}function U(ne){return x(ne)===f}function ee(ne){return x(ne)===t}function Z(ne){return x(ne)===o}function Q(ne){return x(ne)===r}function J(ne){return x(ne)===u}function ae(ne){return x(ne)===d}Jt.ContextConsumer=w,Jt.ContextProvider=E,Jt.Element=$,Jt.ForwardRef=O,Jt.Fragment=I,Jt.Lazy=_,Jt.Memo=M,Jt.Portal=P,Jt.Profiler=T,Jt.StrictMode=N,Jt.Suspense=R,Jt.SuspenseList=F,Jt.isAsyncMode=H,Jt.isConcurrentMode=k,Jt.isContextConsumer=z,Jt.isContextProvider=B,Jt.isElement=V,Jt.isForwardRef=L,Jt.isFragment=q,Jt.isLazy=Y,Jt.isMemo=U,Jt.isPortal=ee,Jt.isProfiler=Z,Jt.isStrictMode=Q,Jt.isSuspense=J,Jt.isSuspenseList=ae,Jt.isValidElementType=S,Jt.typeOf=x}()),Jt}process.env.NODE_ENV==="production"?qc.exports=a1():qc.exports=i1();var Uc=qc.exports;function Ra(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}var l1=Number(D.version.split(".")[0]),Gc=function(t,n){typeof t=="function"?t(n):tt(t)==="object"&&t&&"current"in t&&(t.current=n)},En=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(a){n.forEach(function(i){Gc(i,a)})}},so=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ra(function(){return En.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,l){return i!==a[l]})})},qr=function(t){var n,r;if(!t)return!1;if(Bm(t)&&l1>=19)return!0;var o=Uc.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Uc.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Uc.ForwardRef)};function Bm(e){return D.isValidElement(e)&&!Mm(e)}var co=function(t){if(t&&Bm(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Kc=c.createContext(null);function s1(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),a=c.useContext(Kc),i=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=[])}),a==null||a(l,s,u)},[n,a]);return c.createElement(Kc.Provider,{value:i},t)}var Vm=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),Yc=typeof window<"u"&&typeof document<"u"&&window.document===document,Ji=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")()}(),c1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ji):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),u1=2;function d1(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){c1(a)}function l(){var s=Date.now();if(n){if(s-o<u1)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var f1=20,v1=["top","right","bottom","left","width","height","size","weight"],m1=typeof MutationObserver<"u",g1=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d1(this.refresh.bind(this),f1)}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(){!Yc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m1?(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(){!Yc||!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=v1.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Lm=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},Yo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ji},Hm=el(0,0,0,0);function Zi(e){return parseFloat(e)||0}function km(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Zi(a)},0)}function p1(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Zi(i)}return n}function h1(e){var t=e.getBBox();return el(0,0,t.width,t.height)}function b1(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hm;var r=Yo(e).getComputedStyle(e),o=p1(r),a=o.left+o.right,i=o.top+o.bottom,l=Zi(r.width),s=Zi(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=km(r,"left","right")+a),Math.round(s+i)!==n&&(s-=km(r,"top","bottom")+i)),!C1(e)){var u=Math.round(l+a)-t,d=Math.round(s+i)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(s-=d)}return el(o.left,o.top,l,s)}var y1=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Yo(e).SVGGraphicsElement}:function(e){return e instanceof Yo(e).SVGElement&&typeof e.getBBox=="function"}}();function C1(e){return e===Yo(e).document.documentElement}function S1(e){return Yc?y1(e)?h1(e):b1(e):Hm}function x1(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Lm(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function el(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w1=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=el(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=S1(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}(),E1=function(){function e(t,n){var r=x1(n);Lm(this,{target:t,contentRect:r})}return e}(),$1=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Vm,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 Yo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new w1(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 Yo(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 E1(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}(),Wm=typeof WeakMap<"u"?new WeakMap:new Vm,qm=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=g1.getInstance(),r=new $1(t,n,this);Wm.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){qm.prototype[e]=function(){var t;return(t=Wm.get(this))[e].apply(t,arguments)}});var O1=function(){return typeof Ji.ResizeObserver<"u"?Ji.ResizeObserver:qm}(),Mr=new Map;function Um(e){e.forEach(function(t){var n,r=t.target;(n=Mr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Gm=new O1(Um);process.env.NODE_ENV,process.env.NODE_ENV;function I1(e,t){Mr.has(e)||(Mr.set(e,new Set),Gm.observe(e)),Mr.get(e).add(t)}function N1(e,t){Mr.has(e)&&(Mr.get(e).delete(t),Mr.get(e).size||(Gm.unobserve(e),Mr.delete(e)))}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Km(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,Rm(r.key),r)}}function an(e,t,n){return t&&Km(e.prototype,t),n&&Km(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fa(e,t){return Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fa(e,t)}function wr(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&&Fa(e,t)}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uo(e)}function tl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tl=function(){return!!e})()}function Bt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ym(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 Bt(e)}function Tr(e){var t=tl();return function(){var n,r=uo(e);if(t){var o=uo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ym(this,n)}}var P1=function(e){wr(n,e);var t=Tr(n);function n(){return on(this,n),t.apply(this,arguments)}return an(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function _1(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),a=c.useRef(null),i=c.useContext(Kc),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)&&qr(s),f=d?co(s):null,v=so(f,o),g=function(){var p;return Qi(o.current)||(o.current&&tt(o.current)==="object"?Qi((p=o.current)===null||p===void 0?void 0:p.nativeElement):null)||Qi(a.current)};c.useImperativeHandle(t,function(){return g()});var h=c.useRef(e);h.current=e;var b=c.useCallback(function(m){var p=h.current,y=p.onResize,C=p.data,S=m.getBoundingClientRect(),x=S.width,w=S.height,E=m.offsetWidth,$=m.offsetHeight,O=Math.floor(x),I=Math.floor(w);if(u.current.width!==O||u.current.height!==I||u.current.offsetWidth!==E||u.current.offsetHeight!==$){var _={width:O,height:I,offsetWidth:E,offsetHeight:$};u.current=_;var M=E===Math.round(x)?x:E,P=$===Math.round(w)?w:$,T=G(G({},_),{},{offsetWidth:M,offsetHeight:P});i==null||i(T,m,C),y&&Promise.resolve().then(function(){y(T,m)})}},[]);return c.useEffect(function(){var m=g();return m&&!r&&I1(m,b),function(){return N1(m,b)}},[o.current,r]),c.createElement(P1,{ref:a},d?c.cloneElement(s,{ref:v}):s)}var Xm=c.forwardRef(_1);process.env.NODE_ENV!=="production"&&(Xm.displayName="SingleObserver");var M1="rc-observer-key";function T1(e,t){var n=e.children,r=typeof n=="function"?[n]:kn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Wr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Wr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(M1,"-").concat(a);return c.createElement(Xm,Ce({},e,{key:i,ref:a===0?t:void 0}),o)})}var Wn=c.forwardRef(T1);process.env.NODE_ENV!=="production"&&(Wn.displayName="ResizeObserver"),Wn.Collection=s1;function Xc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D1(e){if(Array.isArray(e))return Xc(e)}function Qm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qc(e,t){if(e){if(typeof e=="string")return Xc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xc(e,t):void 0}}function R1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return D1(e)||Qm(e)||Qc(e)||R1()}var Jm=function(t){return+setTimeout(t,16)},Zm=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Jm=function(t){return window.requestAnimationFrame(t)},Zm=function(t){return window.cancelAnimationFrame(t)});var eg=0,nl=new Map;function tg(e){nl.delete(e)}var yt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;eg+=1;var r=eg;function o(a){if(a===0)tg(r),t();else{var i=Jm(function(){o(a-1)});nl.set(r,i)}}return o(n),r};yt.cancel=function(e){var t=nl.get(e);return tg(e),Zm(t)},process.env.NODE_ENV!=="production"&&(yt.ids=function(){return nl});function ng(e){if(Array.isArray(e))return e}function F1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function rg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){return ng(e)||F1(e,t)||Qc(e,t)||rg()}function Aa(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 Nn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function A1(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 og="data-rc-order",ag="data-rc-priority",j1="rc-util-key",Jc=new Map;function ig(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):j1}function rl(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function z1(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Zc(e){return Array.from((Jc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=z1(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(og,i),l&&a&&s.setAttribute(ag,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=rl(t),d=u.firstChild;if(r){if(l){var f=(t.styles||Zc(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(og)))return!1;var g=Number(v.getAttribute(ag)||0);return a>=g});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function sg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rl(t);return(t.styles||Zc(n)).find(function(r){return r.getAttribute(ig(t))===e})}function ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sg(e,t);if(n){var r=rl(t);r.removeChild(n)}}function B1(e,t){var n=Jc.get(e);if(!n||!A1(document,n)){var r=lg("",t),o=r.parentNode;Jc.set(e,o),e.removeChild(r)}}function Dr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rl(n),o=Zc(r),a=G(G({},n),{},{styles:o});B1(r,a);var i=sg(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=lg(e,a);return d.setAttribute(ig(a),t),d}function V1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dt(e,t){if(e==null)return{};var n,r,o=V1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(ut(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],u))return!1;return!0}if(a&&i&&tt(a)==="object"&&tt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(v){return o(a[v],i[v],u)})}return!1}return o(e,t)}var L1="%";function eu(e){return e.join(L1)}var H1=function(){function e(t){on(this,e),W(this,"instanceId",void 0),W(this,"cache",new Map),this.instanceId=t}return an(e,[{key:"get",value:function(n){return this.opGet(eu(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(eu(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Qo="data-token-hash",dr="data-css-hash",k1="data-cache-path",Ur="__cssinjs_instance__";function W1(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(dr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ur]=o[Ur]||e,o[Ur]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(dr,"]"))).forEach(function(o){var a=o.getAttribute(dr);if(r[a]){if(o[Ur]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new H1(e)}var za=c.createContext({hashPriority:"low",cache:W1(),defaultCache:!0});function q1(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 tu=function(){function e(){on(this,e),W(this,"cache",void 0),W(this,"keys",void 0),W(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return an(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=K(u,2),v=f[1];return o.internalGet(d)[1]<v?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=K(a,1),l=i[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 a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!q1(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();W(tu,"MAX_CACHE_SIZE",20),W(tu,"MAX_CACHE_OFFSET",5);var cg=0,ug=function(){function e(t){on(this,e),W(this,"derivatives",void 0),W(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=cg,t.length===0&&Wr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),cg+=1}return an(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),nu=new tu;function ru(e){var t=Array.isArray(e)?e:[e];return nu.has(t)||nu.set(t,new ug(t)),nu.get(t)}var U1=new WeakMap,ou={};function G1(e,t){for(var n=U1,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(ou)||n.set(ou,e()),n.get(ou)}var dg=new WeakMap;function Ba(e){var t=dg.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ug?t+=r.id:r&&tt(r)==="object"?t+=Ba(r):t+=r}),t=Aa(t),dg.set(e,t)),t}function fg(e,t){return Aa("".concat(t,"_").concat(Ba(e)))}var au=Nn();function X(e){return typeof e=="number"?"".concat(e,"px"):e}function ol(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=G(G({},o),{},(r={},W(r,Qo,t),W(r,dr,n),r)),l=Object.keys(i).map(function(s){var u=i[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var al=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()},K1=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=K(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},vg=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,u=K(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var v,g=al(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,K1(o,n,{scope:r==null?void 0:r.scope})]},mg=process.env.NODE_ENV!=="test"&&Nn()?c.useLayoutEffect:c.useEffect,Pt=function(t,n){var r=c.useRef(!0);mg(function(){return t(r.current)},n),mg(function(){return r.current=!1,function(){r.current=!0}},[])},fo=function(t,n){Pt(function(r){if(!r)return t()},n)},Y1=G({},c),gg=Y1.useInsertionEffect,X1=function(t,n,r){c.useMemo(t,r),Pt(function(){return n(!0)},r)},Q1=gg?function(e,t,n){return gg(function(){return e(),t()},n)}:X1,J1=G({},c),Z1=J1.useInsertionEffect,eE=function(t){var n=[],r=!1;function o(a){if(r){process.env.NODE_ENV!=="production"&&Wr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},tE=function(){return function(t){t()}},nE=typeof Z1<"u"?eE:tE;function rE(){return!1}var iu=!1;function oE(){return iu}const aE=process.env.NODE_ENV==="production"?rE:oE;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(il&&typeof il.webpackHotUpdate=="function"){var iE=il.webpackHotUpdate;il.webpackHotUpdate=function(){return iu=!0,setTimeout(function(){iu=!1},0),iE.apply(void 0,arguments)}}}function lu(e,t,n,r,o){var a=c.useContext(za),i=a.cache,l=[e].concat(Ne(t)),s=eu(l),u=nE([s]),d=aE(),f=function(b){i.opUpdate(s,function(m){var p=m||[void 0,void 0],y=K(p,2),C=y[0],S=C===void 0?0:C,x=y[1],w=x;process.env.NODE_ENV!=="production"&&x&&d&&(r==null||r(w,d),w=null);var E=w||n(),$=[S,E];return b?b($):$})};c.useMemo(function(){f()},[s]);var v=i.opGet(s);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(s));var g=v[1];return Q1(function(){o==null||o(g)},function(h){return f(function(b){var m=K(b,2),p=m[0],y=m[1];return h&&p===0&&(o==null||o(g)),[p+1,y]}),function(){i.opUpdate(s,function(b){var m=b||[],p=K(m,2),y=p[0],C=y===void 0?0:y,S=p[1],x=C-1;return x===0?(u(function(){(h||!i.opGet(s))&&(r==null||r(S,!1))}),null):[C-1,S]})}},[s]),g}var lE={},sE=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",vo=new Map;function cE(e){vo.set(e,(vo.get(e)||0)+1)}function uE(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Qo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ur]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var dE=0;function fE(e,t){vo.set(e,(vo.get(e)||0)-1);var n=Array.from(vo.keys()),r=n.filter(function(o){var a=vo.get(o)||0;return a<=0});n.length-r.length>dE&&r.forEach(function(o){uE(o,t),vo.delete(o)})}var vE=function(t,n,r,o){var a=r.getDerivativeToken(t),i=G(G({},a),n);return o&&(i=o(i)),i},pg="token";function mE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.useContext(za),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,u=s===void 0?lE:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,g=G1(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),h=Ba(g),b=Ba(u),m=v?Ba(v):"",p=lu(pg,[l,e.id,h,b,m],function(){var y,C=f?f(g,u,e):vE(g,u,e,d),S=G({},C),x="";if(v){var w=vg(C,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),E=K(w,2);C=E[0],x=E[1]}var $=fg(C,l);C._tokenKey=$,S._tokenKey=fg(S,l);var O=(y=v==null?void 0:v.key)!==null&&y!==void 0?y:$;C._themeKey=O,cE(O);var I="".concat(sE,"-").concat(Aa($));return C._hashId=I,[C,I,S,x,(v==null?void 0:v.key)||""]},function(y){fE(y[0]._themeKey,o)},function(y){var C=K(y,4),S=C[0],x=C[3];if(v&&x){var w=Dr(x,Aa("css-variables-".concat(S._themeKey)),{mark:dr,prepend:"queue",attachTo:a,priority:-999});w[Ur]=o,w.setAttribute(Qo,S._themeKey)}});return p}var gE=function(t,n,r){var o=K(t,5),a=o[2],i=o[3],l=o[4],s=r||{},u=s.plain;if(!i)return null;var d=a._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=ol(i,l,d,v,u);return[f,d,g]},pE={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},hg="comm",bg="rule",yg="decl",hE="@import",bE="@namespace",yE="@keyframes",CE="@layer",Cg=Math.abs,su=String.fromCharCode;function Sg(e){return e.trim()}function ll(e,t,n){return e.replace(t,n)}function SE(e,t,n){return e.indexOf(t,n)}function Jo(e,t){return e.charCodeAt(t)|0}function Zo(e,t,n){return e.slice(t,n)}function Er(e){return e.length}function xE(e){return e.length}function sl(e,t){return t.push(e),e}var cl=1,ea=1,xg=0,nr=0,bn=0,ta="";function cu(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:cl,column:ea,length:i,return:"",siblings:l}}function wE(){return bn}function EE(){return bn=nr>0?Jo(ta,--nr):0,ea--,bn===10&&(ea=1,cl--),bn}function fr(){return bn=nr<xg?Jo(ta,nr++):0,ea++,bn===10&&(ea=1,cl++),bn}function Gr(){return Jo(ta,nr)}function ul(){return nr}function dl(e,t){return Zo(ta,e,t)}function Va(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $E(e){return cl=ea=1,xg=Er(ta=e),nr=0,[]}function OE(e){return ta="",e}function uu(e){return Sg(dl(nr-1,du(e===91?e+2:e===40?e+1:e)))}function IE(e){for(;(bn=Gr())&&bn<33;)fr();return Va(e)>2||Va(bn)>3?"":" "}function NE(e,t){for(;--t&&fr()&&!(bn<48||bn>102||bn>57&&bn<65||bn>70&&bn<97););return dl(e,ul()+(t<6&&Gr()==32&&fr()==32))}function du(e){for(;fr();)switch(bn){case e:return nr;case 34:case 39:e!==34&&e!==39&&du(bn);break;case 40:e===41&&du(e);break;case 92:fr();break}return nr}function PE(e,t){for(;fr()&&e+bn!==57;)if(e+bn===84&&Gr()===47)break;return"/*"+dl(t,nr-1)+"*"+su(e===47?e:fr())}function _E(e){for(;!Va(Gr());)fr();return dl(e,nr)}function ME(e){return OE(fl("",null,null,null,[""],e=$E(e),0,[0],e))}function fl(e,t,n,r,o,a,i,l,s){for(var u=0,d=0,f=i,v=0,g=0,h=0,b=1,m=1,p=1,y=0,C="",S=o,x=a,w=r,E=C;m;)switch(h=y,y=fr()){case 40:if(h!=108&&Jo(E,f-1)==58){SE(E+=ll(uu(y),"&","&\f"),"&\f",Cg(u?l[u-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:E+=uu(y);break;case 9:case 10:case 13:case 32:E+=IE(h);break;case 92:E+=NE(ul()-1,7);continue;case 47:switch(Gr()){case 42:case 47:sl(TE(PE(fr(),ul()),t,n,s),s),(Va(h||1)==5||Va(Gr()||1)==5)&&Er(E)&&Zo(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*b:l[u++]=Er(E)*p;case 125*b:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:p==-1&&(E=ll(E,/\f/g,"")),g>0&&(Er(E)-f||b===0&&h===47)&&sl(g>32?Eg(E+";",r,n,f-1,s):Eg(ll(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(sl(w=wg(E,t,n,u,d,o,l,C,S=[],x=[],f,a),a),y===123)if(d===0)fl(E,t,w,w,S,a,f,l,x);else{switch(v){case 99:if(Jo(E,3)===110)break;case 108:if(Jo(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?fl(e,w,w,r&&sl(wg(e,w,w,0,0,o,l,C,o,S=[],f,x),x),o,x,f,l,r?S:x):fl(E,w,w,w,[""],x,0,l,x)}}u=d=g=0,b=p=1,C=E="",f=i;break;case 58:f=1+Er(E),g=h;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&EE()==125)continue}switch(E+=su(y),y*b){case 38:p=d>0?1:(E+="\f",-1);break;case 44:l[u++]=(Er(E)-1)*p,p=1;break;case 64:Gr()===45&&(E+=uu(fr())),v=Gr(),d=f=Er(C=E+=_E(ul())),y++;break;case 45:h===45&&Er(E)==2&&(b=0)}}return a}function wg(e,t,n,r,o,a,i,l,s,u,d,f){for(var v=o-1,g=o===0?a:[""],h=xE(g),b=0,m=0,p=0;b<r;++b)for(var y=0,C=Zo(e,v+1,v=Cg(m=i[b])),S=e;y<h;++y)(S=Sg(m>0?g[y]+" "+C:ll(C,/&\f/g,g[y])))&&(s[p++]=S);return cu(e,t,n,o===0?bg:l,s,u,d,f)}function TE(e,t,n,r){return cu(e,t,n,hg,su(wE()),Zo(e,2,-2),0,r)}function Eg(e,t,n,r,o){return cu(e,t,n,yg,Zo(e,0,r),Zo(e,r+1,-1),r,o)}function fu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function DE(e,t,n,r){switch(e.type){case CE:if(e.children.length)break;case hE:case bE:case yg:return e.return=e.return||e.value;case hg:return"";case yE:return e.return=e.value+"{"+fu(e.children,r)+"}";case bg:if(!Er(e.value=e.props.join(",")))return""}return Er(n=fu(e.children,r))?e.return=e.value+"{"+n+"}":""}function $g(e,t){var n=t.path,r=t.parentSelectors;ut(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var RE=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&$g("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},FE=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&$g("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Og="data-ant-cssinjs-cache-path",Ig="_FILE_STYLE__",mo,Ng=!0;function AE(){if(!mo&&(mo={},Nn())){var e=document.createElement("div");e.className=Og,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=K(a,2),l=i[0],s=i[1];mo[l]=s});var n=document.querySelector("style[".concat(Og,"]"));if(n){var r;Ng=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function jE(e){return AE(),!!mo[e]}function zE(e){var t=mo[e],n=null;if(t&&Nn())if(Ng)n=Ig;else{var r=document.querySelector("style[".concat(dr,'="').concat(mo[e],'"]'));r?n=r.innerHTML:delete mo[e]}return[n,t]}var Pg="_skip_check_",_g="_multi_value_";function vl(e){var t=fu(ME(e),DE);return t.replace(/\{%%%\:[^;];}/g,";")}function BE(e){return tt(e)==="object"&&e&&(Pg in e||_g in e)}function Mg(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.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(Ne(s.slice(1))).join(" ")});return a.join(",")}var VE=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,v=f===void 0?[]:f,g=n.linters,h=g===void 0?[]:g,b="",m={};function p(S){var x=S.getName(l);if(!m[x]){var w=e(S.style,n,{root:!1,parentSelectors:i}),E=K(w,1),$=E[0];m[x]="@keyframes ".concat(S.getName(l)).concat($)}}function y(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(w){Array.isArray(w)?y(w,x):w&&x.push(w)}),x}var C=y(Array.isArray(t)?t:[t]);return C.forEach(function(S){var x=typeof S=="string"&&!o?{}:S;if(typeof x=="string")b+="".concat(x,`
|
|
24
|
-
`);else if(x._keyframe)p(x);else{var w=v.reduce(function(E,$){var O;return($==null||(O=$.visit)===null||O===void 0?void 0:O.call($,E))||E},x);Object.keys(w).forEach(function(E){var $=w[E];if(tt($)==="object"&&$&&(E!=="animationName"||!$._keyframe)&&!BE($)){var O=!1,I=E.trim(),_=!1;(o||a)&&l?I.startsWith("@")?O=!0:I==="&"?I=Mg("",l,d):I=Mg(E,l,d):o&&!l&&(I==="&"||I==="")&&(I="",_=!0);var M=e($,n,{root:_,injectHash:O,parentSelectors:[].concat(Ne(i),[I])}),P=K(M,2),T=P[0],N=P[1];m=G(G({},m),N),b+="".concat(I).concat(T)}else{let A=function(j,H){process.env.NODE_ENV!=="production"&&(tt($)!=="object"||!($!=null&&$[Pg]))&&[RE,FE].concat(Ne(h)).forEach(function(B){return B(j,H,{path:u,hashId:l,parentSelectors:i})});var k=j.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),z=H;!pE[j]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),j==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(p(H),z=H.getName(l)),b+="".concat(k,":").concat(z,";")};var R,F=(R=$==null?void 0:$.value)!==null&&R!==void 0?R:$;tt($)==="object"&&$!==null&&$!==void 0&&$[_g]&&Array.isArray(F)?F.forEach(function(j){A(E,j)}):A(E,F)}})}}),o?s&&(b&&(b="@layer ".concat(s.name," {").concat(b,"}")),s.dependencies&&(m["@layer ".concat(s.name)]=s.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(s.name,";")}).join(`
|
|
25
|
-
`))):b="{".concat(b,"}"),[b,m]};function Tg(e,t){return Aa("".concat(e.join("%")).concat(t))}function LE(){return null}var Dg="style";function vu(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,d=c.useContext(za),f=d.autoClear,v=d.mock,g=d.defaultCache,h=d.hashPriority,b=d.container,m=d.ssrInline,p=d.transformers,y=d.linters,C=d.cache,S=d.layer,x=n._tokenKey,w=[x];S&&w.push("layer"),w.push.apply(w,Ne(r));var E=au;process.env.NODE_ENV!=="production"&&v!==void 0&&(E=v==="client");var $=lu(Dg,w,function(){var P=w.join("|");if(jE(P)){var T=zE(P),N=K(T,2),R=N[0],F=N[1];if(R)return[R,x,F,{},l,u]}var A=t(),j=VE(A,{hashId:o,hashPriority:h,layer:S?a:void 0,path:r.join("-"),transformers:p,linters:y}),H=K(j,2),k=H[0],z=H[1],B=vl(k),V=Tg(w,B);return[B,x,V,z,l,u]},function(P,T){var N=K(P,3),R=N[2];(T||f)&&au&&ja(R,{mark:dr})},function(P){var T=K(P,4),N=T[0];T[1];var R=T[2],F=T[3];if(E&&N!==Ig){var A={mark:dr,prepend:S?!1:"queue",attachTo:b,priority:u},j=typeof i=="function"?i():i;j&&(A.csp={nonce:j});var H=[],k=[];Object.keys(F).forEach(function(B){B.startsWith("@layer")?H.push(B):k.push(B)}),H.forEach(function(B){Dr(vl(F[B]),"_layer-".concat(B),G(G({},A),{},{prepend:!0}))});var z=Dr(N,R,A);z[Ur]=C.instanceId,z.setAttribute(Qo,x),process.env.NODE_ENV!=="production"&&z.setAttribute(k1,w.join("|")),k.forEach(function(B){Dr(vl(F[B]),"_effect-".concat(B),A)})}}),O=K($,3),I=O[0],_=O[1],M=O[2];return function(P){var T;if(!m||E||!g)T=c.createElement(LE,null);else{var N;T=c.createElement("style",Ce({},(N={},W(N,Qo,_),W(N,dr,M),N),{dangerouslySetInnerHTML:{__html:I}}))}return c.createElement(c.Fragment,null,T,P)}}var HE=function(t,n,r){var o=K(t,6),a=o[0],i=o[1],l=o[2],s=o[3],u=o[4],d=o[5],f=r||{},v=f.plain;if(u)return null;var g=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=ol(a,i,l,h,v),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var m=vl(s[b]),p=ol(m,i,"_effect-".concat(b),h,v);b.startsWith("@layer")?g=p+g:g+=p}}),[d,l,g]},Rg="cssVar",kE=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,d=D.useContext(za),f=d.cache.instanceId,v=d.container,g=l._tokenKey,h=[].concat(Ne(t.path),[r,u,g]),b=lu(Rg,h,function(){var m=n(),p=vg(m,r,{prefix:o,unitless:a,ignore:i,scope:u}),y=K(p,2),C=y[0],S=y[1],x=Tg(h,S);return[C,S,x,r]},function(m){var p=K(m,3),y=p[2];au&&ja(y,{mark:dr})},function(m){var p=K(m,3),y=p[1],C=p[2];if(y){var S=Dr(y,C,{mark:dr,prepend:"queue",attachTo:v,priority:-999});S[Ur]=f,S.setAttribute(Qo,r)}});return b},WE=function(t,n,r){var o=K(t,4),a=o[1],i=o[2],l=o[3],s=r||{},u=s.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=ol(a,l,i,f,u);return[d,i,v]},La;La={},W(La,Dg,HE),W(La,pg,gE),W(La,Rg,WE);var Lt=function(){function e(t,n){on(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n}return an(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 mu=D.createContext({});function Fg(e){return ng(e)||Qm(e)||Qc(e)||rg()}function rr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ag(e,t,n,r){if(!t.length)return n;var o=Fg(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Ne(e):l=G({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=Ag(l[a],i,n,r),l}function or(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!rr(e,t.slice(0,-1))?e:Ag(e,t,n,r)}function qE(e){return tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function jg(e){return Array.isArray(e)?[]:{}}var UE=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ra(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jg(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),u=rr(o,i),d=Array.isArray(u);if(d||qE(u)){if(!s.has(u)){s.add(u);var f=rr(r,i);d?r=or(r,i,[]):(!f||tt(f)!=="object")&&(r=or(r,i,jg(u))),UE(u).forEach(function(v){a([].concat(Ne(i),[v]),s)})}}else r=or(r,i,u)}a([])}),r}function zg(){}let Rr=null;function GE(){Rr=null,Tm()}let Kr=zg;process.env.NODE_ENV!=="production"&&(Kr=(e,t,n)=>{ut(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&GE()});const Bg=c.createContext({}),jt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(Bg),n=(r,o,a)=>{if(!r)if(t===!1&&o==="deprecated"){const i=Rr;Rr||(Rr={}),Rr[e]=Rr[e]||[],Rr[e].includes(a||"")||Rr[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Rr)}else process.env.NODE_ENV!=="production"&&Kr(r,e,a)};return n.deprecated=(r,o,a,i)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=zg,e},Vg=D.createContext(void 0);var Lg={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"},KE={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},YE=G(G({},KE),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Hg={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ml={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},YE),timePickerLocale:Object.assign({},Hg)},Xn="${label} is not a valid ${type}",Yr={locale:"en",Pagination:Lg,DatePicker:ml,TimePicker:Hg,Calendar:ml,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Xn,method:Xn,array:Xn,object:Xn,number:Xn,date:Xn,boolean:Xn,integer:Xn,float:Xn,regexp:Xn,email:Xn,url:Xn,hex:Xn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Yr.Modal);let gl=[];const kg=()=>gl.reduce((e,t)=>Object.assign(Object.assign({},e),t),Yr.Modal);function XE(e){if(e){const t=Object.assign({},e);return gl.push(t),kg(),()=>{gl=gl.filter(n=>n!==t),kg()}}Object.assign({},Yr.Modal)}const gu=D.createContext(void 0),Fr=(e,t)=>{const n=c.useContext(gu),r=c.useMemo(()=>{var a;const i=t||Yr[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=c.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Yr.locale:a},[n]);return[r,o]},Wg="internalMark",qg=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=jt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===Wg,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>XE(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(gu.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(qg.displayName="LocaleProvider");const Ug={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"},Ha=Object.assign(Object.assign({},Ug),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
26
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
27
|
-
'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}),$n=Math.round;function pu(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Gg=(e,t,n)=>n===0?e:e/100;function ka(e,t){const n=t||255;return e>n?n:e<0?0:e}class kt{constructor(t){W(this,"isValid",!0),W(this,"r",0),W(this,"g",0),W(this,"b",0),W(this,"a",1),W(this,"_h",void 0),W(this,"_s",void 0),W(this,"_l",void 0),W(this,"_v",void 0),W(this,"_max",void 0),W(this,"_min",void 0),W(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof kt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ka(t.r),this.g=ka(t.g),this.b=ka(t.b),this.a=typeof t.a=="number"?ka(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=$n(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=l=>(r[l]-this[l])*o+this[l],i={r:$n(a("r")),g:$n(a("g")),b:$n(a("b")),a:$n(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>$n((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=$n(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=$n(this.getSaturation()*100),r=$n(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=ka(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const v=$n(r*255);this.r=v,this.g=v,this.b=v}let a=0,i=0,l=0;const s=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(s%2-1));s>=0&&s<1?(a=u,i=d):s>=1&&s<2?(a=d,i=u):s>=2&&s<3?(i=u,l=d):s>=3&&s<4?(i=d,l=u):s>=4&&s<5?(a=d,l=u):s>=5&&s<6&&(a=u,l=d);const f=r-u/2;this.r=$n((a+f)*255),this.g=$n((i+f)*255),this.b=$n((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=$n(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,l=Math.floor(i),s=i-l,u=$n(r*(1-n)*255),d=$n(r*(1-n*s)*255),f=$n(r*(1-n*(1-s))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=pu(t,Gg);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=pu(t,Gg);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=pu(t,(r,o)=>o.includes("%")?$n(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var pl=2,Kg=.16,QE=.05,JE=.05,ZE=.15,Yg=5,Xg=4,e$=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Qg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-pl*t:Math.round(e.h)+pl*t:r=n?Math.round(e.h)+pl*t:Math.round(e.h)-pl*t,r<0?r+=360:r>=360&&(r-=360),r}function Jg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Kg*t:t===Xg?r=e.s+Kg:r=e.s+QE*t,r>1&&(r=1),n&&t===Yg&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Zg(e,t,n){var r;return n?r=e.v+JE*t:r=e.v-ZE*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function oa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new kt(e),o=r.toHsv(),a=Yg;a>0;a-=1){var i=new kt({h:Qg(o,a,!0),s:Jg(o,a,!0),v:Zg(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=Xg;l+=1){var s=new kt({h:Qg(o,l),s:Jg(o,l),v:Zg(o,l)});n.push(s)}return t.theme==="dark"?e$.map(function(u){var d=u.index,f=u.amount;return new kt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var go={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"},hl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];hl.primary=hl[5];var bl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bl.primary=bl[5];var yl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yl.primary=yl[5];var Wa=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wa.primary=Wa[5];var Cl=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Cl.primary=Cl[5];var Sl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Sl.primary=Sl[5];var xl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xl.primary=xl[5];var wl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wl.primary=wl[5];var qa=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qa.primary=qa[5];var El=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];El.primary=El[5];var $l=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$l.primary=$l[5];var Ol=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ol.primary=Ol[5];var Ua=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ua.primary=Ua[5];var t$=Ua,Il={red:hl,volcano:bl,orange:yl,gold:Wa,yellow:Cl,lime:Sl,green:xl,cyan:wl,blue:qa,geekblue:El,purple:$l,magenta:Ol,grey:Ua},Nl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Nl.primary=Nl[5];var Pl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Pl.primary=Pl[5];var _l=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];_l.primary=_l[5];var Ml=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ml.primary=Ml[5];var Tl=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Tl.primary=Tl[5];var Dl=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Dl.primary=Dl[5];var Rl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Rl.primary=Rl[5];var Fl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Fl.primary=Fl[5];var Al=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Al.primary=Al[5];var jl=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];jl.primary=jl[5];var zl=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];zl.primary=zl[5];var Bl=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Bl.primary=Bl[5];var Vl=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Vl.primary=Vl[5];var n$={red:Nl,volcano:Pl,orange:_l,gold:Ml,yellow:Tl,lime:Dl,green:Rl,cyan:Fl,blue:Al,geekblue:jl,purple:zl,magenta:Bl,grey:Vl};const r$=Object.freeze(Object.defineProperty({__proto__:null,blue:qa,blueDark:Al,cyan:wl,cyanDark:Fl,geekblue:El,geekblueDark:jl,generate:oa,gold:Wa,goldDark:Ml,gray:t$,green:xl,greenDark:Rl,grey:Ua,greyDark:Vl,lime:Sl,limeDark:Dl,magenta:Ol,magentaDark:Bl,orange:yl,orangeDark:_l,presetDarkPalettes:n$,presetPalettes:Il,presetPrimaryColors:go,purple:$l,purpleDark:zl,red:hl,redDark:Nl,volcano:bl,volcanoDark:Pl,yellow:Cl,yellowDark:Tl},Symbol.toStringTag,{value:"Module"}));function o$(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,d=t(l),f=t(r),v=t(o),g=t(a),h=t(i),b=n(s,u),m=e.colorLink||e.colorInfo,p=t(m),y=new kt(g[1]).mix(new kt(g[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new kt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const a$=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 i$(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},a$(r))}const l$=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ll(e){return(e+8)/e}function s$(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ll(n)}))}const c$=e=>{const t=s$(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function u$(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 ar=(e,t)=>new kt(e).setA(t).toRgbString(),Ga=(e,t)=>new kt(e).darken(t).toHexString(),d$=e=>{const t=oa(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]}},f$=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ar(r,.88),colorTextSecondary:ar(r,.65),colorTextTertiary:ar(r,.45),colorTextQuaternary:ar(r,.25),colorFill:ar(r,.15),colorFillSecondary:ar(r,.06),colorFillTertiary:ar(r,.04),colorFillQuaternary:ar(r,.02),colorBgSolid:ar(r,1),colorBgSolidHover:ar(r,.75),colorBgSolidActive:ar(r,.95),colorBgLayout:Ga(n,4),colorBgContainer:Ga(n,0),colorBgElevated:Ga(n,0),colorBgSpotlight:ar(r,.85),colorBgBlur:"transparent",colorBorder:Ga(n,15),colorBorderSecondary:Ga(n,6)}};function v$(e){go.pink=go.magenta,Il.pink=Il.magenta;const t=Object.keys(Ug).map(n=>{const r=e[n]===go[n]?Il[n]:oa(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),o$(e,{generateColorPalettes:d$,generateNeutralColorPalettes:f$})),c$(e.fontSize)),u$(e)),l$(e)),i$(e))}const ep=ru(v$),hu={token:Ha,override:{override:Ha},hashed:!0},tp=D.createContext(hu),Ka="ant",bu="anticon",m$=["outlined","borderless","filled","underlined"],g$=(e,t)=>t||(e?`${Ka}-${e}`:Ka),bt=c.createContext({getPrefixCls:g$,iconPrefixCls:bu}),{Consumer:a5}=bt,np={};function Pn(e){const t=c.useContext(bt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:np,styles:np},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const p$=`-ant-${Date.now()}-${Math.random()}`;function h$(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new kt(i),u=oa(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().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new kt(t.primaryColor),l=oa(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const s=new kt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setA(u.a*.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"),`
|
|
28
|
-
:root {
|
|
29
|
-
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
30
|
-
`)}
|
|
31
|
-
}
|
|
32
|
-
`.trim()}function b$(e,t){const n=h$(e,t);Nn()?Dr(n,`${p$}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Kr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Tn=c.createContext(!1),rp=({children:e,disabled:t})=>{const n=c.useContext(Tn);return c.createElement(Tn.Provider,{value:t??n},e)},po=c.createContext(void 0),y$=({children:e,size:t})=>{const n=c.useContext(po);return c.createElement(po.Provider,{value:t||n},e)};function C$(){const e=D.useContext(Tn),t=D.useContext(po);return{componentDisabled:e,componentSize:t}}var op=an(function e(){on(this,e)}),ap="CALC_UNIT",S$=new RegExp(ap,"g");function yu(e){return typeof e=="number"?"".concat(e).concat(ap):e}var x$=function(e){wr(n,e);var t=Tr(n);function n(r,o){var a;on(this,n),a=t.call(this),W(Bt(a),"result",""),W(Bt(a),"unitlessCssVar",void 0),W(Bt(a),"lowPriority",void 0);var i=tt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=yu(r):i==="string"&&(a.result=r),a}return an(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(yu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(yu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},l=i.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(s=!1),this.result=this.result.replace(S$,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(op),w$=function(e){wr(n,e);var t=Tr(n);function n(r){var o;return on(this,n),o=t.call(this),W(Bt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return an(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}(op),E$=function(t,n){var r=t==="css"?x$:w$;return function(o){return new r(o,n)}},ip=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Tt(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function aa(e){var t=c.useRef(!1),n=c.useState(e),r=K(n,2),o=r[0],a=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||a(l)}return[o,i]}function Cu(e){return e!==void 0}function qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=aa(function(){return Cu(o)?o:Cu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=K(l,2),u=s[0],d=s[1],f=o!==void 0?o:u,v=i?i(f):f,g=Tt(a),h=aa([f]),b=K(h,2),m=b[0],p=b[1];fo(function(){var C=m[0];u!==C&&g(u,C)},[m]),fo(function(){Cu(o)||d(o)},[o]);var y=Tt(function(C,S){d(C,S),p([f],S)});return[v,y]}function lp(e,t,n,r){var o=G({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(l){var s=K(l,2),u=s[0],d=s[1];if(process.env.NODE_ENV!=="production"&&ut(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var i=G(G({},n),o);return Object.keys(i).forEach(function(l){i[l]===t[l]&&delete i[l]}),i}var sp=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Su=!0;function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!sp)return Object.assign.apply(Object,[{}].concat(t));Su=!1;var r={};return t.forEach(function(o){if(tt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Su=!0,r}var cp={};function $$(){}var O$=function(t){var n,r=t,o=$$;return sp&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,l){if(Su){var s;(s=n)===null||s===void 0||s.add(l)}return i[l]}}),o=function(i,l){var s;cp[i]={global:Array.from(n),component:G(G({},(s=cp[i])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:o}};function up(e,t,n){if(typeof n=="function"){var r;return n(At(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function I$(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return X(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return X(a)}).join(","),")")}}}var N$=1e3*60*10,P$=function(){function e(){on(this,e),W(this,"map",new Map),W(this,"objectIDMap",new WeakMap),W(this,"nextID",0),W(this,"lastAccessBeat",new Map),W(this,"accessBeat",0)}return an(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&tt(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(tt(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>N$&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),dp=new P$;function _$(e,t){return D.useMemo(function(){var n=dp.get(t);if(n)return n;var r=e();return dp.set(t,r),r},t)}var M$=function(){return{}};function T$(e){var t=e.useCSP,n=t===void 0?M$:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function s(v,g,h,b){var m=Array.isArray(v)?v[0]:v;function p($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(b==null?void 0:b.unitless)||{},C=typeof l=="function"?l(v):{},S=G(G({},C),{},W({},p("zIndexPopup"),!0));Object.keys(y).forEach(function($){S[p($)]=y[$]});var x=G(G({},b),{},{unitless:S,prefixToken:p}),w=d(v,g,h,x),E=u(m,h,x);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,I=w($,O),_=K(I,2),M=_[1],P=E(O),T=K(P,2),N=T[0],R=T[1];return[N,M,R]}}function u(v,g,h){var b=h.unitless,m=h.injectStyle,p=m===void 0?!0:m,y=h.prefixToken,C=h.ignore,S=function(E){var $=E.rootCls,O=E.cssVar,I=O===void 0?{}:O,_=r(),M=_.realToken;return kE({path:[v],prefix:I.prefix,key:I.key,unitless:b,ignore:C,token:M,scope:$},function(){var P=up(v,M,g),T=lp(v,M,P,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(P).forEach(function(N){T[y(N)]=T[N],delete T[N]}),T}),null},x=function(E){var $=r(),O=$.cssVar;return[function(I){return p&&O?D.createElement(D.Fragment,null,D.createElement(S,{rootCls:E,cssVar:O,component:v}),I):I},O==null?void 0:O.key]};return x}function d(v,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(v)?v:[v,v],p=K(m,1),y=p[0],C=m.join("-"),S=e.layer||{name:"antd"};return function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=r(),$=E.theme,O=E.realToken,I=E.hashId,_=E.token,M=E.cssVar,P=o(),T=P.rootPrefixCls,N=P.iconPrefixCls,R=n(),F=M?"css":"js",A=_$(function(){var V=new Set;return M&&Object.keys(b.unitless||{}).forEach(function(L){V.add(al(L,M.prefix)),V.add(al(L,ip(y,M.prefix)))}),E$(F,V)},[F,y,M==null?void 0:M.prefix]),j=I$(F),H=j.max,k=j.min,z={theme:$,token:_,hashId:I,nonce:function(){return R.nonce},clientOnly:b.clientOnly,layer:S,order:b.order||-999};typeof a=="function"&&vu(G(G({},z),{},{clientOnly:!1,path:["Shared",T]}),function(){return a(_,{prefix:{rootPrefixCls:T,iconPrefixCls:N},csp:R})});var B=vu(G(G({},z),{},{path:[C,x,N]}),function(){if(b.injectStyle===!1)return[];var V=O$(_),L=V.token,q=V.flush,Y=up(y,O,h),U=".".concat(x),ee=lp(y,O,Y,{deprecatedTokens:b.deprecatedTokens});M&&Y&&tt(Y)==="object"&&Object.keys(Y).forEach(function(ae){Y[ae]="var(".concat(al(ae,ip(y,M.prefix)),")")});var Z=At(L,{componentCls:U,prefixCls:x,iconCls:".".concat(N),antCls:".".concat(T),calc:A,max:H,min:k},M?Y:ee),Q=g(Z,{hashId:I,prefixCls:x,rootPrefixCls:T,iconPrefixCls:N});q(y,ee);var J=typeof i=="function"?i(Z,x,w,b.resetFont):null;return[b.resetStyle===!1?null:J,Q]});return[B,I]}}function f(v,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=d(v,g,h,G({resetStyle:!1,order:-998},b)),p=function(C){var S=C.prefixCls,x=C.rootCls,w=x===void 0?S:x;return m(S,w),null};return process.env.NODE_ENV!=="production"&&(p.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),p}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const ho=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],D$="5.25.4";function xu(e){return e>=0&&e<=255}function Ya(e,t){const{r:n,g:r,b:o,a}=new kt(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new kt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),v=Math.round((o-s*(1-u))/u);if(xu(d)&&xu(f)&&xu(v))return new kt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new kt({r:n,g:r,b:o,a:1}).toRgbString()}var R$=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 fp(e){const{override:t}=e,n=R$(e,["override"]),r=Object.assign({},t);Object.keys(Ha).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,u=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ya(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:Ya(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ya(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ya(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:`
|
|
33
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
-
`,boxShadowSecondary:`
|
|
37
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
-
`,boxShadowTertiary:`
|
|
41
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
42
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
43
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
44
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,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:`
|
|
45
|
-
0 1px 2px -2px ${new kt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
46
|
-
0 3px 6px 0 ${new kt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
47
|
-
0 5px 12px 4px ${new kt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
48
|
-
`,boxShadowDrawerRight:`
|
|
49
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
-
`,boxShadowDrawerLeft:`
|
|
53
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
-
`,boxShadowDrawerUp:`
|
|
57
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
58
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
59
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
60
|
-
`,boxShadowDrawerDown:`
|
|
61
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
62
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
63
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
64
|
-
`,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 vp=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 mp={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},F$={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},A$={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},gp=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=vp(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=fp(i),a&&Object.entries(a).forEach(([l,s])=>{const{theme:u}=s,d=vp(s,["theme"]);let f=d;u&&(f=gp(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f}),i};function Qn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=D.useContext(tp),a=`${D$}-${t||""}`,i=n||ep,[l,s,u]=mE(i,[Ha,e],{salt:a,override:r,getComputedToken:gp,formatToken:fp,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:mp,ignore:F$,preserve:A$}});return[i,u,t?s:"",l,o]}const Xr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ut=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Xa=()=>({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"}}),Qa=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),j$=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),z$=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),i),{[o]:i})}},Ar=(e,t)=>({outline:`${X(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),ia=(e,t)=>({"&:focus-visible":Object.assign({},Ar(e,t))}),pp=e=>({[`.${e}`]:Object.assign(Object.assign({},Xa()),{[`.${e} .${e}-icon`]:{display:"block"}})}),hp=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ia(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Kt,genComponentStyleHook:B$,genSubStyleComponent:Ja}=T$({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=D.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Qn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=D.useContext(bt);return e??{}},getResetStyles:(e,t)=>{var n;const r=j$(e);return[r,{"&":r},pp((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:bu)]},getCommonStyle:z$,getCompUnitless:()=>mp});function Hl(e,t){return ho.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const V$=(e,t)=>{const[n,r]=Qn();return vu({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[pp(e)])},L$=Object.assign({},c),{useId:bp}=L$,H$=typeof bp>"u"?()=>"":bp;function k$(e,t,n){var r,o;const a=jt("ConfigProvider"),i=e||{},l=i.inherit===!1||!t?Object.assign(Object.assign({},hu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:hu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=H$();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||l.cssVar,d=!!(typeof i.cssVar=="object"&&(!((o=i.cssVar)===null||o===void 0)&&o.key)||s);process.env.NODE_ENV!=="production"&&a(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ra(()=>{var u,d;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${s.replace(/:/g,"")}`,g=((u=i.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},l),i),{token:Object.assign(Object.assign({},l.token),i.token),components:f,cssVar:g})},[i,l],(u,d)=>u.some((f,v)=>{const g=d[v];return!Xo(f,g,!0)}))}var W$=["children"],yp=c.createContext({});function q$(e){var t=e.children,n=dt(e,W$);return c.createElement(yp.Provider,{value:n},t)}var U$=function(e){wr(n,e);var t=Tr(n);function n(){return on(this,n),t.apply(this,arguments)}return an(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function G$(e){var t=c.useReducer(function(l){return l+1},0),n=K(t,2),r=n[1],o=c.useRef(e),a=Tt(function(){return o.current}),i=Tt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var Qr="none",kl="appear",Wl="enter",ql="leave",Cp="none",vr="prepare",la="start",sa="active",wu="end",Sp="prepared";function xp(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 K$(e,t){var n={animationend:xp("Animation","AnimationEnd"),transitionend:xp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Y$=K$(Nn(),typeof window<"u"?window:{}),wp={};if(Nn()){var X$=document.createElement("div");wp=X$.style}var Ul={};function Ep(e){if(Ul[e])return Ul[e];var t=Y$[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in wp)return Ul[e]=t[a],Ul[e]}return""}var $p=Ep("animationend"),Op=Ep("transitionend"),Ip=!!($p&&Op),Np=$p||"animationend",Pp=Op||"transitionend";function _p(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 Q$=function(e){var t=D.useRef();function n(o){o&&(o.removeEventListener(Pp,e),o.removeEventListener(Np,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Pp,e),o.addEventListener(Np,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Mp=Nn()?D.useLayoutEffect:D.useEffect;const J$=function(){var e=c.useRef(null);function t(){yt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=yt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var Z$=[vr,la,sa,wu],eO=[vr,Sp],Tp=!1,tO=!0;function Dp(e){return e===sa||e===wu}const nO=function(e,t,n){var r=aa(Cp),o=K(r,2),a=o[0],i=o[1],l=J$(),s=K(l,2),u=s[0],d=s[1];function f(){i(vr,!0)}var v=t?eO:Z$;return Mp(function(){if(a!==Cp&&a!==wu){var g=v.indexOf(a),h=v[g+1],b=n(a);b===Tp?i(h,!0):h&&u(function(m){function p(){m.isCanceled()||i(h,!0)}b===!0?p():Promise.resolve(b).then(p)})}},[e,a]),c.useEffect(function(){return function(){d()}},[]),[f,a]};function rO(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,u=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,m=r.onEnterStart,p=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,O=aa(),I=K(O,2),_=I[0],M=I[1],P=G$(Qr),T=K(P,2),N=T[0],R=T[1],F=aa(null),A=K(F,2),j=A[0],H=A[1],k=N(),z=D.useRef(!1),B=D.useRef(null);function V(){return n()}var L=D.useRef(!1);function q(){R(Qr),H(null,!0)}var Y=Tt(function(ge){var be=N();if(be!==Qr){var de=V();if(!(ge&&!ge.deadline&&ge.target!==de)){var pe=L.current,Se;be===kl&&pe?Se=x==null?void 0:x(de,ge):be===Wl&&pe?Se=w==null?void 0:w(de,ge):be===ql&&pe&&(Se=E==null?void 0:E(de,ge)),pe&&Se!==!1&&q()}}}),U=Q$(Y),ee=K(U,1),Z=ee[0],Q=function(be){switch(be){case kl:return W(W(W({},vr,v),la,b),sa,y);case Wl:return W(W(W({},vr,g),la,m),sa,C);case ql:return W(W(W({},vr,h),la,p),sa,S);default:return{}}},J=c.useMemo(function(){return Q(k)},[k]),ae=nO(k,!e,function(ge){if(ge===vr){var be=J[vr];return be?be(V()):Tp}if(te in J){var de;H(((de=J[te])===null||de===void 0?void 0:de.call(J,V(),null))||null)}return te===sa&&k!==Qr&&(Z(V()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Y({deadline:!0})},d))),te===Sp&&q(),tO}),ne=K(ae,2),ie=ne[0],te=ne[1],le=Dp(te);L.current=le;var se=D.useRef(null);Mp(function(){if(!(z.current&&se.current===t)){M(t);var ge=z.current;z.current=!0;var be;!ge&&t&&l&&(be=kl),ge&&t&&a&&(be=Wl),(ge&&!t&&u||!ge&&f&&!t&&u)&&(be=ql);var de=Q(be);be&&(e||de[vr])?(R(be),ie()):R(Qr),se.current=t}},[t]),D.useEffect(function(){(k===kl&&!l||k===Wl&&!a||k===ql&&!u)&&R(Qr)},[l,a,u]),D.useEffect(function(){return function(){z.current=!1,clearTimeout(B.current)}},[]);var fe=c.useRef(!1);D.useEffect(function(){_&&(fe.current=!0),_!==void 0&&k===Qr&&((fe.current||_)&&($==null||$(_)),fe.current=!0)},[_,k]);var ve=j;return J[vr]&&te===la&&(ve=G({transition:"none"},ve)),[k,te,ve,_??t]}function oO(e){var t=e;tt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=c.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,u=s===void 0?!0:s,d=o.forceRender,f=o.children,v=o.motionName,g=o.leavedClassName,h=o.eventProps,b=c.useContext(yp),m=b.motion,p=n(o,m),y=D.useRef(),C=D.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:Qi(C.current)}catch{return null}}var x=rO(p,l,S,o),w=K(x,4),E=w[0],$=w[1],O=w[2],I=w[3],_=c.useRef(I);I&&(_.current=!0);var M=c.useCallback(function(A){y.current=A,Gc(a,A)},[a]),P,T=G(G({},h),{},{visible:l});if(!f)P=null;else if(E===Qr)I?P=f(G({},T),M):!u&&_.current&&g?P=f(G(G({},T),{},{className:g}),M):d||!u&&!g?P=f(G(G({},T),{},{style:{display:"none"}}),M):P=null;else{var N;$===vr?N="prepare":Dp($)?N="active":$===la&&(N="start");var R=_p(v,"".concat(E,"-").concat(N));P=f(G(G({},T),{},{className:re(_p(v,E),W(W({},R,R&&N),v,typeof v=="string")),style:O}),M)}if(c.isValidElement(P)&&qr(P)){var F=co(P);F||(P=c.cloneElement(P,{ref:M}))}return c.createElement(U$,{ref:C},P)});return r.displayName="CSSMotion",r}const $r=oO(Ip);var Eu="add",$u="keep",Ou="remove",Iu="removed";function aO(e){var t;return e&&tt(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function Nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(aO)}function iO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Nu(e),i=Nu(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var v=i[f];if(v.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return G(G({},g),{},{status:Eu})})),r=f),n.push(G(G({},v),{},{status:$u})),r+=1,d=!0;break}}d||n.push(G(G({},u),{},{status:Ou}))}),r<o&&(n=n.concat(i.slice(r).map(function(u){return G(G({},u),{},{status:Eu})})));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,v=d.status;return f!==u||v!==Ou}),n.forEach(function(d){d.key===u&&(d.status=$u)})}),n}var lO=["component","children","onVisibleChanged","onAllRemoved"],sO=["status"],cO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function uO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$r,n=function(r){wr(a,r);var o=Tr(a);function a(){var i;on(this,a);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return i=o.call.apply(o,[this].concat(s)),W(Bt(i),"state",{keyEntities:[]}),W(Bt(i),"removeKey",function(d){i.setState(function(f){var v=f.keyEntities.map(function(g){return g.key!==d?g:G(G({},g),{},{status:Iu})});return{keyEntities:v}},function(){var f=i.state.keyEntities,v=f.filter(function(g){var h=g.status;return h!==Iu}).length;v===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return an(a,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged;u.onAllRemoved;var g=dt(u,lO),h=d||c.Fragment,b={};return cO.forEach(function(m){b[m]=g[m],delete g[m]}),delete g.keys,c.createElement(h,g,s.map(function(m,p){var y=m.status,C=dt(m,sO),S=y===Eu||y===$u;return c.createElement(t,Ce({},b,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(w){v==null||v(w,{key:C.key}),w||l.removeKey(C.key)}}),function(x,w){return f(G(G({},x),{},{index:p}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var u=l.keys,d=s.keyEntities,f=Nu(u),v=iO(d,f);return{keyEntities:v.filter(function(g){var h=d.find(function(b){var m=b.key;return g.key===m});return!(h&&h.status===Iu&&g.status===Ou)})}}}]),a}(c.Component);return W(n,"defaultProps",{component:"div"}),n}const dO=uO(Ip);function fO(e){const{children:t}=e,[,n]=Qn(),{motion:r}=n,o=c.useRef(!1);return o.current=o.current||r===!1,o.current?c.createElement(q$,{motion:r},t):t}const Rp=c.memo(({dropdownMatchSelectWidth:e})=>(jt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Rp.displayName="PropWarning");const vO=process.env.NODE_ENV!=="production"?Rp:()=>null;var mO=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 Pu=!1;process.env.NODE_ENV;const gO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Fp;function pO(){return Fp||Ka}function hO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const bO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Fp=t),r&&hO(r)&&(process.env.NODE_ENV!=="production"&&Kr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),b$(pO(),r))},yO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:u,space:d,splitter:f,virtual:v,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:m,parentContext:p,iconPrefixCls:y,theme:C,componentDisabled:S,segmented:x,statistic:w,spin:E,calendar:$,carousel:O,cascader:I,collapse:_,typography:M,checkbox:P,descriptions:T,divider:N,drawer:R,skeleton:F,steps:A,image:j,layout:H,list:k,mentions:z,modal:B,progress:V,result:L,slider:q,breadcrumb:Y,menu:U,pagination:ee,input:Z,textArea:Q,empty:J,badge:ae,radio:ne,rate:ie,switch:te,transfer:le,avatar:se,message:fe,tag:ve,table:ge,card:be,tabs:de,timeline:pe,timePicker:Se,upload:xe,notification:De,tree:ye,colorPicker:$e,datePicker:Te,rangePicker:Pe,flex:Oe,wave:we,dropdown:me,warning:Ee,tour:ue,tooltip:ce,popover:Ie,popconfirm:rt,floatButtonGroup:lt,variant:mt,inputNumber:je,treeSelect:Re}=e,Ye=c.useCallback((Ke,at)=>{const{prefixCls:wt}=e;if(at)return at;const Et=wt||p.getPrefixCls("");return Ke?`${Et}-${Ke}`:Et},[p.getPrefixCls,e.prefixCls]),ke=y||p.iconPrefixCls||bu,Xe=n||p.csp;V$(ke,Xe);const We=k$(C,p.theme,{prefixCls:Ye("")});process.env.NODE_ENV!=="production"&&(Pu=Pu||!!We);const Ae={csp:Xe,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||m,direction:u,space:d,splitter:f,virtual:v,popupMatchSelectWidth:h??g,popupOverflow:b,getPrefixCls:Ye,iconPrefixCls:ke,theme:We,segmented:x,statistic:w,spin:E,calendar:$,carousel:O,cascader:I,collapse:_,typography:M,checkbox:P,descriptions:T,divider:N,drawer:R,skeleton:F,steps:A,image:j,input:Z,textArea:Q,layout:H,list:k,mentions:z,modal:B,progress:V,result:L,slider:q,breadcrumb:Y,menu:U,pagination:ee,empty:J,badge:ae,radio:ne,rate:ie,switch:te,transfer:le,avatar:se,message:fe,tag:ve,table:ge,card:be,tabs:de,timeline:pe,timePicker:Se,upload:xe,notification:De,tree:ye,colorPicker:$e,datePicker:Te,rangePicker:Pe,flex:Oe,wave:we,dropdown:me,warning:Ee,tour:ue,tooltip:ce,popover:Ie,popconfirm:rt,floatButtonGroup:lt,variant:mt,inputNumber:je,treeSelect:Re};process.env.NODE_ENV!=="production"&&jt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const ze=Object.assign({},p);Object.keys(Ae).forEach(Ke=>{Ae[Ke]!==void 0&&(ze[Ke]=Ae[Ke])}),gO.forEach(Ke=>{const at=e[Ke];at&&(ze[Ke]=at)}),typeof r<"u"&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const vt=Ra(()=>ze,ze,(Ke,at)=>{const wt=Object.keys(Ke),Et=Object.keys(at);return wt.length!==Et.length||wt.some(zt=>Ke[zt]!==at[zt])}),{layer:ft}=c.useContext(za),Le=c.useMemo(()=>({prefixCls:ke,csp:Xe,layer:ft?"antd":void 0}),[ke,Xe,ft]);let Me=c.createElement(c.Fragment,null,c.createElement(vO,{dropdownMatchSelectWidth:g}),t);const Be=c.useMemo(()=>{var Ke,at,wt,Et;return ra(((Ke=Yr.Form)===null||Ke===void 0?void 0:Ke.defaultValidateMessages)||{},((wt=(at=vt.locale)===null||at===void 0?void 0:at.Form)===null||wt===void 0?void 0:wt.defaultValidateMessages)||{},((Et=vt.form)===null||Et===void 0?void 0:Et.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[vt,i==null?void 0:i.validateMessages]);Object.keys(Be).length>0&&(Me=c.createElement(Vg.Provider,{value:Be},Me)),l&&(Me=c.createElement(qg,{locale:l,_ANT_MARK__:Wg},Me)),Me=c.createElement(mu.Provider,{value:Le},Me),s&&(Me=c.createElement(y$,{size:s},Me)),Me=c.createElement(fO,null,Me);const qe=c.useMemo(()=>{const Ke=We||{},{algorithm:at,token:wt,components:Et,cssVar:zt}=Ke,$t=mO(Ke,["algorithm","token","components","cssVar"]),ht=at&&(!Array.isArray(at)||at.length>0)?ru(at):ep,_t={};Object.entries(Et||{}).forEach(([Zt,Vt])=>{const Rt=Object.assign({},Vt);"algorithm"in Rt&&(Rt.algorithm===!0?Rt.theme=ht:(Array.isArray(Rt.algorithm)||typeof Rt.algorithm=="function")&&(Rt.theme=ru(Rt.algorithm)),delete Rt.algorithm),_t[Zt]=Rt});const Dt=Object.assign(Object.assign({},Ha),wt);return Object.assign(Object.assign({},$t),{theme:ht,token:Dt,components:_t,override:Object.assign({override:Dt},_t),cssVar:zt})},[We]);return C&&(Me=c.createElement(tp.Provider,{value:qe},Me)),vt.warning&&(Me=c.createElement(Bg.Provider,{value:vt.warning},Me)),S!==void 0&&(Me=c.createElement(rp,{disabled:S},Me)),c.createElement(bt.Provider,{value:vt},Me)},mr=e=>{const t=c.useContext(bt),n=c.useContext(gu);return c.createElement(yO,Object.assign({parentContext:t,legacyLocale:n},e))};mr.ConfigContext=bt,mr.SizeContext=po,mr.config=bO,mr.useConfig=C$,Object.defineProperty(mr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Kr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),po)}),process.env.NODE_ENV!=="production"&&(mr.displayName="ConfigProvider");var CO={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 Ap(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function SO(e){return Ap(e)instanceof ShadowRoot}function Gl(e){return SO(e)?Ap(e):null}function xO(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function wO(e,t){ut(e,"[@ant-design/icons] ".concat(t))}function jp(e){return tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(tt(e.icon)==="object"||typeof e.icon=="function")}function zp(){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[xO(n)]=r}return t},{})}function _u(e,t,n){return n?D.createElement(e.tag,G(G({key:t},zp(e.attrs)),n),(e.children||[]).map(function(r,o){return _u(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):D.createElement(e.tag,G({key:t},zp(e.attrs)),(e.children||[]).map(function(r,o){return _u(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Bp(e){return oa(e)[0]}function Vp(e){return e?Array.isArray(e)?e:[e]:[]}var EO=`
|
|
65
|
-
.anticon {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
color: inherit;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
line-height: 0;
|
|
71
|
-
text-align: center;
|
|
72
|
-
text-transform: none;
|
|
73
|
-
vertical-align: -0.125em;
|
|
74
|
-
text-rendering: optimizeLegibility;
|
|
75
|
-
-webkit-font-smoothing: antialiased;
|
|
76
|
-
-moz-osx-font-smoothing: grayscale;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon > * {
|
|
80
|
-
line-height: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon svg {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon::before {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.anticon .anticon-icon {
|
|
92
|
-
display: block;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.anticon[tabindex] {
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.anticon-spin::before,
|
|
100
|
-
.anticon-spin {
|
|
101
|
-
display: inline-block;
|
|
102
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
103
|
-
animation: loadingCircle 1s infinite linear;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@-webkit-keyframes loadingCircle {
|
|
107
|
-
100% {
|
|
108
|
-
-webkit-transform: rotate(360deg);
|
|
109
|
-
transform: rotate(360deg);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes loadingCircle {
|
|
114
|
-
100% {
|
|
115
|
-
-webkit-transform: rotate(360deg);
|
|
116
|
-
transform: rotate(360deg);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`,$O=function(t){var n=D.useContext(mu),r=n.csp,o=n.prefixCls,a=n.layer,i=EO;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
120
|
-
`).concat(i,`
|
|
121
|
-
}`)),D.useEffect(function(){var l=t.current,s=Gl(l);Dr(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:s})},[])},OO=["icon","className","onClick","style","primaryColor","secondaryColor"],Za={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function IO(e){var t=e.primaryColor,n=e.secondaryColor;Za.primaryColor=t,Za.secondaryColor=n||Bp(t),Za.calculated=!!n}function NO(){return G({},Za)}var ca=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=dt(t,OO),u=c.useRef(),d=Za;if(i&&(d={primaryColor:i,secondaryColor:l||Bp(i)}),$O(u),wO(jp(n),"icon should be icon definiton, but got ".concat(n)),!jp(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=G(G({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),_u(f.icon,"svg-".concat(f.name),G(G({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};ca.displayName="IconReact",ca.getTwoToneColors=NO,ca.setTwoToneColors=IO;function Lp(e){var t=Vp(e),n=K(t,2),r=n[0],o=n[1];return ca.setTwoToneColors({primaryColor:r,secondaryColor:o})}function PO(){var e=ca.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Lp(qa.primary);var Yt=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=dt(e,_O),d=c.useContext(mu),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,h=re(g,v,W(W({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,p=Vp(s),y=K(p,2),C=y[0],S=y[1];return c.createElement("span",Ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),c.createElement(ca,{icon:r,primaryColor:C,secondaryColor:S,style:m}))});Yt.displayName="AntdIcon",Yt.getTwoToneColor=PO,Yt.setTwoToneColor=Lp;var MO=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:CO}))},Kl=c.forwardRef(MO);process.env.NODE_ENV!=="production"&&(Kl.displayName="CheckCircleFilled");var TO={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"},DO=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:TO}))},ua=c.forwardRef(DO);process.env.NODE_ENV!=="production"&&(ua.displayName="CloseCircleFilled");var RO={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"},FO=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:RO}))},bo=c.forwardRef(FO);process.env.NODE_ENV!=="production"&&(bo.displayName="CloseOutlined");var AO={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"},jO=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:AO}))},Mu=c.forwardRef(jO);process.env.NODE_ENV!=="production"&&(Mu.displayName="ExclamationCircleFilled");var zO={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"},BO=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:zO}))},Hp=c.forwardRef(BO);process.env.NODE_ENV!=="production"&&(Hp.displayName="InfoCircleFilled");var VO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
122
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
123
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
124
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
125
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
126
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
127
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
128
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
129
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
130
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
131
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
132
|
-
summary tabIndex target title type useMap value width wmode wrap`,LO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
133
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
134
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
135
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
136
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
137
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
138
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,HO="".concat(VO," ").concat(LO).split(/[\s\n]+/),kO="aria-",WO="data-";function kp(e,t){return e.indexOf(t)===0}function Jn(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=G({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||kp(o,kO))||n.data&&kp(o,WO)||n.attr&&HO.includes(o))&&(r[o]=e[o])}),r}function Wp(e){return e&&D.isValidElement(e)&&e.type===D.Fragment}const Tu=(e,t,n)=>D.isValidElement(e)?D.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function gr(e,t){return Tu(e,e,t)}const Yl=(e,t,n,r,o)=>({background:e,border:`${X(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),qO=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:v,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
|
|
139
|
-
padding-top ${n} ${u}, padding-bottom ${n} ${u},
|
|
140
|
-
margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:v,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},UO=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:v,colorInfoBg:g}=e;return{[t]:{"&-success":Yl(o,r,n,e,t),"&-info":Yl(g,v,f,e,t),"&-warning":Yl(l,i,a,e,t),"&-error":Object.assign(Object.assign({},Yl(d,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},GO=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:X(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},KO=Kt("Alert",e=>[qO(e),UO(e),GO(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var qp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YO={success:Kl,info:Hp,error:ua,warning:Mu},XO=e=>{const{icon:t,prefixCls:n,type:r}=e,o=YO[r]||null;return t?Tu(t,c.createElement("span",{className:`${n}-icon`},t),()=>({className:re(`${n}-icon`,t.props.className)})):c.createElement(o,{className:`${n}-icon`})},QO=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:a}=e,i=r===!0||r===void 0?c.createElement(bo,null):r;return t?c.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a),i):null},Du=c.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:a,className:i,rootClassName:l,style:s,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:v,showIcon:g,closable:h,closeText:b,closeIcon:m,action:p,id:y}=e,C=qp(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,x]=c.useState(!1);process.env.NODE_ENV!=="production"&&jt("Alert").deprecated(!b,"closeText","closable.closeIcon");const w=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:w.current}));const{getPrefixCls:E,direction:$,closable:O,closeIcon:I,className:_,style:M}=Pn("alert"),P=E("alert",r),[T,N,R]=KO(P),F=L=>{var q;x(!0),(q=e.onClose)===null||q===void 0||q.call(e,L)},A=c.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),j=c.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:m!==!1&&m!==null&&m!==void 0?!0:!!O,[b,m,h,O]),H=a&&g===void 0?!0:g,k=re(P,`${P}-${A}`,{[`${P}-with-description`]:!!n,[`${P}-no-icon`]:!H,[`${P}-banner`]:!!a,[`${P}-rtl`]:$==="rtl"},_,i,l,R,N),z=Jn(C,{aria:!0,data:!0}),B=c.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:b||(m!==void 0?m:typeof O=="object"&&O.closeIcon?O.closeIcon:I),[m,h,b,I]),V=c.useMemo(()=>{const L=h??O;if(typeof L=="object"){const{closeIcon:q}=L;return qp(L,["closeIcon"])}return{}},[h,O]);return T(c.createElement($r,{visible:!S,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:L=>({maxHeight:L.offsetHeight}),onLeaveEnd:v},({className:L,style:q},Y)=>c.createElement("div",Object.assign({id:y,ref:En(w,Y),"data-show":!S,className:re(k,L),style:Object.assign(Object.assign(Object.assign({},M),s),q),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},z),H?c.createElement(XO,{description:n,icon:e.icon,prefixCls:P,type:A}):null,c.createElement("div",{className:`${P}-content`},o?c.createElement("div",{className:`${P}-message`},o):null,n?c.createElement("div",{className:`${P}-description`},n):null),p?c.createElement("div",{className:`${P}-action`},p):null,c.createElement(QO,{isClosable:j,prefixCls:P,closeIcon:B,handleClose:F,ariaProps:V}))))});process.env.NODE_ENV!=="production"&&(Du.displayName="Alert");function JO(e,t,n){return t=uo(t),Ym(e,tl()?Reflect.construct(t,n||[],uo(e).constructor):t.apply(e,n))}let ZO=function(e){function t(){var n;return on(this,t),n=JO(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return wr(t,e),an(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:a,children:i}=this.props,{error:l,info:s}=this.state,u=(s==null?void 0:s.componentStack)||null,d=typeof r>"u"?(l||"").toString():r,f=typeof o>"u"?u:o;return l?c.createElement(Du,{id:a,type:"error",message:d,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(c.Component);const Up=Du;Up.ErrorBoundary=ZO;const Gp=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Kp=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Xl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Kp(n.overflowY,t)||Kp(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ql=(e,t,n,r,o,a,i,l)=>a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0,eI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Yp=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:R=>R!==u;if(!Gp(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,g=[];let h=e;for(;Gp(h)&&f(h);){if(h=eI(h),h===v){g.push(h);break}h!=null&&h===document.body&&Xl(h)&&!Xl(document.documentElement)||h!=null&&Xl(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:p,scrollY:y}=window,{height:C,width:S,top:x,right:w,bottom:E,left:$}=e.getBoundingClientRect(),{top:O,right:I,bottom:_,left:M}=(R=>{const F=window.getComputedStyle(R);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let P=l==="start"||l==="nearest"?x-O:l==="end"?E+_:x+C/2-O+_,T=s==="center"?$+S/2-M+I:s==="end"?w+I:$-M;const N=[];for(let R=0;R<g.length;R++){const F=g[R],{height:A,width:j,top:H,right:k,bottom:z,left:B}=F.getBoundingClientRect();if(i==="if-needed"&&x>=0&&$>=0&&E<=m&&w<=b&&(F===v&&!Xl(F)||x>=H&&E<=z&&$>=B&&w<=k))return N;const V=getComputedStyle(F),L=parseInt(V.borderLeftWidth,10),q=parseInt(V.borderTopWidth,10),Y=parseInt(V.borderRightWidth,10),U=parseInt(V.borderBottomWidth,10);let ee=0,Z=0;const Q="offsetWidth"in F?F.offsetWidth-F.clientWidth-L-Y:0,J="offsetHeight"in F?F.offsetHeight-F.clientHeight-q-U:0,ae="offsetWidth"in F?F.offsetWidth===0?0:j/F.offsetWidth:0,ne="offsetHeight"in F?F.offsetHeight===0?0:A/F.offsetHeight:0;if(v===F)ee=l==="start"?P:l==="end"?P-m:l==="nearest"?Ql(y,y+m,m,q,U,y+P,y+P+C,C):P-m/2,Z=s==="start"?T:s==="center"?T-b/2:s==="end"?T-b:Ql(p,p+b,b,L,Y,p+T,p+T+S,S),ee=Math.max(0,ee+y),Z=Math.max(0,Z+p);else{ee=l==="start"?P-H-q:l==="end"?P-z+U+J:l==="nearest"?Ql(H,z,A,q,U+J,P,P+C,C):P-(H+A/2)+J/2,Z=s==="start"?T-B-L:s==="center"?T-(B+j/2)+Q/2:s==="end"?T-k+Y+Q:Ql(B,k,j,L,Y+Q,T,T+S,S);const{scrollLeft:ie,scrollTop:te}=F;ee=ne===0?0:Math.max(0,Math.min(te+ee/ne,F.scrollHeight-A/ne+J)),Z=ae===0?0:Math.max(0,Math.min(ie+Z/ae,F.scrollWidth-j/ae+Q)),P+=te-ee,T+=ie-Z}N.push({el:F,top:ee,left:Z})}return N},tI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function nI(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Yp(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Yp(e,tI(t))){const l=a-n.top+n.bottom,s=i-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const Gn=e=>{const[,,,,t]=Qn();return t?`${e}-css-var`:""};var Fe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},rI={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"},oI=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:rI}))},ei=c.forwardRef(oI);process.env.NODE_ENV!=="production"&&(ei.displayName="LoadingOutlined");const Ru=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ru.displayName="zIndexContext");const jr=100,aI=jr*10+jr,Xp={Modal:jr,Drawer:jr,Popover:jr,Popconfirm:jr,Tooltip:jr,Tour:jr,FloatButton:jr},iI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function lI(e){return e in Xp}const Jl=(e,t)=>{const[,n]=Qn(),r=D.useContext(Ru),o=lI(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+Xp[e]:i+=iI[e],a=[r===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=jt(e),l=n.zIndexPopupBase+aI,s=a[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Qp(e,t){this.v=e,this.k=t}function Dn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Dn=function(i,l,s,u){if(l)o?o(i,l,{value:s,enumerable:!u,configurable:!u,writable:!u}):i[l]=s;else{var d=function(v,g){Dn(i,v,function(h){return this._invoke(v,g,h)})};d("next",0),d("throw",1),d("return",2)}},Dn(e,t,n,r)}function Fu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(g,h,b,m){var p=h&&h.prototype instanceof l?h:l,y=Object.create(p.prototype);return Dn(y,"_invoke",function(C,S,x){var w,E,$,O=0,I=x||[],_=!1,M={p:0,n:0,v:e,a:P,f:P.bind(e,4),d:function(N,R){return w=N,E=0,$=e,M.n=R,i}};function P(T,N){for(E=T,$=N,t=0;!_&&O&&!R&&t<I.length;t++){var R,F=I[t],A=M.p,j=F[2];T>3?(R=j===N)&&($=F[(E=F[4])?5:(E=3,3)],F[4]=F[5]=e):F[0]<=A&&((R=T<2&&A<F[1])?(E=0,M.v=N,M.n=F[1]):A<j&&(R=T<3||F[0]>N||N>j)&&(F[4]=T,F[5]=N,M.n=j,E=0))}if(R||T>1)return i;throw _=!0,N}return function(T,N,R){if(O>1)throw TypeError("Generator is already running");for(_&&N===1&&P(N,R),E=N,$=R;(t=E<2?e:$)||!_;){w||(E?E<3?(E>1&&(M.n=-1),P(E,$)):M.n=$:M.v=$);try{if(O=2,w){if(E||(T="next"),t=w[T]){if(!(t=t.call(w,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,E<2&&(E=0)}else E===1&&(t=w.return)&&t.call(w),E<2&&($=TypeError("The iterator does not provide a '"+T+"' method"),E=1);w=e}else if((t=(_=M.n<0)?$:C.call(S,M))!==i)break}catch(F){w=e,E=1,$=F}finally{O=1}}return{value:t,done:_}}}(g,b,m),!0),y}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Dn(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(d);function v(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,Dn(g,o,"GeneratorFunction")),g.prototype=Object.create(f),g}return s.prototype=u,Dn(f,"constructor",u),Dn(u,"constructor",s),s.displayName="GeneratorFunction",Dn(u,o,"GeneratorFunction"),Dn(f),Dn(f,o,"Generator"),Dn(f,r,function(){return this}),Dn(f,"toString",function(){return"[object Generator]"}),(Fu=function(){return{w:a,m:v}})()}function Zl(e,t){function n(o,a,i,l){try{var s=e[o](a),u=s.value;return u instanceof Qp?t.resolve(u.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(u).then(function(d){s.value=d,i(s)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(Dn(Zl.prototype),Dn(Zl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Dn(this,"_invoke",function(o,a,i){function l(){return new t(function(s,u){n(o,i,s,u)})}return r=r?r.then(l,l):l()},!0)}function Jp(e,t,n,r,o){return new Zl(Fu().w(e,t,n,r),o||Promise)}function sI(e,t,n,r,o){var a=Jp(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function cI(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Zp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(tt(e)+" is not iterable")}function Rn(){var e=Fu(),t=e.m(Rn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var l,s;return function(u){l||(l={stop:function(){return s(u.a,2)},catch:function(){return u.v},abrupt:function(f,v){return s(u.a,o[f],v)},delegateYield:function(f,v,g){return l.resultName=v,s(u.d,Zp(f),g)},finish:function(f){return s(u.f,f)}},s=function(f,v,g){u.p=l.prev,u.n=l.next;try{return f(v,g)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return i.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(Rn=function(){return{wrap:function(s,u,d,f){return e.w(a(s),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(s,u){return new Qp(s,u)},AsyncIterator:Zl,async:function(s,u,d,f,v){return(r(u)?Jp:sI)(a(s),u,d,f,v)},keys:cI,values:Zp}})()}function eh(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function yo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){eh(a,r,o,i,l,"next",s)}function l(s){eh(a,r,o,i,l,"throw",s)}i(void 0)})}}var ti=G({},Nm),uI=ti.version,Au=ti.render,dI=ti.unmountComponentAtNode,es;try{var fI=Number((uI||"").split(".")[0]);fI>=18&&(es=ti.createRoot)}catch{}function th(e){var t=ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&tt(t)==="object"&&(t.usingClientEntryPoint=e)}var ts="__rc_react_root__";function vI(e,t){th(!0);var n=t[ts]||es(t);th(!1),n.render(e),t[ts]=n}function mI(e,t){Au==null||Au(e,t)}function gI(e,t){if(es){vI(e,t);return}mI(e,t)}function pI(e){return ju.apply(this,arguments)}function ju(){return ju=yo(Rn().mark(function e(t){return Rn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ts])===null||o===void 0||o.unmount(),delete t[ts]}));case 1:case"end":return r.stop()}},e)})),ju.apply(this,arguments)}function hI(e){dI(e)}function bI(e){return zu.apply(this,arguments)}function zu(){return zu=yo(Rn().mark(function e(t){return Rn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(es===void 0){r.next=2;break}return r.abrupt("return",pI(t));case 2:hI(t);case 3:case"end":return r.stop()}},e)})),zu.apply(this,arguments)}let yI=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=parseInt(c.version.split(".")[0],10),r=Object.keys(Nm);process.env.NODE_ENV!=="production"&&Kr(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return gI(e,t),()=>bI(t)};function CI(e){return yI}const Bu=()=>({height:0,opacity:0}),nh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},SI=e=>({height:e?e.offsetHeight:0}),Vu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",rh=(e=Ka)=>({motionName:`${e}-motion-collapse`,onAppearStart:Bu,onEnterStart:Bu,onAppearActive:nh,onEnterActive:nh,onLeaveStart:SI,onLeaveActive:Bu,onAppearEnd:Vu,onEnterEnd:Vu,onLeaveEnd:Vu,motionDeadline:500}),Lu=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function gn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const ni=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},xI=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},wI=B$("Wave",e=>[xI(e)]),ns=`${Ka}-wave-target`;function Hu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function EI(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Hu(t)?t:Hu(n)?n:Hu(r)?r:null}function ku(e){return Number.isNaN(e)?0:e}const $I=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=c.useRef(null),i=c.useRef(null);c.useEffect(()=>{i.current=o()},[]);const[l,s]=c.useState(null),[u,d]=c.useState([]),[f,v]=c.useState(0),[g,h]=c.useState(0),[b,m]=c.useState(0),[p,y]=c.useState(0),[C,S]=c.useState(!1),x={left:f,top:g,width:b,height:p,borderRadius:u.map($=>`${$}px`).join(" ")};l&&(x["--wave-color"]=l);function w(){const $=getComputedStyle(n);s(EI(n));const O=$.position==="static",{borderLeftWidth:I,borderTopWidth:_}=$;v(O?n.offsetLeft:ku(-parseFloat(I))),h(O?n.offsetTop:ku(-parseFloat(_))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:P,borderBottomLeftRadius:T,borderBottomRightRadius:N}=$;d([M,P,N,T].map(R=>ku(parseFloat(R))))}if(c.useEffect(()=>{if(n){const $=yt(()=>{w(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(w),O.observe(n)),()=>{yt.cancel($),O==null||O.disconnect()}}},[]),!C)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(ns));return c.createElement($r,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var I,_;if(O.deadline||O.propertyName==="opacity"){const M=(I=a.current)===null||I===void 0?void 0:I.parentElement;(_=i.current)===null||_===void 0||_.call(i).then(()=>{M==null||M.remove()})}return!1}},({className:$},O)=>c.createElement("div",{ref:En(a,O),className:re(t,$,{"wave-quick":E}),style:x}))},OI=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=CI();let i=null;function l(){return i}i=a(c.createElement($I,Object.assign({},t,{target:e,registerUnmount:l})),o)},II=(e,t,n)=>{const{wave:r}=c.useContext(bt),[,o,a]=Qn(),i=Tt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${ns}`)||d,{showEffect:v}=r||{};(v||OI)(f,{className:t,token:o,component:n,event:u,hashId:a})}),l=c.useRef(null);return u=>{yt.cancel(l.current),l.current=yt(()=>{i(u)})}},ri=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=D.useContext(bt),a=D.useRef(null),i=o("wave"),[,l]=wI(i),s=II(a,re(i,l),r);if(D.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!ni(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!D.isValidElement(t))return t??null;const u=qr(t)?En(co(t),a):a;return gr(t,{ref:u})};process.env.NODE_ENV!=="production"&&(ri.displayName="Wave");const _n=e=>{const t=D.useContext(po);return D.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},NI=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},PI=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},_I=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}}}},oh=Kt("Space",e=>{const t=At(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[PI(t),_I(t),NI(t)]},()=>({}),{resetStyle:!1});var ah=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 rs=c.createContext(null),Jr=(e,t)=>{const n=c.useContext(rs),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return re(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${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}},MI=e=>{const{children:t}=e;return c.createElement(rs.Provider,{value:null},t)},TI=e=>{const{children:t}=e,n=ah(e,["children"]);return c.createElement(rs.Provider,{value:c.useMemo(()=>n,[n])},t)},DI=e=>{const{getPrefixCls:t,direction:n}=c.useContext(bt),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:u}=e,d=ah(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=_n(C=>r??C),v=t("space-compact",i),[g,h]=oh(v),b=re(v,h,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:o==="vertical"},l,s),m=c.useContext(rs),p=kn(u),y=c.useMemo(()=>p.map((C,S)=>{const x=(C==null?void 0:C.key)||`${v}-item-${S}`;return c.createElement(TI,{key:x,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:S===p.length-1&&(!m||(m==null?void 0:m.isLastItem))},C)}),[r,p,m]);return p.length===0?null:g(c.createElement("div",Object.assign({className:b},d),y))};var RI=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 ih=c.createContext(void 0),FI=e=>{const{getPrefixCls:t,direction:n}=c.useContext(bt),{prefixCls:r,size:o,className:a}=e,i=RI(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Qn(),u=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const f=jt("Button.Group");f.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const d=re(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},a,s);return c.createElement(ih.Provider,{value:o},c.createElement("div",Object.assign({},i,{className:d})))},lh=/^[\u4E00-\u9FA5]{2}$/,Wu=lh.test.bind(lh);function sh(e){return typeof e=="string"}function os(e){return e==="text"||e==="link"}function AI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&sh(e.type)&&Wu(e.props.children)?gr(e,{children:e.props.children.split("").join(n)}):sh(e)?Wu(e)?D.createElement("span",null,e.split("").join(n)):D.createElement("span",null,e):Wp(e)?D.createElement("span",null,e):e}function jI(e,t){let n=!1;const r=[];return D.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),D.Children.map(r,o=>AI(o,t))}["default","primary","danger"].concat(Ne(ho));const qu=D.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=re(`${a}-icon`,n);return D.createElement("span",{ref:t,className:i,style:r},o)}),ch=D.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=re(`${n}-loading-icon`,r);return D.createElement(qu,{prefixCls:n,className:i,style:o,ref:t},D.createElement(ei,{className:a}))}),Uu=()=>({width:0,opacity:0,transform:"scale(0)"}),Gu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,l=!!n;return r?D.createElement(ch,{prefixCls:t,className:o,style:a}):D.createElement($r,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Uu,onAppearActive:Gu,onEnterStart:Uu,onEnterActive:Gu,onLeaveStart:Gu,onLeaveActive:Uu},({className:s,style:u},d)=>{const f=Object.assign(Object.assign({},a),u);return D.createElement(ch,{prefixCls:t,className:re(o,s),style:f,ref:d})})},uh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),BI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},uh(`${t}-primary`,o),uh(`${t}-danger`,a)]}};var VI=["b"],LI=["v"],Ku=function(t){return Math.round(Number(t||0))},HI=function(t){if(t instanceof kt)return t;if(t&&tt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=dt(n,VI);return G(G({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},zr=function(e){wr(n,e);var t=Tr(n);function n(r){return on(this,n),t.call(this,HI(r))}return an(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Ku(o.s*100),i=Ku(o.b*100),l=Ku(o.h),s=o.a,u="hsb(".concat(l,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(a,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=dt(o,LI);return G(G({},i),{},{b:a,a:this.a})}}]),n}(kt),kI="rc-color-picker",da=function(t){return t instanceof zr?t:new zr(t)},WI=da("#1677ff"),dh=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,l=o.current.getBoundingClientRect(),s=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,v=d.height,g=f/2,h=v/2,b=(n.x+g)/s,m=1-(n.y+h)/u,p=a.toHsb(),y=b,C=(n.x+g)/s*360;if(i)switch(i){case"hue":return da(G(G({},p),{},{h:C<=0?0:C}));case"alpha":return da(G(G({},p),{},{a:y<=0?0:y}))}return da({h:p.h,s:b<=0?0:b,b:m>=1?1:m,a:p.a})},fh=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},qI=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,l="".concat(r,"-color-block");return D.createElement("div",{className:re(l,o),style:a,onClick:i},D.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function UI(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function vh(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,a=e.onDragChangeComplete,i=e.calculate,l=e.color,s=e.disabledDrag,u=D.useState({x:0,y:0}),d=K(u,2),f=d[0],v=d[1],g=D.useRef(null),h=D.useRef(null);D.useEffect(function(){v(i())},[l]),D.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var b=function(S){var x=UI(S),w=x.pageX,E=x.pageY,$=n.current.getBoundingClientRect(),O=$.x,I=$.y,_=$.width,M=$.height,P=t.current.getBoundingClientRect(),T=P.width,N=P.height,R=T/2,F=N/2,A=Math.max(0,Math.min(w-O,_))-R,j=Math.max(0,Math.min(E-I,M))-F,H={x:A,y:r==="x"?f.y:j};if(T===0&&N===0||T!==N)return!1;o==null||o(H)},m=function(S){S.preventDefault(),b(S)},p=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,a==null||a()},y=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!s&&(b(S),document.addEventListener("mousemove",m),document.addEventListener("mouseup",p),document.addEventListener("touchmove",m),document.addEventListener("touchend",p),g.current=m,h.current=p)};return[f,y]}var mh=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return D.createElement("div",{className:re("".concat(a,"-handler"),W({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},gh=function(t){var n=t.children,r=t.style,o=t.prefixCls;return D.createElement("div",{className:"".concat(o,"-palette"),style:G({position:"relative"},r)},n)},ph=D.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return D.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),GI=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,l=D.useRef(),s=D.useRef(),u=D.useRef(n),d=Tt(function(b){var m=dh({offset:b,targetRef:s,containerRef:l,color:n});u.current=m,r(m)}),f=vh({color:n,containerRef:l,targetRef:s,calculate:function(){return fh(n)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:i}),v=K(f,2),g=v[0],h=v[1];return D.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},D.createElement(gh,{prefixCls:o},D.createElement(ph,{x:g.x,y:g.y,ref:s},D.createElement(mh,{color:n.toRgbString(),prefixCls:o})),D.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},KI=function(t,n){var r=qt(t,{value:n}),o=K(r,2),a=o[0],i=o[1],l=D.useMemo(function(){return da(a)},[a]);return[l,i]},YI=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,l=t.prefixCls,s=D.useMemo(function(){return n.map(function(u,d){var f=da(u);return i==="alpha"&&d===n.length-1&&(f=new zr(f.setA(1))),f.toRgbString()}).join(",")},[n,i]);return D.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},r)},XI=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,a=t.onChange,i=t.onChangeComplete,l=t.color,s=t.type,u=D.useRef(),d=D.useRef(),f=D.useRef(l),v=function(x){return s==="hue"?x.getHue():x.a*100},g=Tt(function(S){var x=dh({offset:S,targetRef:d,containerRef:u,color:l,type:s});f.current=x,a(v(x))}),h=vh({color:l,targetRef:d,containerRef:u,calculate:function(){return fh(l,s)},onDragChange:g,onDragChangeComplete:function(){i(v(f.current))},direction:"x",disabledDrag:o}),b=K(h,2),m=b[0],p=b[1],y=D.useMemo(function(){if(s==="hue"){var S=l.toHsb();S.s=1,S.b=1,S.a=1;var x=new zr(S);return x}return l},[l,s]),C=D.useMemo(function(){return r.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[r]);return D.createElement("div",{ref:u,className:re("".concat(n,"-slider"),"".concat(n,"-slider-").concat(s)),onMouseDown:p,onTouchStart:p},D.createElement(gh,{prefixCls:n},D.createElement(ph,{x:m.x,y:m.y,ref:d},D.createElement(mh,{size:"small",color:y.toHexString(),prefixCls:n})),D.createElement(YI,{colors:C,type:s,prefixCls:n})))};function QI(e){return c.useMemo(function(){var t=e||{},n=t.slider;return[n||XI]},[e])}var JI=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],ZI=D.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?kI:o,i=e.onChange,l=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,v=f===void 0?!1:f,g=e.disabled,h=g===void 0?!1:g,b=e.components,m=QI(b),p=K(m,1),y=p[0],C=KI(r||WI,n),S=K(C,2),x=S[0],w=S[1],E=D.useMemo(function(){return x.setA(1).toRgbString()},[x]),$=function(j,H){n||w(j),i==null||i(j,H)},O=function(j){return new zr(x.setHue(j))},I=function(j){return new zr(x.setA(j/100))},_=function(j){$(O(j),{type:"hue",value:j})},M=function(j){$(I(j),{type:"alpha",value:j})},P=function(j){l&&l(O(j))},T=function(j){l&&l(I(j))},N=re("".concat(a,"-panel"),s,W({},"".concat(a,"-panel-disabled"),h)),R={prefixCls:a,disabled:h,color:x},F=D.createElement(D.Fragment,null,D.createElement(GI,Ce({onChange:$},R,{onChangeComplete:l})),D.createElement("div",{className:"".concat(a,"-slider-container")},D.createElement("div",{className:re("".concat(a,"-slider-group"),W({},"".concat(a,"-slider-group-disabled-alpha"),v))},D.createElement(y,Ce({},R,{type:"hue",colors:JI,min:0,max:359,value:x.getHue(),onChange:_,onChangeComplete:P})),!v&&D.createElement(y,Ce({},R,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:x.a*100,onChange:M,onChangeComplete:T}))),D.createElement(qI,{color:x.toRgbString(),prefixCls:a})));return D.createElement("div",{className:N,style:u,ref:t},typeof d=="function"?d(F):F)});process.env.NODE_ENV!=="production"&&(ZI.displayName="ColorPicker");const eN=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",tN=(e,t)=>e?eN(e,t):"";let nN=function(){function e(t){on(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new zr(this.colors[0].color.metaColor)):this.metaColor=new zr(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return an(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tN(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var rN={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"},oN=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:rN}))},oi=c.forwardRef(oN);process.env.NODE_ENV!=="production"&&(oi.displayName="RightOutlined");const aN=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
141
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
142
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),iN=e=>({animationDuration:e,animationFillMode:"both"}),lN=e=>({animationDuration:e,animationFillMode:"both"}),Yu=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
143
|
-
${a}${e}-enter,
|
|
144
|
-
${a}${e}-appear
|
|
145
|
-
`]:Object.assign(Object.assign({},iN(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},lN(r)),{animationPlayState:"paused"}),[`
|
|
146
|
-
${a}${e}-enter${e}-enter-active,
|
|
147
|
-
${a}${e}-appear${e}-appear-active
|
|
148
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},sN=new Lt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cN=new Lt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),uN=new Lt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dN=new Lt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fN=new Lt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vN=new Lt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mN=new Lt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gN=new Lt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),pN={"move-up":{inKeyframes:mN,outKeyframes:gN},"move-down":{inKeyframes:sN,outKeyframes:cN},"move-left":{inKeyframes:uN,outKeyframes:dN},"move-right":{inKeyframes:fN,outKeyframes:vN}},as=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=pN[t];return[Yu(r,o,a,e.motionDurationMid),{[`
|
|
149
|
-
${r}-enter,
|
|
150
|
-
${r}-appear
|
|
151
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xu=new Lt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qu=new Lt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ju=new Lt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Zu=new Lt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),hN=new Lt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bN=new Lt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yN=new Lt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),CN=new Lt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),SN={"slide-up":{inKeyframes:Xu,outKeyframes:Qu},"slide-down":{inKeyframes:Ju,outKeyframes:Zu},"slide-left":{inKeyframes:hN,outKeyframes:bN},"slide-right":{inKeyframes:yN,outKeyframes:CN}},fa=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=SN[t];return[Yu(r,o,a,e.motionDurationMid),{[`
|
|
152
|
-
${r}-enter,
|
|
153
|
-
${r}-appear
|
|
154
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ed=new Lt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xN=new Lt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hh=new Lt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bh=new Lt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wN=new Lt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),EN=new Lt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$N=new Lt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ON=new Lt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IN=new Lt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),NN=new Lt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),PN=new Lt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_N=new Lt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),MN={zoom:{inKeyframes:ed,outKeyframes:xN},"zoom-big":{inKeyframes:hh,outKeyframes:bh},"zoom-big-fast":{inKeyframes:hh,outKeyframes:bh},"zoom-left":{inKeyframes:$N,outKeyframes:ON},"zoom-right":{inKeyframes:IN,outKeyframes:NN},"zoom-up":{inKeyframes:wN,outKeyframes:EN},"zoom-down":{inKeyframes:PN,outKeyframes:_N}},TN=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=MN[t];return[Yu(r,o,a,e.motionDurationFast),{[`
|
|
155
|
-
${r}-enter,
|
|
156
|
-
${r}-appear
|
|
157
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},DN=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new zr(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},yh=e=>{const{paddingInline:t,onlyIconSize:n}=e;return At(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Ch=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Ll(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Ll(s),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Ll(u),g=DN(new nN(e.colorBgSolid),"#fff")?"#000":"#fff",h=ho.reduce((b,m)=>Object.assign(Object.assign({},b),{[`${m}ShadowColor`]:`0 ${X(e.controlOutlineWidth)} 0 ${Ya(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)})},RN=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${X(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Xa(),"> a":{color:"currentColor"},"&:not(:disabled)":ia(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Sh=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),FN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),AN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),jN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),is=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Sh(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),zN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jN(e))}),BN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ls=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?BN:zN;return Object.assign(Object.assign({},a(e)),Sh(e.componentCls,t,n))},ss=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ls(e,r,o))}),cs=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ls(e,r,o))}),us=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ds=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ls(e,n,r))}),Or=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ls(e,r,o,n))}),VN=e=>{const{componentCls:t}=e;return ho.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},ss(e,e.colorTextLightSolid,o,{background:i},{background:u})),cs(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),us(e)),ds(e,a,{background:l},{background:s})),Or(e,o,"link",{color:i},{color:u})),Or(e,o,"text",{color:i,background:a},{color:u,background:s}))})},{})},LN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ss(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),us(e)),ds(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),is(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Or(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),HN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},cs(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),us(e)),ds(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Or(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Or(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),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})),kN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ss(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),cs(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),us(e)),ds(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Or(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Or(e,e.colorError,"link",{color:e.colorErrorHover},{color: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})),WN=e=>Object.assign(Object.assign({},Or(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),is(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),qN=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:LN(e),[`${t}-color-primary`]:HN(e),[`${t}-color-dangerous`]:kN(e),[`${t}-color-link`]:WN(e)},VN(e))},UN=e=>Object.assign(Object.assign(Object.assign(Object.assign({},cs(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Or(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ss(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Or(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),td=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${X(s)} ${X(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:FN(e)},{[`${n}${n}-round${t}`]:AN(e)}]},GN=e=>{const t=At(e,{fontSize:e.contentFontSize});return td(t,e.componentCls)},KN=e=>{const t=At(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return td(t,`${e.componentCls}-sm`)},YN=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return td(t,`${e.componentCls}-lg`)},XN=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},QN=Kt("Button",e=>{const t=yh(e);return[RN(t),GN(t),KN(t),YN(t),XN(t),qN(t),UN(t),BI(t)]},Ch,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function JN(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).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] ${i}`]:{zIndex:0}})}}function ZN(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 ai(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},JN(e,r,t)),ZN(n,r,t))}}function eP(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 tP(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 nP(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eP(e,t)),tP(e.componentCls,t))}}const rP=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=l=>{const s=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${s} + ${s}::before`]:{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},oP=Ja(["Button","compact"],e=>{const t=yh(e);return[ai(t),nP(t),rP(t)]},Ch);var aP=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 iP(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 lP={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},pn=D.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:l,type:s,danger:u=!1,shape:d="default",size:f,styles:v,disabled:g,className:h,rootClassName:b,children:m,icon:p,iconPosition:y="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:w,style:E={},autoInsertSpace:$,autoFocus:O}=e,I=aP(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),_=s||"default",{button:M}=D.useContext(bt),[P,T]=D.useMemo(()=>{if(i&&l)return[i,l];if(s||u){const ue=lP[_]||[];return u?["danger",ue[1]]:ue}return M!=null&&M.color&&(M!=null&&M.variant)?[M.color,M.variant]:["default","outlined"]},[s,i,l,u,M==null?void 0:M.variant,M==null?void 0:M.color]),R=P==="danger"?"dangerous":P,{getPrefixCls:F,direction:A,autoInsertSpace:j,className:H,style:k,classNames:z,styles:B}=Pn("button"),V=(n=$??j)!==null&&n!==void 0?n:!0,L=F("btn",a),[q,Y,U]=QN(L),ee=D.useContext(Tn),Z=g??ee,Q=D.useContext(ih),J=D.useMemo(()=>iP(o),[o]),[ae,ne]=D.useState(J.loading),[ie,te]=D.useState(!1),le=D.useRef(null),se=so(t,le),fe=D.Children.count(m)===1&&!p&&!os(T),ve=D.useRef(!0);D.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),D.useEffect(()=>{let ue=null;J.delay>0?ue=setTimeout(()=>{ue=null,ne(!0)},J.delay):ne(J.loading);function ce(){ue&&(clearTimeout(ue),ue=null)}return ce},[J]),D.useEffect(()=>{if(!le.current||!V)return;const ue=le.current.textContent||"";fe&&Wu(ue)?ie||te(!0):ie&&te(!1)}),D.useEffect(()=>{O&&le.current&&le.current.focus()},[]);const ge=D.useCallback(ue=>{var ce;if(ae||Z){ue.preventDefault();return}(ce=e.onClick)===null||ce===void 0||ce.call(e,("href"in e,ue))},[e.onClick,ae,Z]);if(process.env.NODE_ENV!=="production"){const ue=jt("Button");process.env.NODE_ENV!=="production"&&ue(!(typeof p=="string"&&p.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${p}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ue(!(C&&os(T)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:be,compactItemClassnames:de}=Jr(L,A),pe={large:"lg",small:"sm",middle:void 0},Se=_n(ue=>{var ce,Ie;return(Ie=(ce=f??be)!==null&&ce!==void 0?ce:Q)!==null&&Ie!==void 0?Ie:ue}),xe=Se&&(r=pe[Se])!==null&&r!==void 0?r:"",De=ae?"loading":p,ye=gn(I,["navigate"]),$e=re(L,Y,U,{[`${L}-${d}`]:d!=="default"&&d,[`${L}-${_}`]:_,[`${L}-dangerous`]:u,[`${L}-color-${R}`]:R,[`${L}-variant-${T}`]:T,[`${L}-${xe}`]:xe,[`${L}-icon-only`]:!m&&m!==0&&!!De,[`${L}-background-ghost`]:C&&!os(T),[`${L}-loading`]:ae,[`${L}-two-chinese-chars`]:ie&&V&&!ae,[`${L}-block`]:S,[`${L}-rtl`]:A==="rtl",[`${L}-icon-end`]:y==="end"},de,h,b,H),Te=Object.assign(Object.assign({},k),E),Pe=re(w==null?void 0:w.icon,z.icon),Oe=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),B.icon||{}),we=p&&!ae?D.createElement(qu,{prefixCls:L,className:Pe,style:Oe},p):o&&typeof o=="object"&&o.icon?D.createElement(qu,{prefixCls:L,className:Pe,style:Oe},o.icon):D.createElement(zI,{existIcon:!!p,prefixCls:L,loading:ae,mount:ve.current}),me=m||m===0?jI(m,fe&&V):null;if(ye.href!==void 0)return q(D.createElement("a",Object.assign({},ye,{className:re($e,{[`${L}-disabled`]:Z}),href:Z?void 0:ye.href,style:Te,onClick:ge,ref:se,tabIndex:Z?-1:0}),we,me));let Ee=D.createElement("button",Object.assign({},I,{type:x,className:$e,style:Te,onClick:ge,disabled:Z,ref:se}),we,me,de&&D.createElement(oP,{prefixCls:L}));return os(T)||(Ee=D.createElement(ri,{component:"Button",disabled:ae},Ee)),q(Ee)});pn.Group=FI,pn.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(pn.displayName="Button");var xh=c.createContext(null),wh=[];function sP(e,t){var n=c.useState(function(){if(!Nn())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=K(n,1),o=r[0],a=c.useRef(!1),i=c.useContext(xh),l=c.useState(wh),s=K(l,2),u=s[0],d=s[1],f=i||(a.current?void 0:function(h){d(function(b){var m=[h].concat(Ne(b));return m})});function v(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Pt(function(){return e?i?i(v):v():g(),g},[e]),Pt(function(){u.length&&(u.forEach(function(h){return h()}),d(wh))},[u]),[o,f]}function cP(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";Dr(`
|
|
158
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
159
|
-
`).concat(d,`
|
|
160
|
-
`).concat(f,`
|
|
161
|
-
}`),t)}catch(h){console.error(h),o=s,a=u}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ja(t),{width:v,height:g}}function uP(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:cP(e)}function dP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fP="rc-util-locker-".concat(Date.now()),Eh=0;function vP(e){var t=!!e,n=c.useState(function(){return Eh+=1,"".concat(fP,"_").concat(Eh)}),r=K(n,1),o=r[0];Pt(function(){if(t){var a=uP(document.body).width,i=dP();Dr(`
|
|
162
|
-
html body {
|
|
163
|
-
overflow-y: hidden;
|
|
164
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
165
|
-
}`),o)}else ja(o);return function(){ja(o)}},[t,o])}var mP=!1;function gP(e){return mP}var $h=function(t){return t===!1?!1:!Nn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},nd=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,l=i===void 0?!0:i,s=e.children,u=c.useState(n),d=K(u,2),f=d[0],v=d[1],g=f||n;process.env.NODE_ENV!=="production"&&ut(Nn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(l||n)&&v(n)},[n,l]);var h=c.useState(function(){return $h(o)}),b=K(h,2),m=b[0],p=b[1];c.useEffect(function(){var M=$h(o);p(M??null)});var y=sP(g&&!m,a),C=K(y,2),S=C[0],x=C[1],w=m??S;vP(r&&n&&Nn()&&(w===S||w===document.body));var E=null;if(s&&qr(s)&&t){var $=s;E=$.ref}var O=so(E,t);if(!g||!Nn()||m===void 0)return null;var I=w===!1||gP(),_=s;return t&&(_=c.cloneElement(s,{ref:O})),c.createElement(xh.Provider,{value:x},I?_:_r.createPortal(_,w))});process.env.NODE_ENV!=="production"&&(nd.displayName="Portal");function pP(){var e=G({},c);return e.useId}var Oh=0,Ih=pP();const rd=Ih?function(t){var n=Ih();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=c.useState("ssr-id"),r=K(n,2),o=r[0],a=r[1];return c.useEffect(function(){var i=Oh;Oh+=1,a("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var Co="RC_FORM_INTERNAL_HOOKS",tn=function(){ut(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},So=c.createContext({getFieldValue:tn,getFieldsValue:tn,getFieldError:tn,getFieldWarning:tn,getFieldsError:tn,isFieldsTouched:tn,isFieldTouched:tn,isFieldValidating:tn,isFieldsValidating:tn,resetFields:tn,setFields:tn,setFieldValue:tn,setFieldsValue:tn,validateFields:tn,submit:tn,getInternalHooks:function(){return tn(),{dispatch:tn,initEntityValue:tn,registerField:tn,useSubscribe:tn,setInitialValues:tn,destroyForm:tn,setCallbacks:tn,registerWatch:tn,getFields:tn,setValidateMessages:tn,setPreserve:tn,getInitialValue:tn}}}),ii=c.createContext(null);function od(e){return e==null?[]:Array.isArray(e)?e:[e]}function hP(e){return e&&!!e._init}function ad(){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 id=ad();function bP(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function yP(e,t,n){if(tl())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Fa(o,n.prototype),o}function ld(e){var t=typeof Map=="function"?new Map:void 0;return ld=function(r){if(r===null||!bP(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return yP(r,arguments,uo(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Fa(o,r)},ld(e)}var CP=/%[sdj%]/g,Nh=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Nh=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function sd(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 Zn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(CP,function(l){if(l==="%%")return"%";if(o>=a)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 i}return e}function SP(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function yn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||SP(t)&&typeof e=="string"&&!e)}function xP(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,Ne(l||[])),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Ph(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function wP(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var _h=function(e){wr(n,e);var t=Tr(n);function n(r,o){var a;return on(this,n),a=t.call(this,"Async Validation Error"),W(Bt(a),"errors",void 0),W(Bt(a),"fields",void 0),a.errors=r,a.fields=o,a}return an(n)}(ld(Error));function EP(e,t,n,r,o){if(t.first){var a=new Promise(function(v,g){var h=function(p){return r(p),p.length?g(new _h(p,sd(p))):v(o)},b=wP(e);Ph(b,n,h)});return a.catch(function(v){return v}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,d=[],f=new Promise(function(v,g){var h=function(m){if(d.push.apply(d,m),u++,u===s)return r(d),d.length?g(new _h(d,sd(d))):v(o)};l.length||(r(d),v(o)),l.forEach(function(b){var m=e[b];i.indexOf(b)!==-1?Ph(m,n,h):xP(m,n,h)})});return f.catch(function(v){return v}),f}function $P(e){return!!(e&&e.message!==void 0)}function OP(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Mh(e,t){return function(n){var r;return e.fullFields?r=OP(t,e.fullFields):r=t[n.field||e.fullField],$P(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 Th(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];tt(r)==="object"&&tt(e[n])==="object"?e[n]=G(G({},e[n]),r):e[n]=r}}return e}var va="enum",IP=function(t,n,r,o,a){t[va]=Array.isArray(t[va])?t[va]:[],t[va].indexOf(n)===-1&&o.push(Zn(a.messages[va],t.fullField,t[va].join(", ")))},NP=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Zn(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Zn(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},PP=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,v=typeof n=="number",g=typeof n=="string",h=Array.isArray(n);if(v?f="number":g?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),g&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Zn(a.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(Zn(a.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(Zn(a.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(Zn(a.messages[f].range,t.fullField,t.min,t.max))},Dh=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||yn(n,i||t.type))&&o.push(Zn(a.messages.required,t.fullField))},fs;const _P=function(){if(fs)return fs;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(w){return w&&w.exact?l:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};d.v4=function(x){return x&&x.exact?s:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(m).concat(p,")").concat(y).concat(C);return fs=new RegExp("(?:^".concat(S,"$)"),"i"),fs};var Rh={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},li={integer:function(t){return li.number(t)&&parseInt(t,10)===t},float:function(t){return li.number(t)&&!li.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 tt(t)==="object"&&!li.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Rh.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_P())},hex:function(t){return typeof t=="string"&&!!t.match(Rh.hex)}},MP=function(t,n,r,o,a){if(t.required&&n===void 0){Dh(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?li[l](n)||o.push(Zn(a.messages.types[l],t.fullField,t.type)):l&&tt(n)!==t.type&&o.push(Zn(a.messages.types[l],t.fullField,t.type))},TP=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Zn(a.messages.whitespace,t.fullField))};const Wt={required:Dh,whitespace:TP,type:MP,range:PP,enum:IP,pattern:NP};var DP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a)}r(i)},RP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Wt.required(t,n,o,i,a,"array"),n!=null&&(Wt.type(t,n,o,i,a),Wt.range(t,n,o,i,a))}r(i)},FP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&Wt.type(t,n,o,i,a)}r(i)},AP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n,"date")&&!t.required)return r();if(Wt.required(t,n,o,i,a),!yn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Wt.type(t,s,o,i,a),s&&Wt.range(t,s.getTime(),o,i,a)}}r(i)},jP="enum",zP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&Wt[jP](t,n,o,i,a)}r(i)},BP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&(Wt.type(t,n,o,i,a),Wt.range(t,n,o,i,a))}r(i)},VP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&(Wt.type(t,n,o,i,a),Wt.range(t,n,o,i,a))}r(i)},LP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&Wt.type(t,n,o,i,a)}r(i)},HP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&(Wt.type(t,n,o,i,a),Wt.range(t,n,o,i,a))}r(i)},kP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),n!==void 0&&Wt.type(t,n,o,i,a)}r(i)},WP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n,"string")&&!t.required)return r();Wt.required(t,n,o,i,a),yn(n,"string")||Wt.pattern(t,n,o,i,a)}r(i)},qP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n)&&!t.required)return r();Wt.required(t,n,o,i,a),yn(n)||Wt.type(t,n,o,i,a)}r(i)},UP=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":tt(n);Wt.required(t,n,o,i,a,l),r(i)},GP=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n,"string")&&!t.required)return r();Wt.required(t,n,o,i,a,"string"),yn(n,"string")||(Wt.type(t,n,o,i,a),Wt.range(t,n,o,i,a),Wt.pattern(t,n,o,i,a),t.whitespace===!0&&Wt.whitespace(t,n,o,i,a))}r(i)},cd=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n,i)&&!t.required)return r();Wt.required(t,n,o,l,a,i),yn(n,i)||Wt.type(t,n,o,l,a)}r(l)};const si={string:GP,method:LP,number:HP,boolean:FP,regexp:qP,integer:VP,float:BP,array:RP,object:kP,enum:zP,pattern:WP,date:AP,url:cd,hex:cd,email:cd,required:UP,any:DP};var ci=function(){function e(t){on(this,e),W(this,"rules",null),W(this,"_messages",id),this.define(t)}return an(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(tt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Th(ad(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=o,s=a;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,i),Promise.resolve(i);function u(h){var b=[],m={};function p(C){if(Array.isArray(C)){var S;b=(S=b).concat.apply(S,Ne(C))}else b.push(C)}for(var y=0;y<h.length;y++)p(h[y]);b.length?(m=sd(b),s(b,m)):s(null,i)}if(l.messages){var d=this.messages();d===id&&(d=ad()),Th(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},v=l.keys||Object.keys(this.rules);v.forEach(function(h){var b=r.rules[h],m=i[h];b.forEach(function(p){var y=p;typeof y.transform=="function"&&(i===n&&(i=G({},i)),m=i[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":tt(m)))),typeof y=="function"?y={validator:y}:y=G({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=r.getType(y),f[h]=f[h]||[],f[h].push({rule:y,value:m,source:i,field:h}))})});var g={};return EP(f,l,function(h,b){var m=h.rule,p=(m.type==="object"||m.type==="array")&&(tt(m.fields)==="object"||tt(m.defaultField)==="object");p=p&&(m.required||!m.required&&h.value),m.field=h.field;function y(E,$){return G(G({},$),{},{fullField:"".concat(m.fullField,".").concat(E),fullFields:m.fullFields?[].concat(Ne(m.fullFields),[E]):[E]})}function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(E)?E:[E];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&m.message!==void 0&&($=[].concat(m.message));var O=$.map(Mh(m,i));if(l.first&&O.length)return g[m.field]=1,b(O);if(!p)b(O);else{if(m.required&&!h.value)return m.message!==void 0?O=[].concat(m.message).map(Mh(m,i)):l.error&&(O=[l.error(m,Zn(l.messages.required,m.field))]),b(O);var I={};m.defaultField&&Object.keys(h.value).map(function(P){I[P]=m.defaultField}),I=G(G({},I),h.rule.fields);var _={};Object.keys(I).forEach(function(P){var T=I[P],N=Array.isArray(T)?T:[T];_[P]=N.map(y.bind(null,P))});var M=new e(_);M.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),M.validate(h.value,h.rule.options||l,function(P){var T=[];O&&O.length&&T.push.apply(T,Ne(O)),P&&P.length&&T.push.apply(T,Ne(P)),b(T.length?T:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,h.value,C,h.source,l);else if(m.validator){try{S=m.validator(m,h.value,C,h.source,l)}catch(E){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,E),l.suppressValidatorError||setTimeout(function(){throw E},0),C(E.message)}S===!0?C():S===!1?C(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function(E){return C(E)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!si.hasOwnProperty(n.type))throw new Error(Zn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?si.required:si[this.getType(n)]||void 0}}]),e}();W(ci,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");si[t]=n}),W(ci,"warning",Nh),W(ci,"messages",id),W(ci,"validators",si);var er="'${name}' is not a valid ${type}",Fh={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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}"}},Ah=ci;function KP(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var jh="CODE_LOGIC_ERROR";function ud(e,t,n,r,o){return dd.apply(this,arguments)}function dd(){return dd=yo(Rn().mark(function e(t,n,r,o,a){var i,l,s,u,d,f,v,g,h;return Rn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=G({},r),delete i.ruleIndex,Ah.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(jh)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),u=new Ah(W({},t,[i])),d=ra(Fh,o.validateMessages),u.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(u.validate(W({},t,n),G({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(p,y){var C=p.message,S=C===jh?d.default:C;return c.isValidElement(S)?c.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&s)){m.next=23;break}return m.next=21,Promise.all(n.map(function(p,y){return ud("".concat(t,".").concat(y),p,s,o,a)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(p,y){return[].concat(Ne(p),Ne(y))},[]));case 23:return g=G(G({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(p){return typeof p=="string"?KP(p,g):p}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),dd.apply(this,arguments)}function YP(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var v=d.validator,g=G(G({},d),{},{ruleIndex:f});return v&&(g.validator=function(h,b,m){var p=!1,y=function(){for(var x=arguments.length,w=new Array(x),E=0;E<x;E++)w[E]=arguments[E];Promise.resolve().then(function(){ut(!p,"Your validator function has already return a promise. `callback` will be ignored."),p||m.apply(void 0,w)})},C=v(h,b,y);p=C&&typeof C.then=="function"&&typeof C.catch=="function",ut(p,"`callback` is deprecated. Please return a promise instead."),p&&C.then(function(){m()}).catch(function(S){m(S||" ")})}),g}).sort(function(d,f){var v=d.warningOnly,g=d.ruleIndex,h=f.warningOnly,b=f.ruleIndex;return!!v==!!h?g-b:v?1:-1}),s;if(o===!0)s=new Promise(function(){var d=yo(Rn().mark(function f(v,g){var h,b,m;return Rn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<l.length)){y.next=12;break}return b=l[h],y.next=5,ud(i,t,b,r,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return g([{errors:m,rule:b}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:v([]);case 13:case"end":return y.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return ud(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?QP(u):XP(u)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function XP(e){return fd.apply(this,arguments)}function fd(){return fd=yo(Rn().mark(function e(t){return Rn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Ne(o));return i}));case 1:case"end":return r.stop()}},e)})),fd.apply(this,arguments)}function QP(e){return vd.apply(this,arguments)}function vd(){return vd=yo(Rn().mark(function e(t){var n;return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(l){l.errors.length&&a([l]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),vd.apply(this,arguments)}function hn(e){return od(e)}function zh(e,t){var n={};return t.forEach(function(r){var o=rr(e,r);n=or(n,r,o)}),n}function ma(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Bh(t,r,n)})}function Bh(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 JP(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 Ne(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function ZP(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 Vh(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ne(e.slice(0,n)),[o],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):a<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[o],Ne(e.slice(n+1,r))):e}var e2=["name"],ir=[];function md(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var gd=function(e){wr(n,e);var t=Tr(n);function n(r){var o;if(on(this,n),o=t.call(this,r),W(Bt(o),"state",{resetCount:0}),W(Bt(o),"cancelRegisterFunc",null),W(Bt(o),"mounted",!1),W(Bt(o),"touched",!1),W(Bt(o),"dirty",!1),W(Bt(o),"validatePromise",void 0),W(Bt(o),"prevValidating",void 0),W(Bt(o),"errors",ir),W(Bt(o),"warnings",ir),W(Bt(o),"cancelRegister",function(){var s=o.props,u=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,hn(f)),o.cancelRegisterFunc=null}),W(Bt(o),"getNamePath",function(){var s=o.props,u=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(Ne(v),Ne(u)):[]}),W(Bt(o),"getRules",function(){var s=o.props,u=s.rules,d=u===void 0?[]:u,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),W(Bt(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),W(Bt(o),"metaCache",null),W(Bt(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var d=G(G({},o.getMeta()),{},{destroy:s});Xo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),W(Bt(o),"onStoreChange",function(s,u,d){var f=o.props,v=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,m=d.store,p=o.getNamePath(),y=o.getValue(s),C=o.getValue(m),S=u&&ma(u,p);switch(d.type==="valueUpdate"&&d.source==="external"&&!Xo(y,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ir,o.warnings=ir,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ir,o.warnings=ir,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(v&&md(v,s,m,y,C,d)){o.reRender();return}break}case"setField":{var x=d.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||ir),"warnings"in x&&(o.warnings=x.warnings||ir),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&ma(u,p,!0)){o.reRender();return}if(v&&!p.length&&md(v,s,m,y,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(hn);if(w.some(function(E){return ma(d.relatedFields,E)})){o.reRender();return}break}default:if(S||(!h.length||p.length||v)&&md(v,s,m,y,C,d)){o.reRender();return}break}v===!0&&o.reRender()}),W(Bt(o),"validateRules",function(s){var u=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(yo(Rn().mark(function m(){var p,y,C,S,x,w,E;return Rn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(p=o.props,y=p.validateFirst,C=y===void 0?!1:y,S=p.messageVariables,x=p.validateDebounce,w=o.getRules(),v&&(w=w.filter(function(I){return I}).filter(function(I){var _=I.validateTrigger;if(!_)return!0;var M=od(_);return M.includes(v)})),!(x&&v)){O.next=10;break}return O.next=8,new Promise(function(I){setTimeout(I,x)});case 8:if(o.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return E=YP(u,d,w,s,C,S),E.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ir;if(o.validatePromise===b){var _;o.validatePromise=null;var M=[],P=[];(_=I.forEach)===null||_===void 0||_.call(I,function(T){var N=T.rule.warningOnly,R=T.errors,F=R===void 0?ir:R;N?P.push.apply(P,Ne(F)):M.push.apply(M,Ne(F))}),o.errors=M,o.warnings=P,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},m)})));return h||(o.validatePromise=b,o.dirty=!0,o.errors=ir,o.warnings=ir,o.triggerMetaEvent(),o.reRender()),b}),W(Bt(o),"isFieldValidating",function(){return!!o.validatePromise}),W(Bt(o),"isFieldTouched",function(){return o.touched}),W(Bt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(Co),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),W(Bt(o),"getErrors",function(){return o.errors}),W(Bt(o),"getWarnings",function(){return o.warnings}),W(Bt(o),"isListField",function(){return o.props.isListField}),W(Bt(o),"isList",function(){return o.props.isList}),W(Bt(o),"isPreserve",function(){return o.props.preserve}),W(Bt(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}),W(Bt(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return G(G({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=kn(s);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),W(Bt(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return rr(s||u(!0),d)}),W(Bt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,v=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,m=u.getValueProps,p=u.fieldContext,y=v!==void 0?v:p.validateTrigger,C=o.getNamePath(),S=p.getInternalHooks,x=p.getFieldsValue,w=S(Co),E=w.dispatch,$=o.getValue(),O=m||function(T){return W({},b,T)},I=s[f],_=d!==void 0?O($):{};process.env.NODE_ENV!=="production"&&_&&Object.keys(_).forEach(function(T){ut(typeof _[T]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(T,")"))});var M=G(G({},s),_);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var T,N=arguments.length,R=new Array(N),F=0;F<N;F++)R[F]=arguments[F];g?T=g.apply(void 0,R):T=ZP.apply(void 0,[b].concat(R)),h&&(T=h(T,$,x(!0))),T!==$&&E({type:"updateValue",namePath:C,value:T}),I&&I.apply(void 0,R)};var P=od(y||[]);return P.forEach(function(T){var N=M[T];M[T]=function(){N&&N.apply(void 0,arguments);var R=o.props.rules;R&&R.length&&E({type:"validateField",namePath:C,triggerName:T})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Co),l=i.initEntityValue;l(Bt(o))}return o}return an(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(Co),u=s.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.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);W(gd,"contextType",So),W(gd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function pd(e){var t,n=e.name,r=dt(e,e2),o=c.useContext(So),a=c.useContext(ii),i=n!==void 0?hn(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!a,s="keep";return l||(s="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&l&&i.length<=1&&ut(!1,"`preserve` should not apply on Form.List fields."),c.createElement(gd,Ce({key:s,name:i,isListField:l},r,{fieldContext:o}))}function Lh(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=c.useContext(So),s=c.useContext(ii),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var b=hn(l.prefixName)||[];return[].concat(Ne(b),Ne(hn(t)))},[l.prefixName,t]),v=c.useMemo(function(){return G(G({},l),{},{prefixName:f})},[l,f]),g=c.useMemo(function(){return{getKey:function(m){var p=f.length,y=m[p];return[d.keys[y],m.slice(p+1)]}}},[f]);if(typeof r!="function")return ut(!1,"Form.List only accepts function as children."),null;var h=function(m,p,y){var C=y.source;return C==="internal"?!1:m!==p};return c.createElement(ii.Provider,{value:g},c.createElement(So.Provider,{value:v},c.createElement(pd,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(b,m){var p=b.value,y=p===void 0?[]:p,C=b.onChange,S=l.getFieldValue,x=function(){var O=S(f||[]);return O||[]},w={add:function(O,I){var _=x();I>=0&&I<=_.length?(d.keys=[].concat(Ne(d.keys.slice(0,I)),[d.id],Ne(d.keys.slice(I))),C([].concat(Ne(_.slice(0,I)),[O],Ne(_.slice(I))))):(process.env.NODE_ENV!=="production"&&(I<0||I>_.length)&&ut(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ne(d.keys),[d.id]),C([].concat(Ne(_),[O]))),d.id+=1},remove:function(O){var I=x(),_=new Set(Array.isArray(O)?O:[O]);_.size<=0||(d.keys=d.keys.filter(function(M,P){return!_.has(P)}),C(I.filter(function(M,P){return!_.has(P)})))},move:function(O,I){if(O!==I){var _=x();O<0||O>=_.length||I<0||I>=_.length||(d.keys=Vh(d.keys,O,I),C(Vh(_,O,I)))}}},E=y||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&ut(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(E.map(function($,O){var I=d.keys[O];return I===void 0&&(d.keys[O]=d.id,I=d.keys[O],d.id+=1),{name:O,key:I,isListField:!0}}),w,m)})))}function t2(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var Hh="__@field_split__";function hd(e){return e.map(function(t){return"".concat(tt(t),":").concat(t)}).join(Hh)}var ga=function(){function e(){on(this,e),W(this,"kvs",new Map)}return an(e,[{key:"set",value:function(n,r){this.kvs.set(hd(n),r)}},{key:"get",value:function(n){return this.kvs.get(hd(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(hd(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var o=K(r,2),a=o[0],i=o[1],l=a.split(Hh);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),d=K(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),n2=["name"],r2=an(function e(t){var n=this;on(this,e),W(this,"formHooked",!1),W(this,"forceRootUpdate",void 0),W(this,"subscribable",!0),W(this,"store",{}),W(this,"fieldEntities",[]),W(this,"initialValues",{}),W(this,"callbacks",{}),W(this,"validateMessages",null),W(this,"preserve",null),W(this,"lastValidatePromise",null),W(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}}),W(this,"getInternalHooks",function(r){return r===Co?(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)}),W(this,"useSubscribe",function(r){n.subscribable=r}),W(this,"prevWithoutPreserves",null),W(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ra(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=or(i,s,rr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),W(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ga;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),W(this,"getInitialValue",function(r){var o=rr(n.initialValues,r);return r.length?ra(o):o}),W(this,"setCallbacks",function(r){n.callbacks=r}),W(this,"setValidateMessages",function(r){n.validateMessages=r}),W(this,"setPreserve",function(r){n.preserve=r}),W(this,"watchList",[]),W(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),W(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),W(this,"timeoutId",null),W(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||ut(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),W(this,"updateStore",function(r){n.store=r}),W(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}),W(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ga;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),W(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=hn(a);return o.get(i)||{INVALIDATE_NAME_PATH:hn(a)}})}),W(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&tt(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return s.forEach(function(d){var f,v,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!a&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(g);else{var m="getMeta"in d?d.getMeta():null;i(m)&&u.push(g)}}),zh(n.store,u.map(hn))}),W(this,"getFieldValue",function(r){n.warningUnhooked();var o=hn(r);return rr(n.store,o)}),W(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:hn(r[i]),errors:[],warnings:[]}})}),W(this,"getFieldError",function(r){n.warningUnhooked();var o=hn(r),a=n.getFieldsError([o])[0];return a.errors}),W(this,"getFieldWarning",function(r){n.warningUnhooked();var o=hn(r),a=n.getFieldsError([o])[0];return a.warnings}),W(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,u=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map(hn),u=!1):(s=null,u=i):(s=i.map(hn),u=l);var d=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!s)return u?d.every(function(b){return f(b)||b.isList()}):d.some(f);var v=new ga;s.forEach(function(b){v.set(b,[])}),d.forEach(function(b){var m=b.getNamePath();s.forEach(function(p){p.every(function(y,C){return m[C]===y})&&v.update(p,function(y){return[].concat(Ne(y),[b])})})});var g=function(m){return m.some(f)},h=v.map(function(b){var m=b.value;return m});return u?h.every(g):h.some(g)}),W(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),W(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(hn);return o.some(function(i){var l=i.getNamePath();return ma(a,l)&&i.isFieldValidating()})}),W(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),W(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ga,a=n.getFieldEntities(!0);a.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 i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),g=n.getInitialValue(v);if(g!==void 0)ut(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=o.get(v);if(h&&h.size>1)ut(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(v),m=d.isListField();!m&&(!r.skipExist||b===void 0)&&n.updateStore(or(n.store,v,Ne(h)[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,Ne(Ne(u).map(function(f){return f.entity})))}})):l=a,i(l)}),W(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ra(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(hn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(or(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),W(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=dt(i,n2),u=hn(l);a.push(u),"value"in s&&n.updateStore(or(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),W(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=G(G({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),W(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=rr(n.store,a);i===void 0&&n.updateStore(or(n.store,a,o))}}),W(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),W(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,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)&&(!i||s.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!Bh(f.getNamePath(),o)})){var d=n.store;n.updateStore(or(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),W(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),W(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=G(G({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),W(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ne(a))}),a}),W(this,"updateValue",function(r,o){var a=hn(r),i=n.store;n.updateStore(or(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var u=zh(n.store,[a]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ne(l)))}),W(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ra(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),W(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),W(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ga;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(d){var f=hn(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(a.push(v),s(v))}})};return l(r),a}),W(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new ga;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=i.filter(function(u){var d=u.name;return ma(r,d)});s.length&&a(s,i)}}),W(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(hn):[],u=[],d=String(Date.now()),f=new Set,v=i||{},g=v.recursive,h=v.dirty;n.getFieldEntities(!0).forEach(function(y){if(l||s.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var C=y.getNamePath();if(f.add(C.join(d)),!l||ma(s,C,g)){var S=y.validateRules(G({validateMessages:G(G({},Fh),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var w,E=[],$=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(O){var I=O.rule.warningOnly,_=O.errors;I?$.push.apply($,Ne(_)):E.push.apply(E,Ne(_))}),E.length?Promise.reject({name:C,errors:E,warnings:$}):{name:C,errors:E,warnings:$}}))}}});var b=t2(u);n.lastValidatePromise=b,b.catch(function(y){return y}).then(function(y){var C=y.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y)});var m=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(y){var C=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:C,outOfDate:n.lastValidatePromise!==b})});m.catch(function(y){return y});var p=s.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(p),m}),W(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function bd(e){var t=c.useRef(),n=c.useState({}),r=K(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new r2(a);t.current=i.getForm()}return[t.current]}var yd=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),kh=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=c.useContext(yd),l=c.useRef({});return c.createElement(yd.Provider,{value:G(G({},i),{},{validateMessages:G(G({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=G(G({},l.current),{},W({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=G({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},a)},o2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],a2=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,g=v===void 0?"onChange":v,h=t.onValuesChange,b=t.onFieldsChange,m=t.onFinish,p=t.onFinishFailed,y=t.clearOnDestroy,C=dt(t,o2),S=c.useRef(null),x=c.useContext(yd),w=bd(i),E=K(w,1),$=E[0],O=$.getInternalHooks(Co),I=O.useSubscribe,_=O.setInitialValues,M=O.setCallbacks,P=O.setValidateMessages,T=O.setPreserve,N=O.destroyForm;c.useImperativeHandle(n,function(){return G(G({},$),{},{nativeElement:S.current})}),c.useEffect(function(){return x.registerForm(r,$),function(){x.unregisterForm(r)}},[x,$,r]),P(G(G({},x.validateMessages),f)),M({onValuesChange:h,onFieldsChange:function(V){if(x.triggerFormChange(r,V),b){for(var L=arguments.length,q=new Array(L>1?L-1:0),Y=1;Y<L;Y++)q[Y-1]=arguments[Y];b.apply(void 0,[V].concat(q))}},onFinish:function(V){x.triggerFormFinish(r,V),m&&m(V)},onFinishFailed:p}),T(l);var R=c.useRef(null);_(o,!R.current),R.current||(R.current=!0),c.useEffect(function(){return function(){return N(y)}},[]);var F,A=typeof s=="function";if(A){var j=$.getFieldsValue(!0);F=s(j,$)}else F=s;I(!A);var H=c.useRef();c.useEffect(function(){JP(H.current||[],a||[])||$.setFields(a||[]),H.current=a},[a,$]);var k=c.useMemo(function(){return G(G({},$),{},{validateTrigger:g})},[$,g]),z=c.createElement(ii.Provider,{value:null},c.createElement(So.Provider,{value:k},F));return d===!1?z:c.createElement(d,Ce({},C,{ref:S,onSubmit:function(V){V.preventDefault(),V.stopPropagation(),$.submit()},onReset:function(V){var L;V.preventDefault(),$.resetFields(),(L=C.onReset)===null||L===void 0||L.call(C,V)}}),z)};function Wh(e){try{return JSON.stringify(e)}catch{return Math.random()}}var i2=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=D.useRef(t);ut(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=hP(a)?{form:a}:a,l=i.form,s=D.useState(),u=K(s,2),d=u[0],f=u[1],v=D.useMemo(function(){return Wh(d)},[d]),g=D.useRef(v);g.current=v;var h=D.useContext(So),b=l||h,m=b&&b._init;process.env.NODE_ENV!=="production"&&ut(t.length===2?l?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var p=hn(r),y=D.useRef(p);return y.current=p,i2(p),D.useEffect(function(){if(m){var C=b.getFieldsValue,S=b.getInternalHooks,x=S(Co),w=x.registerWatch,E=function(_,M){var P=i.preserve?M:_;return typeof r=="function"?r(P):rr(P,y.current)},$=w(function(I,_){var M=E(I,_),P=Wh(M);g.current!==P&&(g.current=P,f(M))}),O=E(C(),C(!0));return d!==O&&f(O),$}},[m]),d}var l2=c.forwardRef(a2),pa=l2;pa.FormProvider=kh,pa.Field=pd,pa.List=Lh,pa.useForm=bd,pa.useWatch=qh;const Br=c.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Uh=c.createContext(null),Gh=e=>{const t=gn(e,["prefixCls"]);return c.createElement(kh,Object.assign({},t))},Cd=c.createContext({prefixCls:""}),Cn=c.createContext({});process.env.NODE_ENV!=="production"&&(Cn.displayName="FormItemInputContext");const s2=({children:e,status:t,override:n})=>{const r=c.useContext(Cn),o=c.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return c.createElement(Cn.Provider,{value:o},e)},Kh=c.createContext(void 0),xo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=D.createElement(s2,{override:!0,status:!0},o)),t&&(o=D.createElement(MI,null,o)),o};function Sd(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Yh(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Xh(e){const{closable:t,closeIcon:n}=e||{};return D.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const c2={};function u2(e,t,n=c2){const r=Xh(e),o=Xh(t),[a]=Fr("global",Yr.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=D.useMemo(()=>Object.assign({closeIcon:D.createElement(bo,null)},n),[n]),s=D.useMemo(()=>r===!1?!1:r?Sd(l,o,r):o===!1?!1:o?Sd(l,o):l.closable?l:!1,[r,o,l]);return D.useMemo(()=>{if(s===!1)return[!1,null,i,{}];const{closeIconRender:u}=l,{closeIcon:d}=s;let f=d;const v=Jn(s,!0);return f!=null&&(u&&(f=u(d)),f=D.isValidElement(f)?D.cloneElement(f,Object.assign({"aria-label":a.close},v)):D.createElement("span",Object.assign({"aria-label":a.close},v),f)),[!0,f,i,v]},[s,l])}var d2=function(t){if(Nn()&&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};function Qh(e,t){return d2(e)}const vs=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=re({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=re({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),s=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:re(t,i,l,n),style:Object.assign(Object.assign({},s),r)})},f2=new Lt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ms=e=>({height:e,lineHeight:X(e)}),ha=e=>Object.assign({width:e},ms(e)),v2=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:f2,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),xd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ms(e)),m2=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ha(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ha(o)),[`${t}${t}-sm`]:Object.assign({},ha(a))}},g2=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},xd(t,l)),[`${r}-lg`]:Object.assign({},xd(o,l)),[`${r}-sm`]:Object.assign({},xd(a,l))}},Jh=e=>Object.assign({width:e},ms(e)),p2=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Jh(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Jh(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wd=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ed=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ms(e)),h2=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Ed(r,l))},wd(e,r,n)),{[`${n}-lg`]:Object.assign({},Ed(o,l))}),wd(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Ed(a,l))}),wd(e,a,`${n}-sm`))},b2=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:m,paragraphLiHeight:p,controlHeightXS:y,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ha(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ha(u)),[`${n}-sm`]:Object.assign({},ha(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:m,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},h2(e)),m2(e)),g2(e)),p2(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
166
|
-
${r},
|
|
167
|
-
${o} > li,
|
|
168
|
-
${n},
|
|
169
|
-
${a},
|
|
170
|
-
${i},
|
|
171
|
-
${l}
|
|
172
|
-
`]:Object.assign({},v2(e))}}},ba=Kt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=At(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[b2(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),y2=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=c.useContext(bt),s=l("skeleton",t),[u,d,f]=ba(s),v=gn(e,["prefixCls","className"]),g=re(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return u(c.createElement("div",{className:g},c.createElement(vs,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},v))))},C2=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=c.useContext(bt),s=l("skeleton",t),[u,d,f]=ba(s),v=gn(e,["prefixCls"]),g=re(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:g},c.createElement(vs,Object.assign({prefixCls:`${s}-button`,size:i},v))))},S2="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",x2=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=c.useContext(bt),l=i("skeleton",t),[s,u,d]=ba(l),f=re(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return s(c.createElement("div",{className:f},c.createElement("div",{className:re(`${l}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:S2,className:`${l}-image-path`})))))},w2=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=c.useContext(bt),s=l("skeleton",t),[u,d,f]=ba(s),v=gn(e,["prefixCls"]),g=re(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:g},c.createElement(vs,Object.assign({prefixCls:`${s}-input`,size:i},v))))},E2=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=c.useContext(bt),s=l("skeleton",t),[u,d,f]=ba(s),v=re(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f);return u(c.createElement("div",{className:v},c.createElement("div",{className:re(`${s}-image`,n),style:o},i)))},$2=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},O2=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,l)=>c.createElement("li",{key:l,style:{width:$2(l,e)}}));return c.createElement("ul",{className:re(t,n),style:r},a)},I2=({prefixCls:e,className:t,width:n,style:r})=>c.createElement("h3",{className:re(e,t),style:Object.assign({width:n},r)});function $d(e){return e&&typeof e=="object"?e:{}}function N2(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function P2(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function _2(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const wo=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:v,direction:g,className:h,style:b}=Pn("skeleton"),m=v("skeleton",t),[p,y,C]=ba(m);if(n||!("loading"in e)){const S=!!l,x=!!s,w=!!u;let E;if(S){const I=Object.assign(Object.assign({prefixCls:`${m}-avatar`},N2(x,w)),$d(l));E=c.createElement("div",{className:`${m}-header`},c.createElement(vs,Object.assign({},I)))}let $;if(x||w){let I;if(x){const M=Object.assign(Object.assign({prefixCls:`${m}-title`},P2(S,w)),$d(s));I=c.createElement(I2,Object.assign({},M))}let _;if(w){const M=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},_2(S,x)),$d(u));_=c.createElement(O2,Object.assign({},M))}$=c.createElement("div",{className:`${m}-content`},I,_)}const O=re(m,{[`${m}-with-avatar`]:S,[`${m}-active`]:d,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:f},h,r,o,y,C);return p(c.createElement("div",{className:O,style:Object.assign(Object.assign({},b),a)},E,$))}return i??null};wo.Button=C2,wo.Avatar=y2,wo.Input=w2,wo.Image=x2,wo.Node=E2,process.env.NODE_ENV!=="production"&&(wo.displayName="Skeleton");const M2=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},T2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},D2=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Od=(e,t)=>D2(e,t),R2=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:Object.assign({},Od(e,n))}),F2=()=>({}),A2=()=>({}),j2=Kt("Grid",M2,F2),z2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),B2=Kt("Grid",e=>{const t=At(e,{gridColumns:24}),n=z2(t);return delete n.xs,[T2(t),Od(t,""),Od(t,"-xs"),Object.keys(n).map(r=>R2(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},A2);function V2(e){return t=>c.createElement(mr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const Id=(e,t,n,r,o)=>V2(i=>{const{prefixCls:l,style:s}=i,u=c.useRef(null),[d,f]=c.useState(0),[v,g]=c.useState(0),[h,b]=qt(!1,{value:i.open}),{getPrefixCls:m}=c.useContext(bt),p=m(r||"select",l);c.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(w=>{const E=w[0].target;f(E.offsetHeight+8),g(E.offsetWidth)}),x=setInterval(()=>{var w;const E=`.${p}-dropdown`,$=(w=u.current)===null||w===void 0?void 0:w.querySelector(E);$&&(clearInterval(x),S.observe($))},10);return()=>{clearInterval(x),S.disconnect()}}},[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:d,position:"relative",minWidth:v};return c.createElement("div",{ref:u,style:C},c.createElement(e,Object.assign({},y)))}),gs=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 ps=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:re(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},L2=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=D.useMemo(function(){if(tt(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=D.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:D.createElement(ps,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Zh=c.createContext(null);function H2(){return c.useContext(Zh)}function k2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=K(t,2),r=n[0],o=n[1],a=c.useRef(null),i=function(){window.clearTimeout(a.current)};c.useEffect(function(){return i},[]);var l=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,i]}function eb(){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 W2(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.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",a),function(){return window.removeEventListener("mousedown",a)}},[])}function q2(e){return e&&![Fe.ESC,Fe.SHIFT,Fe.BACKSPACE,Fe.TAB,Fe.WIN_KEY,Fe.ALT,Fe.META,Fe.WIN_KEY_RIGHT,Fe.CTRL,Fe.SEMICOLON,Fe.EQUALS,Fe.CAPS_LOCK,Fe.CONTEXT_MENU,Fe.F1,Fe.F2,Fe.F3,Fe.F4,Fe.F5,Fe.F6,Fe.F7,Fe.F8,Fe.F9,Fe.F10,Fe.F11,Fe.F12].includes(e)}var U2=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ya=void 0;function G2(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,h=e.order,b=e.component,m=b===void 0?"div":b,p=dt(e,U2),y=i&&!g;function C($){s(u,$)}c.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==ya?a(o,{index:h}):v,x;r||(x={opacity:y?0:1,height:y?0:ya,overflowY:y?"hidden":ya,order:i?h:ya,pointerEvents:y?"none":ya,position:y?"absolute":ya});var w={};y&&(w["aria-hidden"]=!0);var E=c.createElement(m,Ce({className:re(!r&&n,d),style:G(G({},x),f)},w,p,{ref:t}),S);return i&&(E=c.createElement(Wn,{onResize:function(O){var I=O.offsetWidth;C(I)},disabled:l},E)),E}var ui=c.forwardRef(G2);ui.displayName="Item";function K2(e){if(typeof MessageChannel>"u")yt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Y2(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],K2(function(){_r.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function di(e,t){var n=c.useState(t),r=K(n,2),o=r[0],a=r[1],i=Tt(function(l){e(function(){a(l)})});return[o,i]}var hs=D.createContext(null),X2=["component"],Q2=["className"],J2=["className"],Z2=function(t,n){var r=c.useContext(hs);if(!r){var o=t.component,a=o===void 0?"div":o,i=dt(t,X2);return c.createElement(a,Ce({},i,{ref:n}))}var l=r.className,s=dt(r,Q2),u=t.className,d=dt(t,J2);return c.createElement(hs.Provider,{value:null},c.createElement(ui,Ce({ref:n,className:re(l,u)},s,d)))},tb=c.forwardRef(Z2);tb.displayName="RawItem";var e_=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],nb="responsive",rb="invalidate";function t_(e){return"+ ".concat(e.length," ...")}function n_(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,g=e.className,h=e.maxCount,b=e.renderRest,m=e.renderRawRest,p=e.suffix,y=e.component,C=y===void 0?"div":y,S=e.itemComponent,x=e.onVisibleChange,w=dt(e,e_),E=f==="full",$=Y2(),O=di($,null),I=K(O,2),_=I[0],M=I[1],P=_||0,T=di($,new Map),N=K(T,2),R=N[0],F=N[1],A=di($,0),j=K(A,2),H=j[0],k=j[1],z=di($,0),B=K(z,2),V=B[0],L=B[1],q=di($,0),Y=K(q,2),U=Y[0],ee=Y[1],Z=D.useState(null),Q=K(Z,2),J=Q[0],ae=Q[1],ne=D.useState(null),ie=K(ne,2),te=ie[0],le=ie[1],se=c.useMemo(function(){return te===null&&E?Number.MAX_SAFE_INTEGER:te||0},[te,_]),fe=D.useState(!1),ve=K(fe,2),ge=ve[0],be=ve[1],de="".concat(r,"-item"),pe=Math.max(H,V),Se=h===nb,xe=a.length&&Se,De=h===rb,ye=xe||typeof h=="number"&&a.length>h,$e=D.useMemo(function(){var We=a;return xe?_===null&&E?We=a:We=a.slice(0,Math.min(a.length,P/d)):typeof h=="number"&&(We=a.slice(0,h)),We},[a,d,_,h,xe]),Te=D.useMemo(function(){return xe?a.slice(se+1):a.slice($e.length)},[a,$e,xe,se]),Pe=D.useCallback(function(We,Ae){var ze;return typeof s=="function"?s(We):(ze=s&&(We==null?void 0:We[s]))!==null&&ze!==void 0?ze:Ae},[s]),Oe=D.useCallback(i||function(We){return We},[i]);function we(We,Ae,ze){te===We&&(Ae===void 0||Ae===J)||(le(We),ze||(be(We<a.length-1),x==null||x(We)),Ae!==void 0&&ae(Ae))}function me(We,Ae){M(Ae.clientWidth)}function Ee(We,Ae){F(function(ze){var vt=new Map(ze);return Ae===null?vt.delete(We):vt.set(We,Ae),vt})}function ue(We,Ae){L(Ae),k(V)}function ce(We,Ae){ee(Ae)}function Ie(We){return R.get(Pe($e[We],We))}Pt(function(){if(P&&typeof pe=="number"&&$e){var We=U,Ae=$e.length,ze=Ae-1;if(!Ae){we(0,null);return}for(var vt=0;vt<Ae;vt+=1){var ft=Ie(vt);if(E&&(ft=ft||0),ft===void 0){we(vt-1,void 0,!0);break}if(We+=ft,ze===0&&We<=P||vt===ze-1&&We+Ie(ze)<=P){we(ze,null);break}else if(We+pe>P){we(vt-1,We-ft-U+V);break}}p&&Ie(0)+U>P&&ae(null)}},[P,R,V,U,Pe,$e]);var rt=ge&&!!Te.length,lt={};J!==null&&xe&&(lt={position:"absolute",left:J,top:0});var mt={prefixCls:de,responsive:xe,component:S,invalidate:De},je=l?function(We,Ae){var ze=Pe(We,Ae);return c.createElement(hs.Provider,{key:ze,value:G(G({},mt),{},{order:Ae,item:We,itemKey:ze,registerSize:Ee,display:Ae<=se})},l(We,Ae))}:function(We,Ae){var ze=Pe(We,Ae);return c.createElement(ui,Ce({},mt,{order:Ae,key:ze,item:We,renderItem:Oe,itemKey:ze,registerSize:Ee,display:Ae<=se}))},Re={order:rt?se:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:ue,display:rt},Ye=b||t_,ke=m?c.createElement(hs.Provider,{value:G(G({},mt),Re)},m(Te)):c.createElement(ui,Ce({},mt,Re),typeof Ye=="function"?Ye(Te):Ye),Xe=c.createElement(C,Ce({className:re(!De&&r,g),style:v,ref:t},w),$e.map(je),ye?ke:null,p&&c.createElement(ui,Ce({},mt,{responsive:Se,responsiveDisabled:!xe,order:se,className:"".concat(de,"-suffix"),registerSize:ce,display:!0,style:lt}),p));return Se?c.createElement(Wn,{onResize:me,disabled:!xe},Xe):Xe}var pr=c.forwardRef(n_);pr.displayName="Overflow",pr.Item=tb,pr.RESPONSIVE=nb,pr.INVALIDATE=rb;function r_(e,t,n){var r=G(G({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return a.apply(void 0,s),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(s))})}),r}var o_=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],a_=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,l=t.autoComplete,s=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,v=t.attrs,g=dt(t,o_),h=a||c.createElement("input",null),b=h,m=b.ref,p=b.props;return Wr(!("maxLength"in h.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),h=c.cloneElement(h,G(G(G({type:"search"},r_(g,p)),{},{id:o,ref:En(n,m),autoComplete:l||"off",autoFocus:i,className:re("".concat(r,"-selection-search-input"),p==null?void 0:p.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},v),{},{value:s?d:"",readOnly:!s,unselectable:s?null:"on",style:G(G({},p.style),{},{opacity:s?null:0})})),h},Nd=c.forwardRef(a_);process.env.NODE_ENV!=="production"&&(Nd.displayName="Input");function Pd(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var i_=typeof window<"u"&&window.document&&window.document.documentElement,l_=process.env.NODE_ENV!=="test"&&i_;function s_(e){return e!=null}function c_(e){return!e&&e!==0}function ob(e){return["string","number"].includes(tt(e))}function ab(e){var t=void 0;return e&&(ob(e.title)?t=e.title.toString():ob(e.label)&&(t=e.label.toString())),t}function u_(e,t){l_?c.useLayoutEffect(e,t):c.useEffect(e,t)}function d_(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ib=function(t){t.preventDefault(),t.stopPropagation()},f_=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,v=t.showSearch,g=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,m=t.tabIndex,p=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(ne){return"+ ".concat(ne.length," ...")}:S,w=t.tagRender,E=t.onToggleOpen,$=t.onRemove,O=t.onInputChange,I=t.onInputPaste,_=t.onInputKeyDown,M=t.onInputMouseDown,P=t.onInputCompositionStart,T=t.onInputCompositionEnd,N=t.onInputBlur,R=c.useRef(null),F=D.useState(0),A=K(F,2),j=A[0],H=A[1],k=D.useState(!1),z=K(k,2),B=z[0],V=z[1],L="".concat(r,"-selection"),q=a||f==="multiple"&&l===!1||f==="tags"?i:"",Y=f==="tags"||f==="multiple"&&l===!1||v&&(a||B);u_(function(){H(R.current.scrollWidth)},[q]);var U=function(ie,te,le,se,fe){return c.createElement("span",{title:ab(ie),className:re("".concat(L,"-item"),W({},"".concat(L,"-item-disabled"),le))},c.createElement("span",{className:"".concat(L,"-item-content")},te),se&&c.createElement(ps,{className:"".concat(L,"-item-remove"),onMouseDown:ib,onClick:fe,customizeIcon:p},"×"))},ee=function(ie,te,le,se,fe,ve){var ge=function(de){ib(de),E(!a)};return c.createElement("span",{onMouseDown:ge},w({label:te,value:ie,disabled:le,closable:se,onClose:fe,isMaxTag:!!ve}))},Z=function(ie){var te=ie.disabled,le=ie.label,se=ie.value,fe=!d&&!te,ve=le;if(typeof C=="number"&&(typeof le=="string"||typeof le=="number")){var ge=String(ve);ge.length>C&&(ve="".concat(ge.slice(0,C),"..."))}var be=function(pe){pe&&pe.stopPropagation(),$(ie)};return typeof w=="function"?ee(se,ve,te,fe,be):U(ie,ve,te,fe,be)},Q=function(ie){if(!o.length)return null;var te=typeof x=="function"?x(ie):x;return typeof w=="function"?ee(void 0,te,!1,!1,void 0,!0):U({title:te},te,!1)},J=c.createElement("div",{className:"".concat(L,"-search"),style:{width:j},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},c.createElement(Nd,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:Y,activeDescendantId:b,value:q,onKeyDown:_,onMouseDown:M,onChange:O,onPaste:I,onCompositionStart:P,onCompositionEnd:T,onBlur:N,tabIndex:m,attrs:Jn(t,!0)}),c.createElement("span",{ref:R,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},q," ")),ae=c.createElement(pr,{prefixCls:"".concat(L,"-overflow"),data:o,renderItem:Z,renderRest:Q,suffix:J,itemKey:d_,maxCount:y});return c.createElement("span",{className:"".concat(L,"-wrap")},ae,!o.length&&!q&&c.createElement("span",{className:"".concat(L,"-placeholder")},u))},v_=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,m=t.searchValue,p=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,E=t.onInputCompositionStart,$=t.onInputCompositionEnd,O=t.onInputBlur,I=t.title,_=c.useState(!1),M=K(_,2),P=M[0],T=M[1],N=d==="combobox",R=N||b,F=v[0],A=m||"";N&&p&&!P&&(A=p),c.useEffect(function(){N&&T(!1)},[N,p]);var j=d!=="combobox"&&!f&&!b?!1:!!A,H=I===void 0?ab(F):I,k=c.useMemo(function(){return F?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},g)},[F,j,g,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(Nd,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:R,activeDescendantId:u,value:A,onKeyDown:C,onMouseDown:S,onChange:function(B){T(!0),x(B)},onPaste:w,onCompositionStart:E,onCompositionEnd:$,onBlur:O,tabIndex:h,attrs:Jn(t,!0),maxLength:N?y:void 0})),!N&&F?c.createElement("span",{className:"".concat(r,"-selection-item"),title:H,style:j?{visibility:"hidden"}:void 0},F.label):null,k)},m_=function(t,n){var r=D.useRef(null),o=D.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,v=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,b=t.onToggleOpen,m=t.onInputKeyDown,p=t.onInputBlur,y=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(H){r.current.focus(H)},blur:function(){r.current.blur()}}});var C=eb(0),S=K(C,2),x=S[0],w=S[1],E=function(H){var k=H.which,z=r.current instanceof HTMLTextAreaElement;!z&&i&&(k===Fe.UP||k===Fe.DOWN)&&H.preventDefault(),m&&m(H),k===Fe.ENTER&&l==="tags"&&!o.current&&!i&&(h==null||h(H.target.value)),!(z&&!i&&~[Fe.UP,Fe.DOWN,Fe.LEFT,Fe.RIGHT].indexOf(k))&&q2(k)&&b(!0)},$=function(){w(!0)},O=D.useRef(null),I=function(H){g(H,!0,o.current)!==!1&&b(!0)},_=function(){o.current=!0},M=function(H){o.current=!1,l!=="combobox"&&I(H.target.value)},P=function(H){var k=H.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," ");k=k.replace(z,O.current)}O.current=null,I(k)},T=function(H){var k=H.clipboardData,z=k==null?void 0:k.getData("text");O.current=z||""},N=function(H){var k=H.target;if(k!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(H){var k=x();H.target!==r.current&&!k&&!(l==="combobox"&&d)&&H.preventDefault(),(l!=="combobox"&&(!s||!k)||!i)&&(i&&v!==!1&&g("",!0,!1),b())},F={inputRef:r,onInputKeyDown:E,onInputMouseDown:$,onInputChange:P,onInputPaste:T,onInputCompositionStart:_,onInputCompositionEnd:M,onInputBlur:p},A=l==="multiple"||l==="tags"?c.createElement(f_,Ce({},t,F)):c.createElement(v_,Ce({},t,F));return c.createElement("div",{ref:y,className:"".concat(a,"-selector"),onClick:N,onMouseDown:R},f&&c.createElement("div",{className:"".concat(a,"-prefix")},f),A)},lb=c.forwardRef(m_);process.env.NODE_ENV!=="production"&&(lb.displayName="Selector");function g_(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,u=s===void 0?0:s,d=o.y,f=d===void 0?0:d,v=c.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],m=h[0],p=h[1],y=b[0],C=b[1];m===y||!["t","b"].includes(m)?g.top=f:m==="t"?g.top=0:g.bottom=0,p===C||!["l","r"].includes(p)?g.left=u:p==="l"?g.left=0:g.right=0}return c.createElement("div",{ref:v,className:re("".concat(t,"-arrow"),i),style:g},l)}function p_(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?c.createElement($r,Ce({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return c.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),l)})}):null}var sb=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(sb.displayName="PopupContent");var cb=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,m=e.motion,p=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,w=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,I=e.onPointerDownCapture,_=e.ready,M=e.offsetX,P=e.offsetY,T=e.offsetR,N=e.offsetB,R=e.onAlign,F=e.onPrepare,A=e.stretch,j=e.targetWidth,H=e.targetHeight,k=typeof n=="function"?n():n,z=s||u,B=(C==null?void 0:C.length)>0,V=c.useState(!C||!B),L=K(V,2),q=L[0],Y=L[1];if(Pt(function(){!q&&B&&i&&Y(!0)},[q,B,i]),!q)return null;var U="auto",ee={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(_||!s){var Z,Q=b.points,J=b.dynamicInset||((Z=b._experimental)===null||Z===void 0?void 0:Z.dynamicInset),ae=J&&Q[0][1]==="r",ne=J&&Q[0][0]==="b";ae?(ee.right=T,ee.left=U):(ee.left=M,ee.right=U),ne?(ee.bottom=N,ee.top=U):(ee.top=P,ee.bottom=U)}var ie={};return A&&(A.includes("height")&&H?ie.height=H:A.includes("minHeight")&&H&&(ie.minHeight=H),A.includes("width")&&j?ie.width=j:A.includes("minWidth")&&j&&(ie.minWidth=j)),s||(ie.pointerEvents="none"),c.createElement(x,{open:y||z,getContainer:C&&function(){return C(i)},autoDestroy:S},c.createElement(p_,{prefixCls:o,open:s,zIndex:w,mask:v,motion:p}),c.createElement(Wn,{onResize:R,disabled:!s},function(te){return c.createElement($r,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:F,onEnterPrepare:F,visible:s,onVisibleChanged:function(se){var fe;m==null||(fe=m.onVisibleChanged)===null||fe===void 0||fe.call(m,se),l(se)}}),function(le,se){var fe=le.className,ve=le.style,ge=re(o,fe,r);return c.createElement("div",{ref:En(te,t,se),className:ge,style:G(G(G(G({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ee),ie),ve),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:I},g&&c.createElement(g_,{prefixCls:o,arrow:g,arrowPos:h,align:b}),c.createElement(sb,{cache:!s&&!d},k))})}))});process.env.NODE_ENV!=="production"&&(cb.displayName="Popup");var ub=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=qr(n),a=c.useCallback(function(l){Gc(t,r?r(l):l)},[r]),i=so(a,co(n));return o?c.cloneElement(n,{ref:i}):n});process.env.NODE_ENV!=="production"&&(ub.displayName="TriggerWrapper");var db=c.createContext(null);function fb(e){return e?Array.isArray(e)?e:[e]:[]}function h_(e,t,n,r){return c.useMemo(function(){var o=fb(n??t),a=fb(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function b_(){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 y_(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(b_((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function vb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function fi(e){return e.ownerDocument.defaultView}function _d(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=fi(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function mi(e){return vi(parseFloat(e),0)}function mb(e,t){var n=G({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=fi(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,m=mi(l),p=mi(s),y=mi(u),C=mi(d),S=vi(Math.round(f.width/h*1e3)/1e3),x=vi(Math.round(f.height/v*1e3)/1e3),w=(h-b-y-C)*S,E=(v-g-m-p)*x,$=m*x,O=p*x,I=y*S,_=C*S,M=0,P=0;if(a==="clip"){var T=mi(i);M=T*S,P=T*x}var N=f.x+I-M,R=f.y+$-P,F=N+f.width+2*M-I-_-w,A=R+f.height+2*P-$-O-E;n.left=Math.max(n.left,N),n.top=Math.max(n.top,R),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,A)}}),n}function gb(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 pb(e,t){var n=t||[],r=K(n,2),o=r[0],a=r[1];return[gb(e.width,o),gb(e.height,a)]}function hb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ca(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Zr(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 C_(e,t,n,r,o,a,i){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=K(l,2),u=s[0],d=s[1],f=c.useRef(0),v=c.useMemo(function(){return t?_d(t):[]},[t]),g=c.useRef({}),h=function(){g.current={}};e||h();var b=Tt(function(){if(t&&n&&e){let St=function(un,Pr){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,Xi=V.x+un,zc=V.y+Pr,wm=Xi+ae,Em=zc+J,$m=Math.max(Xi,io.left),st=Math.max(zc,io.top),Ot=Math.min(wm,io.right),dn=Math.min(Em,io.bottom);return Math.max(0,(Ot-$m)*(dn-st))},nn=function(){ht=V.y+ze,_t=ht+J,Dt=V.x+Ae,Zt=Dt+ae};var y,C,S,x,w=t,E=w.ownerDocument,$=fi(w),O=$.getComputedStyle(w),I=O.width,_=O.height,M=O.position,P=w.style.left,T=w.style.top,N=w.style.right,R=w.style.bottom,F=w.style.overflow,A=G(G({},o[r]),a),j=E.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(j),j.style.left="".concat(w.offsetLeft,"px"),j.style.top="".concat(w.offsetTop,"px"),j.style.position=M,j.style.height="".concat(w.offsetHeight,"px"),j.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else{var k,z,B=n.getBoundingClientRect();B.x=(k=B.x)!==null&&k!==void 0?k:B.left,B.y=(z=B.y)!==null&&z!==void 0?z:B.top,H={x:B.x,y:B.y,width:B.width,height:B.height}}var V=w.getBoundingClientRect();V.x=(C=V.x)!==null&&C!==void 0?C:V.left,V.y=(S=V.y)!==null&&S!==void 0?S:V.top;var L=E.documentElement,q=L.clientWidth,Y=L.clientHeight,U=L.scrollWidth,ee=L.scrollHeight,Z=L.scrollTop,Q=L.scrollLeft,J=V.height,ae=V.width,ne=H.height,ie=H.width,te={left:0,top:0,right:q,bottom:Y},le={left:-Q,top:-Z,right:U-Q,bottom:ee-Z},se=A.htmlRegion,fe="visible",ve="visibleFirst";se!=="scroll"&&se!==ve&&(se=fe);var ge=se===ve,be=mb(le,v),de=mb(te,v),pe=se===fe?de:be,Se=ge?de:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var xe=w.getBoundingClientRect();w.style.left=P,w.style.top=T,w.style.right=N,w.style.bottom=R,w.style.overflow=F,(x=w.parentElement)===null||x===void 0||x.removeChild(j);var De=vi(Math.round(ae/parseFloat(I)*1e3)/1e3),ye=vi(Math.round(J/parseFloat(_)*1e3)/1e3);if(De===0||ye===0||Da(n)&&!ni(n))return;var $e=A.offset,Te=A.targetOffset,Pe=pb(V,$e),Oe=K(Pe,2),we=Oe[0],me=Oe[1],Ee=pb(H,Te),ue=K(Ee,2),ce=ue[0],Ie=ue[1];H.x-=ce,H.y-=Ie;var rt=A.points||[],lt=K(rt,2),mt=lt[0],je=lt[1],Re=hb(je),Ye=hb(mt),ke=Ca(H,Re),Xe=Ca(V,Ye),We=G({},A),Ae=ke.x-Xe.x+we,ze=ke.y-Xe.y+me,vt=St(Ae,ze),ft=St(Ae,ze,de),Le=Ca(H,["t","l"]),Me=Ca(V,["t","l"]),Be=Ca(H,["b","r"]),qe=Ca(V,["b","r"]),Ke=A.overflow||{},at=Ke.adjustX,wt=Ke.adjustY,Et=Ke.shiftX,zt=Ke.shiftY,$t=function(Pr){return typeof Pr=="boolean"?Pr:Pr>=0},ht,_t,Dt,Zt;nn();var Vt=$t(wt),Rt=Ye[0]===Re[0];if(Vt&&Ye[0]==="t"&&(_t>Se.bottom||g.current.bt)){var Ve=ze;Rt?Ve-=J-ne:Ve=Le.y-qe.y-me;var Qe=St(Ae,Ve),_e=St(Ae,Ve,de);Qe>vt||Qe===vt&&(!ge||_e>=ft)?(g.current.bt=!0,ze=Ve,me=-me,We.points=[Zr(Ye,0),Zr(Re,0)]):g.current.bt=!1}if(Vt&&Ye[0]==="b"&&(ht<Se.top||g.current.tb)){var he=ze;Rt?he+=J-ne:he=Be.y-Me.y-me;var He=St(Ae,he),ot=St(Ae,he,de);He>vt||He===vt&&(!ge||ot>=ft)?(g.current.tb=!0,ze=he,me=-me,We.points=[Zr(Ye,0),Zr(Re,0)]):g.current.tb=!1}var ct=$t(at),It=Ye[1]===Re[1];if(ct&&Ye[1]==="l"&&(Zt>Se.right||g.current.rl)){var Ht=Ae;It?Ht-=ae-ie:Ht=Le.x-qe.x-we;var Ft=St(Ht,ze),Je=St(Ht,ze,de);Ft>vt||Ft===vt&&(!ge||Je>=ft)?(g.current.rl=!0,Ae=Ht,we=-we,We.points=[Zr(Ye,1),Zr(Re,1)]):g.current.rl=!1}if(ct&&Ye[1]==="r"&&(Dt<Se.left||g.current.lr)){var it=Ae;It?it+=ae-ie:it=Be.x-Me.x-we;var Nt=St(it,ze),Gt=St(it,ze,de);Nt>vt||Nt===vt&&(!ge||Gt>=ft)?(g.current.lr=!0,Ae=it,we=-we,We.points=[Zr(Ye,1),Zr(Re,1)]):g.current.lr=!1}nn();var Xt=Et===!0?0:Et;typeof Xt=="number"&&(Dt<de.left&&(Ae-=Dt-de.left-we,H.x+ie<de.left+Xt&&(Ae+=H.x-de.left+ie-Xt)),Zt>de.right&&(Ae-=Zt-de.right-we,H.x>de.right-Xt&&(Ae+=H.x-de.right+Xt)));var cn=zt===!0?0:zt;typeof cn=="number"&&(ht<de.top&&(ze-=ht-de.top-me,H.y+ne<de.top+cn&&(ze+=H.y-de.top+ne-cn)),_t>de.bottom&&(ze-=_t-de.bottom-me,H.y>de.bottom-cn&&(ze+=H.y-de.bottom+cn)));var qn=V.x+Ae,Kn=qn+ae,On=V.y+ze,ur=On+J,Yn=H.x,Mt=Yn+ie,nt=H.y,Ct=nt+ne,Ue=Math.max(qn,Yn),Ge=Math.min(Kn,Mt),xt=(Ue+Ge)/2,en=xt-qn,fn=Math.max(On,nt),Vn=Math.min(ur,Ct),Un=(fn+Vn)/2,Ln=Un-On;i==null||i(t,We);var In=xe.right-V.x-(Ae+V.width),gt=xe.bottom-V.y-(ze+V.height);De===1&&(Ae=Math.round(Ae),In=Math.round(In)),ye===1&&(ze=Math.round(ze),gt=Math.round(gt));var pt={ready:!0,offsetX:Ae/De,offsetY:ze/ye,offsetR:In/De,offsetB:gt/ye,arrowX:en/De,arrowY:Ln/ye,scaleX:De,scaleY:ye,align:We};d(pt)}}),m=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&b()})},p=function(){d(function(C){return G(G({},C),{},{ready:!1})})};return Pt(p,[r]),Pt(function(){e||p()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function S_(e,t,n,r,o){Pt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=_d(a),s=_d(i),u=fi(i),d=new Set([u].concat(Ne(l),Ne(s)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function x_(e,t,n,r,o,a,i,l){var s=c.useRef(e);s.current=e;var u=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){u.current=!1},v=function(S){var x;s.current&&!i(((x=S.composedPath)===null||x===void 0||(x=x.call(S))===null||x===void 0?void 0:x[0])||S.target)&&!u.current&&l(!1)},g=fi(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",v,!0),g.addEventListener("contextmenu",v,!0);var h=Gl(n);if(h&&(h.addEventListener("mousedown",v,!0),h.addEventListener("contextmenu",v,!0)),process.env.NODE_ENV!=="production"){var b,m,p=n==null||(b=n.getRootNode)===null||b===void 0?void 0:b.call(n),y=(m=r.getRootNode)===null||m===void 0?void 0:m.call(r);Wr(p===y,"trigger element and popup element should in same shadow root.")}return function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",v,!0),g.removeEventListener("contextmenu",v,!0),h&&(h.removeEventListener("mousedown",v,!0),h.removeEventListener("contextmenu",v,!0))}}},[t,n,r,o,a]);function d(){u.current=!0}return d}var w_=["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 E_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nd,t=c.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,m=n.mouseLeaveDelay,p=m===void 0?.1:m,y=n.focusDelay,C=n.blurDelay,S=n.mask,x=n.maskClosable,w=x===void 0?!0:x,E=n.getPopupContainer,$=n.forceRender,O=n.autoDestroy,I=n.destroyPopupOnHide,_=n.popup,M=n.popupClassName,P=n.popupStyle,T=n.popupPlacement,N=n.builtinPlacements,R=N===void 0?{}:N,F=n.popupAlign,A=n.zIndex,j=n.stretch,H=n.getPopupClassNameFromAlign,k=n.fresh,z=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,L=n.arrow,q=n.popupMotion,Y=n.maskMotion,U=n.popupTransitionName,ee=n.popupAnimation,Z=n.maskTransitionName,Q=n.maskAnimation,J=n.className,ae=n.getTriggerDOMNode,ne=dt(n,w_),ie=O||I||!1,te=c.useState(!1),le=K(te,2),se=le[0],fe=le[1];Pt(function(){fe(gs())},[]);var ve=c.useRef({}),ge=c.useContext(db),be=c.useMemo(function(){return{registerSubPopup:function(Ot,dn){ve.current[Ot]=dn,ge==null||ge.registerSubPopup(Ot,dn)}}},[ge]),de=rd(),pe=c.useState(null),Se=K(pe,2),xe=Se[0],De=Se[1],ye=c.useRef(null),$e=Tt(function(st){ye.current=st,Da(st)&&xe!==st&&De(st),ge==null||ge.registerSubPopup(de,st)}),Te=c.useState(null),Pe=K(Te,2),Oe=Pe[0],we=Pe[1],me=c.useRef(null),Ee=Tt(function(st){Da(st)&&Oe!==st&&(we(st),me.current=st)}),ue=c.Children.only(i),ce=(ue==null?void 0:ue.props)||{},Ie={},rt=Tt(function(st){var Ot,dn,xn=Oe;return(xn==null?void 0:xn.contains(st))||((Ot=Gl(xn))===null||Ot===void 0?void 0:Ot.host)===st||st===xn||(xe==null?void 0:xe.contains(st))||((dn=Gl(xe))===null||dn===void 0?void 0:dn.host)===st||st===xe||Object.values(ve.current).some(function(mn){return(mn==null?void 0:mn.contains(st))||st===mn})}),lt=vb(a,q,ee,U),mt=vb(a,Y,Q,Z),je=c.useState(v||!1),Re=K(je,2),Ye=Re[0],ke=Re[1],Xe=f??Ye,We=Tt(function(st){f===void 0&&ke(st)});Pt(function(){ke(f||!1)},[f]);var Ae=c.useRef(Xe);Ae.current=Xe;var ze=c.useRef([]);ze.current=[];var vt=Tt(function(st){var Ot;We(st),((Ot=ze.current[ze.current.length-1])!==null&&Ot!==void 0?Ot:Xe)!==st&&(ze.current.push(st),g==null||g(st))}),ft=c.useRef(),Le=function(){clearTimeout(ft.current)},Me=function(Ot){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),dn===0?vt(Ot):ft.current=setTimeout(function(){vt(Ot)},dn*1e3)};c.useEffect(function(){return Le},[]);var Be=c.useState(!1),qe=K(Be,2),Ke=qe[0],at=qe[1];Pt(function(st){(!st||Xe)&&at(!0)},[Xe]);var wt=c.useState(null),Et=K(wt,2),zt=Et[0],$t=Et[1],ht=c.useState(null),_t=K(ht,2),Dt=_t[0],Zt=_t[1],Vt=function(Ot){Zt([Ot.clientX,Ot.clientY])},Rt=C_(Xe,xe,z&&Dt!==null?Dt:Oe,T,R,F,V),Ve=K(Rt,11),Qe=Ve[0],_e=Ve[1],he=Ve[2],He=Ve[3],ot=Ve[4],ct=Ve[5],It=Ve[6],Ht=Ve[7],Ft=Ve[8],Je=Ve[9],it=Ve[10],Nt=h_(se,s,u,d),Gt=K(Nt,2),Xt=Gt[0],cn=Gt[1],qn=Xt.has("click"),Kn=cn.has("click")||cn.has("contextMenu"),On=Tt(function(){Ke||it()}),ur=function(){Ae.current&&z&&Kn&&Me(!1)};S_(Xe,Oe,xe,On,ur),Pt(function(){On()},[Dt,T]),Pt(function(){Xe&&!(R!=null&&R[T])&&On()},[JSON.stringify(F)]);var Yn=c.useMemo(function(){var st=y_(R,a,Je,z);return re(st,H==null?void 0:H(Je))},[Je,H,R,a,z]);c.useImperativeHandle(r,function(){return{nativeElement:me.current,popupElement:ye.current,forceAlign:On}});var Mt=c.useState(0),nt=K(Mt,2),Ct=nt[0],Ue=nt[1],Ge=c.useState(0),xt=K(Ge,2),en=xt[0],fn=xt[1],Vn=function(){if(j&&Oe){var Ot=Oe.getBoundingClientRect();Ue(Ot.width),fn(Ot.height)}},Un=function(){Vn(),On()},Ln=function(Ot){at(!1),it(),h==null||h(Ot)},In=function(){return new Promise(function(Ot){Vn(),$t(function(){return Ot})})};Pt(function(){zt&&(it(),zt(),$t(null))},[zt]);function gt(st,Ot,dn,xn){Ie[st]=function(mn){var Bc;xn==null||xn(mn),Me(Ot,dn);for(var Om=arguments.length,Xw=new Array(Om>1?Om-1:0),Vc=1;Vc<Om;Vc++)Xw[Vc-1]=arguments[Vc];(Bc=ce[st])===null||Bc===void 0||Bc.call.apply(Bc,[ce,mn].concat(Xw))}}(qn||Kn)&&(Ie.onClick=function(st){var Ot;Ae.current&&Kn?Me(!1):!Ae.current&&qn&&(Vt(st),Me(!0));for(var dn=arguments.length,xn=new Array(dn>1?dn-1:0),mn=1;mn<dn;mn++)xn[mn-1]=arguments[mn];(Ot=ce.onClick)===null||Ot===void 0||Ot.call.apply(Ot,[ce,st].concat(xn))});var pt=x_(Xe,Kn,Oe,xe,S,w,rt,Me),St=Xt.has("hover"),nn=cn.has("hover"),un,Pr;St&&(gt("onMouseEnter",!0,b,function(st){Vt(st)}),gt("onPointerEnter",!0,b,function(st){Vt(st)}),un=function(Ot){(Xe||Ke)&&xe!==null&&xe!==void 0&&xe.contains(Ot.target)&&Me(!0,b)},z&&(Ie.onMouseMove=function(st){var Ot;(Ot=ce.onMouseMove)===null||Ot===void 0||Ot.call(ce,st)})),nn&&(gt("onMouseLeave",!1,p),gt("onPointerLeave",!1,p),Pr=function(){Me(!1,p)}),Xt.has("focus")&>("onFocus",!0,y),cn.has("focus")&>("onBlur",!1,C),Xt.has("contextMenu")&&(Ie.onContextMenu=function(st){var Ot;Ae.current&&cn.has("contextMenu")?Me(!1):(Vt(st),Me(!0)),st.preventDefault();for(var dn=arguments.length,xn=new Array(dn>1?dn-1:0),mn=1;mn<dn;mn++)xn[mn-1]=arguments[mn];(Ot=ce.onContextMenu)===null||Ot===void 0||Ot.call.apply(Ot,[ce,st].concat(xn))}),J&&(Ie.className=re(ce.className,J));var io=G(G({},ce),Ie),Xi={},zc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];zc.forEach(function(st){ne[st]&&(Xi[st]=function(){for(var Ot,dn=arguments.length,xn=new Array(dn),mn=0;mn<dn;mn++)xn[mn]=arguments[mn];(Ot=io[st])===null||Ot===void 0||Ot.call.apply(Ot,[io].concat(xn)),ne[st].apply(ne,xn)})});var wm=c.cloneElement(ue,G(G({},io),Xi)),Em={x:ct,y:It},$m=L?G({},L!==!0?L:{}):null;return c.createElement(c.Fragment,null,c.createElement(Wn,{disabled:!Xe,ref:Ee,onResize:Un},c.createElement(ub,{getTriggerDOMNode:ae},wm)),c.createElement(db.Provider,{value:be},c.createElement(cb,{portal:e,ref:$e,prefixCls:a,popup:_,className:re(M,Yn),style:P,target:Oe,onMouseEnter:un,onMouseLeave:Pr,onPointerEnter:un,zIndex:A,open:Xe,keepDom:Ke,fresh:k,onClick:B,onPointerDownCapture:pt,mask:S,motion:lt,maskMotion:mt,onVisibleChanged:Ln,onPrepare:In,forceRender:$,autoDestroy:ie,getPopupContainer:E,align:Je,arrow:$m,arrowPos:Em,ready:Qe,offsetX:_e,offsetY:he,offsetR:He,offsetB:ot,onAlign:On,stretch:j,targetWidth:Ct/Ht,targetHeight:en/Ft})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gi=E_(nd);var $_=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],O_=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"}}},I_=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,g=t.placement,h=t.builtinPlacements,b=t.dropdownMatchSelectWidth,m=t.dropdownRender,p=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,E=dt(t,$_),$="".concat(r,"-dropdown"),O=i;m&&(O=m(i));var I=c.useMemo(function(){return h||O_(b)},[h,b]),_=l?"".concat($,"-").concat(l):s,M=typeof b=="number",P=c.useMemo(function(){return M?null:b===!1?"minWidth":"width"},[b,M]),T=u;M&&(T=G(G({},T),{},{width:b}));var N=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var F;return(F=N.current)===null||F===void 0?void 0:F.popupElement}}}),c.createElement(gi,Ce({},E,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:g||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:$,popupTransitionName:_,popup:c.createElement("div",{onMouseEnter:w},O),ref:N,stretch:P,popupAlign:p,popupVisible:o,getPopupContainer:y,popupClassName:re(d,W({},"".concat($,"-empty"),C)),popupStyle:T,getTriggerDOMNode:S,onPopupVisibleChange:x}),a)},bb=c.forwardRef(I_);process.env.NODE_ENV!=="production"&&(bb.displayName="SelectTrigger");function yb(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 Md(e){return typeof e<"u"&&!Number.isNaN(e)}function Cb(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function N_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Cb(n,!1),i=a.label,l=a.value,s=a.options,u=a.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(g){if(v||!(s in g)){var h=g[l];o.push({key:yb(g,o.length),groupOption:v,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),o.push({key:yb(g,o.length),group:!0,data:g,label:b}),d(g[s],!0)}})}return d(e,!1),o}function Td(e){var t=G({},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}var P_=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,u){var d=Fg(u),f=d[0],v=d.slice(1);if(!f)return[s];var g=s.split(f);return o=o||g.length>1,g.reduce(function(h,b){return[].concat(Ne(h),Ne(l(b,v)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},Dd=c.createContext(null);function __(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(tt(a))?a:i}).join(", ")),n.length>r?", ...":null)}var M_=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],T_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bs=function(t){return t==="tags"||t==="multiple"},Sb=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,v=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,m=e.mode,p=e.disabled,y=e.loading,C=e.getInputElement,S=e.getRawInputElement,x=e.open,w=e.defaultOpen,E=e.onDropdownVisibleChange,$=e.activeValue,O=e.onActiveValueChange,I=e.activeDescendantId,_=e.searchValue,M=e.autoClearSearchValue,P=e.onSearch,T=e.onSearchSplit,N=e.tokenSeparators,R=e.allowClear,F=e.prefix,A=e.suffixIcon,j=e.clearIcon,H=e.OptionList,k=e.animation,z=e.transitionName,B=e.dropdownStyle,V=e.dropdownClassName,L=e.dropdownMatchSelectWidth,q=e.dropdownRender,Y=e.dropdownAlign,U=e.placement,ee=e.builtinPlacements,Z=e.getPopupContainer,Q=e.showAction,J=Q===void 0?[]:Q,ae=e.onFocus,ne=e.onBlur,ie=e.onKeyUp,te=e.onKeyDown,le=e.onMouseDown,se=dt(e,M_),fe=bs(m),ve=(i!==void 0?i:fe)||m==="combobox",ge=G({},se);T_.forEach(function(Mt){delete ge[Mt]}),u==null||u.forEach(function(Mt){delete ge[Mt]});var be=c.useState(!1),de=K(be,2),pe=de[0],Se=de[1];c.useEffect(function(){Se(gs())},[]);var xe=c.useRef(null),De=c.useRef(null),ye=c.useRef(null),$e=c.useRef(null),Te=c.useRef(null),Pe=c.useRef(!1),Oe=k2(),we=K(Oe,3),me=we[0],Ee=we[1],ue=we[2];c.useImperativeHandle(t,function(){var Mt,nt;return{focus:(Mt=$e.current)===null||Mt===void 0?void 0:Mt.focus,blur:(nt=$e.current)===null||nt===void 0?void 0:nt.blur,scrollTo:function(Ue){var Ge;return(Ge=Te.current)===null||Ge===void 0?void 0:Ge.scrollTo(Ue)},nativeElement:xe.current||De.current}});var ce=c.useMemo(function(){var Mt;if(m!=="combobox")return _;var nt=(Mt=d[0])===null||Mt===void 0?void 0:Mt.value;return typeof nt=="string"||typeof nt=="number"?String(nt):""},[_,m,d]),Ie=m==="combobox"&&typeof C=="function"&&C()||null,rt=typeof S=="function"&&S(),lt=so(De,rt==null||(n=rt.props)===null||n===void 0?void 0:n.ref),mt=c.useState(!1),je=K(mt,2),Re=je[0],Ye=je[1];Pt(function(){Ye(!0)},[]);var ke=qt(!1,{defaultValue:w,value:x}),Xe=K(ke,2),We=Xe[0],Ae=Xe[1],ze=Re?We:!1,vt=!h&&v;(p||vt&&ze&&m==="combobox")&&(ze=!1);var ft=vt?!1:ze,Le=c.useCallback(function(Mt){var nt=Mt!==void 0?Mt:!ze;p||(Ae(nt),ze!==nt&&(E==null||E(nt)))},[p,ze,Ae,E]),Me=c.useMemo(function(){return(N||[]).some(function(Mt){return[`
|
|
173
|
-
`,`\r
|
|
174
|
-
`].includes(Mt)})},[N]),Be=c.useContext(Dd)||{},qe=Be.maxCount,Ke=Be.rawValues,at=function(nt,Ct,Ue){if(!(fe&&Md(qe)&&(Ke==null?void 0:Ke.size)>=qe)){var Ge=!0,xt=nt;O==null||O(null);var en=P_(nt,N,Md(qe)?qe-Ke.size:void 0),fn=Ue?null:en;return m!=="combobox"&&fn&&(xt="",T==null||T(fn),Le(!1),Ge=!1),P&&ce!==xt&&P(xt,{source:Ct?"typing":"effect"}),Ge}},wt=function(nt){!nt||!nt.trim()||P(nt,{source:"submit"})};c.useEffect(function(){!ze&&!fe&&m!=="combobox"&&at("",!1,!1)},[ze]),c.useEffect(function(){We&&p&&Ae(!1),p&&!Pe.current&&Ee(!1)},[p]);var Et=eb(),zt=K(Et,2),$t=zt[0],ht=zt[1],_t=c.useRef(!1),Dt=function(nt){var Ct=$t(),Ue=nt.key,Ge=Ue==="Enter";if(Ge&&(m!=="combobox"&&nt.preventDefault(),ze||Le(!0)),ht(!!ce),Ue==="Backspace"&&!Ct&&fe&&!ce&&d.length){for(var xt=Ne(d),en=null,fn=xt.length-1;fn>=0;fn-=1){var Vn=xt[fn];if(!Vn.disabled){xt.splice(fn,1),en=Vn;break}}en&&f(xt,{type:"remove",values:[en]})}for(var Un=arguments.length,Ln=new Array(Un>1?Un-1:0),In=1;In<Un;In++)Ln[In-1]=arguments[In];if(ze&&(!Ge||!_t.current)){var gt;Ge&&(_t.current=!0),(gt=Te.current)===null||gt===void 0||gt.onKeyDown.apply(gt,[nt].concat(Ln))}te==null||te.apply(void 0,[nt].concat(Ln))},Zt=function(nt){for(var Ct=arguments.length,Ue=new Array(Ct>1?Ct-1:0),Ge=1;Ge<Ct;Ge++)Ue[Ge-1]=arguments[Ge];if(ze){var xt;(xt=Te.current)===null||xt===void 0||xt.onKeyUp.apply(xt,[nt].concat(Ue))}nt.key==="Enter"&&(_t.current=!1),ie==null||ie.apply(void 0,[nt].concat(Ue))},Vt=function(nt){var Ct=d.filter(function(Ue){return Ue!==nt});f(Ct,{type:"remove",values:[nt]})},Rt=function(){_t.current=!1},Ve=c.useRef(!1),Qe=function(){Ee(!0),p||(ae&&!Ve.current&&ae.apply(void 0,arguments),J.includes("focus")&&Le(!0)),Ve.current=!0},_e=function(){Pe.current=!0,Ee(!1,function(){Ve.current=!1,Pe.current=!1,Le(!1)}),!p&&(ce&&(m==="tags"?P(ce,{source:"submit"}):m==="multiple"&&P("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},he=[];c.useEffect(function(){return function(){he.forEach(function(Mt){return clearTimeout(Mt)}),he.splice(0,he.length)}},[]);var He=function(nt){var Ct,Ue=nt.target,Ge=(Ct=ye.current)===null||Ct===void 0?void 0:Ct.getPopupElement();if(Ge&&Ge.contains(Ue)){var xt=setTimeout(function(){var Un=he.indexOf(xt);if(Un!==-1&&he.splice(Un,1),ue(),!pe&&!Ge.contains(document.activeElement)){var Ln;(Ln=$e.current)===null||Ln===void 0||Ln.focus()}});he.push(xt)}for(var en=arguments.length,fn=new Array(en>1?en-1:0),Vn=1;Vn<en;Vn++)fn[Vn-1]=arguments[Vn];le==null||le.apply(void 0,[nt].concat(fn))},ot=c.useState({}),ct=K(ot,2),It=ct[1];function Ht(){It({})}var Ft;rt&&(Ft=function(nt){Le(nt)}),W2(function(){var Mt;return[xe.current,(Mt=ye.current)===null||Mt===void 0?void 0:Mt.getPopupElement()]},ft,Le,!!rt);var Je=c.useMemo(function(){return G(G({},e),{},{notFoundContent:h,open:ze,triggerOpen:ft,id:r,showSearch:ve,multiple:fe,toggleOpen:Le})},[e,h,ft,ze,r,ve,fe,Le]),it=!!A||y,Nt;it&&(Nt=c.createElement(ps,{className:re("".concat(o,"-arrow"),W({},"".concat(o,"-arrow-loading"),y)),customizeIcon:A,customizeIconProps:{loading:y,searchValue:ce,open:ze,focused:me,showSearch:ve}}));var Gt=function(){var nt;b==null||b(),(nt=$e.current)===null||nt===void 0||nt.focus(),f([],{type:"clear",values:d}),at("",!1,!1)},Xt=L2(o,Gt,d,R,j,p,ce,m),cn=Xt.allowClear,qn=Xt.clearIcon,Kn=c.createElement(H,{ref:Te}),On=re(o,a,W(W(W(W(W(W(W(W(W(W({},"".concat(o,"-focused"),me),"".concat(o,"-multiple"),fe),"".concat(o,"-single"),!fe),"".concat(o,"-allow-clear"),R),"".concat(o,"-show-arrow"),it),"".concat(o,"-disabled"),p),"".concat(o,"-loading"),y),"".concat(o,"-open"),ze),"".concat(o,"-customize-input"),Ie),"".concat(o,"-show-search"),ve)),ur=c.createElement(bb,{ref:ye,disabled:p,prefixCls:o,visible:ft,popupElement:Kn,animation:k,transitionName:z,dropdownStyle:B,dropdownClassName:V,direction:s,dropdownMatchSelectWidth:L,dropdownRender:q,dropdownAlign:Y,placement:U,builtinPlacements:ee,getPopupContainer:Z,empty:v,getTriggerDOMNode:function(nt){return De.current||nt},onPopupVisibleChange:Ft,onPopupMouseEnter:Ht},rt?c.cloneElement(rt,{ref:lt}):c.createElement(lb,Ce({},e,{domRef:De,prefixCls:o,inputElement:Ie,ref:$e,id:r,prefix:F,showSearch:ve,autoClearSearchValue:M,mode:m,activeDescendantId:I,tagRender:l,values:d,open:ze,onToggleOpen:Le,activeValue:$,searchValue:ce,onSearch:at,onSearchSubmit:wt,onRemove:Vt,tokenWithEnter:Me,onInputBlur:Rt}))),Yn;return rt?Yn=ur:Yn=c.createElement("div",Ce({className:On},ge,{ref:xe,onMouseDown:He,onKeyDown:Dt,onKeyUp:Zt,onFocus:Qe,onBlur:_e}),c.createElement(__,{visible:me&&!ze,values:d}),ur,Nt,cn&&qn),c.createElement(Zh.Provider,{value:Je},Yn)});process.env.NODE_ENV!=="production"&&(Sb.displayName="BaseSelect");var Rd=function(){return null};Rd.isSelectOptGroup=!0;var Fd=function(){return null};Fd.isSelectOption=!0;var xb=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},v=G(G({},v),{},W(W(W(W(W({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:f},c.createElement(Wn,{onResize:function(h){var b=h.offsetHeight;b&&l&&l()}},c.createElement("div",Ce({style:v,className:re(W({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});xb.displayName="Filler";function D_(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function R_(e,t,n,r,o,a,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,v=i(u,f,{style:{width:r},offsetX:o}),g=s(u);return c.createElement(D_,{key:g,setRef:function(b){return a(u,b)}},v)})}function F_(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(h){return h!==void 0?n(h):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var v=s(a[f]),g=s(i[f]);if(v!==g){u=f,d=d||v!==s(i[f+1]);break}}return u===null?null:{index:u,multiple:d}}function A_(e,t,n){var r=c.useState(e),o=K(r,2),a=o[0],i=o[1],l=c.useState(null),s=K(l,2),u=s[0],d=s[1];return c.useEffect(function(){var f=F_(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[u]}var wb=(typeof navigator>"u"?"undefined":tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Eb=function(e,t,n,r){var o=D.useRef(!1),a=D.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=D.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function j_(e,t,n,r,o,a,i){var l=D.useRef(0),s=D.useRef(null),u=D.useRef(null),d=D.useRef(!1),f=Eb(t,n,r,o);function v(y,C){if(yt.cancel(s.current),!f(!1,C)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;l.current+=C,u.current=C,wb||S.preventDefault(),s.current=yt(function(){var x=d.current?10:1;i(l.current*x,!1),l.current=0})}}function g(y,C){i(C,!0),wb||y.preventDefault()}var h=D.useRef(null),b=D.useRef(null);function m(y){if(e){yt.cancel(b.current),b.current=yt(function(){h.current=null},2);var C=y.deltaX,S=y.deltaY,x=y.shiftKey,w=C,E=S;(h.current==="sx"||!h.current&&x&&S&&!C)&&(w=S,E=0,h.current="sx");var $=Math.abs(w),O=Math.abs(E);h.current===null&&(h.current=a&&$>O?"x":"y"),h.current==="y"?v(y,E):g(y,w)}}function p(y){e&&(d.current=y.detail===u.current)}return[m,p]}function z_(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=K(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,v=i.get(d),g=i.get(f);if(v===void 0||g===void 0)for(var h=e.length,b=l.length;b<h;b+=1){var m,p=e[b],y=t(p);i.set(y,b);var C=(m=n.get(y))!==null&&m!==void 0?m:r;if(l[b]=(l[b-1]||0)+C,y===d&&(v=b),y===f&&(g=b),v!==void 0&&g!==void 0)break}return{top:l[v-1]||0,bottom:l[g]}};return s}var B_=function(){function e(){on(this,e),W(this,"maps",void 0),W(this,"id",0),W(this,"diffRecords",new Map),this.maps=Object.create(null)}return an(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function $b(e){var t=parseFloat(e);return isNaN(t)?0:t}function V_(e,t,n){var r=c.useState(0),o=K(r,2),a=o[0],i=o[1],l=D.useRef(new Map),s=D.useRef(new B_),u=D.useRef(0);function d(){u.current+=1}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var p=!1;l.current.forEach(function(y,C){if(y&&y.offsetParent){var S=y.offsetHeight,x=getComputedStyle(y),w=x.marginTop,E=x.marginBottom,$=$b(w),O=$b(E),I=S+$+O;s.current.get(C)!==I&&(s.current.set(C,I),p=!0)}}),p&&i(function(y){return y+1})};if(g)h();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&h()})}}function v(g,h){var b=e(g);l.current.get(b),h?(l.current.set(b,h),f()):l.current.delete(b)}return D.useEffect(function(){return d},[]),[v,f,s.current,a]}var Ob=14/15;function L_(e,t,n){var r=D.useRef(!1),o=D.useRef(0),a=D.useRef(0),i=D.useRef(null),l=D.useRef(null),s,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),m=o.current-h,p=a.current-b,y=Math.abs(m)>Math.abs(p);y?o.current=h:a.current=b;var C=n(y,y?m:p,!1,g);C&&g.preventDefault(),clearInterval(l.current),C&&(l.current=setInterval(function(){y?m*=Ob:p*=Ob;var S=Math.floor(y?m:p);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,s()},f=function(g){s(),g.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(g.touches[0].pageX),a.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Pt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}function Ib(e){return Math.floor(Math.pow(e,.5))}function Ad(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function H_(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,l=function(){yt.cancel(a)},s=function v(){l(),a=yt(function(){n(i),v()})},u=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},d=function(){o=!1,l()},f=function(g){if(o){var h=Ad(g,!1),b=r.getBoundingClientRect(),m=b.top,p=b.bottom;if(h<=m){var y=m-h;i=-Ib(y),s()}else if(h>=p){var C=h-p;i=Ib(C),s()}else l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",f),l()}}},[e])}var Nb=10;function k_(e,t,n,r,o,a,i,l){var s=c.useRef(),u=c.useState(null),d=K(u,2),f=d[0],v=d[1];return Pt(function(){if(f&&f.times<Nb){if(!e.current){v(function(j){return G({},j)});return}a();var g=f.targetAlign,h=f.originAlign,b=f.index,m=f.offset,p=e.current.clientHeight,y=!1,C=g,S=null;if(p){for(var x=g||h,w=0,E=0,$=0,O=Math.min(t.length-1,b),I=0;I<=O;I+=1){var _=o(t[I]);E=w;var M=n.get(_);$=E+(M===void 0?r:M),w=$}for(var P=x==="top"?m:p-m,T=O;T>=0;T-=1){var N=o(t[T]),R=n.get(N);if(R===void 0){y=!0;break}if(P-=R,P<=0)break}switch(x){case"top":S=E-m;break;case"bottom":S=$-p+m;break;default:{var F=e.current.scrollTop,A=F+p;E<F?C="top":$>A&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(y=!0)}y&&v(G(G({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}else process.env.NODE_ENV!=="production"&&(f==null?void 0:f.times)===Nb&&ut(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(g){if(g==null){l();return}if(yt.cancel(s.current),typeof g=="number")i(g);else if(g&&tt(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(y){return o(y)===g.key});var m=g.offset,p=m===void 0?0:m;v({times:0,index:h,offset:p,originAlign:b})}}}var jd=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,v=e.style,g=e.thumbStyle,h=e.showScrollBar,b=c.useState(!1),m=K(b,2),p=m[0],y=m[1],C=c.useState(null),S=K(C,2),x=S[0],w=S[1],E=c.useState(null),$=K(E,2),O=$[0],I=$[1],_=!r,M=c.useRef(),P=c.useRef(),T=c.useState(h),N=K(T,2),R=N[0],F=N[1],A=c.useRef(),j=function(){h===!0||h===!1||(clearTimeout(A.current),F(!0),A.current=setTimeout(function(){F(!1)},3e3))},H=a-f||0,k=f-d||0,z=c.useMemo(function(){if(o===0||H===0)return 0;var Q=o/H;return Q*k},[o,H,k]),B=function(J){J.stopPropagation(),J.preventDefault()},V=c.useRef({top:z,dragging:p,pageY:x,startTop:O});V.current={top:z,dragging:p,pageY:x,startTop:O};var L=function(J){y(!0),w(Ad(J,u)),I(V.current.top),i(),J.stopPropagation(),J.preventDefault()};c.useEffect(function(){var Q=function(ie){ie.preventDefault()},J=M.current,ae=P.current;return J.addEventListener("touchstart",Q,{passive:!1}),ae.addEventListener("touchstart",L,{passive:!1}),function(){J.removeEventListener("touchstart",Q),ae.removeEventListener("touchstart",L)}},[]);var q=c.useRef();q.current=H;var Y=c.useRef();Y.current=k,c.useEffect(function(){if(p){var Q,J=function(ie){var te=V.current,le=te.dragging,se=te.pageY,fe=te.startTop;yt.cancel(Q);var ve=M.current.getBoundingClientRect(),ge=f/(u?ve.width:ve.height);if(le){var be=(Ad(ie,u)-se)*ge,de=fe;!_&&u?de-=be:de+=be;var pe=q.current,Se=Y.current,xe=Se?de/Se:0,De=Math.ceil(xe*pe);De=Math.max(De,0),De=Math.min(De,pe),Q=yt(function(){s(De,u)})}},ae=function(){y(!1),l()};return window.addEventListener("mousemove",J,{passive:!0}),window.addEventListener("touchmove",J,{passive:!0}),window.addEventListener("mouseup",ae,{passive:!0}),window.addEventListener("touchend",ae,{passive:!0}),function(){window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ae),window.removeEventListener("touchend",ae),yt.cancel(Q)}}},[p]),c.useEffect(function(){return j(),function(){clearTimeout(A.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:j}});var U="".concat(n,"-scrollbar"),ee={position:"absolute",visibility:R?null:"hidden"},Z={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(ee.height=8,ee.left=0,ee.right=0,ee.bottom=0,Z.height="100%",Z.width=d,_?Z.left=z:Z.right=z):(ee.width=8,ee.top=0,ee.bottom=0,_?ee.right=0:ee.left=0,Z.width="100%",Z.height=d,Z.top=z),c.createElement("div",{ref:M,className:re(U,W(W(W({},"".concat(U,"-horizontal"),u),"".concat(U,"-vertical"),!u),"".concat(U,"-visible"),R)),style:G(G({},ee),v),onMouseDown:B,onMouseMove:j},c.createElement("div",{ref:P,className:re("".concat(U,"-thumb"),W({},"".concat(U,"-thumb-moving"),p)),style:G(G({},Z),g),onMouseDown:L}))});process.env.NODE_ENV!=="production"&&(jd.displayName="ScrollBar");var W_=20;function Pb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,W_),Math.floor(n)}var q_=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],U_=[],G_={overflowY:"auto",overflowAnchor:"none"};function K_(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,v=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,m=e.component,p=m===void 0?"div":m,y=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,w=e.extraRender,E=e.styles,$=e.showScrollBar,O=$===void 0?"optional":$,I=dt(e,q_),_=c.useCallback(function(Ve){return typeof v=="function"?v(Ve):Ve==null?void 0:Ve[v]},[v]),M=V_(_),P=K(M,4),T=P[0],N=P[1],R=P[2],F=P[3],A=!!(g!==!1&&a&&i),j=c.useMemo(function(){return Object.values(R.maps).reduce(function(Ve,Qe){return Ve+Qe},0)},[R.id,R.maps]),H=A&&d&&(Math.max(i*d.length,j)>a||!!b),k=h==="rtl",z=re(r,W({},"".concat(r,"-rtl"),k),o),B=d||U_,V=D.useRef(),L=D.useRef(),q=D.useRef(),Y=D.useState(0),U=K(Y,2),ee=U[0],Z=U[1],Q=D.useState(0),J=K(Q,2),ae=J[0],ne=J[1],ie=D.useState(!1),te=K(ie,2),le=te[0],se=te[1],fe=function(){se(!0)},ve=function(){se(!1)},ge={getKey:_};function be(Ve){Z(function(Qe){var _e;typeof Ve=="function"?_e=Ve(Qe):_e=Ve;var he=Ye(_e);return V.current.scrollTop=he,he})}var de=D.useRef({start:0,end:B.length}),pe=D.useRef(),Se=A_(B,_),xe=K(Se,1),De=xe[0];pe.current=De;var ye=c.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!H){var Ve;return{scrollHeight:((Ve=L.current)===null||Ve===void 0?void 0:Ve.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Qe=0,_e,he,He,ot=B.length,ct=0;ct<ot;ct+=1){var It=B[ct],Ht=_(It),Ft=R.get(Ht),Je=Qe+(Ft===void 0?i:Ft);Je>=ee&&_e===void 0&&(_e=ct,he=Qe),Je>ee+a&&He===void 0&&(He=ct),Qe=Je}return _e===void 0&&(_e=0,he=0,He=Math.ceil(a/i)),He===void 0&&(He=B.length-1),He=Math.min(He+1,B.length-1),{scrollHeight:Qe,start:_e,end:He,offset:he}},[H,A,ee,B,F,a]),$e=ye.scrollHeight,Te=ye.start,Pe=ye.end,Oe=ye.offset;de.current.start=Te,de.current.end=Pe,c.useLayoutEffect(function(){var Ve=R.getRecord();if(Ve.size===1){var Qe=Array.from(Ve.keys())[0],_e=Ve.get(Qe),he=B[Te];if(he&&_e===void 0){var He=_(he);if(He===Qe){var ot=R.get(Qe),ct=ot-i;be(function(It){return It+ct})}}}R.resetRecord()},[$e]);var we=c.useState({width:0,height:a}),me=K(we,2),Ee=me[0],ue=me[1],ce=function(Qe){ue({width:Qe.offsetWidth,height:Qe.offsetHeight})},Ie=D.useRef(),rt=D.useRef(),lt=c.useMemo(function(){return Pb(Ee.width,b)},[Ee.width,b]),mt=c.useMemo(function(){return Pb(Ee.height,$e)},[Ee.height,$e]),je=$e-a,Re=D.useRef(je);Re.current=je;function Ye(Ve){var Qe=Ve;return Number.isNaN(Re.current)||(Qe=Math.min(Qe,Re.current)),Qe=Math.max(Qe,0),Qe}var ke=ee<=0,Xe=ee>=je,We=ae<=0,Ae=ae>=b,ze=Eb(ke,Xe,We,Ae),vt=function(){return{x:k?-ae:ae,y:ee}},ft=D.useRef(vt()),Le=Tt(function(Ve){if(C){var Qe=G(G({},vt()),Ve);(ft.current.x!==Qe.x||ft.current.y!==Qe.y)&&(C(Qe),ft.current=Qe)}});function Me(Ve,Qe){var _e=Ve;Qe?(_r.flushSync(function(){ne(_e)}),Le()):be(_e)}function Be(Ve){var Qe=Ve.currentTarget.scrollTop;Qe!==ee&&be(Qe),y==null||y(Ve),Le()}var qe=function(Qe){var _e=Qe,he=b?b-Ee.width:0;return _e=Math.max(_e,0),_e=Math.min(_e,he),_e},Ke=Tt(function(Ve,Qe){Qe?(_r.flushSync(function(){ne(function(_e){var he=_e+(k?-Ve:Ve);return qe(he)})}),Le()):be(function(_e){var he=_e+Ve;return he})}),at=j_(A,ke,Xe,We,Ae,!!b,Ke),wt=K(at,2),Et=wt[0],zt=wt[1];L_(A,V,function(Ve,Qe,_e,he){var He=he;return ze(Ve,Qe,_e)?!1:!He||!He._virtualHandled?(He&&(He._virtualHandled=!0),Et({preventDefault:function(){},deltaX:Ve?Qe:0,deltaY:Ve?0:Qe}),!0):!1}),H_(H,V,function(Ve){be(function(Qe){return Qe+Ve})}),Pt(function(){function Ve(_e){var he=ke&&_e.detail<0,He=Xe&&_e.detail>0;A&&!he&&!He&&_e.preventDefault()}var Qe=V.current;return Qe.addEventListener("wheel",Et,{passive:!1}),Qe.addEventListener("DOMMouseScroll",zt,{passive:!0}),Qe.addEventListener("MozMousePixelScroll",Ve,{passive:!1}),function(){Qe.removeEventListener("wheel",Et),Qe.removeEventListener("DOMMouseScroll",zt),Qe.removeEventListener("MozMousePixelScroll",Ve)}},[A,ke,Xe]),Pt(function(){if(b){var Ve=qe(ae);ne(Ve),Le({x:Ve})}},[Ee.width,b]);var $t=function(){var Qe,_e;(Qe=Ie.current)===null||Qe===void 0||Qe.delayHidden(),(_e=rt.current)===null||_e===void 0||_e.delayHidden()},ht=k_(V,B,R,i,_,function(){return N(!0)},be,$t);c.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:vt,scrollTo:function(Qe){function _e(he){return he&&tt(he)==="object"&&("left"in he||"top"in he)}_e(Qe)?(Qe.left!==void 0&&ne(qe(Qe.left)),ht(Qe.top)):ht(Qe)}}}),Pt(function(){if(S){var Ve=B.slice(Te,Pe+1);S(Ve,B)}},[Te,Pe,B]);var _t=z_(B,_,R,i),Dt=w==null?void 0:w({start:Te,end:Pe,virtual:H,offsetX:ae,offsetY:Oe,rtl:k,getSize:_t}),Zt=R_(B,Te,Pe,b,ae,T,f,ge),Vt=null;a&&(Vt=G(W({},s?"height":"maxHeight",a),G_),A&&(Vt.overflowY="hidden",b&&(Vt.overflowX="hidden"),le&&(Vt.pointerEvents="none")));var Rt={};return k&&(Rt.dir="rtl"),c.createElement("div",Ce({ref:q,style:G(G({},u),{},{position:"relative"}),className:z},Rt,I),c.createElement(Wn,{onResize:ce},c.createElement(p,{className:"".concat(r,"-holder"),style:Vt,ref:V,onScroll:Be,onMouseEnter:$t},c.createElement(xb,{prefixCls:r,height:$e,offsetX:ae,offsetY:Oe,scrollWidth:b,onInnerResize:N,ref:L,innerProps:x,rtl:k,extra:Dt},Zt))),H&&$e>a&&c.createElement(jd,{ref:Ie,prefixCls:r,scrollOffset:ee,scrollRange:$e,rtl:k,onScroll:Me,onStartMove:fe,onStopMove:ve,spinSize:mt,containerSize:Ee.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:O}),H&&b>Ee.width&&c.createElement(jd,{ref:rt,prefixCls:r,scrollOffset:ae,scrollRange:b,rtl:k,onScroll:Me,onStartMove:fe,onStopMove:ve,spinSize:lt,containerSize:Ee.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:O}))}var _b=c.forwardRef(K_);_b.displayName="List";function Y_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var X_=["disabled","title","children","style","className"];function Mb(e){return typeof e=="string"||typeof e=="number"}var Q_=function(t,n){var r=H2(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,g=c.useContext(Dd),h=g.maxCount,b=g.flattenOptions,m=g.onActiveValue,p=g.defaultActiveFirstOption,y=g.onSelect,C=g.menuItemSelectedIcon,S=g.rawValues,x=g.fieldNames,w=g.virtual,E=g.direction,$=g.listHeight,O=g.listItemHeight,I=g.optionRender,_="".concat(o,"-item"),M=Ra(function(){return b},[i,b],function(Q,J){return J[0]&&Q[1]!==J[1]}),P=c.useRef(null),T=c.useMemo(function(){return l&&Md(h)&&(S==null?void 0:S.size)>=h},[l,h,S==null?void 0:S.size]),N=function(J){J.preventDefault()},R=function(J){var ae;(ae=P.current)===null||ae===void 0||ae.scrollTo(typeof J=="number"?{index:J}:J)},F=c.useCallback(function(Q){return s==="combobox"?!1:S.has(Q)},[s,Ne(S).toString(),S.size]),A=function(J){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=M.length,ie=0;ie<ne;ie+=1){var te=(J+ie*ae+ne)%ne,le=M[te]||{},se=le.group,fe=le.data;if(!se&&!(fe!=null&&fe.disabled)&&(F(fe.value)||!T))return te}return-1},j=c.useState(function(){return A(0)}),H=K(j,2),k=H[0],z=H[1],B=function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(J);var ne={source:ae?"keyboard":"mouse"},ie=M[J];if(!ie){m(null,-1,ne);return}m(ie.value,J,ne)};D.useEffect(function(){B(p!==!1?A(0):-1)},[M.length,u]);var V=c.useCallback(function(Q){return s==="combobox"?String(Q).toLowerCase()===u.toLowerCase():S.has(Q)},[s,u,Ne(S).toString(),S.size]);D.useEffect(function(){var Q=setTimeout(function(){if(!l&&i&&S.size===1){var ae=Array.from(S)[0],ne=M.findIndex(function(ie){var te=ie.data;return u?String(te.value).startsWith(u):te.value===ae});ne!==-1&&(B(ne),R(ne))}});if(i){var J;(J=P.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(Q)}},[i,u]);var L=function(J){J!==void 0&&y(J,{selected:!S.has(J)}),l||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(J){var ae=J.which,ne=J.ctrlKey;switch(ae){case Fe.N:case Fe.P:case Fe.UP:case Fe.DOWN:{var ie=0;if(ae===Fe.UP?ie=-1:ae===Fe.DOWN?ie=1:Y_()&&ne&&(ae===Fe.N?ie=1:ae===Fe.P&&(ie=-1)),ie!==0){var te=A(k+ie,ie);R(te),B(te,!0)}break}case Fe.TAB:case Fe.ENTER:{var le,se=M[k];se&&!(se!=null&&(le=se.data)!==null&&le!==void 0&&le.disabled)&&!T?L(se.value):L(void 0),i&&J.preventDefault();break}case Fe.ESC:d(!1),i&&J.stopPropagation()}},onKeyUp:function(){},scrollTo:function(J){R(J)}}}),M.length===0)return c.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(_,"-empty"),onMouseDown:N},f);var q=Object.keys(x).map(function(Q){return x[Q]}),Y=function(J){return J.label};function U(Q,J){var ae=Q.group;return{role:ae?"presentation":"option",id:"".concat(a,"_list_").concat(J)}}var ee=function(J){var ae=M[J];if(!ae)return null;var ne=ae.data||{},ie=ne.value,te=ae.group,le=Jn(ne,!0),se=Y(ae);return ae?c.createElement("div",Ce({"aria-label":typeof se=="string"&&!te?se:null},le,{key:J},U(ae,J),{"aria-selected":V(ie)}),ie):null},Z={role:"listbox",id:"".concat(a,"_list")};return c.createElement(c.Fragment,null,w&&c.createElement("div",Ce({},Z,{style:{height:0,width:0,overflow:"hidden"}}),ee(k-1),ee(k),ee(k+1)),c.createElement(_b,{itemKey:"key",ref:P,data:M,height:$,itemHeight:O,fullHeight:!1,onMouseDown:N,onScroll:v,virtual:w,direction:E,innerProps:w?null:Z},function(Q,J){var ae=Q.group,ne=Q.groupOption,ie=Q.data,te=Q.label,le=Q.value,se=ie.key;if(ae){var fe,ve=(fe=ie.title)!==null&&fe!==void 0?fe:Mb(te)?te.toString():void 0;return c.createElement("div",{className:re(_,"".concat(_,"-group"),ie.className),title:ve},te!==void 0?te:se)}var ge=ie.disabled,be=ie.title;ie.children;var de=ie.style,pe=ie.className,Se=dt(ie,X_),xe=gn(Se,q),De=F(le),ye=ge||!De&&T,$e="".concat(_,"-option"),Te=re(_,$e,pe,W(W(W(W({},"".concat($e,"-grouped"),ne),"".concat($e,"-active"),k===J&&!ye),"".concat($e,"-disabled"),ye),"".concat($e,"-selected"),De)),Pe=Y(Q),Oe=!C||typeof C=="function"||De,we=typeof Pe=="number"?Pe:Pe||le,me=Mb(we)?we.toString():void 0;return be!==void 0&&(me=be),c.createElement("div",Ce({},Jn(xe),w?{}:U(Q,J),{"aria-selected":V(le),className:Te,title:me,onMouseMove:function(){k===J||ye||B(J)},onClick:function(){ye||L(le)},style:de}),c.createElement("div",{className:"".concat($e,"-content")},typeof I=="function"?I(Q,{index:J}):we),c.isValidElement(C)||De,Oe&&c.createElement(ps,{className:"".concat(_,"-option-state"),customizeIcon:C,customizeIconProps:{value:le,disabled:ye,isSelected:De}},De?"✓":null))}))},Tb=c.forwardRef(Q_);process.env.NODE_ENV!=="production"&&(Tb.displayName="OptionList");const J_=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var v;return G(G({},f),{},{label:(v=i.get(f.value))===null||v===void 0?void 0:v.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(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function zd(e,t){return Pd(e).join("").toUpperCase().includes(t)}const Z_=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return o?zd(h[o],d):h[a]?zd(h[i!=="children"?i:"label"],d):zd(h[l],d)},v=u?function(g){return Td(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var h=f(n,v(g));if(h)s.push(g);else{var b=g[a].filter(function(m){return f(n,v(m))});b.length&&s.push(G(G({},g),{},W({},a,b)))}return}f(n,v(g))&&s.push(g)}),s},[e,r,o,n,t])};var Db=0,eM=process.env.NODE_ENV!=="test"&&Nn();function tM(){var e;return eM?(e=Db,Db+=1):e="TEST_OR_SSR",e}function nM(e){var t=c.useState(),n=K(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(tM()))},[]),e||r}var rM=["children","value"],oM=["children"];function aM(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=dt(r,rM);return G({key:n,value:a!==void 0?a:n,children:o},i)}function Bd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return kn(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=dt(l,oM);return t||!a?aM(n):G(G({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:Bd(s)})}).filter(function(n){return n})}var iM=function(t,n,r,o,a){return c.useMemo(function(){var i=t,l=!t;l&&(i=Bd(n));var s=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function v(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<g.length;b+=1){var m=g[b];!m[r.options]||h?(s.set(m[r.value],m),d(u,m,r.label),d(u,m,o),d(u,m,a)):v(m[r.options],!0)}};return f(i),{options:i,valueOptions:s,labelOptions:u}},[t,n,r,o,a])};function Rb(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function lM(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,a=e.allowClear,i=e.placeholder,l=e.getInputElement,s=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,v=e.labelInValue,g=e.value,h=e.inputValue,b=e.optionLabelProp,m=bs(t),p=s!==void 0?s:m||t==="combobox",y=n||Bd(r);if(ut(t!=="tags"||y.every(function(w){return!w.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var C=y.some(function(w){return w.options?w.options.some(function(E){return typeof("value"in E?E.value:E.key)=="number"}):typeof("value"in w?w.value:w.key)=="number"});ut(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(ut(t!=="combobox"||!b,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),ut(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),ut(t==="combobox"||!l,"`getInputElement` only work with `combobox` mode."),Wc(t!=="combobox"||!l||!a||!i,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!p&&t!=="combobox"&&t!=="tags"&&ut(!1,"`onSearch` should work with `showSearch` instead of use alone."),Wc(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var S=Pd(g);ut(!v||S.every(function(w){return tt(w)==="object"&&("key"in w||"value"in w)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),ut(!m||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;kn(r).some(function(w){if(!c.isValidElement(w)||!w.type)return!1;var E=w,$=E.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var O=kn(w.props.children).every(function(I){return!c.isValidElement(I)||!w.type||I.type.isSelectOption?!0:(x=I.type,!1)});return!O}return x=$,!0}),x&&ut(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),ut(h===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function sM(e,t){if(e){var n=function r(o){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=0;i<o.length;i++){var l=o[i];if(l[t==null?void 0:t.value]===null)return ut(!1,"`value` in Select options should not be `null`."),!0;if(!a&&Array.isArray(l[t==null?void 0:t.options])&&r(l[t==null?void 0:t.options],!0))break}};n(e)}}var cM=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],uM=["inputValue"];function dM(e){return!e||tt(e)!=="object"}var Fb=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,v=f===void 0?!0:f,g=e.onSelect,h=e.onDeselect,b=e.dropdownMatchSelectWidth,m=b===void 0?!0:b,p=e.filterOption,y=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,x=e.options,w=e.optionRender,E=e.children,$=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,I=e.virtual,_=e.direction,M=e.listHeight,P=M===void 0?200:M,T=e.listItemHeight,N=T===void 0?20:T,R=e.labelRender,F=e.value,A=e.defaultValue,j=e.labelInValue,H=e.onChange,k=e.maxCount,z=dt(e,cM),B=nM(n),V=bs(r),L=!!(!x&&E),q=c.useMemo(function(){return p===void 0&&r==="combobox"?!1:p},[p,r]),Y=c.useMemo(function(){return Cb(l,L)},[JSON.stringify(l),L]),U=qt("",{value:u!==void 0?u:s,postState:function(Me){return Me||""}}),ee=K(U,2),Z=ee[0],Q=ee[1],J=iM(x,E,Y,C,S),ae=J.valueOptions,ne=J.labelOptions,ie=J.options,te=c.useCallback(function(Le){var Me=Pd(Le);return Me.map(function(Be){var qe,Ke,at,wt,Et;if(dM(Be))qe=Be;else{var zt;at=Be.key,Ke=Be.label,qe=(zt=Be.value)!==null&&zt!==void 0?zt:at}var $t=ae.get(qe);if($t){var ht;if(Ke===void 0&&(Ke=$t==null?void 0:$t[S||Y.label]),at===void 0&&(at=(ht=$t==null?void 0:$t.key)!==null&&ht!==void 0?ht:qe),wt=$t==null?void 0:$t.disabled,Et=$t==null?void 0:$t.title,process.env.NODE_ENV!=="production"&&!S){var _t=$t==null?void 0:$t[Y.label];_t!==void 0&&!c.isValidElement(_t)&&!c.isValidElement(Ke)&&_t!==Ke&&ut(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Ke,value:qe,key:at,disabled:wt,title:Et}})},[Y,S,ae]),le=qt(A,{value:F}),se=K(le,2),fe=se[0],ve=se[1],ge=c.useMemo(function(){var Le,Me=V&&fe===null?[]:fe,Be=te(Me);return r==="combobox"&&c_((Le=Be[0])===null||Le===void 0?void 0:Le.value)?[]:Be},[fe,te,r,V]),be=J_(ge,ae),de=K(be,2),pe=de[0],Se=de[1],xe=c.useMemo(function(){if(!r&&pe.length===1){var Le=pe[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return pe.map(function(Me){var Be;return G(G({},Me),{},{label:(Be=typeof R=="function"?R(Me):Me.label)!==null&&Be!==void 0?Be:Me.value})})},[r,pe,R]),De=c.useMemo(function(){return new Set(pe.map(function(Le){return Le.value}))},[pe]);c.useEffect(function(){if(r==="combobox"){var Le,Me=(Le=pe[0])===null||Le===void 0?void 0:Le.value;Q(s_(Me)?String(Me):"")}},[pe]);var ye=Rb(function(Le,Me){var Be=Me??Le;return W(W({},Y.value,Le),Y.label,Be)}),$e=c.useMemo(function(){if(r!=="tags")return ie;var Le=Ne(ie),Me=function(qe){return ae.has(qe)};return Ne(pe).sort(function(Be,qe){return Be.value<qe.value?-1:1}).forEach(function(Be){var qe=Be.value;Me(qe)||Le.push(ye(qe,Be.label))}),Le},[ye,ie,ae,pe,r]),Te=Z_($e,Y,Z,q,C),Pe=c.useMemo(function(){return r!=="tags"||!Z||Te.some(function(Le){return Le[C||"value"]===Z})||Te.some(function(Le){return Le[Y.value]===Z})?Te:[ye(Z)].concat(Ne(Te))},[ye,C,r,Te,Z,Y]),Oe=function Le(Me){var Be=Ne(Me).sort(function(qe,Ke){return y(qe,Ke,{searchValue:Z})});return Be.map(function(qe){return Array.isArray(qe.options)?G(G({},qe),{},{options:qe.options.length>0?Le(qe.options):qe.options}):qe})},we=c.useMemo(function(){return y?Oe(Pe):Pe},[Pe,y,Z]),me=c.useMemo(function(){return N_(we,{fieldNames:Y,childrenAsData:L})},[we,Y,L]),Ee=function(Me){var Be=te(Me);if(ve(Be),H&&(Be.length!==pe.length||Be.some(function(at,wt){var Et;return((Et=pe[wt])===null||Et===void 0?void 0:Et.value)!==(at==null?void 0:at.value)}))){var qe=j?Be:Be.map(function(at){return at.value}),Ke=Be.map(function(at){return Td(Se(at.value))});H(V?qe:qe[0],V?Ke:Ke[0])}},ue=c.useState(null),ce=K(ue,2),Ie=ce[0],rt=ce[1],lt=c.useState(0),mt=K(lt,2),je=mt[0],Re=mt[1],Ye=$!==void 0?$:r!=="combobox",ke=c.useCallback(function(Le,Me){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qe=Be.source,Ke=qe===void 0?"keyboard":qe;Re(Me),i&&r==="combobox"&&Le!==null&&Ke==="keyboard"&&rt(String(Le))},[i,r]),Xe=function(Me,Be,qe){var Ke=function(){var Vt,Rt=Se(Me);return[j?{label:Rt==null?void 0:Rt[Y.label],value:Me,key:(Vt=Rt==null?void 0:Rt.key)!==null&&Vt!==void 0?Vt:Me}:Me,Td(Rt)]};if(Be&&g){var at=Ke(),wt=K(at,2),Et=wt[0],zt=wt[1];g(Et,zt)}else if(!Be&&h&&qe!=="clear"){var $t=Ke(),ht=K($t,2),_t=ht[0],Dt=ht[1];h(_t,Dt)}},We=Rb(function(Le,Me){var Be,qe=V?Me.selected:!0;qe?Be=V?[].concat(Ne(pe),[Le]):[Le]:Be=pe.filter(function(Ke){return Ke.value!==Le}),Ee(Be),Xe(Le,qe),r==="combobox"?rt(""):(!bs||v)&&(Q(""),rt(""))}),Ae=function(Me,Be){Ee(Me);var qe=Be.type,Ke=Be.values;(qe==="remove"||qe==="clear")&&Ke.forEach(function(at){Xe(at.value,!1,qe)})},ze=function(Me,Be){if(Q(Me),rt(null),Be.source==="submit"){var qe=(Me||"").trim();if(qe){var Ke=Array.from(new Set([].concat(Ne(De),[qe])));Ee(Ke),Xe(qe,!0),Q("")}return}Be.source!=="blur"&&(r==="combobox"&&Ee(Me),d==null||d(Me))},vt=function(Me){var Be=Me;r!=="tags"&&(Be=Me.map(function(Ke){var at=ne.get(Ke);return at==null?void 0:at.value}).filter(function(Ke){return Ke!==void 0}));var qe=Array.from(new Set([].concat(Ne(De),Ne(Be))));Ee(qe),qe.forEach(function(Ke){Xe(Ke,!0)})},ft=c.useMemo(function(){var Le=I!==!1&&m!==!1;return G(G({},J),{},{flattenOptions:me,onActiveValue:ke,defaultActiveFirstOption:Ye,onSelect:We,menuItemSelectedIcon:O,rawValues:De,fieldNames:Y,virtual:Le,direction:_,listHeight:P,listItemHeight:N,childrenAsData:L,maxCount:k,optionRender:w})},[k,J,me,ke,Ye,We,O,De,Y,I,m,_,P,N,L,w]);return process.env.NODE_ENV!=="production"&&(lM(e),sM(ie,Y)),c.createElement(Dd.Provider,{value:ft},c.createElement(Sb,Ce({},z,{id:B,prefixCls:a,ref:t,omitDomProps:uM,mode:r,displayValues:xe,onDisplayValuesChange:Ae,direction:_,searchValue:Z,onSearch:ze,autoClearSearchValue:v,onSearchSplit:vt,dropdownMatchSelectWidth:m,OptionList:Tb,emptyOptions:!me.length,activeValue:Ie,activeDescendantId:"".concat(B,"_list_").concat(je)})))});process.env.NODE_ENV!=="production"&&(Fb.displayName="Select");var Vd=Fb;Vd.Option=Fd,Vd.OptGroup=Rd;function eo(e,t,n){return re({[`${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 Eo=(e,t)=>t||e,Ab=()=>{const[,e]=Qn(),[t]=Fr("Empty"),r=new kt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),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"}))))};process.env.NODE_ENV!=="production"&&(Ab.displayName="EmptyImage");const jb=()=>{const[,e]=Qn(),[t]=Fr("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=D.useMemo(()=>({borderColor:new kt(n).onBackground(a).toHexString(),shadowColor:new kt(r).onBackground(a).toHexString(),contentColor:new kt(o).onBackground(a).toHexString()}),[n,r,o,a]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:l,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:s}))))};process.env.NODE_ENV!=="production"&&(jb.displayName="SimpleImage");const fM=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vM=Kt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=At(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[fM(o)]});var mM=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 zb=c.createElement(Ab,null),Bb=c.createElement(jb,null),to=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=zb,description:a,children:i,imageStyle:l,style:s,classNames:u,styles:d}=e,f=mM(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:g,className:h,style:b,classNames:m,styles:p}=Pn("empty"),y=v("empty",r),[C,S,x]=vM(y),[w]=Fr("Empty"),E=typeof a<"u"?a:w==null?void 0:w.description,$=typeof E=="string"?E:"empty";let O=null;if(typeof o=="string"?O=c.createElement("img",{alt:$,src:o}):O=o,process.env.NODE_ENV!=="production"){const I=jt("Empty");[["imageStyle","styles: { image: {} }"]].forEach(([_,M])=>{I.deprecated(!(_ in e),_,M)})}return C(c.createElement("div",Object.assign({className:re(S,x,y,h,{[`${y}-normal`]:o===Bb,[`${y}-rtl`]:g==="rtl"},t,n,m.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},p.root),b),d==null?void 0:d.root),s)},f),c.createElement("div",{className:re(`${y}-image`,m.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),p.image),d==null?void 0:d.image)},O),E&&c.createElement("div",{className:re(`${y}-description`,m.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},p.description),d==null?void 0:d.description)},E),i&&c.createElement("div",{className:re(`${y}-footer`,m.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},p.footer),d==null?void 0:d.footer)},i)))};to.PRESENTED_IMAGE_DEFAULT=zb,to.PRESENTED_IMAGE_SIMPLE=Bb,process.env.NODE_ENV!=="production"&&(to.displayName="Empty");const Vb=e=>{const{componentName:t}=e,{getPrefixCls:n}=D.useContext(bt),r=n("empty");switch(t){case"Table":case"List":return D.createElement(to,{image:to.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return D.createElement(to,{image:to.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return D.createElement(to,null)}},$o=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=c.useContext(bt),l=c.useContext(Kh),s=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=l??s)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=m$.includes(u);return[u,d]},gM=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 pM(e,t){return e||gM(t)}const Lb=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"}},hM=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ut(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,[`
|
|
175
|
-
${o}${l}bottomLeft,
|
|
176
|
-
${a}${l}bottomLeft
|
|
177
|
-
`]:{animationName:Xu},[`
|
|
178
|
-
${o}${l}topLeft,
|
|
179
|
-
${a}${l}topLeft,
|
|
180
|
-
${o}${l}topRight,
|
|
181
|
-
${a}${l}topRight
|
|
182
|
-
`]:{animationName:Ju},[`${i}${l}bottomLeft`]:{animationName:Qu},[`
|
|
183
|
-
${i}${l}topLeft,
|
|
184
|
-
${i}${l}topRight
|
|
185
|
-
`]:{animationName:Zu},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Lb(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"},Xr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Lb(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},fa(e,"slide-up"),fa(e,"slide-down"),as(e,"move-up"),as(e,"move-down")]},Hb=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:X(t),itemLineHeight:X(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},bM=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},kb=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Xa()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},yM=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=bM(e),l=t?`${n}-${t}`:"",s=Hb(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},kb(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${X(r)} 0`,lineHeight:X(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:X(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:X(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
186
|
-
${n}-prefix + ${n}-selection-wrap
|
|
187
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:X(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ld(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
188
|
-
&${n}-show-arrow ${n}-selector,
|
|
189
|
-
&${n}-allow-clear ${n}-selector
|
|
190
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[yM(e,t),o]}const CM=e=>{const{componentCls:t}=e,n=At(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=At(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ld(e),Ld(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ld(r,"lg")]};function Hd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ut(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:X(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
191
|
-
${n}-selection-item,
|
|
192
|
-
${n}-selection-placeholder
|
|
193
|
-
`]:{display:"block",padding:0,lineHeight:X(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
194
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
195
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
196
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
197
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${X(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:X(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${X(r)}`,"&:after":{display:"none"}}}}}}}function SM(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Hd(e),Hd(At(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${X(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
198
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
199
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
200
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Hd(At(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const xM=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:m,colorTextDisabled:p,colorPrimaryHover:y,colorPrimary:C,controlOutline:S}=e,x=l*2,w=r*2,E=Math.min(o-x,o-w),$=Math.min(a-x,a-w),O=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:g,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:$,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:l}},Wb=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${X(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${X(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},qb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Wb(e,t))}),wM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Wb(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),qb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),qb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ub=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Gb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ub(e,t))}),EM=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ub(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Gb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Gb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),$M=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${X(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Kb=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${X(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},Yb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Kb(e,t))}),OM=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Kb(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Yb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Yb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),IM=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},wM(e)),EM(e)),$M(e)),OM(e))}),NM=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},PM=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},_M=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Ut(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},NM(e)),PM(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Xr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Xr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Xa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},MM=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_M(e),SM(e),CM(e),hM(e),{[`${t}-rtl`]:{direction:"rtl"}},ai(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},TM=Kt("Select",(e,{rootPrefixCls:t})=>{const n=At(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[MM(n),IM(n)]},xM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DM={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"},RM=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:DM}))},Oo=c.forwardRef(RM);process.env.NODE_ENV!=="production"&&(Oo.displayName="CheckOutlined");var FM={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"},AM=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:FM}))},ys=c.forwardRef(AM);process.env.NODE_ENV!=="production"&&(ys.displayName="DownOutlined");var jM={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"},zM=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:jM}))},kd=c.forwardRef(zM);process.env.NODE_ENV!=="production"&&(kd.displayName="SearchOutlined");function Xb({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:l,showSuffixIcon:s,feedbackIcon:u,showArrow:d,componentName:f}){process.env.NODE_ENV!=="production"&&jt(f).deprecated(!t,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const v=t??c.createElement(ua,null),g=p=>e===null&&!i&&!d?null:c.createElement(c.Fragment,null,s!==!1&&p,i&&u);let h=null;if(e!==void 0)h=g(e);else if(o)h=g(c.createElement(ei,{spin:!0}));else{const p=`${l}-suffix`;h=({open:y,showSearch:C})=>g(y&&C?c.createElement(kd,{className:p}):c.createElement(ys,{className:p}))}let b=null;n!==void 0?b=n:a?b=c.createElement(Oo,null):b=null;let m=null;return r!==void 0?m=r:m=c.createElement(bo,null),{clearIcon:v,suffixIcon:h,itemIcon:b,removeIcon:m}}function BM(e,t){return t!==void 0?t:e!==null}var VM=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 Qb="SECRET_COMBOBOX_MODE_DO_NOT_USE",Jb=(e,t)=>{var n,r,o,a,i;const{prefixCls:l,bordered:s,className:u,rootClassName:d,getPopupContainer:f,popupClassName:v,dropdownClassName:g,listHeight:h=256,placement:b,listItemHeight:m,size:p,disabled:y,notFoundContent:C,status:S,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:E,direction:$,style:O,allowClear:I,variant:_,dropdownStyle:M,transitionName:P,tagRender:T,maxCount:N,prefix:R,dropdownRender:F,popupRender:A,onDropdownVisibleChange:j,onOpenChange:H,styles:k,classNames:z}=e,B=VM(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:V,getPrefixCls:L,renderEmpty:q,direction:Y,virtual:U,popupMatchSelectWidth:ee,popupOverflow:Z}=c.useContext(bt),{showSearch:Q,style:J,styles:ae,className:ne,classNames:ie}=Pn("select"),[,te]=Qn(),le=m??(te==null?void 0:te.controlHeight),se=L("select",l),fe=L(),ve=$??Y,{compactSize:ge,compactItemClassnames:be}=Jr(se,ve),[de,pe]=$o("select",_,s),Se=Gn(se),[xe,De,ye]=TM(se,Se),$e=c.useMemo(()=>{const{mode:qe}=e;if(qe!=="combobox")return qe===Qb?"combobox":qe},[e.mode]),Te=$e==="multiple"||$e==="tags",Pe=BM(e.suffixIcon,e.showArrow),Oe=(n=E??w)!==null&&n!==void 0?n:ee,we=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((o=ae.popup)===null||o===void 0?void 0:o.root)||M,me=A||F,Ee=H||j,{status:ue,hasFeedback:ce,isFormItemInput:Ie,feedbackIcon:rt}=c.useContext(Cn),lt=Eo(ue,S);let mt;C!==void 0?mt=C:$e==="combobox"?mt=null:mt=(q==null?void 0:q("Select"))||c.createElement(Vb,{componentName:"Select"});const{suffixIcon:je,itemIcon:Re,removeIcon:Ye,clearIcon:ke}=Xb(Object.assign(Object.assign({},B),{multiple:Te,hasFeedback:ce,feedbackIcon:rt,showSuffixIcon:Pe,prefixCls:se,componentName:"Select"})),Xe=I===!0?{clearIcon:ke}:I,We=gn(B,["suffixIcon","itemIcon"]),Ae=re(((a=z==null?void 0:z.popup)===null||a===void 0?void 0:a.root)||((i=ie==null?void 0:ie.popup)===null||i===void 0?void 0:i.root)||v||g,{[`${se}-dropdown-${ve}`]:ve==="rtl"},d,ie.root,z==null?void 0:z.root,ye,Se,De),ze=_n(qe=>{var Ke;return(Ke=p??ge)!==null&&Ke!==void 0?Ke:qe}),vt=c.useContext(Tn),ft=y??vt,Le=re({[`${se}-lg`]:ze==="large",[`${se}-sm`]:ze==="small",[`${se}-rtl`]:ve==="rtl",[`${se}-${de}`]:pe,[`${se}-in-form-item`]:Ie},eo(se,lt,ce),be,ne,u,ie.root,z==null?void 0:z.root,d,ye,Se,De),Me=c.useMemo(()=>b!==void 0?b:ve==="rtl"?"bottomRight":"bottomLeft",[b,ve]);if(process.env.NODE_ENV!=="production"){const qe=jt("Select");Object.entries({dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"}).forEach(([at,wt])=>{qe.deprecated(!(at in e),at,wt)}),process.env.NODE_ENV!=="production"&&qe(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),process.env.NODE_ENV!=="production"&&qe(!(typeof N<"u"&&!Te),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Be]=Jl("SelectLike",we==null?void 0:we.zIndex);return xe(c.createElement(Vd,Object.assign({ref:t,virtual:U,showSearch:Q},We,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),k==null?void 0:k.root),J),O),dropdownMatchSelectWidth:Oe,transitionName:Lu(fe,"slide-up",P),builtinPlacements:pM(x,Z),listHeight:h,listItemHeight:le,mode:$e,prefixCls:se,placement:Me,direction:ve,prefix:R,suffixIcon:je,menuItemSelectedIcon:Re,removeIcon:Ye,allowClear:Xe,notFoundContent:mt,className:Le,getPopupContainer:f||V,dropdownClassName:Ae,disabled:ft,dropdownStyle:Object.assign(Object.assign({},we),{zIndex:Be}),maxCount:Te?N:void 0,tagRender:Te?T:void 0,dropdownRender:me,onDropdownVisibleChange:Ee})))};process.env.NODE_ENV!=="production"&&(Jb.displayName="Select");const Ir=c.forwardRef(Jb),LM=Id(Ir,"dropdownAlign");Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=Qb,Ir.Option=Fd,Ir.OptGroup=Rd,Ir._InternalPanelDoNotUseOrYouWillBeFired=LM,process.env.NODE_ENV!=="production"&&(Ir.displayName="Select");const HM=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},kM=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Io=["xxl","xl","lg","md","sm","xs"],WM=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)`}),qM=e=>{const t=e,n=[].concat(Io).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o<n.length-1){const s=`screen${a}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},UM=()=>{const[,e]=Qn(),t=WM(qM(e));return D.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const l=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:u}))},s=window.matchMedia(i);HM(s,l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];kM(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function GM(){const[,e]=c.useReducer(t=>t+1,0);return e}function Cs(e=!0,t={}){const n=D.useRef(t),r=GM(),o=UM();return Pt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function Zb(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,l=e.style;return c.createElement("div",{className:re("".concat(n,"-content"),i),style:l},c.createElement("div",{className:re("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Sa={shiftX:64,adjustY:1},xa={adjustX:1,shiftY:!0},lr=[0,0],KM={left:{points:["cr","cl"],overflow:xa,offset:[-4,0],targetOffset:lr},right:{points:["cl","cr"],overflow:xa,offset:[4,0],targetOffset:lr},top:{points:["bc","tc"],overflow:Sa,offset:[0,-4],targetOffset:lr},bottom:{points:["tc","bc"],overflow:Sa,offset:[0,4],targetOffset:lr},topLeft:{points:["bl","tl"],overflow:Sa,offset:[0,-4],targetOffset:lr},leftTop:{points:["tr","tl"],overflow:xa,offset:[-4,0],targetOffset:lr},topRight:{points:["br","tr"],overflow:Sa,offset:[0,-4],targetOffset:lr},rightTop:{points:["tl","tr"],overflow:xa,offset:[4,0],targetOffset:lr},bottomRight:{points:["tr","br"],overflow:Sa,offset:[0,4],targetOffset:lr},rightBottom:{points:["bl","br"],overflow:xa,offset:[4,0],targetOffset:lr},bottomLeft:{points:["tl","bl"],overflow:Sa,offset:[0,4],targetOffset:lr},leftBottom:{points:["br","bl"],overflow:xa,offset:[-4,0],targetOffset:lr}},YM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],XM=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,s=t.mouseLeaveDelay,u=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,m=t.transitionName,p=t.animation,y=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,w=x===void 0?{}:x,E=t.destroyTooltipOnHide,$=E===void 0?!1:E,O=t.defaultVisible,I=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,P=t.id,T=t.showArrow,N=T===void 0?!0:T,R=t.classNames,F=t.styles,A=dt(t,YM),j=rd(P),H=D.useRef(null);D.useImperativeHandle(n,function(){return H.current});var k=G({},A);"visible"in t&&(k.popupVisible=t.visible);var z=function(){return c.createElement(Zb,{key:"content",prefixCls:v,id:j,bodyClassName:R==null?void 0:R.body,overlayInnerStyle:G(G({},_),F==null?void 0:F.body)},M)},B=function(){var L=c.Children.only(g),q=(L==null?void 0:L.props)||{},Y=G(G({},q),{},{"aria-describedby":M?j:null});return c.cloneElement(g,Y)};return c.createElement(gi,Ce({popupClassName:re(r,R==null?void 0:R.root),prefixCls:v,popup:z,action:a,builtinPlacements:KM,popupPlacement:S,ref:H,popupAlign:w,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:m,popupAnimation:p,popupMotion:y,defaultPopupVisible:O,autoDestroy:$,mouseLeaveDelay:u,popupStyle:G(G({},d),F==null?void 0:F.root),mouseEnterDelay:l,arrow:N},k),B())};const QM=D.forwardRef(XM);function e0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=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,v=d,g=2*o-l,h=s,b=2*o-a,m=i,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),C=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${v} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${m} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:C}}const t0=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,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,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${X(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},n0=8;function r0(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?n0:r}}function Ss(e,t){return e?t:{}}function JM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},t0(e,t,o)),{"&:before":{background:t}})]},Ss(!!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":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${X(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ss(!!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":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${X(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ss(!!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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Ss(!!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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function ZM(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const o0={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"]}},eT={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"]}},tT=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function nT(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,l={};return Object.keys(o0).forEach(s=>{const u=r&&eT[s]||o0[s],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[s]=d,tT.has(s)&&(d.autoArrow=!1),s){case"top":case"topLeft":case"topRight":d.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=i+o;break}const f=r0({contentRadius:a,limitVerticalRadius:!0});if(r)switch(s){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-i;break}d.overflow=ZM(s,f,t,n),d.htmlRegion="visibleFirst"}),l}const rT=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:v,sizePopupArrow:g}=e,h=t(i).add(g).add(v).equal(),b=t(i).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:b,minHeight:s,padding:`${X(e.calc(d).div(2).equal())} ${X(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,n0)}},[`${n}-content`]:{position:"relative"}}),Hl(e,(m,{darkColor:p})=>({[`&${n}-${m}`]:{[`${n}-inner`]:{backgroundColor:p},[`${n}-arrow`]:{"--antd-arrow-background-color":p}}}))),{"&-rtl":{direction:"rtl"}})},JM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},oT=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},r0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),e0(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),a0=(e,t=!0)=>Kt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=At(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[rT(l),TN(r,"zoom-big-fast")]},oT,{resetStyle:!1,injectStyle:t})(e),aT=ho.map(e=>`${e}-inverse`),iT=["success","processing","error","default","warning"];function xs(e,t=!0){return t?[].concat(Ne(aT),Ne(ho)).includes(e):ho.includes(e)}function lT(e){return iT.includes(e)}function i0(e,t){const n=xs(t),r=re({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const sT=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=c.useContext(bt),s=l("tooltip",t),[u,d,f]=a0(s),v=i0(s,a),g=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),b=re(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,v.className);return u(c.createElement("div",{className:b,style:g},c.createElement("div",{className:`${s}-arrow`}),c.createElement(Zb,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),o)))};var cT=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 Nr=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:l,overlayInnerStyle:s,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:v,destroyOnHidden:g,arrow:h=!0,title:b,overlay:m,builtinPlacements:p,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:w="top",mouseEnterDelay:E=.1,mouseLeaveDelay:$=.1,overlayStyle:O,rootClassName:I,overlayClassName:_,styles:M,classNames:P}=e,T=cT(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!h,[,R]=Qn(),{getPopupContainer:F,getPrefixCls:A,direction:j,className:H,style:k,classNames:z,styles:B}=Pn("tooltip"),V=jt("Tooltip"),L=c.useRef(null),q=()=>{var Pe;(Pe=L.current)===null||Pe===void 0||Pe.forceAlign()};c.useImperativeHandle(t,()=>{var Pe,Oe;return{forceAlign:q,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(Pe=L.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(Oe=L.current)===null||Oe===void 0?void 0:Oe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Pe,Oe])=>{V.deprecated(!(Pe in e),Pe,Oe)}),process.env.NODE_ENV!=="production"&&V(!v||typeof v=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&V(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[Y,U]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ee=!b&&!m&&b!==0,Z=Pe=>{var Oe,we;U(ee?!1:Pe),ee||((Oe=e.onOpenChange)===null||Oe===void 0||Oe.call(e,Pe),(we=e.onVisibleChange)===null||we===void 0||we.call(e,Pe))},Q=c.useMemo(()=>{var Pe,Oe;let we=y;return typeof h=="object"&&(we=(Oe=(Pe=h.pointAtCenter)!==null&&Pe!==void 0?Pe:h.arrowPointAtCenter)!==null&&Oe!==void 0?Oe:y),p||nT({arrowPointAtCenter:we,autoAdjustOverflow:C,arrowWidth:N?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS})},[y,h,p,R]),J=c.useMemo(()=>b===0?b:m||b||"",[m,b]),ae=c.createElement(xo,{space:!0},typeof J=="function"?J():J),ne=A("tooltip",o),ie=A(),te=e["data-popover-inject"];let le=Y;!("open"in e)&&!("visible"in e)&&ee&&(le=!1);const se=c.isValidElement(u)&&!Wp(u)?u:c.createElement("span",null,u),fe=se.props,ve=!fe.className||typeof fe.className=="string"?re(fe.className,a||`${ne}-open`):fe.className,[ge,be,de]=a0(ne,!te),pe=i0(ne,l),Se=pe.arrowStyle,xe=re(_,{[`${ne}-rtl`]:j==="rtl"},pe.className,I,be,de,H,z.root,P==null?void 0:P.root),De=re(z.body,P==null?void 0:P.body),[ye,$e]=Jl("Tooltip",T.zIndex),Te=c.createElement(QM,Object.assign({},T,{zIndex:ye,showArrow:N,placement:w,mouseEnterDelay:E,mouseLeaveDelay:$,prefixCls:ne,classNames:{root:xe,body:De},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Se),B.root),k),O),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),s),M==null?void 0:M.body),pe.overlayStyle)},getTooltipContainer:x||i||F,ref:L,builtinPlacements:Q,overlay:ae,visible:le,onVisibleChange:Z,afterVisibleChange:d??f,arrowContent:c.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:Lu(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!v}),le?gr(se,{className:ve}):se);return ge(c.createElement(Ru.Provider,{value:$e},Te))});process.env.NODE_ENV!=="production"&&(Nr.displayName="Tooltip"),Nr._InternalPanelDoNotUseOrYouWillBeFired=sT;const uT=new Lt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),dT=new Lt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),fT=new Lt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),vT=new Lt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),mT=new Lt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),gT=new Lt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pT=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:l,dotSize:s,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:v,calc:g}=e,h=`${r}-scroll-number`,b=Hl(e,(m,{darkColor:p})=>({[`&${t} ${t}-color-${m}`]:{background:p,[`&:not(${t}-count)`]:{color:p},"a:hover &":{background:p}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:X(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(d).div(2).equal(),boxShadow:`0 0 0 ${X(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:X(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${X(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${X(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:gT,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:uT,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dT,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:fT,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:vT,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:mT,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},l0=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorTextLightSolid,s=e.colorError,u=e.colorErrorHover;return At(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},s0=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},hT=Kt("Badge",e=>{const t=l0(e);return pT(t)},s0),bT=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Hl(e,(u,{darkColor:d})=>({[`&${i}-color-${u}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{position:"absolute",top:r,padding:`0 ${X(e.paddingXS)}`,color:e.colorPrimary,lineHeight:X(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${X(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},yT=Kt(["Badge","Ribbon"],e=>{const t=l0(e);return bT(t)},s0),c0=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:u,direction:d}=c.useContext(bt),f=u("ribbon",n),v=`${f}-wrapper`,[g,h,b]=yT(f,v),m=xs(o,!1),p=re(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:m},t),y={},C={};return o&&!m&&(y.background=o,C.color=o),g(c.createElement("div",{className:re(v,s,h,b)},a,c.createElement("div",{className:re(p,h),style:Object.assign(Object.assign({},y),r)},c.createElement("span",{className:`${f}-text`},i),c.createElement("div",{className:`${f}-corner`,style:C}))))};process.env.NODE_ENV!=="production"&&(c0.displayName="Ribbon");const u0=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:a,className:re(`${t}-only-unit`,{current:r})},n)};function CT(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const ST=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=c.useState(o),[s,u]=c.useState(a),d=()=>{l(o),u(a)};c.useEffect(()=>{const g=setTimeout(d,1e3);return()=>clearTimeout(g)},[o]);let f,v;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[c.createElement(u0,Object.assign({},e,{key:o,current:!0}))],v={transition:"none"};else{f=[];const g=o+10,h=[];for(let y=o;y<=g;y+=1)h.push(y);const b=s<a?1:-1,m=h.findIndex(y=>y%10===i);f=(b<0?h.slice(0,m+1):h.slice(m)).map((y,C)=>{const S=y%10;return c.createElement(u0,Object.assign({},e,{key:y,value:S,offset:b<0?C-m:C,current:C===m}))}),v={transform:`translateY(${-CT(i,o,b)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:d},f)};var xT=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 wT=c.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:u="sup",children:d}=e,f=xT(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:v}=c.useContext(bt),g=v("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":s,style:i,className:re(g,o,a),title:l});let b=r;if(r&&Number(r)%1===0){const m=String(r).split("");b=c.createElement("bdi",null,m.map((p,y)=>c.createElement(ST,{prefixCls:g,count:Number(r),value:p,key:m.length-y})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?gr(d,m=>({className:re(`${g}-custom-component`,m==null?void 0:m.className,a)})):c.createElement(u,Object.assign({},h,{ref:t}),b)});var ET=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 Wd=c.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:u,status:d,text:f,color:v,count:g=null,overflowCount:h=99,dot:b=!1,size:m="default",title:p,offset:y,style:C,className:S,rootClassName:x,classNames:w,styles:E,showZero:$=!1}=e,O=ET(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:I,direction:_,badge:M}=c.useContext(bt),P=I("badge",l),[T,N,R]=hT(P),F=g>h?`${h}+`:g,A=F==="0"||F===0,j=g===null||A&&!$,H=(d!=null||v!=null)&&j,k=b&&!A,z=k?"":F,B=D.useMemo(()=>(z==null||z===""||A&&!$)&&!k,[z,A,$,k]),V=D.useRef(g);B||(V.current=g);const L=V.current,q=D.useRef(z);B||(q.current=z);const Y=q.current,U=D.useRef(k);B||(U.current=k);const ee=D.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),C);const le={marginTop:y[1]};return _==="rtl"?le.left=parseInt(y[0],10):le.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},le),M==null?void 0:M.style),C)},[_,y,C,M==null?void 0:M.style]),Z=p??(typeof L=="string"||typeof L=="number"?L:void 0),Q=B||!f?null:c.createElement("span",{className:`${P}-status-text`},f),J=!L||typeof L!="object"?void 0:gr(L,le=>({style:Object.assign(Object.assign({},ee),le.style)})),ae=xs(v,!1),ne=re(w==null?void 0:w.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:H,[`${P}-status-${d}`]:!!d,[`${P}-color-${v}`]:ae}),ie={};v&&!ae&&(ie.color=v,ie.background=v);const te=re(P,{[`${P}-status`]:H,[`${P}-not-a-wrapper`]:!u,[`${P}-rtl`]:_==="rtl"},S,x,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,w==null?void 0:w.root,N,R);if(!u&&H){const le=ee.color;return T(c.createElement("span",Object.assign({},O,{className:te,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),ee)}),c.createElement("span",{className:ne,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),ie)}),f&&c.createElement("span",{style:{color:le},className:`${P}-status-text`},f)))}return T(c.createElement("span",Object.assign({ref:t},O,{className:te,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),E==null?void 0:E.root)}),u,c.createElement($r,{visible:!B,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:le})=>{var se,fe;const ve=I("scroll-number",s),ge=U.current,be=re(w==null?void 0:w.indicator,(se=M==null?void 0:M.classNames)===null||se===void 0?void 0:se.indicator,{[`${P}-dot`]:ge,[`${P}-count`]:!ge,[`${P}-count-sm`]:m==="small",[`${P}-multiple-words`]:!ge&&Y&&Y.toString().length>1,[`${P}-status-${d}`]:!!d,[`${P}-color-${v}`]:ae});let de=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(fe=M==null?void 0:M.styles)===null||fe===void 0?void 0:fe.indicator),ee);return v&&!ae&&(de=de||{},de.background=v),c.createElement(wT,{prefixCls:ve,show:!B,motionClassName:le,className:be,count:Y,title:Z,style:de,key:"scrollNumber"},J)}),Q))});Wd.Ribbon=c0,process.env.NODE_ENV!=="production"&&(Wd.displayName="Badge");var $T={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"},OT=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:$T}))},pi=c.forwardRef(OT);process.env.NODE_ENV!=="production"&&(pi.displayName="LeftOutlined");var IT=Fe.ESC,NT=Fe.TAB;function PT(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=c.useRef(!1),l=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},s=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case IT:l();break;case NT:{var v=!1;i.current||(v=s()),v?f.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&yt(s,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var _T=D.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=D.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=En(t,co(a));return D.createElement(D.Fragment,null,r&&D.createElement("div",{className:"".concat(o,"-arrow")}),D.cloneElement(a,{ref:qr(a)?i:void 0}))}),wa={adjustX:1,adjustY:1},Ea=[0,0],MT={topLeft:{points:["bl","tl"],overflow:wa,offset:[0,-4],targetOffset:Ea},top:{points:["bc","tc"],overflow:wa,offset:[0,-4],targetOffset:Ea},topRight:{points:["br","tr"],overflow:wa,offset:[0,-4],targetOffset:Ea},bottomLeft:{points:["tl","bl"],overflow:wa,offset:[0,4],targetOffset:Ea},bottom:{points:["tc","bc"],overflow:wa,offset:[0,4],targetOffset:Ea},bottomRight:{points:["tr","br"],overflow:wa,offset:[0,4],targetOffset:Ea}},TT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function DT(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,g=v===void 0?MT:v,h=e.getPopupContainer,b=e.showAction,m=e.hideAction,p=e.overlayClassName,y=e.overlayStyle,C=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,w=e.autoFocus,E=e.overlay,$=e.children,O=e.onVisibleChange,I=dt(e,TT),_=D.useState(),M=K(_,2),P=M[0],T=M[1],N="visible"in e?C:P,R=D.useRef(null),F=D.useRef(null),A=D.useRef(null);D.useImperativeHandle(t,function(){return R.current});var j=function(U){T(U),O==null||O(U)};PT({visible:N,triggerRef:A,onVisibleChange:j,autoFocus:w,overlayRef:F});var H=function(U){var ee=e.onOverlayClick;T(!1),ee&&ee(U)},k=function(){return D.createElement(_T,{ref:F,overlay:E,prefixCls:i,arrow:o})},z=function(){return typeof E=="function"?k:k()},B=function(){var U=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?U:!ee},V=function(){var U=e.openClassName;return U!==void 0?U:"".concat(i,"-open")},L=D.cloneElement($,{className:re((n=$.props)===null||n===void 0?void 0:n.className,N&&V()),ref:qr($)?En(A,co($)):void 0}),q=m;return!q&&x.indexOf("contextMenu")!==-1&&(q=["click"]),D.createElement(gi,Ce({builtinPlacements:g},I,{prefixCls:i,ref:R,popupClassName:re(p,W({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:b,hideAction:q,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:N,stretch:B()?"minWidth":"",popup:z(),onPopupVisibleChange:j,onPopupClick:H,getPopupContainer:h}),L)}const RT=D.forwardRef(DT);var d0=c.createContext(null);function f0(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function v0(e){var t=c.useContext(d0);return f0(t,e)}var FT=["children","locked"],hr=c.createContext(null);function AT(e,t){var n=G({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function hi(e){var t=e.children,n=e.locked,r=dt(e,FT),o=c.useContext(hr),a=Ra(function(){return AT(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!Xo(i[1],l[1],!0))});return c.createElement(hr.Provider,{value:a},t)}var jT=[],m0=c.createContext(null);function ws(){return c.useContext(m0)}var g0=c.createContext(jT);function bi(e){var t=c.useContext(g0);return c.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var p0=c.createContext(null),qd=c.createContext({});function h0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ni(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function zT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return h0(r,t)});return h0(e,t)&&n.unshift(e),n}var Ud=Fe.LEFT,Gd=Fe.RIGHT,Kd=Fe.UP,Es=Fe.DOWN,$s=Fe.ENTER,b0=Fe.ESC,yi=Fe.HOME,Ci=Fe.END,y0=[Kd,Es,Ud,Gd];function BT(e,t,n,r){var o,a="prev",i="next",l="children",s="parent";if(e==="inline"&&r===$s)return{inlineTrigger:!0};var u=W(W({},Kd,a),Es,i),d=W(W(W(W({},Ud,n?i:a),Gd,n?a:i),Es,l),$s,l),f=W(W(W(W(W(W({},Kd,a),Es,i),$s,l),b0,s),Ud,n?l:s),Gd,n?s:l),v={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(o=v["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function VT(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function LT(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Yd(e,t){var n=zT(e,!0);return n.filter(function(r){return t.has(r)})}function C0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Yd(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Xd=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(f0(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function HT(e,t,n,r,o,a,i,l,s,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){yt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(g){var h=g.which;if([].concat(y0,[$s,b0,yi,Ci]).includes(h)){var b=a(),m=Xd(b,r),p=m,y=p.elements,C=p.key2element,S=p.element2key,x=C.get(t),w=LT(x,y),E=S.get(w),$=BT(e,i(E,!0).length===1,n,h);if(!$&&h!==yi&&h!==Ci)return;(y0.includes(h)||[yi,Ci].includes(h))&&g.preventDefault();var O=function(F){if(F){var A=F,j=F.querySelector("a");j!=null&&j.getAttribute("href")&&(A=j);var H=S.get(F);l(H),v(),d.current=yt(function(){f.current===H&&A.focus()})}};if([yi,Ci].includes(h)||$.sibling||!w){var I;!w||e==="inline"?I=o.current:I=VT(w);var _,M=Yd(I,y);h===yi?_=M[0]:h===Ci?_=M[M.length-1]:_=C0(I,y,w,$.offset),O(_)}else if($.inlineTrigger)s(E);else if($.offset>0)s(E,!0),v(),d.current=yt(function(){m=Xd(b,r);var R=w.getAttribute("aria-controls"),F=document.getElementById(R),A=C0(F,m.elements);O(A)},5);else if($.offset<0){var P=i(E,!0),T=P[P.length-2],N=C.get(T);s(T,!1),O(N)}}u==null||u(g)}}function kT(e){Promise.resolve().then(e)}var Qd="__RC_UTIL_PATH_SPLIT__",S0=function(t){return t.join(Qd)},WT=function(t){return t.split(Qd)},Jd="rc-menu-more";function qT(){var e=c.useState({}),t=K(e,2),n=t[1],r=D.useRef(new Map),o=D.useRef(new Map),a=c.useState([]),i=K(a,2),l=i[0],s=i[1],u=D.useRef(0),d=D.useRef(!1),f=function(){d.current||n({})},v=D.useCallback(function(C,S){process.env.NODE_ENV!=="production"&&ut(!r.current.has(C),"Duplicated key '".concat(C,"' used in Menu by path [").concat(S.join(" > "),"]"));var x=S0(S);o.current.set(x,C),r.current.set(C,x),u.current+=1;var w=u.current;kT(function(){w===u.current&&f()})},[]),g=D.useCallback(function(C,S){var x=S0(S);o.current.delete(x),r.current.delete(C)},[]),h=D.useCallback(function(C){s(C)},[]),b=D.useCallback(function(C,S){var x=r.current.get(C)||"",w=WT(x);return S&&l.includes(w[0])&&w.unshift(Jd),w},[l]),m=D.useCallback(function(C,S){return C.filter(function(x){return x!==void 0}).some(function(x){var w=b(x,!0);return w.includes(S)})},[b]),p=function(){var S=Ne(r.current.keys());return l.length&&S.push(Jd),S},y=D.useCallback(function(C){var S="".concat(r.current.get(C)).concat(Qd),x=new Set;return Ne(o.current.keys()).forEach(function(w){w.startsWith(S)&&x.add(o.current.get(w))}),x},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:m,getKeyPath:b,getKeys:p,getSubPathKeys:y}}function Si(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var UT=Math.random().toFixed(5).toString().slice(2),x0=0;function GT(e){var t=qt(e,{value:e}),n=K(t,2),r=n[0],o=n[1];return c.useEffect(function(){x0+=1;var a=process.env.NODE_ENV==="test"?"test":"".concat(UT,"-").concat(x0);o("rc-menu-uuid-".concat(a))},[]),r}function w0(e,t,n,r){var o=c.useContext(hr),a=o.activeKey,i=o.onActive,l=o.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},s.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),s}function E0(e){var t=c.useContext(hr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function $0(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,G({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var KT=["item"];function Os(e){var t=e.item,n=dt(e,KT);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 YT=["title","attribute","elementRef"],XT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],QT=["active"],JT=function(e){wr(n,e);var t=Tr(n);function n(){return on(this,n),t.apply(this,arguments)}return an(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,s=dt(o,YT),u=gn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ut(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(pr.Item,Ce({},i,{title:typeof a=="string"?a:void 0},u,{ref:l}))}}]),n}(c.Component),ZT=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,a=e.warnKey,i=e.disabled,l=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,v=e.onClick,g=e.onKeyDown,h=e.onFocus,b=dt(e,XT),m=v0(o),p=c.useContext(hr),y=p.prefixCls,C=p.onItemClick,S=p.disabled,x=p.overflowDisabled,w=p.itemIcon,E=p.selectedKeys,$=p.onActive,O=c.useContext(qd),I=O._internalRenderMenuItem,_="".concat(y,"-item"),M=c.useRef(),P=c.useRef(),T=S||i,N=so(t,P),R=bi(o);process.env.NODE_ENV!=="production"&&a&&ut(!1,"MenuItem should not leave undefined `key`.");var F=function(Z){return{key:o,keyPath:Ne(R).reverse(),item:M.current,domEvent:Z}},A=l||w,j=w0(o,T,d,f),H=j.active,k=dt(j,QT),z=E.includes(o),B=E0(R.length),V=function(Z){if(!T){var Q=F(Z);v==null||v(Os(Q)),C(Q)}},L=function(Z){if(g==null||g(Z),Z.which===Fe.ENTER){var Q=F(Z);v==null||v(Os(Q)),C(Q)}},q=function(Z){$(o),h==null||h(Z)},Y={};e.role==="option"&&(Y["aria-selected"]=z);var U=c.createElement(JT,Ce({ref:M,elementRef:N,role:u===null?"none":u||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&m?null:m},gn(b,["extra"]),k,Y,{component:"li","aria-disabled":i,style:G(G({},B),n),className:re(_,W(W(W({},"".concat(_,"-active"),H),"".concat(_,"-selected"),z),"".concat(_,"-disabled"),T),r),onClick:V,onKeyDown:L,onFocus:q}),s,c.createElement($0,{props:G(G({},e),{},{isSelected:z}),icon:A}));return I&&(U=I(U,e,{selected:z})),U});function eD(e,t){var n=e.eventKey,r=ws(),o=bi(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(ZT,Ce({},e,{ref:t}))}const Is=c.forwardRef(eD);var tD=["className","children"],nD=function(t,n){var r=t.className,o=t.children,a=dt(t,tD),i=c.useContext(hr),l=i.prefixCls,s=i.mode,u=i.rtl;return c.createElement("ul",Ce({className:re(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Zd=c.forwardRef(nD);Zd.displayName="SubMenuList";function ef(e,t){return kn(e).map(function(n,r){if(c.isValidElement(n)){var o,a,i=n.key,l=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,s=l==null;s&&(l="tmp_key-".concat([].concat(Ne(t),[r]).join("-")));var u={key:l,eventKey:l};return process.env.NODE_ENV!=="production"&&s&&(u.warnKey=!0),c.cloneElement(n,u)}return n})}var Fn={adjustX:1,adjustY:1},rD={topLeft:{points:["bl","tl"],overflow:Fn},topRight:{points:["br","tr"],overflow:Fn},bottomLeft:{points:["tl","bl"],overflow:Fn},bottomRight:{points:["tr","br"],overflow:Fn},leftTop:{points:["tr","tl"],overflow:Fn},leftBottom:{points:["br","bl"],overflow:Fn},rightTop:{points:["tl","tr"],overflow:Fn},rightBottom:{points:["bl","br"],overflow:Fn}},oD={topLeft:{points:["bl","tl"],overflow:Fn},topRight:{points:["br","tr"],overflow:Fn},bottomLeft:{points:["tl","bl"],overflow:Fn},bottomRight:{points:["tr","br"],overflow:Fn},rightTop:{points:["tr","tl"],overflow:Fn},rightBottom:{points:["br","bl"],overflow:Fn},leftTop:{points:["tl","tr"],overflow:Fn},leftBottom:{points:["bl","br"],overflow:Fn}};function O0(e,t,n){if(t)return t;if(n)return n[e]||n.other}var aD={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function iD(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(hr),v=f.getPopupContainer,g=f.rtl,h=f.subMenuOpenDelay,b=f.subMenuCloseDelay,m=f.builtinPlacements,p=f.triggerSubMenuAction,y=f.forceSubMenuRender,C=f.rootClassName,S=f.motion,x=f.defaultMotions,w=c.useState(!1),E=K(w,2),$=E[0],O=E[1],I=G(g?G({},oD):G({},rD),m),_=aD[u],M=O0(u,S,x),P=c.useRef(M);u!=="inline"&&(P.current=M);var T=G(G({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=c.useRef();return c.useEffect(function(){return N.current=yt(function(){O(n)}),function(){yt.cancel(N.current)}},[n]),c.createElement(gi,{prefixCls:t,popupClassName:re("".concat(t,"-popup"),W({},"".concat(t,"-rtl"),g),i,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:_,popupVisible:$,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:y,popupMotion:T,fresh:!0},r)}function lD(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=c.useContext(hr),l=i.prefixCls,s=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===a;var g=c.useState(!v.current),h=K(g,2),b=h[0],m=h[1],p=v.current?n:!1;c.useEffect(function(){v.current&&m(!1)},[f]);var y=G({},O0(a,u,d));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!v.current&&!S&&m(!0),C==null?void 0:C(S)},b?null:c.createElement(hi,{mode:a,locked:!v.current},c.createElement($r,Ce({visible:p},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var x=S.className,w=S.style;return c.createElement(Zd,{id:t,className:x,style:w},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=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey,i=e.warnKey,l=e.disabled,s=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,v=e.popupClassName,g=e.popupOffset,h=e.popupStyle,b=e.onClick,m=e.onMouseEnter,p=e.onMouseLeave,y=e.onTitleClick,C=e.onTitleMouseEnter,S=e.onTitleMouseLeave,x=dt(e,sD),w=v0(a),E=c.useContext(hr),$=E.prefixCls,O=E.mode,I=E.openKeys,_=E.disabled,M=E.overflowDisabled,P=E.activeKey,T=E.selectedKeys,N=E.itemIcon,R=E.expandIcon,F=E.onItemClick,A=E.onOpenChange,j=E.onActive,H=c.useContext(qd),k=H._internalRenderSubMenuItem,z=c.useContext(p0),B=z.isSubPathKey,V=bi(),L="".concat($,"-submenu"),q=_||l,Y=c.useRef(),U=c.useRef();process.env.NODE_ENV!=="production"&&i&&ut(!1,"SubMenu should not leave undefined `key`.");var ee=d??N,Z=f??R,Q=I.includes(a),J=!M&&Q,ae=B(T,a),ne=w0(a,q,C,S),ie=ne.active,te=dt(ne,cD),le=c.useState(!1),se=K(le,2),fe=se[0],ve=se[1],ge=function(ce){q||ve(ce)},be=function(ce){ge(!0),m==null||m({key:a,domEvent:ce})},de=function(ce){ge(!1),p==null||p({key:a,domEvent:ce})},pe=c.useMemo(function(){return ie||(O!=="inline"?fe||B([P],a):!1)},[O,ie,P,fe,a,B]),Se=E0(V.length),xe=function(ce){q||(y==null||y({key:a,domEvent:ce}),O==="inline"&&A(a,!Q))},De=Si(function(ue){b==null||b(Os(ue)),F(ue)}),ye=function(ce){O!=="inline"&&A(a,ce)},$e=function(){j(a)},Te=w&&"".concat(w,"-popup"),Pe=c.useMemo(function(){return c.createElement($0,{icon:O!=="horizontal"?Z:void 0,props:G(G({},e),{},{isOpen:J,isSubMenu:!0})},c.createElement("i",{className:"".concat(L,"-arrow")}))},[O,Z,e,J,L]),Oe=c.createElement("div",Ce({role:"menuitem",style:Se,className:"".concat(L,"-title"),tabIndex:q?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":M&&w?null:w,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":Te,"aria-disabled":q,onClick:xe,onFocus:$e},te),o,Pe),we=c.useRef(O);if(O!=="inline"&&V.length>1?we.current="vertical":we.current=O,!M){var me=we.current;Oe=c.createElement(iD,{mode:me,prefixCls:L,visible:!s&&J&&O!=="inline",popupClassName:v,popupOffset:g,popupStyle:h,popup:c.createElement(hi,{mode:me==="horizontal"?"vertical":me},c.createElement(Zd,{id:Te,ref:U},u)),disabled:q,onVisibleChange:ye},Oe)}var Ee=c.createElement(pr.Item,Ce({ref:t,role:"none"},x,{component:"li",style:n,className:re(L,"".concat(L,"-").concat(O),r,W(W(W(W({},"".concat(L,"-open"),J),"".concat(L,"-active"),pe),"".concat(L,"-selected"),ae),"".concat(L,"-disabled"),q)),onMouseEnter:be,onMouseLeave:de}),Oe,!M&&c.createElement(lD,{id:Te,open:J,keyPath:V},u));return k&&(Ee=k(Ee,e,{selected:ae,active:pe,open:J,disabled:q})),c.createElement(hi,{onItemClick:De,mode:O==="horizontal"?"vertical":O,itemIcon:ee,expandIcon:Z},Ee)}),Ns=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=bi(n),a=ef(r,o),i=ws();c.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var l;return i?l=a:l=c.createElement(uD,Ce({ref:t},e),a),c.createElement(g0.Provider,{value:o},l)});process.env.NODE_ENV!=="production"&&(Ns.displayName="SubMenu");function I0(e){var t=e.className,n=e.style,r=c.useContext(hr),o=r.prefixCls,a=ws();return a?null:c.createElement("li",{role:"separator",className:re("".concat(o,"-item-divider"),t),style:n})}var dD=["className","title","eventKey","children"],fD=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=dt(e,dD),i=c.useContext(hr),l=i.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",Ce({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:re(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))}),tf=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=bi(n),a=ef(r,o),i=ws();return i?a:c.createElement(fD,Ce({ref:t},gn(e,["warnKey"])),a)});process.env.NODE_ENV!=="production"&&(tf.displayName="MenuItemGroup");var vD=["label","children","key","type","extra"];function nf(e,t,n){var r=t.item,o=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(l,s){if(l&&tt(l)==="object"){var u=l,d=u.label,f=u.children,v=u.key,g=u.type,h=u.extra,b=dt(u,vD),m=v??"tmp-".concat(s);return f||g==="group"?g==="group"?c.createElement(o,Ce({key:m},b,{title:d}),nf(f,t,n)):c.createElement(a,Ce({key:m},b,{title:d}),nf(f,t,n)):g==="divider"?c.createElement(i,Ce({key:m},b)):c.createElement(r,Ce({key:m},b,{extra:h}),d,(!!h||h===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(l){return l})}function N0(e,t,n,r,o){var a=e,i=G({divider:I0,item:Is,group:tf,submenu:Ns},r);return t&&(a=nf(t,i,o)),ef(a,n)}var mD=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],No=[],gD=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,l=r.style,s=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,v=r.children,g=r.direction,h=r.id,b=r.mode,m=b===void 0?"vertical":b,p=r.inlineCollapsed,y=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,x=S===void 0?.1:S,w=r.subMenuCloseDelay,E=w===void 0?.1:w,$=r.forceSubMenuRender,O=r.defaultOpenKeys,I=r.openKeys,_=r.activeKey,M=r.defaultActiveFirst,P=r.selectable,T=P===void 0?!0:P,N=r.multiple,R=N===void 0?!1:N,F=r.defaultSelectedKeys,A=r.selectedKeys,j=r.onSelect,H=r.onDeselect,k=r.inlineIndent,z=k===void 0?24:k,B=r.motion,V=r.defaultMotions,L=r.triggerSubMenuAction,q=L===void 0?"hover":L,Y=r.builtinPlacements,U=r.itemIcon,ee=r.expandIcon,Z=r.overflowedIndicator,Q=Z===void 0?"...":Z,J=r.overflowedIndicatorPopupClassName,ae=r.getPopupContainer,ne=r.onClick,ie=r.onOpenChange,te=r.onKeyDown,le=r.openAnimation,se=r.openTransitionName,fe=r._internalRenderMenuItem,ve=r._internalRenderSubMenuItem,ge=r._internalComponents,be=dt(r,mD),de=c.useMemo(function(){return[N0(v,f,No,ge,a),N0(v,f,No,{},a)]},[v,f,ge]),pe=K(de,2),Se=pe[0],xe=pe[1],De=c.useState(!1),ye=K(De,2),$e=ye[0],Te=ye[1],Pe=c.useRef(),Oe=GT(h),we=g==="rtl";process.env.NODE_ENV!=="production"&&ut(!le&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var me=qt(O,{value:I,postState:function(Ct){return Ct||No}}),Ee=K(me,2),ue=Ee[0],ce=Ee[1],Ie=function(Ct){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ge(){ce(Ct),ie==null||ie(Ct)}Ue?_r.flushSync(Ge):Ge()},rt=c.useState(ue),lt=K(rt,2),mt=lt[0],je=lt[1],Re=c.useRef(!1),Ye=c.useMemo(function(){return(m==="inline"||m==="vertical")&&p?["vertical",p]:[m,!1]},[m,p]),ke=K(Ye,2),Xe=ke[0],We=ke[1],Ae=Xe==="inline",ze=c.useState(Xe),vt=K(ze,2),ft=vt[0],Le=vt[1],Me=c.useState(We),Be=K(Me,2),qe=Be[0],Ke=Be[1];c.useEffect(function(){Le(Xe),Ke(We),Re.current&&(Ae?ce(mt):Ie(No))},[Xe,We]);var at=c.useState(0),wt=K(at,2),Et=wt[0],zt=wt[1],$t=Et>=Se.length-1||ft!=="horizontal"||C;c.useEffect(function(){Ae&&je(ue)},[ue]),c.useEffect(function(){return Re.current=!0,function(){Re.current=!1}},[]);var ht=qT(),_t=ht.registerPath,Dt=ht.unregisterPath,Zt=ht.refreshOverflowKeys,Vt=ht.isSubPathKey,Rt=ht.getKeyPath,Ve=ht.getKeys,Qe=ht.getSubPathKeys,_e=c.useMemo(function(){return{registerPath:_t,unregisterPath:Dt}},[_t,Dt]),he=c.useMemo(function(){return{isSubPathKey:Vt}},[Vt]);c.useEffect(function(){Zt($t?No:Se.slice(Et+1).map(function(nt){return nt.key}))},[Et,$t]);var He=qt(_||M&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:_}),ot=K(He,2),ct=ot[0],It=ot[1],Ht=Si(function(nt){It(nt)}),Ft=Si(function(){It(void 0)});D.useImperativeHandle(t,function(){return{list:Pe.current,focus:function(Ct){var Ue,Ge=Ve(),xt=Xd(Ge,Oe),en=xt.elements,fn=xt.key2element,Vn=xt.element2key,Un=Yd(Pe.current,en),Ln=ct??(Un[0]?Vn.get(Un[0]):(Ue=Se.find(function(pt){return!pt.props.disabled}))===null||Ue===void 0?void 0:Ue.key),In=fn.get(Ln);if(Ln&&In){var gt;In==null||(gt=In.focus)===null||gt===void 0||gt.call(In,Ct)}}}});var Je=qt(F||[],{value:A,postState:function(Ct){return Array.isArray(Ct)?Ct:Ct==null?No:[Ct]}}),it=K(Je,2),Nt=it[0],Gt=it[1],Xt=function(Ct){if(T){var Ue=Ct.key,Ge=Nt.includes(Ue),xt;R?Ge?xt=Nt.filter(function(fn){return fn!==Ue}):xt=[].concat(Ne(Nt),[Ue]):xt=[Ue],Gt(xt);var en=G(G({},Ct),{},{selectedKeys:xt});Ge?H==null||H(en):j==null||j(en)}!R&&ue.length&&ft!=="inline"&&Ie(No)},cn=Si(function(nt){ne==null||ne(Os(nt)),Xt(nt)}),qn=Si(function(nt,Ct){var Ue=ue.filter(function(xt){return xt!==nt});if(Ct)Ue.push(nt);else if(ft!=="inline"){var Ge=Qe(nt);Ue=Ue.filter(function(xt){return!Ge.has(xt)})}Xo(ue,Ue,!0)||Ie(Ue,!0)}),Kn=function(Ct,Ue){var Ge=Ue??!ue.includes(Ct);qn(Ct,Ge)},On=HT(ft,ct,we,Oe,Pe,Ve,Rt,It,Kn,te);c.useEffect(function(){Te(!0)},[]);var ur=c.useMemo(function(){return{_internalRenderMenuItem:fe,_internalRenderSubMenuItem:ve}},[fe,ve]),Yn=ft!=="horizontal"||C?Se:Se.map(function(nt,Ct){return c.createElement(hi,{key:nt.key,overflowDisabled:Ct>Et},nt)}),Mt=c.createElement(pr,Ce({id:h,ref:Pe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Is,className:re(a,"".concat(a,"-root"),"".concat(a,"-").concat(ft),s,W(W({},"".concat(a,"-inline-collapsed"),qe),"".concat(a,"-rtl"),we),i),dir:g,style:l,role:"menu",tabIndex:d,data:Yn,renderRawItem:function(Ct){return Ct},renderRawRest:function(Ct){var Ue=Ct.length,Ge=Ue?Se.slice(-Ue):null;return c.createElement(Ns,{eventKey:Jd,title:Q,disabled:$t,internalPopupClose:Ue===0,popupClassName:J},Ge)},maxCount:ft!=="horizontal"||C?pr.INVALIDATE:pr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ct){zt(Ct)},onKeyDown:On},be));return c.createElement(qd.Provider,{value:ur},c.createElement(d0.Provider,{value:Oe},c.createElement(hi,{prefixCls:a,rootClassName:i,mode:ft,openKeys:ue,rtl:we,disabled:y,motion:$e?B:null,defaultMotions:$e?V:null,activeKey:ct,onActive:Ht,onInactive:Ft,selectedKeys:Nt,inlineIndent:z,subMenuOpenDelay:x,subMenuCloseDelay:E,forceSubMenuRender:$,builtinPlacements:Y,triggerSubMenuAction:q,getPopupContainer:ae,itemIcon:U,expandIcon:ee,onItemClick:cn,onOpenChange:qn},c.createElement(p0.Provider,{value:he},Mt),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(m0.Provider,{value:_e},xe)))))}),xi=gD;xi.Item=Is,xi.SubMenu=Ns,xi.ItemGroup=tf,xi.Divider=I0;var pD={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"},hD=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:pD}))},P0=c.forwardRef(hD);process.env.NODE_ENV!=="production"&&(P0.displayName="EllipsisOutlined");var _0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",u="day",d="week",f="month",v="quarter",g="year",h="date",b="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var N=["th","st","nd","rd"],R=T%100;return"["+T+(N[(R-20)%10]||N[R]||N[0])+"]"}},C=function(T,N,R){var F=String(T);return!F||F.length>=N?T:""+Array(N+1-F.length).join(R)+T},S={s:C,z:function(T){var N=-T.utcOffset(),R=Math.abs(N),F=Math.floor(R/60),A=R%60;return(N<=0?"+":"-")+C(F,2,"0")+":"+C(A,2,"0")},m:function T(N,R){if(N.date()<R.date())return-T(R,N);var F=12*(R.year()-N.year())+(R.month()-N.month()),A=N.clone().add(F,f),j=R-A<0,H=N.clone().add(F+(j?-1:1),f);return+(-(F+(R-A)/(j?A-H:H-A))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:f,y:g,w:d,d:u,D:h,h:s,m:l,s:i,ms:a,Q:v}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},x="en",w={};w[x]=y;var E="$isDayjsObject",$=function(T){return T instanceof M||!(!T||!T[E])},O=function T(N,R,F){var A;if(!N)return x;if(typeof N=="string"){var j=N.toLowerCase();w[j]&&(A=j),R&&(w[j]=R,A=j);var H=N.split("-");if(!A&&H.length>1)return T(H[0])}else{var k=N.name;w[k]=N,A=k}return!F&&A&&(x=A),A||!F&&x},I=function(T,N){if($(T))return T.clone();var R=typeof N=="object"?N:{};return R.date=T,R.args=arguments,new M(R)},_=S;_.l=O,_.i=$,_.w=function(T,N){return I(T,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var M=function(){function T(R){this.$L=O(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[E]=!0}var N=T.prototype;return N.parse=function(R){this.$d=function(F){var A=F.date,j=F.utc;if(A===null)return new Date(NaN);if(_.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var H=A.match(m);if(H){var k=H[2]-1||0,z=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],k,H[3]||1,H[4]||0,H[5]||0,H[6]||0,z)):new Date(H[1],k,H[3]||1,H[4]||0,H[5]||0,H[6]||0,z)}}return new Date(A)}(R),this.init()},N.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},N.$utils=function(){return _},N.isValid=function(){return this.$d.toString()!==b},N.isSame=function(R,F){var A=I(R);return this.startOf(F)<=A&&A<=this.endOf(F)},N.isAfter=function(R,F){return I(R)<this.startOf(F)},N.isBefore=function(R,F){return this.endOf(F)<I(R)},N.$g=function(R,F,A){return _.u(R)?this[F]:this.set(A,R)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(R,F){var A=this,j=!!_.u(F)||F,H=_.p(R),k=function(ee,Z){var Q=_.w(A.$u?Date.UTC(A.$y,Z,ee):new Date(A.$y,Z,ee),A);return j?Q:Q.endOf(u)},z=function(ee,Z){return _.w(A.toDate()[ee].apply(A.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Z)),A)},B=this.$W,V=this.$M,L=this.$D,q="set"+(this.$u?"UTC":"");switch(H){case g:return j?k(1,0):k(31,11);case f:return j?k(1,V):k(0,V+1);case d:var Y=this.$locale().weekStart||0,U=(B<Y?B+7:B)-Y;return k(j?L-U:L+(6-U),V);case u:case h:return z(q+"Hours",0);case s:return z(q+"Minutes",1);case l:return z(q+"Seconds",2);case i:return z(q+"Milliseconds",3);default:return this.clone()}},N.endOf=function(R){return this.startOf(R,!1)},N.$set=function(R,F){var A,j=_.p(R),H="set"+(this.$u?"UTC":""),k=(A={},A[u]=H+"Date",A[h]=H+"Date",A[f]=H+"Month",A[g]=H+"FullYear",A[s]=H+"Hours",A[l]=H+"Minutes",A[i]=H+"Seconds",A[a]=H+"Milliseconds",A)[j],z=j===u?this.$D+(F-this.$W):F;if(j===f||j===g){var B=this.clone().set(h,1);B.$d[k](z),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else k&&this.$d[k](z);return this.init(),this},N.set=function(R,F){return this.clone().$set(R,F)},N.get=function(R){return this[_.p(R)]()},N.add=function(R,F){var A,j=this;R=Number(R);var H=_.p(F),k=function(V){var L=I(j);return _.w(L.date(L.date()+Math.round(V*R)),j)};if(H===f)return this.set(f,this.$M+R);if(H===g)return this.set(g,this.$y+R);if(H===u)return k(1);if(H===d)return k(7);var z=(A={},A[l]=r,A[s]=o,A[i]=n,A)[H]||1,B=this.$d.getTime()+R*z;return _.w(B,this)},N.subtract=function(R,F){return this.add(-1*R,F)},N.format=function(R){var F=this,A=this.$locale();if(!this.isValid())return A.invalidDate||b;var j=R||"YYYY-MM-DDTHH:mm:ssZ",H=_.z(this),k=this.$H,z=this.$m,B=this.$M,V=A.weekdays,L=A.months,q=A.meridiem,Y=function(Z,Q,J,ae){return Z&&(Z[Q]||Z(F,j))||J[Q].slice(0,ae)},U=function(Z){return _.s(k%12||12,Z,"0")},ee=q||function(Z,Q,J){var ae=Z<12?"AM":"PM";return J?ae.toLowerCase():ae};return j.replace(p,function(Z,Q){return Q||function(J){switch(J){case"YY":return String(F.$y).slice(-2);case"YYYY":return _.s(F.$y,4,"0");case"M":return B+1;case"MM":return _.s(B+1,2,"0");case"MMM":return Y(A.monthsShort,B,L,3);case"MMMM":return Y(L,B);case"D":return F.$D;case"DD":return _.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Y(A.weekdaysMin,F.$W,V,2);case"ddd":return Y(A.weekdaysShort,F.$W,V,3);case"dddd":return V[F.$W];case"H":return String(k);case"HH":return _.s(k,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return ee(k,z,!0);case"A":return ee(k,z,!1);case"m":return String(z);case"mm":return _.s(z,2,"0");case"s":return String(F.$s);case"ss":return _.s(F.$s,2,"0");case"SSS":return _.s(F.$ms,3,"0");case"Z":return H}return null}(Z)||H.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(R,F,A){var j,H=this,k=_.p(F),z=I(R),B=(z.utcOffset()-this.utcOffset())*r,V=this-z,L=function(){return _.m(H,z)};switch(k){case g:j=L()/12;break;case f:j=L();break;case v:j=L()/3;break;case d:j=(V-B)/6048e5;break;case u:j=(V-B)/864e5;break;case s:j=V/o;break;case l:j=V/r;break;case i:j=V/n;break;default:j=V}return A?j:_.a(j)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return w[this.$L]},N.locale=function(R,F){if(!R)return this.$L;var A=this.clone(),j=O(R,F,!0);return j&&(A.$L=j),A},N.clone=function(){return _.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},T}(),P=M.prototype;return I.prototype=P,[["$ms",a],["$s",i],["$m",l],["$H",s],["$W",u],["$M",f],["$y",g],["$D",h]].forEach(function(T){P[T[1]]=function(N){return this.$g(N,T[0],T[1])}}),I.extend=function(T,N){return T.$i||(T(N,M,I),T.$i=!0),I},I.locale=O,I.isDayjs=$,I.unix=function(T){return I(1e3*T)},I.en=w[x],I.Ls=w,I.p={},I})})(_0);var bD=_0.exports;const Mn=Hn(bD);var M0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,l=(i<a?i+7:i)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}})})(M0);var yD=M0.exports;const CD=Hn(yD);var T0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,v,g,h,b){var m=f.name?f:f.$locale(),p=i(m[v]),y=i(m[g]),C=p||y.map(function(x){return x.slice(0,h)});if(!b)return C;var S=m.weekStart;return C.map(function(x,w){return C[(w+(S||0))%7]})},s=function(){return o.Ls[o.locale()]},u=function(f,v){return f.formats[v]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,b,m){return b||m.slice(1)})}(f.formats[v.toUpperCase()])},d=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):l(f,"months")},monthsShort:function(v){return v?v.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):l(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return u(f.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(v){return u(f,v)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(s(),"months")},o.monthsShort=function(){return l(s(),"monthsShort","months",3)},o.weekdays=function(f){return l(s(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(s(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(s(),"weekdaysMin","weekdays",2,f)}}})})(T0);var SD=T0.exports;const xD=Hn(SD);var D0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){var n="week",r="year";return function(o,a,i){var l=a.prototype;l.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var v=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(v,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(D0);var wD=D0.exports;const ED=Hn(wD);var R0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(R0);var $D=R0.exports;const OD=Hn($D);var F0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(F0);var ID=F0.exports;const ND=Hn(ID);var A0={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,s={},u=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(p){this[m]=+p}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var y=p.match(/([+-]|\d\d)/g),C=60*y[1]+(+y[2]||0);return C===0?0:y[0]==="+"?-C:C}(m)}],v=function(m){var p=s[m];return p&&(p.indexOf?p:p.s.concat(p.f))},g=function(m,p){var y,C=s.meridiem;if(C){for(var S=1;S<=24;S+=1)if(m.indexOf(C(S,0,p))>-1){y=S>12;break}}else y=m===(p?"pm":"PM");return y},h={A:[l,function(m){this.afternoon=g(m,!1)}],a:[l,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[l,function(m){var p=s.ordinal,y=m.match(/\d+/);if(this.day=y[0],p)for(var C=1;C<=31;C+=1)p(C).replace(/\[|\]/g,"")===m&&(this.day=C)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[l,function(m){var p=v("months"),y=(v("monthsShort")||p.map(function(C){return C.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[l,function(m){var p=v("months").indexOf(m)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(m){this.year=u(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(m){var p,y;p=m,y=s&&s.formats;for(var C=(m=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,_,M){var P=M&&M.toUpperCase();return _||y[M]||n[M]||y[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,N,R){return N||R.slice(1)})})).match(r),S=C.length,x=0;x<S;x+=1){var w=C[x],E=h[w],$=E&&E[0],O=E&&E[1];C[x]=O?{regex:$,parser:O}:w.replace(/^\[|\]$/g,"")}return function(I){for(var _={},M=0,P=0;M<S;M+=1){var T=C[M];if(typeof T=="string")P+=T.length;else{var N=T.regex,R=T.parser,F=I.slice(P),A=N.exec(F)[0];R.call(_,A),I=I.replace(A,"")}}return function(j){var H=j.afternoon;if(H!==void 0){var k=j.hours;H?k<12&&(j.hours+=12):k===12&&(j.hours=0),delete j.afternoon}}(_),_}}return function(m,p,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var C=p.prototype,S=C.parse;C.parse=function(x){var w=x.date,E=x.utc,$=x.args;this.$u=E;var O=$[1];if(typeof O=="string"){var I=$[2]===!0,_=$[3]===!0,M=I||_,P=$[2];_&&(P=$[2]),s=this.$locale(),!I&&P&&(s=y.Ls[P]),this.$d=function(F,A,j,H){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*F);var k=b(A)(F),z=k.year,B=k.month,V=k.day,L=k.hours,q=k.minutes,Y=k.seconds,U=k.milliseconds,ee=k.zone,Z=k.week,Q=new Date,J=V||(z||B?1:Q.getDate()),ae=z||Q.getFullYear(),ne=0;z&&!B||(ne=B>0?B-1:Q.getMonth());var ie,te=L||0,le=q||0,se=Y||0,fe=U||0;return ee?new Date(Date.UTC(ae,ne,J,te,le,se,fe+60*ee.offset*1e3)):j?new Date(Date.UTC(ae,ne,J,te,le,se,fe)):(ie=new Date(ae,ne,J,te,le,se,fe),Z&&(ie=H(ie).week(Z).toDate()),ie)}catch{return new Date("")}}(w,O,E,y),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),M&&w!=this.format(O)&&(this.$d=new Date("")),s={}}else if(O instanceof Array)for(var T=O.length,N=1;N<=T;N+=1){$[1]=O[N-1];var R=y.apply(this,$);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}N===T&&(this.$d=new Date(""))}else S.call(this,x)}}})})(A0);var PD=A0.exports;const _D=Hn(PD);Mn.extend(_D),Mn.extend(ND),Mn.extend(CD),Mn.extend(xD),Mn.extend(ED),Mn.extend(OD),Mn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var MD={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Po=function(t){var n=MD[t];return n||t.split("_")[0]},TD={getNow:function(){var t=Mn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Mn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Mn().locale(Po(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Po(t)).weekday(0)},getWeek:function(t,n){return n.locale(Po(t)).week()},getShortWeekDays:function(t){return Mn().locale(Po(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Mn().locale(Po(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Po(t)).format(r)},parse:function(t,n,r){for(var o=Po(t),a=0;a<r.length;a+=1){var i=r[a],l=n;if(i.includes("wo")||i.includes("Wo")){for(var s=l.split("-")[0],u=l.split("-")[1],d=Mn(s,"YYYY").startOf("year").locale(o),f=0;f<=52;f+=1){var v=d.add(f,"week");if(v.format("Wo")===u)return v}return null}var g=Mn(l,i,!0).locale(o);if(g.isValid())return g}return null}}};function DD(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var br=c.createContext(null),RD={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function j0(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,l=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?RD:d,v=e.direction,g=e.visible,h=e.onClose,b=c.useContext(br),m=b.prefixCls,p="".concat(m,"-dropdown"),y=DD(u,v==="rtl");return c.createElement(gi,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:p,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:g,popupClassName:re(r,W(W({},"".concat(p,"-range"),s),"".concat(p,"-rtl"),v==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(S){S||h()}},l)}function rf(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function _o(e){return e==null?[]:Array.isArray(e)?e:[e]}function wi(e,t,n){var r=Ne(e);return r[t]=n,r}function Ps(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function z0(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function B0(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function V0(e){return Ps(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function of(e,t,n,r){process.env.NODE_ENV!=="production"&&(ut(!t,"'dateRender' is deprecated. Please use 'cellRender' instead."),ut(!n,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var o=c.useMemo(function(){return e||function(i,l){var s=i;return t&&l.type==="date"?t(s,l.today):n&&l.type==="month"?n(s,l.locale):l.originNode}},[e,n,t]),a=c.useCallback(function(i,l){return o(i,G(G({},l),{},{range:r}))},[o,r]);return a}function L0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),o=K(r,2),a=o[0],i=o[1],l=function(d,f){i(function(v){return wi(v,f,d)})},s=c.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[s,l]}function H0(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function FD(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,v=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,m=e.dayFormat,p=e.cellDateFormat,y=H0(t,n,r,o,a);return G(G({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:v||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:p||m||"D"})}function k0(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return D.useMemo(function(){return FD(e,n,r,o,a,i)},[e,n,r,o,a,i])}function Ei(e,t,n){return n??t.some(function(r){return e.includes(r)})}var AD=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function jD(e){var t=Ps(e,AD),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=tt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function zD(e){return e&&typeof e=="string"}function W0(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function q0(e,t,n,r,o){var a=t,i=n,l=r;if(!e&&!a&&!i&&!l&&!o)a=!0,i=!0,l=!0;else if(e){var s,u,d,f=[a,i,l].some(function(h){return h===!1}),v=[a,i,l].some(function(h){return h===!0}),g=f?!0:!v;a=(s=a)!==null&&s!==void 0?s:g,i=(u=i)!==null&&u!==void 0?u:g,l=(d=l)!==null&&d!==void 0?d:g}return[a,i,l,o]}function U0(e){var t=e.showTime,n=jD(e),r=K(n,2),o=r[0],a=r[1],i=t&&tt(t)==="object"?t:{},l=G(G({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),s=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,v=W0(u,d,f,s),g=q0(v,u,d,f,s),h=K(g,3);return u=h[0],d=h[1],f=h[2],[l,G(G({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:s}),l.format,a]}function G0(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,l=z0(e,o,null),s=l,u=[t,n],d=0;d<u.length;d+=1){var f=_o(u[d])[0];if(zD(f)){s=f;break}}var v=i.showHour,g=i.showMinute,h=i.showSecond,b=i.showMillisecond,m=i.use12Hours,p=Ei(s,["a","A","LT","LLL","LTS"],m),y=W0(v,g,h,b);y||(v=Ei(s,["H","h","k","LT","LLL"]),g=Ei(s,["m","LT","LLL"]),h=Ei(s,["s","LTS"]),b=Ei(s,["SSS"]));var C=q0(y,v,g,h,b),S=K(C,3);v=S[0],g=S[1],h=S[2];var x=t||H0(v,g,h,b,p);return G(G({},i),{},{format:x,showHour:v,showMinute:g,showSecond:h,showMillisecond:b,use12Hours:p})}return null}function BD(e,t,n){if(process.env.NODE_ENV!=="production"&&n&&ut(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),t===!1)return null;var r=t&&tt(t)==="object"?t:{};return r.clearIcon||n||c.createElement("span",{className:"".concat(e,"-clear-btn")})}var af=7;function no(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function lf(e,t,n){return no(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function Mo(e,t,n){return no(t,n,function(){return e.getYear(t)===e.getYear(n)})}function K0(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function VD(e,t,n){return no(t,n,function(){return Mo(e,t,n)&&K0(e,t)===K0(e,n)})}function sf(e,t,n){return no(t,n,function(){return Mo(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function cf(e,t,n){return no(t,n,function(){return Mo(e,t,n)&&sf(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Y0(e,t,n){return no(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function X0(e,t,n){return no(t,n,function(){return cf(e,t,n)&&Y0(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function $i(e,t,n,r){return no(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return Mo(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function An(e,t,n,r,o){switch(o){case"date":return cf(e,n,r);case"week":return $i(e,t.locale,n,r);case"month":return sf(e,n,r);case"quarter":return VD(e,n,r);case"year":return Mo(e,n,r);case"decade":return lf(e,n,r);case"time":return Y0(e,n,r);default:return X0(e,n,r)}}function _s(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Ms(e,t,n,r,o){return An(e,t,n,r,o)?!0:e.isAfter(n,r)}function LD(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function Sn(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function Ts(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,l){n?r=e[i](r,e[o[l]](n)):r=e[i](r,0)}),r}function HD(e,t,n,r,o){var a=Tt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!An(e,t,r,i,l.type)||o&&e.isAfter(i,o)&&!An(e,t,o,i,l.type))});return a}function kD(e,t,n){return c.useMemo(function(){var r=z0(e,t,n),o=_o(r),a=o[0],i=tt(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function WD(e,t,n){return typeof e[0]=="function"||n?!0:t}function qD(e,t,n,r){var o=Tt(function(a,i){var l=G({type:t},i);if(delete l.activeIndex,!e.isValidate(a)||n&&n(a,l))return!0;if((t==="date"||t==="time")&&r){var s,u=i&&i.activeIndex===1?"end":"start",d=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,a,u,{from:l.from}))||{},f=d.disabledHours,v=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,m=r.disabledMinutes,p=r.disabledSeconds,y=f||b,C=v||m,S=g||p,x=e.getHour(a),w=e.getMinute(a),E=e.getSecond(a),$=e.getMillisecond(a);if(y&&y().includes(x)||C&&C(x).includes(w)||S&&S(x,w).includes(E)||h&&h(x,w,E).includes($))return!0}return!1});return o}function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&_o(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Q0(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,u=s===void 0?{}:s,d=e.classNames,f=d===void 0?{}:d,v=e.order,g=v===void 0?!0:v,h=e.components,b=h===void 0?{}:h,m=e.inputRender,p=e.allowClear,y=e.clearIcon,C=e.needConfirm,S=e.multiple,x=e.format,w=e.inputReadOnly,E=e.disabledDate,$=e.minDate,O=e.maxDate,I=e.showTime,_=e.value,M=e.defaultValue,P=e.pickerValue,T=e.defaultPickerValue,N=Ds(_),R=Ds(M),F=Ds(P),A=Ds(T),j=a==="date"&&I?"datetime":a,H=j==="time"||j==="datetime",k=H||S,z=C??H,B=U0(e),V=K(B,4),L=V[0],q=V[1],Y=V[2],U=V[3],ee=k0(r,q),Z=c.useMemo(function(){return G0(j,Y,U,L,ee)},[j,Y,U,L,ee]);process.env.NODE_ENV!=="production"&&a==="time"&&["disabledHours","disabledMinutes","disabledSeconds"].some(function(ve){return e[ve]})&&ut(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var Q=c.useMemo(function(){return G(G({},e),{},{prefixCls:l,locale:ee,picker:a,styles:u,classNames:f,order:g,components:G({input:m},b),clearIcon:BD(l,p,y),showTime:Z,value:N,defaultValue:R,pickerValue:F,defaultPickerValue:A},t==null?void 0:t())},[e]),J=kD(j,ee,x),ae=K(J,2),ne=ae[0],ie=ae[1],te=WD(ne,w,S),le=HD(n,r,E,$,O),se=qD(n,a,le,Z),fe=c.useMemo(function(){return G(G({},Q),{},{needConfirm:z,inputReadOnly:te,disabledDate:le})},[Q,z,te,le]);return[fe,j,k,ne,ie,se]}function UD(e,t,n){var r=qt(t,{value:e}),o=K(r,2),a=o[0],i=o[1],l=D.useRef(e),s=D.useRef(),u=function(){yt.cancel(s.current)},d=Tt(function(){i(l.current),n&&a!==l.current&&n(l.current)}),f=Tt(function(v,g){u(),l.current=v,v||g?d():s.current=yt(d)});return D.useEffect(function(){return u},[]),[a,f]}function J0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=UD(o,t||!1,r),i=K(a,2),l=i[0],s=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(d,f.force)}return[l,u]}function Z0(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function ey(e,t){return c.useMemo(function(){return e||(t?(ut(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=K(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function uf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,fo(function(){if(e)r.current(e);else{var o=yt(function(){r.current(e)},n);return function(){yt.cancel(o)}}},[e])}function ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=c.useState(0),o=K(r,2),a=o[0],i=o[1],l=c.useState(!1),s=K(l,2),u=s[0],d=s[1],f=c.useRef([]),v=c.useRef(null),g=c.useRef(null),h=function(S){v.current=S},b=function(S){return v.current===S},m=function(S){d(S)},p=function(S){return S&&(g.current=S),g.current},y=function(S){var x=f.current,w=new Set(x.filter(function($){return S[$]||t[$]})),E=x[x.length-1]===0?1:0;return w.size>=2||e[E]?null:E};return uf(u||n,function(){u||(f.current=[],h(null))}),c.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,m,p,a,i,y,f.current,h,b]}function GD(e,t,n,r,o,a){var i=n[n.length-1],l=function(u,d){var f=K(e,2),v=f[0],g=f[1],h=G(G({},d),{},{from:B0(e,n)});return i===1&&t[0]&&v&&!An(r,o,v,u,h.type)&&r.isAfter(v,u)||i===0&&t[1]&&g&&!An(r,o,g,u,h.type)&&r.isAfter(u,g)?!0:a==null?void 0:a(u,h)};return l}function Oi(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var df=[];function ny(e,t,n,r,o,a,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:df,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:df,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:df,f=arguments.length>11?arguments[11]:void 0,v=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=a||0,m=function(F){var A=e.getNow();return h&&(A=Ts(e,A)),s[F]||n[F]||A},p=K(u,2),y=p[0],C=p[1],S=qt(function(){return m(0)},{value:y}),x=K(S,2),w=x[0],E=x[1],$=qt(function(){return m(1)},{value:C}),O=K($,2),I=O[0],_=O[1],M=c.useMemo(function(){var R=[w,I][b];return h?R:Ts(e,R,d[b])},[h,w,I,b,e,d]),P=function(F){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",j=[E,_][b];j(F);var H=[w,I];H[b]=F,f&&(!An(e,t,w,H[0],i)||!An(e,t,I,H[1],i))&&f(H,{source:A,range:b===1?"end":"start",mode:r})},T=function(F,A){if(l){var j={date:"month",week:"month",month:"year",quarter:"year"},H=j[i];if(H&&!An(e,t,F,A,H))return Oi(e,i,A,-1);if(i==="year"&&F){var k=Math.floor(e.getYear(F)/10),z=Math.floor(e.getYear(A)/10);if(k!==z)return Oi(e,i,A,-1)}}return A},N=c.useRef(null);return Pt(function(){if(o&&!s[b]){var R=h?null:e.getNow();if(N.current!==null&&N.current!==b?R=[w,I][b^1]:n[b]?R=b===0?n[0]:T(n[0],n[1]):n[b^1]&&(R=n[b^1]),R){v&&e.isAfter(v,R)&&(R=v);var F=l?Oi(e,i,R,1):R;g&&e.isAfter(F,g)&&(R=l?Oi(e,i,g,-1):g),P(R,"reset")}}},[o,b,n[b]]),c.useEffect(function(){o?N.current=b:N.current=null},[o,b]),Pt(function(){o&&s&&s[b]&&P(s[b],"reset")},[o,b]),[M,P]}function ry(e,t){var n=c.useRef(e),r=c.useState({}),o=K(r,2),a=o[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,a({})};return[i,l,i(!0)]}var KD=[];function oy(e,t,n){var r=function(i){return i.map(function(l){return Sn(l,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,l){for(var s=Math.max(i.length,l.length),u=-1,d=0;d<s;d+=1){var f=i[d]||null,v=l[d]||null;if(f!==v&&!X0(e,f,v)){u=d;break}}return[u<0,u!==0]};return[r,o]}function ay(e,t){return Ne(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function YD(e){var t=ry(e),n=K(t,2),r=n[0],o=n[1],a=Tt(function(){o(e)});return c.useEffect(function(){a()},[e]),[r,o]}function iy(e,t,n,r,o,a,i,l,s){var u=qt(a,{value:i}),d=K(u,2),f=d[0],v=d[1],g=f||KD,h=YD(g),b=K(h,2),m=b[0],p=b[1],y=oy(e,t,n),C=K(y,2),S=C[0],x=C[1],w=Tt(function($){var O=Ne($);if(r)for(var I=0;I<2;I+=1)O[I]=O[I]||null;else o&&(O=ay(O.filter(function(R){return R}),e));var _=x(m(),O),M=K(_,2),P=M[0],T=M[1];if(!P&&(p(O),l)){var N=S(O);l(O,N,{range:T?"end":"start"})}}),E=function(){s&&s(m())};return[g,v,m,w,E]}function ly(e,t,n,r,o,a,i,l,s,u){var d=e.generateConfig,f=e.locale,v=e.picker,g=e.onChange,h=e.allowEmpty,b=e.order,m=a.some(function(P){return P})?!1:b,p=oy(d,f,i),y=K(p,2),C=y[0],S=y[1],x=ry(t),w=K(x,2),E=w[0],$=w[1],O=Tt(function(){$(t)});c.useEffect(function(){O()},[t]);var I=Tt(function(P){var T=P===null,N=Ne(P||E());if(T)for(var R=Math.max(a.length,N.length),F=0;F<R;F+=1)a[F]||(N[F]=null);m&&N[0]&&N[1]&&(N=ay(N,d)),o(N);var A=N,j=K(A,2),H=j[0],k=j[1],z=!H,B=!k,V=h?(!z||h[0])&&(!B||h[1]):!0,L=!b||z||B||An(d,f,H,k,v)||d.isAfter(k,H),q=(a[0]||!H||!u(H,{activeIndex:0}))&&(a[1]||!k||!u(k,{from:H,activeIndex:1})),Y=T||V&&L&&q;if(Y){n(N);var U=S(N,t),ee=K(U,1),Z=ee[0];g&&!Z&&g(T&&N.every(function(Q){return!Q})?null:N,C(N))}return Y}),_=Tt(function(P,T){var N=wi(E(),P,r()[P]);$(N),T&&I()}),M=!l&&!s;return uf(!M,function(){M&&(I(),o(t),O())},2),[_,I]}function sy(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function XD(e,t,n,r,o,a){var i=e;function l(f,v,g){var h=a[f](i),b=g.find(function(C){return C.value===h});if(!b||b.disabled){var m=g.filter(function(C){return!C.disabled}),p=Ne(m).reverse(),y=p.find(function(C){return C.value<=h})||m[0];y&&(h=y.value,i=a[v](i,h))}return h}var s=l("getHour","setHour",t()),u=l("getMinute","setMinute",n(s)),d=l("getSecond","setSecond",r(s,u));return l("getMillisecond","setMillisecond",o(s,u,d)),i}function Rs(){return[]}function Fs(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var u=o.includes(s);(!u||!r)&&i.push({label:rf(s,a),value:s,disabled:u})}return i}function ff(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,l=r.minuteStep,s=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,v=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,m=r.disabledMinutes,p=r.disabledSeconds,y=c.useMemo(function(){return n||e.getNow()},[n,e]);if(process.env.NODE_ENV!=="production"){var C=24%i===0,S=60%s===0,x=60%d===0;ut(C,"`hourStep` ".concat(i," is invalid. It should be a factor of 24.")),ut(S,"`minuteStep` ".concat(s," is invalid. It should be a factor of 60.")),ut(x,"`secondStep` ".concat(d," is invalid. It should be a factor of 60."))}var w=c.useCallback(function(k){var z=(h==null?void 0:h(k))||{};return[z.disabledHours||b||Rs,z.disabledMinutes||m||Rs,z.disabledSeconds||p||Rs,z.disabledMilliseconds||Rs]},[h,b,m,p]),E=c.useMemo(function(){return w(y)},[y,w]),$=K(E,4),O=$[0],I=$[1],_=$[2],M=$[3],P=c.useCallback(function(k,z,B,V){var L=Fs(0,23,i,g,k()),q=o?L.map(function(Z){return G(G({},Z),{},{label:rf(Z.value%12||12,2)})}):L,Y=function(Q){return Fs(0,59,s,g,z(Q))},U=function(Q,J){return Fs(0,59,d,g,B(Q,J))},ee=function(Q,J,ae){return Fs(0,999,v,g,V(Q,J,ae),3)};return[q,Y,U,ee]},[g,i,o,v,s,d]),T=c.useMemo(function(){return P(O,I,_,M)},[P,O,I,_,M]),N=K(T,4),R=N[0],F=N[1],A=N[2],j=N[3],H=function(z,B){var V=function(){return R},L=F,q=A,Y=j;if(B){var U=w(B),ee=K(U,4),Z=ee[0],Q=ee[1],J=ee[2],ae=ee[3],ne=P(Z,Q,J,ae),ie=K(ne,4),te=ie[0],le=ie[1],se=ie[2],fe=ie[3];V=function(){return te},L=le,q=se,Y=fe}var ve=XD(z,V,L,q,Y,e);return ve};return[H,R,F,A,j]}function QD(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,v=c.useContext(br),g=v.prefixCls,h=v.locale,b=v.button,m=b===void 0?"button":b,p=d.getNow(),y=ff(d,a,p),C=K(y,1),S=C[0],x=r==null?void 0:r(t),w=f(p,{type:t}),E=function(){if(!w){var T=S(p);l(T)}},$="".concat(g,"-now"),O="".concat($,"-btn"),I=o&&c.createElement("li",{className:$},c.createElement("a",{className:re(O,w&&"".concat(O,"-disabled")),"aria-disabled":w,onClick:E},n==="date"?h.today:h.now)),_=u&&c.createElement("li",{className:"".concat(g,"-ok")},c.createElement(m,{disabled:s,onClick:i},h.ok)),M=(I||_)&&c.createElement("ul",{className:"".concat(g,"-ranges")},I,_);return!x&&!M?null:c.createElement("div",{className:"".concat(g,"-footer")},x&&c.createElement("div",{className:"".concat(g,"-footer-extra")},x),M)}function cy(e,t,n){function r(o,a){var i=o.findIndex(function(s){return An(e,t,s,a,n)});if(i===-1)return[].concat(Ne(o),[a]);var l=Ne(o);return l.splice(i,1),l}return r}var To=c.createContext(null);function As(){return c.useContext(To)}function $a(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,v=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,m=e.nextIcon,p=e.superPrevIcon,y=e.superNextIcon,C=r.getNow(),S={now:C,values:v,pickerValue:g,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:s,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:m,superPrevIcon:p,superNextIcon:y};return[S,C]}var Vr=c.createContext({});process.env.NODE_ENV!=="production"&&(Vr.displayName="PickerHackContext");function Ii(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,v=f===void 0?!0:f,g=e.disabledDate,h=As(),b=h.prefixCls,m=h.panelType,p=h.now,y=h.disabledDate,C=h.cellRender,S=h.onHover,x=h.hoverValue,w=h.hoverRangeValue,E=h.generateConfig,$=h.values,O=h.locale,I=h.onSelect,_=g||y,M="".concat(b,"-cell"),P=c.useContext(Vr),T=P.onCellDblClick,N=function(B){return $.some(function(V){return V&&An(E,O,B,V,m)})},R=[],F=0;F<t;F+=1){for(var A=[],j=void 0,H=function(){var B=F*n+k,V=o(r,B),L=_==null?void 0:_(V,{type:m});k===0&&(j=V,a&&A.push(a(j)));var q=!1,Y=!1,U=!1;if(v&&w){var ee=K(w,2),Z=ee[0],Q=ee[1];q=_s(E,Z,Q,V),Y=An(E,O,V,Z,m),U=An(E,O,V,Q,m)}var J=l?Sn(V,{locale:O,format:l,generateConfig:E}):void 0,ae=c.createElement("div",{className:"".concat(M,"-inner")},s(V));A.push(c.createElement("td",{key:k,title:J,className:re(M,G(W(W(W(W(W(W({},"".concat(M,"-disabled"),L),"".concat(M,"-hover"),(x||[]).some(function(ne){return An(E,O,V,ne,m)})),"".concat(M,"-in-range"),q&&!Y&&!U),"".concat(M,"-range-start"),Y),"".concat(M,"-range-end"),U),"".concat(b,"-cell-selected"),!w&&m!=="week"&&N(V)),u(V))),onClick:function(){L||I(V)},onDoubleClick:function(){!L&&T&&T()},onMouseEnter:function(){L||S==null||S(V)},onMouseLeave:function(){L||S==null||S(null)}},C?C(V,{prefixCls:b,originNode:ae,today:p,type:m,locale:O}):ae))},k=0;k<n;k+=1)H();R.push(c.createElement("tr",{key:F,className:i==null?void 0:i(j)},A))}return c.createElement("div",{className:"".concat(b,"-body")},c.createElement("table",{className:"".concat(b,"-content")},d&&c.createElement("thead",null,c.createElement("tr",null,d)),c.createElement("tbody",null,R)))}var js={visibility:"hidden"};function Oa(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,l=As(),s=l.prefixCls,u=l.prevIcon,d=u===void 0?"‹":u,f=l.nextIcon,v=f===void 0?"›":f,g=l.superPrevIcon,h=g===void 0?"«":g,b=l.superNextIcon,m=b===void 0?"»":b,p=l.minDate,y=l.maxDate,C=l.generateConfig,S=l.locale,x=l.pickerValue,w=l.panelType,E="".concat(s,"-header"),$=c.useContext(Vr),O=$.hidePrev,I=$.hideNext,_=$.hideHeader,M=c.useMemo(function(){if(!p||!t||!a)return!1;var z=a(t(-1,x));return!Ms(C,S,z,p,w)},[p,t,x,a,C,S,w]),P=c.useMemo(function(){if(!p||!n||!a)return!1;var z=a(n(-1,x));return!Ms(C,S,z,p,w)},[p,n,x,a,C,S,w]),T=c.useMemo(function(){if(!y||!t||!o)return!1;var z=o(t(1,x));return!Ms(C,S,y,z,w)},[y,t,x,o,C,S,w]),N=c.useMemo(function(){if(!y||!n||!o)return!1;var z=o(n(1,x));return!Ms(C,S,y,z,w)},[y,n,x,o,C,S,w]),R=function(B){t&&r(t(B,x))},F=function(B){n&&r(n(B,x))};if(_)return null;var A="".concat(E,"-prev-btn"),j="".concat(E,"-next-btn"),H="".concat(E,"-super-prev-btn"),k="".concat(E,"-super-next-btn");return c.createElement("div",{className:E},n&&c.createElement("button",{type:"button","aria-label":S.previousYear,onClick:function(){return F(-1)},tabIndex:-1,className:re(H,P&&"".concat(H,"-disabled")),disabled:P,style:O?js:{}},h),t&&c.createElement("button",{type:"button","aria-label":S.previousMonth,onClick:function(){return R(-1)},tabIndex:-1,className:re(A,M&&"".concat(A,"-disabled")),disabled:M,style:O?js:{}},d),c.createElement("div",{className:"".concat(E,"-view")},i),t&&c.createElement("button",{type:"button","aria-label":S.nextMonth,onClick:function(){return R(1)},tabIndex:-1,className:re(j,T&&"".concat(j,"-disabled")),disabled:T,style:I?js:{}},v),n&&c.createElement("button",{type:"button","aria-label":S.nextYear,onClick:function(){return F(1)},tabIndex:-1,className:re(k,N&&"".concat(k,"-disabled")),disabled:N,style:I?js:{}},m))}function zs(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,v=e.onSelect,g=e.onHover,h=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),m="".concat(t,"-cell"),p=d==="week",y=$a(e,d),C=K(y,2),S=C[0],x=C[1],w=a.locale.getWeekFirstDay(o.locale),E=a.setDate(i,1),$=LD(o.locale,a,E),O=a.getMonth(i),I=h===void 0?p:h,_=I?function(z){var B=f==null?void 0:f(z,{type:"week"});return c.createElement("td",{key:"week",className:re(m,"".concat(m,"-week"),W({},"".concat(m,"-disabled"),B)),onClick:function(){B||v(z)},onMouseEnter:function(){B||g==null||g(z)},onMouseLeave:function(){B||g==null||g(null)}},c.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(o.locale,z)))}:null,M=[],P=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);_&&M.push(c.createElement("th",{key:"empty"},c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var T=0;T<af;T+=1)M.push(c.createElement("th",{key:T},P[(T+w)%af]));var N=function(B,V){return a.addDate(B,V)},R=function(B){return Sn(B,{locale:o,format:o.cellDateFormat,generateConfig:a})},F=function(B){var V=W(W({},"".concat(t,"-cell-in-view"),sf(a,B,i)),"".concat(t,"-cell-today"),cf(a,B,x));return V},A=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),j=c.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){s("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},Sn(i,{locale:o,format:o.yearFormat,generateConfig:a})),H=c.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){s("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?Sn(i,{locale:o,format:o.monthFormat,generateConfig:a}):A[O]),k=o.monthBeforeYear?[H,j]:[j,H];return c.createElement(To.Provider,{value:S},c.createElement("div",{className:re(b,h&&"".concat(b,"-show-week"))},c.createElement(Oa,{offset:function(B){return a.addMonth(i,B)},superOffset:function(B){return a.addYear(i,B)},onChange:l,getStart:function(B){return a.setDate(B,1)},getEnd:function(B){var V=a.setDate(B,1);return V=a.addMonth(V,1),a.addDate(V,-1)}},k),c.createElement(Ii,Ce({titleFormat:o.fieldDateFormat},e,{colNum:af,rowNum:6,baseDate:$,headerCells:M,getCellDate:N,getCellText:R,getCellClassName:F,prefixColumn:_,cellSelection:!p}))))}var JD=1/3;function ZD(e,t){var n=c.useRef(!1),r=c.useRef(null),o=c.useRef(null),a=function(){return n.current},i=function(){yt.cancel(r.current),n.current=!1},l=c.useRef(),s=function(){var f=e.current;if(o.current=null,l.current=0,f){var v=f.querySelector('[data-value="'.concat(t,'"]')),g=f.querySelector("li"),h=function b(){i(),n.current=!0,l.current+=1;var m=f.scrollTop,p=g.offsetTop,y=v.offsetTop,C=y-p;if(y===0&&v!==g||!ni(f)){l.current<=5&&(r.current=yt(b));return}var S=m+(C-m)*JD,x=Math.abs(C-S);if(o.current!==null&&o.current<x){i();return}if(o.current=x,x<=1){f.scrollTop=C,i();return}f.scrollTop=S,r.current=yt(b)};v&&g&&h()}},u=Tt(s);return[u,i,a]}var eR=300;function tR(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ni(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,l=e.onDblClick,s=e.changeOnScroll,u=As(),d=u.prefixCls,f=u.cellRender,v=u.now,g=u.locale,h="".concat(d,"-time-panel"),b="".concat(d,"-time-panel-cell"),m=c.useRef(null),p=c.useRef(),y=function(){clearTimeout(p.current)},C=ZD(m,n??r),S=K(C,3),x=S[0],w=S[1],E=S[2];Pt(function(){return x(),y(),function(){w(),y()}},[n,r,tR(t)]);var $=function(_){y();var M=_.target;!E()&&s&&(p.current=setTimeout(function(){var P=m.current,T=P.querySelector("li").offsetTop,N=Array.from(P.querySelectorAll("li")),R=N.map(function(k){return k.offsetTop-T}),F=R.map(function(k,z){return t[z].disabled?Number.MAX_SAFE_INTEGER:Math.abs(k-M.scrollTop)}),A=Math.min.apply(Math,Ne(F)),j=F.findIndex(function(k){return k===A}),H=t[j];H&&!H.disabled&&a(H.value)},eR))},O="".concat(h,"-column");return c.createElement("ul",{className:O,ref:m,"data-type":o,onScroll:$},t.map(function(I){var _=I.label,M=I.value,P=I.disabled,T=c.createElement("div",{className:"".concat(b,"-inner")},_);return c.createElement("li",{key:M,className:re(b,W(W({},"".concat(b,"-selected"),n===M),"".concat(b,"-disabled"),P)),onClick:function(){P||a(M)},onDoubleClick:function(){!P&&l&&l()},onMouseEnter:function(){i(M)},onMouseLeave:function(){i(null)},"data-value":M},f?f(M,{prefixCls:d,originNode:T,today:v,type:"time",subType:o,locale:g}):T)}))}function ro(e){return e<12}function nR(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,l=As(),s=l.prefixCls,u=l.values,d=l.generateConfig,f=l.locale,v=l.onSelect,g=l.onHover,h=g===void 0?function(){}:g,b=l.pickerValue,m=(u==null?void 0:u[0])||null,p=c.useContext(Vr),y=p.onCellDblClick,C=ff(d,e,m),S=K(C,5),x=S[0],w=S[1],E=S[2],$=S[3],O=S[4],I=function(Ie){var rt=m&&d[Ie](m),lt=b&&d[Ie](b);return[rt,lt]},_=I("getHour"),M=K(_,2),P=M[0],T=M[1],N=I("getMinute"),R=K(N,2),F=R[0],A=R[1],j=I("getSecond"),H=K(j,2),k=H[0],z=H[1],B=I("getMillisecond"),V=K(B,2),L=V[0],q=V[1],Y=P===null?null:ro(P)?"am":"pm",U=c.useMemo(function(){return a?ro(P)?w.filter(function(ce){return ro(ce.value)}):w.filter(function(ce){return!ro(ce.value)}):w},[P,w,a]),ee=function(Ie,rt){var lt,mt=Ie.filter(function(je){return!je.disabled});return rt??(mt==null||(lt=mt[0])===null||lt===void 0?void 0:lt.value)},Z=ee(w,P),Q=c.useMemo(function(){return E(Z)},[E,Z]),J=ee(Q,F),ae=c.useMemo(function(){return $(Z,J)},[$,Z,J]),ne=ee(ae,k),ie=c.useMemo(function(){return O(Z,J,ne)},[O,Z,J,ne]),te=ee(ie,L),le=c.useMemo(function(){if(!a)return[];var ce=d.getNow(),Ie=d.setHour(ce,6),rt=d.setHour(ce,18),lt=function(je,Re){var Ye=f.cellMeridiemFormat;return Ye?Sn(je,{generateConfig:d,locale:f,format:Ye}):Re};return[{label:lt(Ie,"AM"),value:"am",disabled:w.every(function(mt){return mt.disabled||!ro(mt.value)})},{label:lt(rt,"PM"),value:"pm",disabled:w.every(function(mt){return mt.disabled||ro(mt.value)})}]},[w,a,d,f]),se=function(Ie){var rt=x(Ie);v(rt)},fe=c.useMemo(function(){var ce=m||b||d.getNow(),Ie=function(lt){return lt!=null};return Ie(P)?(ce=d.setHour(ce,P),ce=d.setMinute(ce,F),ce=d.setSecond(ce,k),ce=d.setMillisecond(ce,L)):Ie(T)?(ce=d.setHour(ce,T),ce=d.setMinute(ce,A),ce=d.setSecond(ce,z),ce=d.setMillisecond(ce,q)):Ie(Z)&&(ce=d.setHour(ce,Z),ce=d.setMinute(ce,J),ce=d.setSecond(ce,ne),ce=d.setMillisecond(ce,te)),ce},[m,b,P,F,k,L,Z,J,ne,te,T,A,z,q,d]),ve=function(Ie,rt){return Ie===null?null:d[rt](fe,Ie)},ge=function(Ie){return ve(Ie,"setHour")},be=function(Ie){return ve(Ie,"setMinute")},de=function(Ie){return ve(Ie,"setSecond")},pe=function(Ie){return ve(Ie,"setMillisecond")},Se=function(Ie){return Ie===null?null:Ie==="am"&&!ro(P)?d.setHour(fe,P-12):Ie==="pm"&&ro(P)?d.setHour(fe,P+12):fe},xe=function(Ie){se(ge(Ie))},De=function(Ie){se(be(Ie))},ye=function(Ie){se(de(Ie))},$e=function(Ie){se(pe(Ie))},Te=function(Ie){se(Se(Ie))},Pe=function(Ie){h(ge(Ie))},Oe=function(Ie){h(be(Ie))},we=function(Ie){h(de(Ie))},me=function(Ie){h(pe(Ie))},Ee=function(Ie){h(Se(Ie))},ue={onDblClick:y,changeOnScroll:i};return c.createElement("div",{className:"".concat(s,"-content")},t&&c.createElement(Ni,Ce({units:U,value:P,optionalValue:T,type:"hour",onChange:xe,onHover:Pe},ue)),n&&c.createElement(Ni,Ce({units:Q,value:F,optionalValue:A,type:"minute",onChange:De,onHover:Oe},ue)),r&&c.createElement(Ni,Ce({units:ae,value:k,optionalValue:z,type:"second",onChange:ye,onHover:we},ue)),o&&c.createElement(Ni,Ce({units:ie,value:L,optionalValue:q,type:"millisecond",onChange:$e,onHover:me},ue)),a&&c.createElement(Ni,Ce({units:le,value:Y,type:"meridiem",onChange:Te,onHover:Ee},ue)))}function uy(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},l=i.format,s="".concat(t,"-time-panel"),u=$a(e,"time"),d=K(u,1),f=d[0];return c.createElement(To.Provider,{value:f},c.createElement("div",{className:re(s)},c.createElement(Oa,null,n?Sn(n,{locale:r,format:l,generateConfig:o}):" "),c.createElement(nR,a)))}function rR(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,l=e.onHover,s="".concat(t,"-datetime-panel"),u=ff(n,r),d=K(u,1),f=d[0],v=function(m){return a?Ts(n,m,a):Ts(n,m,i)},g=function(m){l==null||l(m&&v(m))},h=function(m){var p=v(m);o(f(p,p))};return c.createElement("div",{className:s},c.createElement(zs,Ce({},e,{onSelect:h,onHover:g})),c.createElement(uy,e))}function oR(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l="".concat(t,"-decade-panel"),s=$a(e,"decade"),u=K(s,1),d=u[0],f=function(w){var E=Math.floor(r.getYear(w)/100)*100;return r.setYear(w,E)},v=function(w){var E=f(w);return r.addYear(E,99)},g=f(o),h=v(o),b=r.addYear(g,-10),m=function(w,E){return r.addYear(w,E*10)},p=function(w){var E=n.cellYearFormat,$=Sn(w,{locale:n,format:E,generateConfig:r}),O=Sn(r.addYear(w,9),{locale:n,format:E,generateConfig:r});return"".concat($,"-").concat(O)},y=function(w){return W({},"".concat(t,"-cell-in-view"),lf(r,w,g)||lf(r,w,h)||_s(r,g,h,w))},C=a?function(x,w){var E=r.setDate(x,1),$=r.setMonth(E,0),O=r.setYear($,Math.floor(r.getYear($)/10)*10),I=r.addYear(O,10),_=r.addDate(I,-1);return a(O,w)&&a(_,w)}:null,S="".concat(Sn(g,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Sn(h,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(To.Provider,{value:d},c.createElement("div",{className:l},c.createElement(Oa,{superOffset:function(w){return r.addYear(o,w*100)},onChange:i,getStart:f,getEnd:v},S),c.createElement(Ii,Ce({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:b,getCellDate:m,getCellText:p,getCellClassName:y}))))}function aR(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-month-panel"),u=$a(e,"month"),d=K(u,1),f=d[0],v=r.setMonth(o,0),g=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(S,x){return r.addMonth(S,x)},b=function(S){var x=r.getMonth(S);return n.monthFormat?Sn(S,{locale:n,format:n.monthFormat,generateConfig:r}):g[x]},m=function(){return W({},"".concat(t,"-cell-in-view"),!0)},p=a?function(C,S){var x=r.setDate(C,1),w=r.setMonth(x,r.getMonth(x)+1),E=r.addDate(w,-1);return a(x,S)&&a(E,S)}:null,y=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Sn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(To.Provider,{value:f},c.createElement("div",{className:s},c.createElement(Oa,{superOffset:function(S){return r.addYear(o,S)},onChange:i,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},y),c.createElement(Ii,Ce({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:h,getCellText:b,getCellClassName:m}))))}function iR(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,l="".concat(t,"-quarter-panel"),s=$a(e,"quarter"),u=K(s,1),d=u[0],f=r.setMonth(o,0),v=function(p,y){return r.addMonth(p,y*3)},g=function(p){return Sn(p,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return W({},"".concat(t,"-cell-in-view"),!0)},b=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Sn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(To.Provider,{value:d},c.createElement("div",{className:l},c.createElement(Oa,{superOffset:function(p){return r.addYear(o,p)},onChange:a,getStart:function(p){return r.setMonth(p,0)},getEnd:function(p){return r.setMonth(p,11)}},b),c.createElement(Ii,Ce({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:v,getCellText:g,getCellClassName:h}))))}function lR(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,l=r.locale,s="".concat(t,"-week-panel-row"),u=function(f){var v={};if(i){var g=K(i,2),h=g[0],b=g[1],m=$i(n,l,h,f),p=$i(n,l,b,f);v["".concat(s,"-range-start")]=m,v["".concat(s,"-range-end")]=p,v["".concat(s,"-range-hover")]=!m&&!p&&_s(n,h,b,f)}return a&&(v["".concat(s,"-hover")]=a.some(function(y){return $i(n,l,f,y)})),re(s,W({},"".concat(s,"-selected"),!i&&$i(n,l,o,f)),v)};return c.createElement(zs,Ce({},e,{mode:"week",panelName:"week",rowClassName:u}))}function sR(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-year-panel"),u=$a(e,"year"),d=K(u,1),f=d[0],v=function(E){var $=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,$)},g=function(E){var $=v(E);return r.addYear($,9)},h=v(o),b=g(o),m=r.addYear(h,-1),p=function(E,$){return r.addYear(E,$)},y=function(E){return Sn(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function(E){return W({},"".concat(t,"-cell-in-view"),Mo(r,E,h)||Mo(r,E,b)||_s(r,h,b,E))},S=a?function(w,E){var $=r.setMonth(w,0),O=r.setDate($,1),I=r.addYear(O,1),_=r.addDate(I,-1);return a(O,E)&&a(_,E)}:null,x=c.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Sn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Sn(b,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(To.Provider,{value:f},c.createElement("div",{className:s},c.createElement(Oa,{superOffset:function(E){return r.addYear(o,E*10)},onChange:i,getStart:v,getEnd:g},x),c.createElement(Ii,Ce({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:p,getCellText:y,getCellClassName:C}))))}var cR={date:zs,datetime:rR,week:lR,month:aR,quarter:iR,year:sR,decade:oR,time:uy};function uR(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,l=e.tabIndex,s=l===void 0?0:l,u=e.multiple,d=e.defaultValue,f=e.value,v=e.onChange,g=e.onSelect,h=e.defaultPickerValue,b=e.pickerValue,m=e.onPickerValueChange,p=e.mode,y=e.onPanelChange,C=e.picker,S=C===void 0?"date":C,x=e.showTime,w=e.hoverValue,E=e.hoverRangeValue,$=e.cellRender,O=e.dateRender,I=e.monthCellRender,_=e.components,M=_===void 0?{}:_,P=e.hideHeader,T=((n=c.useContext(br))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",N=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:N.current}});var R=U0(e),F=K(R,4),A=F[0],j=F[1],H=F[2],k=F[3],z=k0(r,j),B=S==="date"&&x?"datetime":S,V=c.useMemo(function(){return G0(B,H,k,A,z)},[B,H,k,A,z]),L=o.getNow(),q=qt(S,{value:p,postState:function(Ee){return Ee||"date"}}),Y=K(q,2),U=Y[0],ee=Y[1],Z=U==="date"&&V?"datetime":U,Q=cy(o,r,B),J=qt(d,{value:f}),ae=K(J,2),ne=ae[0],ie=ae[1],te=c.useMemo(function(){var me=_o(ne).filter(function(Ee){return Ee});return u?me:me.slice(0,1)},[ne,u]),le=Tt(function(me){ie(me),v&&(me===null||te.length!==me.length||te.some(function(Ee,ue){return!An(o,r,Ee,me[ue],B)}))&&(v==null||v(u?me:me[0]))}),se=Tt(function(me){if(g==null||g(me),U===S){var Ee=u?Q(te,me):[me];le(Ee)}}),fe=qt(h||te[0]||L,{value:b}),ve=K(fe,2),ge=ve[0],be=ve[1];c.useEffect(function(){te[0]&&!b&&be(te[0])},[te[0]]);var de=function(Ee,ue){y==null||y(Ee||b,ue||U)},pe=function(Ee){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;be(Ee),m==null||m(Ee),ue&&de(Ee)},Se=function(Ee,ue){ee(Ee),ue&&pe(ue),de(ue,Ee)},xe=function(Ee){if(se(Ee),pe(Ee),U!==S){var ue=["decade","year"],ce=[].concat(ue,["month"]),Ie={quarter:[].concat(ue,["quarter"]),week:[].concat(Ne(ce),["week"]),date:[].concat(Ne(ce),["date"])},rt=Ie[S]||ce,lt=rt.indexOf(U),mt=rt[lt+1];mt&&Se(mt,Ee)}},De=c.useMemo(function(){var me,Ee;if(Array.isArray(E)){var ue=K(E,2);me=ue[0],Ee=ue[1]}else me=E;return!me&&!Ee?null:(me=me||Ee,Ee=Ee||me,o.isAfter(me,Ee)?[Ee,me]:[me,Ee])},[E,o]),ye=of($,O,I),$e=M[Z]||cR[Z]||zs,Te=c.useContext(Vr),Pe=c.useMemo(function(){return G(G({},Te),{},{hideHeader:P})},[Te,P]);process.env.NODE_ENV!=="production"&&ut(!te||te.every(function(me){return o.isValidate(me)}),"Invalidate date pass to `value` or `defaultValue`.");var Oe="".concat(T,"-panel"),we=Ps(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(Vr.Provider,{value:Pe},c.createElement("div",{ref:N,tabIndex:s,className:re(Oe,W({},"".concat(Oe,"-rtl"),a==="rtl"))},c.createElement($e,Ce({},we,{showTime:V,prefixCls:T,locale:z,generateConfig:o,onModeChange:Se,pickerValue:ge,onPickerValueChange:function(Ee){pe(Ee,!0)},value:te[0],onSelect:xe,values:te,cellRender:ye,hoverRangeValue:De,hoverValue:w}))))}var Bs=c.memo(c.forwardRef(uR));process.env.NODE_ENV!=="production"&&(Bs.displayName="PanelPicker");function dR(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,u=c.useContext(br),d=u.prefixCls,f=u.generateConfig,v=c.useCallback(function(y,C){return Oi(f,t,y,C)},[f,t]),g=c.useMemo(function(){return v(r,1)},[r,v]),h=function(C){o(v(C,-1))},b={onCellDblClick:function(){a&&i()}},m=t==="time",p=G(G({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return l?p.hoverRangeValue=s:p.hoverValue=s,n?c.createElement("div",{className:"".concat(d,"-panels")},c.createElement(Vr.Provider,{value:G(G({},b),{},{hideNext:!0})},c.createElement(Bs,p)),c.createElement(Vr.Provider,{value:G(G({},b),{},{hidePrev:!0})},c.createElement(Bs,Ce({},p,{pickerValue:g,onPickerValueChange:h})))):c.createElement(Vr.Provider,{value:G({},b)},c.createElement(Bs,p))}function dy(e){return typeof e=="function"?e():e}function fR(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(a,i){var l=a.label,s=a.value;return c.createElement("li",{key:i,onClick:function(){r(dy(s))},onMouseEnter:function(){o(dy(s))},onMouseLeave:function(){o(null)}},l)}))):null}function fy(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeInfo,s=l===void 0?[0,0,0]:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,v=e.onFocus,g=e.onBlur,h=e.onPanelMouseDown,b=e.direction,m=e.value,p=e.onSelect,y=e.isInvalid,C=e.defaultOpenValue,S=e.onOk,x=e.onSubmit,w=c.useContext(br),E=w.prefixCls,$="".concat(E,"-panel"),O=b==="rtl",I=c.useRef(null),_=c.useRef(null),M=c.useState(0),P=K(M,2),T=P[0],N=P[1],R=c.useState(0),F=K(R,2),A=F[0],j=F[1],H=c.useState(0),k=K(H,2),z=k[0],B=k[1],V=function(xe){xe.width&&N(xe.width)},L=K(s,3),q=L[0],Y=L[1],U=L[2],ee=c.useState(0),Z=K(ee,2),Q=Z[0],J=Z[1];c.useEffect(function(){J(10)},[q]),c.useEffect(function(){if(a&&_.current){var Se,xe=((Se=I.current)===null||Se===void 0?void 0:Se.offsetWidth)||0,De=_.current.getBoundingClientRect();if(!De.height||De.right<0){J(function(Pe){return Math.max(0,Pe-1)});return}var ye=(O?Y-xe:q)-De.left;if(B(ye),T&&T<U){var $e=O?De.right-(Y-xe+T):q+xe-De.left-T,Te=Math.max(0,$e);j(Te)}else j(0)}},[Q,O,T,q,Y,U,a]);function ae(Se){return Se.filter(function(xe){return xe})}var ne=c.useMemo(function(){return ae(_o(m))},[m]),ie=r==="time"&&!ne.length,te=c.useMemo(function(){return ie?ae([C]):ne},[ie,ne,C]),le=ie?C:ne,se=c.useMemo(function(){return te.length?te.some(function(Se){return y(Se)}):!0},[te,y]),fe=function(){ie&&p(C),S(),x()},ve=c.createElement("div",{className:"".concat(E,"-panel-layout")},c.createElement(fR,{prefixCls:E,presets:u,onClick:f,onHover:d}),c.createElement("div",null,c.createElement(dR,Ce({},e,{value:le})),c.createElement(QD,Ce({},e,{showNow:i?!1:o,invalid:se,onSubmit:fe}))));t&&(ve=t(ve));var ge="".concat($,"-container"),be="marginLeft",de="marginRight",pe=c.createElement("div",{onMouseDown:h,tabIndex:-1,className:re(ge,"".concat(E,"-").concat(n,"-panel-container")),style:W(W({},O?de:be,A),O?be:de,"auto"),onFocus:v,onBlur:g},ve);return a&&(pe=c.createElement("div",{onMouseDown:h,ref:_,className:re("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:I,className:"".concat(E,"-range-arrow"),style:{left:z}}),c.createElement(Wn,{onResize:V},pe))),pe}function vy(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,v=e.onBlur,g=e.onInputChange,h=e.onInvalid,b=e.open,m=e.onOpenChange,p=e.onKeyDown,y=e.onChange,C=e.activeHelp,S=e.name,x=e.autoComplete,w=e.id,E=e.value,$=e.invalid,O=e.placeholder,I=e.disabled,_=e.activeIndex,M=e.allHelp,P=e.picker,T=function(z,B){var V=o.locale.parse(a.locale,z,[B]);return V&&o.isValidate(V)?V:null},N=n[0],R=c.useCallback(function(k){return Sn(k,{locale:a,format:N,generateConfig:o})},[a,o,N]),F=c.useMemo(function(){return E.map(R)},[E,R]),A=c.useMemo(function(){var k=P==="time"?8:10,z=typeof N=="function"?N(o.getNow()).length:N.length;return Math.max(k,z)+2},[N,P,o]),j=function(z){for(var B=0;B<n.length;B+=1){var V=n[B];if(typeof V=="string"){var L=T(z,V);if(L)return L}}return!1},H=function(z){function B(q){return z!==void 0?q[z]:q}var V=Jn(e,{aria:!0,data:!0}),L=G(G({},V),{},{format:r,validateFormat:function(Y){return!!j(Y)},preserveInvalidOnBlur:i,readOnly:l,required:s,"aria-required":u,name:S,autoComplete:x,size:A,id:B(w),value:B(F)||"",invalid:B($),placeholder:B(O),active:_===z,helped:M||C&&_===z,disabled:B(I),onFocus:function(Y){f(Y,z)},onBlur:function(Y){v(Y,z)},onSubmit:d,onChange:function(Y){g();var U=j(Y);if(U){h(!1,z),y(U,z);return}h(!!Y,z)},onHelp:function(){m(!0,{index:z})},onKeyDown:function(Y){var U=!1;if(p==null||p(Y,function(){process.env.NODE_ENV!=="production"&&ut(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),U=!0}),!Y.defaultPrevented&&!U)switch(Y.key){case"Escape":m(!1,{index:z});break;case"Enter":b||m(!0);break}}},t==null?void 0:t({valueTexts:F}));return Object.keys(L).forEach(function(q){L[q]===void 0&&delete L[q]}),L};return[H,R]}var vR=["onMouseEnter","onMouseLeave"];function my(e){return c.useMemo(function(){return Ps(e,vR)},[e])}var mR=["icon","type"],gR=["onClear"];function Vs(e){var t=e.icon,n=e.type,r=dt(e,mR),o=c.useContext(br),a=o.prefixCls;return t?c.createElement("span",Ce({className:"".concat(a,"-").concat(n)},r),t):null}function vf(e){var t=e.onClear,n=dt(e,gR);return c.createElement(Vs,Ce({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var mf=["YYYY","MM","DD","HH","mm","ss","SSS"],gy="顧",pR=function(){function e(t){on(this,e),W(this,"format",void 0),W(this,"maskFormat",void 0),W(this,"cells",void 0),W(this,"maskCells",void 0),this.format=t;var n=mf.map(function(l){return"(".concat(l,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(l){return gy.repeat(l.length)});var o=new RegExp("(".concat(mf.join("|"),")")),a=(t.split(o)||[]).filter(function(l){return l}),i=0;this.cells=a.map(function(l){var s=mf.includes(l),u=i,d=i+l.length;return i=d,{text:l,mask:s,start:u,end:d}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return an(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,a=r.end;return[o||0,a||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],a=n[r];if(!a||o!==gy&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var i=this.maskCells[a],l=i.start,s=i.end;if(n>=l&&n<=s)return a;var u=Math.min(Math.abs(n-l),Math.abs(n-s));u<r&&(r=u,o=a)}return o}}]),e}();function hR(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var bR=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Ls=c.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,l=e.validateFormat,s=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,v=e.onKeyDown,g=e.preserveInvalidOnBlur,h=g===void 0?!1:g,b=e.invalid,m=e.clearIcon,p=dt(e,bR),y=e.value,C=e.onFocus,S=e.onBlur,x=e.onMouseUp,w=c.useContext(br),E=w.prefixCls,$=w.input,O=$===void 0?"input":$,I="".concat(E,"-input"),_=c.useState(!1),M=K(_,2),P=M[0],T=M[1],N=c.useState(y),R=K(N,2),F=R[0],A=R[1],j=c.useState(""),H=K(j,2),k=H[0],z=H[1],B=c.useState(null),V=K(B,2),L=V[0],q=V[1],Y=c.useState(null),U=K(Y,2),ee=U[0],Z=U[1],Q=F||"";c.useEffect(function(){A(y)},[y]);var J=c.useRef(),ae=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:J.current,inputElement:ae.current,focus:function(me){ae.current.focus(me)},blur:function(){ae.current.blur()}}});var ne=c.useMemo(function(){return new pR(i||"")},[i]),ie=c.useMemo(function(){return u?[0,0]:ne.getSelection(L)},[ne,L,u]),te=K(ie,2),le=te[0],se=te[1],fe=function(me){me&&me!==i&&me!==y&&d()},ve=Tt(function(we){l(we)&&s(we),A(we),fe(we)}),ge=function(me){if(!i){var Ee=me.target.value;fe(Ee),A(Ee),s(Ee)}},be=function(me){var Ee=me.clipboardData.getData("text");l(Ee)&&ve(Ee)},de=c.useRef(!1),pe=function(){de.current=!0},Se=function(me){var Ee=me.target,ue=Ee.selectionStart,ce=ne.getMaskCellIndex(ue);q(ce),Z({}),x==null||x(me),de.current=!1},xe=function(me){T(!0),q(0),z(""),C(me)},De=function(me){S(me)},ye=function(me){T(!1),De(me)};uf(n,function(){!n&&!h&&A(y)});var $e=function(me){me.key==="Enter"&&l(Q)&&f(),v==null||v(me)},Te=function(me){$e(me);var Ee=me.key,ue=null,ce=null,Ie=se-le,rt=i.slice(le,se),lt=function(Ye){q(function(ke){var Xe=ke+Ye;return Xe=Math.max(Xe,0),Xe=Math.min(Xe,ne.size()-1),Xe})},mt=function(Ye){var ke=hR(rt),Xe=K(ke,3),We=Xe[0],Ae=Xe[1],ze=Xe[2],vt=Q.slice(le,se),ft=Number(vt);if(isNaN(ft))return String(ze||(Ye>0?We:Ae));var Le=ft+Ye,Me=Ae-We+1;return String(We+(Me+Le-We)%Me)};switch(Ee){case"Backspace":case"Delete":ue="",ce=rt;break;case"ArrowLeft":ue="",lt(-1);break;case"ArrowRight":ue="",lt(1);break;case"ArrowUp":ue="",ce=mt(1);break;case"ArrowDown":ue="",ce=mt(-1);break;default:isNaN(Number(Ee))||(ue=k+Ee,ce=ue);break}if(ue!==null&&(z(ue),ue.length>=Ie&&(lt(1),z(""))),ce!==null){var je=Q.slice(0,le)+rf(ce,Ie)+Q.slice(se);ve(je.slice(0,i.length))}Z({})},Pe=c.useRef();Pt(function(){if(!(!P||!i||de.current)){if(!ne.match(Q)){ve(i);return}return ae.current.setSelectionRange(le,se),Pe.current=yt(function(){ae.current.setSelectionRange(le,se)}),function(){yt.cancel(Pe.current)}}},[ne,i,P,Q,L,le,se,ee,ve]);var Oe=i?{onFocus:xe,onBlur:ye,onKeyDown:Te,onMouseDown:pe,onMouseUp:Se,onPaste:be}:{};return c.createElement("div",{ref:J,className:re(I,W(W({},"".concat(I,"-active"),n&&o),"".concat(I,"-placeholder"),u))},c.createElement(O,Ce({ref:ae,"aria-invalid":b,autoComplete:"off"},p,{onKeyDown:$e,onBlur:De},Oe,{value:Q,onChange:ge})),c.createElement(Vs,{type:"suffix",icon:a}),m)});process.env.NODE_ENV!=="production"&&(Ls.displayName="Input");var yR=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],CR=["index"];function SR(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,s=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,v=e.style,g=e.onClick,h=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var m=e.disabled,p=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var C=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,w=e.tabIndex,E=dt(e,yR),$=y==="rtl",O=c.useContext(br),I=O.prefixCls,_=c.useMemo(function(){if(typeof n=="string")return[n];var ee=n||{};return[ee.start,ee.end]},[n]),M=c.useRef(),P=c.useRef(),T=c.useRef(),N=function(Z){var Q;return(Q=[P,T][Z])===null||Q===void 0?void 0:Q.current};c.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(Z){if(tt(Z)==="object"){var Q,J=Z||{},ae=J.index,ne=ae===void 0?0:ae,ie=dt(J,CR);(Q=N(ne))===null||Q===void 0||Q.focus(ie)}else{var te;(te=N(Z??0))===null||te===void 0||te.focus()}},blur:function(){var Z,Q;(Z=N(0))===null||Z===void 0||Z.blur(),(Q=N(1))===null||Q===void 0||Q.blur()}}});var R=my(E),F=c.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),A=vy(G(G({},e),{},{id:_,placeholder:F})),j=K(A,1),H=j[0],k=c.useState({position:"absolute",width:0}),z=K(k,2),B=z[0],V=z[1],L=Tt(function(){var ee=N(s);if(ee){var Z=ee.nativeElement.getBoundingClientRect(),Q=M.current.getBoundingClientRect(),J=Z.left-Q.left;V(function(ae){return G(G({},ae),{},{width:Z.width,left:J})}),C([Z.left,Z.right,Q.width])}});c.useEffect(function(){L()},[s]);var q=o&&(b[0]&&!m[0]||b[1]&&!m[1]),Y=x&&!m[0],U=x&&!Y&&!m[1];return c.createElement(Wn,{onResize:L},c.createElement("div",Ce({},R,{className:re(I,"".concat(I,"-range"),W(W(W(W({},"".concat(I,"-focused"),u),"".concat(I,"-disabled"),m.every(function(ee){return ee})),"".concat(I,"-invalid"),p.some(function(ee){return ee})),"".concat(I,"-rtl"),$),f),style:v,ref:M,onClick:g,onMouseDown:function(Z){var Q=Z.target;Q!==P.current.inputElement&&Q!==T.current.inputElement&&Z.preventDefault(),S==null||S(Z)}}),r&&c.createElement("div",{className:"".concat(I,"-prefix")},r),c.createElement(Ls,Ce({ref:P},H(0),{autoFocus:Y,tabIndex:w,"date-range":"start"})),c.createElement("div",{className:"".concat(I,"-range-separator")},l),c.createElement(Ls,Ce({ref:T},H(1),{autoFocus:U,tabIndex:w,"date-range":"end"})),c.createElement("div",{className:"".concat(I,"-active-bar"),style:B}),c.createElement(Vs,{type:"suffix",icon:a}),q&&c.createElement(vf,{icon:o,onClear:h})))}var py=c.forwardRef(SR);process.env.NODE_ENV!=="production"&&(py.displayName="RangeSelector");function hy(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Hs(e){return e===1?"end":"start"}function xR(e,t){var n=Q0(e,function(){var gt=e.disabled,pt=e.allowEmpty,St=hy(gt,!1),nn=hy(pt,!1);return{disabled:St,allowEmpty:nn}}),r=K(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o.prefixCls,f=o.styles,v=o.classNames,g=o.defaultValue,h=o.value,b=o.needConfirm,m=o.onKeyDown,p=o.disabled,y=o.allowEmpty,C=o.disabledDate,S=o.minDate,x=o.maxDate,w=o.defaultOpen,E=o.open,$=o.onOpenChange,O=o.locale,I=o.generateConfig,_=o.picker,M=o.showNow,P=o.showToday,T=o.showTime,N=o.mode,R=o.onPanelChange,F=o.onCalendarChange,A=o.onOk,j=o.defaultPickerValue,H=o.pickerValue,k=o.onPickerValueChange,z=o.inputReadOnly,B=o.suffixIcon,V=o.onFocus,L=o.onBlur,q=o.presets,Y=o.ranges,U=o.components,ee=o.cellRender,Z=o.dateRender,Q=o.monthCellRender,J=o.onClick,ae=Z0(t),ne=J0(E,w,p,$),ie=K(ne,2),te=ie[0],le=ie[1],se=function(pt,St){(p.some(function(nn){return!nn})||!pt)&&le(pt,St)},fe=iy(I,O,l,!0,!1,g,h,F,A),ve=K(fe,5),ge=ve[0],be=ve[1],de=ve[2],pe=ve[3],Se=ve[4],xe=de(),De=ty(p,y,te),ye=K(De,9),$e=ye[0],Te=ye[1],Pe=ye[2],Oe=ye[3],we=ye[4],me=ye[5],Ee=ye[6],ue=ye[7],ce=ye[8],Ie=function(pt,St){Te(!0),V==null||V(pt,{range:Hs(St??Oe)})},rt=function(pt,St){Te(!1),L==null||L(pt,{range:Hs(St??Oe)})},lt=c.useMemo(function(){if(!T)return null;var gt=T.disabledTime,pt=gt?function(St){var nn=Hs(Oe),un=B0(xe,Ee,Oe);return gt(St,nn,{from:un})}:void 0;return G(G({},T),{},{disabledTime:pt})},[T,Oe,xe,Ee]),mt=qt([_,_],{value:N}),je=K(mt,2),Re=je[0],Ye=je[1],ke=Re[Oe]||_,Xe=ke==="date"&<?"datetime":ke,We=Xe===_&&Xe!=="time",Ae=sy(_,ke,M,P,!0),ze=ly(o,ge,be,de,pe,p,l,$e,te,u),vt=K(ze,2),ft=vt[0],Le=vt[1],Me=GD(xe,p,Ee,I,O,C),Be=L0(xe,u,y),qe=K(Be,2),Ke=qe[0],at=qe[1],wt=ny(I,O,xe,Re,te,Oe,a,We,j,H,lt==null?void 0:lt.defaultOpenValue,k,S,x),Et=K(wt,2),zt=Et[0],$t=Et[1],ht=Tt(function(gt,pt,St){var nn=wi(Re,Oe,pt);if((nn[0]!==Re[0]||nn[1]!==Re[1])&&Ye(nn),R&&St!==!1){var un=Ne(xe);gt&&(un[Oe]=gt),R(un,nn)}}),_t=function(pt,St){return wi(xe,St,pt)},Dt=function(pt,St){var nn=xe;pt&&(nn=_t(pt,Oe)),ue(Oe);var un=me(nn);pe(nn),ft(Oe,un===null),un===null?se(!1,{force:!0}):St||ae.current.focus({index:un})},Zt=function(pt){var St,nn=pt.target.getRootNode();if(!ae.current.nativeElement.contains((St=nn.activeElement)!==null&&St!==void 0?St:document.activeElement)){var un=p.findIndex(function(Pr){return!Pr});un>=0&&ae.current.focus({index:un})}se(!0),J==null||J(pt)},Vt=function(){Le(null),se(!1,{force:!0})},Rt=c.useState(null),Ve=K(Rt,2),Qe=Ve[0],_e=Ve[1],he=c.useState(null),He=K(he,2),ot=He[0],ct=He[1],It=c.useMemo(function(){return ot||xe},[xe,ot]);c.useEffect(function(){te||ct(null)},[te]);var Ht=c.useState([0,0,0]),Ft=K(Ht,2),Je=Ft[0],it=Ft[1],Nt=ey(q,Y),Gt=function(pt){ct(pt),_e("preset")},Xt=function(pt){var St=Le(pt);St&&se(!1,{force:!0})},cn=function(pt){Dt(pt)},qn=function(pt){ct(pt?_t(pt,Oe):null),_e("cell")},Kn=function(pt){se(!0),Ie(pt)},On=function(){Pe("panel")},ur=function(pt){var St=wi(xe,Oe,pt);pe(St),!b&&!i&&a===Xe&&Dt(pt)},Yn=function(){se(!1)},Mt=of(ee,Z,Q,Hs(Oe)),nt=xe[Oe]||null,Ct=Tt(function(gt){return u(gt,{activeIndex:Oe})}),Ue=c.useMemo(function(){var gt=Jn(o,!1),pt=gn(o,[].concat(Ne(Object.keys(gt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pt},[o]),Ge=c.createElement(fy,Ce({},Ue,{showNow:Ae,showTime:lt,range:!0,multiplePanel:We,activeInfo:Je,disabledDate:Me,onFocus:Kn,onBlur:rt,onPanelMouseDown:On,picker:_,mode:ke,internalMode:Xe,onPanelChange:ht,format:s,value:nt,isInvalid:Ct,onChange:null,onSelect:ur,pickerValue:zt,defaultOpenValue:_o(T==null?void 0:T.defaultOpenValue)[Oe],onPickerValueChange:$t,hoverValue:It,onHover:qn,needConfirm:b,onSubmit:Dt,onOk:Se,presets:Nt,onPresetHover:Gt,onPresetSubmit:Xt,onNow:cn,cellRender:Mt})),xt=function(pt,St){var nn=_t(pt,St);pe(nn)},en=function(){Pe("input")},fn=function(pt,St){var nn=Ee.length,un=Ee[nn-1];if(nn&&un!==St&&b&&!y[un]&&!ce(un)&&xe[un]){ae.current.focus({index:un});return}Pe("input"),se(!0,{inherit:!0}),Oe!==St&&te&&!b&&i&&Dt(null,!0),we(St),Ie(pt,St)},Vn=function(pt,St){if(se(!1),!b&&Pe()==="input"){var nn=me(xe);ft(Oe,nn===null)}rt(pt,St)},Un=function(pt,St){pt.key==="Tab"&&Dt(null,!0),m==null||m(pt,St)},Ln=c.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:I,button:U.button,input:U.input}},[d,O,I,U.button,U.input]);if(Pt(function(){te&&Oe!==void 0&&ht(null,_,!1)},[te,Oe,_]),Pt(function(){var gt=Pe();!te&>==="input"&&(se(!1),Dt(null,!0)),!te&&i&&!b&>==="panel"&&(se(!0),Dt())},[te]),process.env.NODE_ENV!=="production"){var In=function(pt){return!(h!=null&&h[pt])&&!(g!=null&&g[pt])};p.some(function(gt,pt){return gt&&In(pt)&&!y[pt]})&&ut(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return c.createElement(br.Provider,{value:Ln},c.createElement(j0,Ce({},V0(o),{popupElement:Ge,popupStyle:f.popup,popupClassName:v.popup,visible:te,onClose:Yn,range:!0}),c.createElement(py,Ce({},o,{ref:ae,suffixIcon:B,activeIndex:$e||te?Oe:null,activeHelp:!!ot,allHelp:!!ot&&Qe==="preset",focused:$e,onFocus:fn,onBlur:Vn,onKeyDown:Un,onSubmit:Dt,value:It,maskFormat:s,onChange:xt,onInputChange:en,format:l,inputReadOnly:z,disabled:p,open:te,onOpenChange:se,onClick:Zt,onClear:Vt,invalid:Ke,onInvalid:at,onActiveInfo:it}))))}var by=c.forwardRef(xR);process.env.NODE_ENV!=="production"&&(by.displayName="RefRangePicker");function wR(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,l=e.disabled,s=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),v="".concat(f,"-overflow");function g(m,p){return c.createElement("span",{className:re("".concat(f,"-item")),title:typeof m=="string"?m:null},c.createElement("span",{className:"".concat(f,"-item-content")},m),!l&&p&&c.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:p,className:"".concat(f,"-item-remove")},a))}function h(m){var p=i(m),y=function(S){S&&S.stopPropagation(),r(m)};return g(p,y)}function b(m){var p="+ ".concat(m.length," ...");return g(p)}return c.createElement("div",{className:d},c.createElement(pr,{prefixCls:v,data:n,renderItem:h,renderRest:b,itemKey:function(p){return i(p)},maxCount:s}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var ER=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function $R(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,s=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,v=e.onClick,g=e.onClear,h=e.internalPicker,b=e.value,m=e.onChange,p=e.onSubmit;e.onInputChange;var y=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,x=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var $=e.autoFocus,O=e.tabIndex,I=e.removeIcon,_=dt(e,ER),M=w==="rtl",P=c.useContext(br),T=P.prefixCls,N=c.useRef(),R=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(Y){var U;(U=R.current)===null||U===void 0||U.focus(Y)},blur:function(){var Y;(Y=R.current)===null||Y===void 0||Y.blur()}}});var F=my(_),A=function(Y){m([Y])},j=function(Y){var U=b.filter(function(ee){return ee&&!An(s,l,ee,Y,h)});m(U),n||p()},H=vy(G(G({},e),{},{onChange:A}),function(q){var Y=q.valueTexts;return{value:Y[0]||"",active:i}}),k=K(H,2),z=k[0],B=k[1],V=!!(o&&b.length&&!S),L=y?c.createElement(c.Fragment,null,c.createElement(wR,{prefixCls:T,value:b,onRemove:j,formatDate:B,maxTagCount:C,disabled:S,removeIcon:I,placeholder:u}),c.createElement("input",{className:"".concat(T,"-multiple-input"),value:b.map(B).join(","),ref:R,readOnly:!0,autoFocus:$,tabIndex:O}),c.createElement(Vs,{type:"suffix",icon:a}),V&&c.createElement(vf,{icon:o,onClear:g})):c.createElement(Ls,Ce({ref:R},z(),{autoFocus:$,tabIndex:O,suffixIcon:a,clearIcon:V&&c.createElement(vf,{icon:o,onClear:g}),showActiveCls:!1}));return c.createElement("div",Ce({},F,{className:re(T,W(W(W(W(W({},"".concat(T,"-multiple"),y),"".concat(T,"-focused"),i),"".concat(T,"-disabled"),S),"".concat(T,"-invalid"),x),"".concat(T,"-rtl"),M),d),style:f,ref:N,onClick:v,onMouseDown:function(Y){var U,ee=Y.target;ee!==((U=R.current)===null||U===void 0?void 0:U.inputElement)&&Y.preventDefault(),E==null||E(Y)}}),r&&c.createElement("div",{className:"".concat(T,"-prefix")},r),L)}var yy=c.forwardRef($R);process.env.NODE_ENV!=="production"&&(yy.displayName="SingleSelector");function OR(e,t){var n=Q0(e),r=K(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],u=r[5],d=o,f=d.prefixCls,v=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,m=d.value,p=d.needConfirm,y=d.onChange,C=d.onKeyDown,S=d.disabled,x=d.disabledDate,w=d.minDate,E=d.maxDate,$=d.defaultOpen,O=d.open,I=d.onOpenChange,_=d.locale,M=d.generateConfig,P=d.picker,T=d.showNow,N=d.showToday,R=d.showTime,F=d.mode,A=d.onPanelChange,j=d.onCalendarChange,H=d.onOk,k=d.multiple,z=d.defaultPickerValue,B=d.pickerValue,V=d.onPickerValueChange,L=d.inputReadOnly,q=d.suffixIcon,Y=d.removeIcon,U=d.onFocus,ee=d.onBlur,Z=d.presets,Q=d.components,J=d.cellRender,ae=d.dateRender,ne=d.monthCellRender,ie=d.onClick,te=Z0(t);function le(Ue){return Ue===null?null:k?Ue:Ue[0]}var se=cy(M,_,a),fe=J0(O,$,[S],I),ve=K(fe,2),ge=ve[0],be=ve[1],de=function(Ge,xt,en){if(j){var fn=G({},en);delete fn.range,j(le(Ge),le(xt),fn)}},pe=function(Ge){H==null||H(le(Ge))},Se=iy(M,_,l,!1,h,b,m,de,pe),xe=K(Se,5),De=xe[0],ye=xe[1],$e=xe[2],Te=xe[3],Pe=xe[4],Oe=$e(),we=ty([S]),me=K(we,4),Ee=me[0],ue=me[1],ce=me[2],Ie=me[3],rt=function(Ge){ue(!0),U==null||U(Ge,{})},lt=function(Ge){ue(!1),ee==null||ee(Ge,{})},mt=qt(P,{value:F}),je=K(mt,2),Re=je[0],Ye=je[1],ke=Re==="date"&&R?"datetime":Re,Xe=sy(P,Re,T,N),We=y&&function(Ue,Ge){y(le(Ue),le(Ge))},Ae=ly(G(G({},o),{},{onChange:We}),De,ye,$e,Te,[],l,Ee,ge,u),ze=K(Ae,2),vt=ze[1],ft=L0(Oe,u),Le=K(ft,2),Me=Le[0],Be=Le[1],qe=c.useMemo(function(){return Me.some(function(Ue){return Ue})},[Me]),Ke=function(Ge,xt){if(V){var en=G(G({},xt),{},{mode:xt.mode[0]});delete en.range,V(Ge[0],en)}},at=ny(M,_,Oe,[Re],ge,Ie,a,!1,z,B,_o(R==null?void 0:R.defaultOpenValue),Ke,w,E),wt=K(at,2),Et=wt[0],zt=wt[1],$t=Tt(function(Ue,Ge,xt){if(Ye(Ge),A&&xt!==!1){var en=Ue||Oe[Oe.length-1];A(en,Ge)}}),ht=function(){vt($e()),be(!1,{force:!0})},_t=function(Ge){!S&&!te.current.nativeElement.contains(document.activeElement)&&te.current.focus(),be(!0),ie==null||ie(Ge)},Dt=function(){vt(null),be(!1,{force:!0})},Zt=c.useState(null),Vt=K(Zt,2),Rt=Vt[0],Ve=Vt[1],Qe=c.useState(null),_e=K(Qe,2),he=_e[0],He=_e[1],ot=c.useMemo(function(){var Ue=[he].concat(Ne(Oe)).filter(function(Ge){return Ge});return k?Ue:Ue.slice(0,1)},[Oe,he,k]),ct=c.useMemo(function(){return!k&&he?[he]:Oe.filter(function(Ue){return Ue})},[Oe,he,k]);c.useEffect(function(){ge||He(null)},[ge]);var It=ey(Z),Ht=function(Ge){He(Ge),Ve("preset")},Ft=function(Ge){var xt=k?se($e(),Ge):[Ge],en=vt(xt);en&&!k&&be(!1,{force:!0})},Je=function(Ge){Ft(Ge)},it=function(Ge){He(Ge),Ve("cell")},Nt=function(Ge){be(!0),rt(Ge)},Gt=function(Ge){if(ce("panel"),!(k&&ke!==P)){var xt=k?se($e(),Ge):[Ge];Te(xt),!p&&!i&&a===ke&&ht()}},Xt=function(){be(!1)},cn=of(J,ae,ne),qn=c.useMemo(function(){var Ue=Jn(o,!1),Ge=gn(o,[].concat(Ne(Object.keys(Ue)),["onChange","onCalendarChange","style","className","onPanelChange"]));return G(G({},Ge),{},{multiple:o.multiple})},[o]),Kn=c.createElement(fy,Ce({},qn,{showNow:Xe,showTime:R,disabledDate:x,onFocus:Nt,onBlur:lt,picker:P,mode:Re,internalMode:ke,onPanelChange:$t,format:s,value:Oe,isInvalid:u,onChange:null,onSelect:Gt,pickerValue:Et,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:zt,hoverValue:ot,onHover:it,needConfirm:p,onSubmit:ht,onOk:Pe,presets:It,onPresetHover:Ht,onPresetSubmit:Ft,onNow:Je,cellRender:cn})),On=function(Ge){Te(Ge)},ur=function(){ce("input")},Yn=function(Ge){ce("input"),be(!0,{inherit:!0}),rt(Ge)},Mt=function(Ge){be(!1),lt(Ge)},nt=function(Ge,xt){Ge.key==="Tab"&&ht(),C==null||C(Ge,xt)},Ct=c.useMemo(function(){return{prefixCls:f,locale:_,generateConfig:M,button:Q.button,input:Q.input}},[f,_,M,Q.button,Q.input]);return Pt(function(){ge&&Ie!==void 0&&$t(null,P,!1)},[ge,Ie,P]),Pt(function(){var Ue=ce();!ge&&Ue==="input"&&(be(!1),ht()),!ge&&i&&!p&&Ue==="panel"&&ht()},[ge]),c.createElement(br.Provider,{value:Ct},c.createElement(j0,Ce({},V0(o),{popupElement:Kn,popupStyle:v.popup,popupClassName:g.popup,visible:ge,onClose:Xt}),c.createElement(yy,Ce({},o,{ref:te,suffixIcon:q,removeIcon:Y,activeHelp:!!he,allHelp:!!he&&Rt==="preset",focused:Ee,onFocus:Yn,onBlur:Mt,onKeyDown:nt,onSubmit:ht,value:ct,maskFormat:s,onChange:On,onInputChange:ur,internalPicker:a,format:l,inputReadOnly:L,disabled:S,open:ge,onOpenChange:be,onClick:_t,onClear:Dt,invalid:qe,onInvalid:function(Ge){Be(Ge,0)}}))))}var Cy=c.forwardRef(OR);process.env.NODE_ENV!=="production"&&(Cy.displayName="RefPicker");const Sy=c.createContext(null),IR=Sy.Provider,xy=c.createContext(null),NR=xy.Provider;var PR=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],wy=D.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,u=s===void 0?!1:s,d=e.type,f=d===void 0?"checkbox":d,v=e.title,g=e.onChange,h=dt(e,PR),b=D.useRef(null),m=D.useRef(null),p=qt(u,{value:i}),y=K(p,2),C=y[0],S=y[1];D.useImperativeHandle(t,function(){return{focus:function($){var O;(O=b.current)===null||O===void 0||O.focus($)},blur:function(){var $;($=b.current)===null||$===void 0||$.blur()},input:b.current,nativeElement:m.current}});var x=re(r,o,W(W({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),l)),w=function($){l||("checked"in e||S($.target.checked),g==null||g({target:G(G({},e),{},{type:f,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return c.createElement("span",{className:x,title:v,style:a,ref:m},c.createElement("input",Ce({},h,{className:"".concat(r,"-input"),ref:b,onChange:w,disabled:l,checked:!!C,type:f})),c.createElement("span",{className:"".concat(r,"-inner")}))});function Ey(e){const t=D.useRef(null),n=()=>{yt.cancel(t.current),t.current=null};return[()=>{n(),t.current=yt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const _R=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ut(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},MR=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:m,radioBgColor:p,calc:y}=e,C=`${t}-inner`,x=y(o).sub(y(4).mul(2)),w=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ut(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${X(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ut(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
201
|
-
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},Ar(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:p,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${y(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},TR=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:g,controlHeightSM:h,paddingXS:b,borderRadius:m,borderRadiusSM:p,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:S,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:$,colorPrimary:O,colorPrimaryHover:I,colorPrimaryActive:_,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:T,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:X(N(n).sub(N(o).mul(2)).equal()),background:f,border:`${X(o)} ${a} ${i}`,borderBlockStartWidth:N(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:N(o).mul(-1).equal(),insetInlineStart:N(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${X(o)} ${a} ${i}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:g,fontSize:v,lineHeight:X(N(g).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:N(b).sub(o).equal(),paddingBlock:0,lineHeight:X(N(h).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},Ar(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:O,background:C,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:P,borderColor:P},"&:active":{color:S,background:T,borderColor:T}},"&-disabled":{color:x,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},$y=Kt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${X(n)} ${t}`,a=At(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[_R(a),MR(a),TR(a)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:g,colorWhite:h}=e,b=4,m=a,p=t?m-b*2:m-(b+o)*2;return{radioSize:m,dotSize:p,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},{unitless:{radioSize:!0,dotSize:!0}});var DR=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 RR=(e,t)=>{var n,r;const o=c.useContext(Sy),a=c.useContext(xy),{getPrefixCls:i,direction:l,radio:s}=c.useContext(bt),u=c.useRef(null),d=En(t,u),{isFormItemInput:f}=c.useContext(Cn);if(process.env.NODE_ENV!=="production"){const R=jt("Radio");process.env.NODE_ENV!=="production"&&R(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=R=>{var F,A;(F=e.onChange)===null||F===void 0||F.call(e,R),(A=o==null?void 0:o.onChange)===null||A===void 0||A.call(o,R)},{prefixCls:g,className:h,rootClassName:b,children:m,style:p,title:y}=e,C=DR(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",g),x=((o==null?void 0:o.optionType)||a)==="button",w=x?`${S}-button`:S,E=Gn(S),[$,O,I]=$y(S,E),_=Object.assign({},C),M=c.useContext(Tn);o&&(_.name=o.name,_.onChange=v,_.checked=e.value===o.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:o.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:M;const P=re(`${w}-wrapper`,{[`${w}-wrapper-checked`]:_.checked,[`${w}-wrapper-disabled`]:_.disabled,[`${w}-wrapper-rtl`]:l==="rtl",[`${w}-wrapper-in-form-item`]:f,[`${w}-wrapper-block`]:!!(o!=null&&o.block)},s==null?void 0:s.className,h,b,O,I,E),[T,N]=Ey(_.onClick);return $(c.createElement(ri,{component:"Radio",disabled:_.disabled},c.createElement("label",{className:P,style:Object.assign(Object.assign({},s==null?void 0:s.style),p),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:T},c.createElement(wy,Object.assign({},_,{className:re(_.className,{[ns]:!x}),type:"radio",prefixCls:w,ref:d,onClick:N})),m!==void 0?c.createElement("span",{className:`${w}-label`},m):null)))},Pi=c.forwardRef(RR);process.env.NODE_ENV!=="production"&&(Pi.displayName="Radio");const FR=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(bt),o=rd(),{prefixCls:a,className:i,rootClassName:l,options:s,buttonStyle:u="outline",disabled:d,children:f,size:v,style:g,id:h,optionType:b,name:m=o,defaultValue:p,value:y,block:C=!1,onChange:S,onMouseEnter:x,onMouseLeave:w,onFocus:E,onBlur:$}=e,[O,I]=qt(p,{value:y}),_=c.useCallback(z=>{const B=O,V=z.target.value;"value"in e||I(V),V!==B&&(S==null||S(z))},[O,I,S]),M=n("radio",a),P=`${M}-group`,T=Gn(M),[N,R,F]=$y(M,T);let A=f;s&&s.length>0&&(A=s.map(z=>typeof z=="string"||typeof z=="number"?c.createElement(Pi,{key:z.toString(),prefixCls:M,disabled:d,value:z,checked:O===z},z):c.createElement(Pi,{key:`radio-group-value-options-${z.value}`,prefixCls:M,disabled:z.disabled||d,value:z.value,checked:O===z.value,title:z.title,style:z.style,className:z.className,id:z.id,required:z.required},z.label)));const j=_n(v),H=re(P,`${P}-${u}`,{[`${P}-${j}`]:j,[`${P}-rtl`]:r==="rtl",[`${P}-block`]:C},i,l,R,F,T),k=c.useMemo(()=>({onChange:_,value:O,disabled:d,name:m,optionType:b,block:C}),[_,O,d,m,b,C]);return N(c.createElement("div",Object.assign({},Jn(e,{aria:!0,data:!0}),{className:H,style:g,onMouseEnter:x,onMouseLeave:w,onFocus:E,onBlur:$,id:h,ref:t}),c.createElement(IR,{value:k},A)))}),AR=c.memo(FR);var jR=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 zR=(e,t)=>{const{getPrefixCls:n}=c.useContext(bt),{prefixCls:r}=e,o=jR(e,["prefixCls"]),a=n("radio",r);return c.createElement(NR,{value:"button"},c.createElement(Pi,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},BR=c.forwardRef(zR),Do=Pi;Do.Button=BR,Do.Group=AR,Do.__ANT_RADIO=!0;function Ro(e){return At(e,{inputAffixPadding:e.paddingXXS})}const Fo=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:m,colorErrorOutline:p,colorWarningOutline:y,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:w}=e,E=S||n,$=w||E,O=x||l,I=Math.round((t-E*r)/2*10)/10-o,_=Math.round((a-$*r)/2*10)/10-o,M=Math.ceil((i-O*s)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(M,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${m}`,errorActiveShadow:`0 0 0 ${b}px ${p}`,warningActiveShadow:`0 0 0 ${b}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:E,inputFontSizeLG:O,inputFontSizeSM:$}},VR=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ks=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},VR(At(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gf=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Oy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pf=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ks(e))}),Oy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Oy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Iy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ny=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Iy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Iy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ks(e))}})}),hf=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Py=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},_y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Py(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),bf=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Py(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ks(e))}),_y(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),_y(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),My=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ty=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},My(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),My(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Dy=(e,t)=>({background:e.colorBgContainer,borderWidth:`${X(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Ry=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),yf=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Ry(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ry(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Cf=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Fy=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${X(t)} ${X(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Sf=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),_i=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Cf(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Fy(e)),"&-sm":Object.assign({},Sf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Ay=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({},Fy(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Sf(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 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(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:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${X(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Qa()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
202
|
-
& > ${t}-affix-wrapper,
|
|
203
|
-
& > ${t}-number-affix-wrapper,
|
|
204
|
-
& > ${n}-picker-range
|
|
205
|
-
`]:{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,
|
|
206
|
-
& > ${n}-select-auto-complete ${t},
|
|
207
|
-
& > ${n}-cascader-picker ${t},
|
|
208
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
209
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
210
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
211
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
212
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
213
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
214
|
-
& > ${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}}}})}},LR=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),_i(e)),pf(e)),bf(e)),hf(e)),yf(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},HR=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${X(e.inputAffixPadding)}`}}}},kR=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},_i(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),HR(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},WR=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ut(e)),Ay(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Ny(e)),Ty(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},qR=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
215
|
-
> ${t},
|
|
216
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},UR=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jy=Kt(["Input","Shared"],e=>{const t=At(e,Ro(e));return[LR(t),kR(t)]},Fo,{resetFont:!1}),zy=Kt(["Input","Component"],e=>{const t=At(e,Ro(e));return[WR(t),qR(t),UR(t),ai(t)]},Fo,{resetFont:!1}),xf=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=Hb(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:X(a.itemLineHeight)}}}]},GR=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=At(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=At(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[xf(o,"small"),xf(e),xf(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},kb(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},KR=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:v,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:X(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
217
|
-
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${X(l)} ${s} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
|
|
218
|
-
&-in-view${t}-range-start,
|
|
219
|
-
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
|
|
220
|
-
&-in-view${t}-range-start,
|
|
221
|
-
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:v,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:v}}},YR=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:v,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:m,pickerControlIconBorderWidth:p,colorIcon:y,textHeight:C,motionDurationMid:S,colorIconHover:x,fontWeightStrong:w,cellHeight:E,pickerCellPaddingVertical:$,colorTextDisabled:O,colorText:I,fontSize:_,motionDurationSlow:M,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:T,borderRadiusSM:N,colorTextLightSolid:R,cellHoverBg:F,timeColumnHeight:A,timeColumnWidth:j,timeCellHeight:H,controlItemBgActive:k,marginXXS:z,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:V}=e,L=e.calc(i).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
|
|
222
|
-
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
223
|
-
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:L},"&-header":{display:"flex",padding:`0 ${X(s)}`,color:b,borderBottom:`${X(f)} ${v} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:X(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:X(C),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:p,borderInlineStartWidth:p,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:V,insetInlineStart:V,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:p,borderInlineStartWidth:p,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc($).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${X($)} 0`,color:O,cursor:"pointer","&-in-view":{color:I}},KR(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${X(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:T}},"&-decade-panel":{[r]:{padding:`0 ${X(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${X(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${X(s)} ${X(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
|
|
224
|
-
&-selected ${r},
|
|
225
|
-
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:F},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new kt(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:k}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${X(s)} ${X(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${X(f)} ${v} ${m}`},[`${t}-date-panel,
|
|
226
|
-
${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,
|
|
227
|
-
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:j,margin:`${X(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${X(H)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${X(f)} ${v} ${m}`},"&-active":{background:new kt(k).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(j).sub(e.calc(z).mul(2)).equal(),height:H,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(j).sub(H).div(2).equal(),color:I,lineHeight:X(H),borderRadius:N,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:F}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:k}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},XR=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${X(r)} ${u} ${d}`,"&-extra":{padding:`0 ${X(o)}`,lineHeight:X(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${X(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:X(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:X(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},QR=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},JR=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=a*2,s=i*2,u=Math.min(n-l,n-s),d=Math.min(r-l,r-s),f=Math.min(o-l,o-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new kt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new kt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ZR=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fo(e)),JR(e)),e0(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),eF=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},pf(e)),yf(e)),bf(e)),hf(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},wf=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${X(a)} ${X(r)} ${X(i)}`}},tF=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},nF=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:v,fontSizeLG:g,controlHeightSM:h,paddingInlineSM:b,paddingXS:m,marginXS:p,colorIcon:y,lineWidthBold:C,colorPrimary:S,motionDurationSlow:x,zIndexPopup:w,paddingXXS:E,sizePopupArrow:$,colorBgElevated:O,borderRadiusLG:I,boxShadowSecondary:_,borderRadiusSM:M,colorSplit:P,cellHoverBg:T,presetsWidth:N,presetsMaxWidth:R,boxShadowPopoverArrow:F,fontHeight:A,fontHeightLG:j,lineHeightLG:H}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ut(e)),wf(e,r,A,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},Cf(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},wf(e,v,j,o)),{[`${t}-input > input`]:{fontSize:g,lineHeight:H}}),"&-small":Object.assign({},wf(e,h,A,b)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(m).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:p}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${X(m)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ut(e)),YR(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
|
228
|
-
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
|
229
|
-
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
|
230
|
-
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
231
|
-
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
232
|
-
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ju},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
|
233
|
-
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
|
234
|
-
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
|
235
|
-
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Xu},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
|
236
|
-
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Zu},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
|
237
|
-
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Qu},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},t0(e,O,F)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:I,boxShadow:_,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:m,borderInlineEnd:`${X(a)} ${i} ${P}`,li:Object.assign(Object.assign({},Xr),{borderRadius:M,paddingInline:m,paddingBlock:e.calc(h).sub(A).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:p},"&:hover":{background:T}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${X(e.calc($).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},fa(e,"slide-up"),fa(e,"slide-down"),as(e,"move-up"),as(e,"move-down")]},By=Kt("DatePicker",e=>{const t=At(Ro(e),QR(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[XR(t),nF(t),eF(t),tF(t),GR(t),ai(e,{focusElCls:`${e.componentCls}-focused`})]},ZR);var rF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},oF=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:rF}))},Ef=c.forwardRef(oF);process.env.NODE_ENV!=="production"&&(Ef.displayName="PlusOutlined");const Ws=D.createContext(null);var aF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,u=s===void 0?"center":s,d=D.useState(),f=K(d,2),v=f[0],g=f[1],h=D.useRef(),b=D.useCallback(function(p){return typeof l=="function"?l(p):typeof l=="number"?l:p},[l]);function m(){yt.cancel(h.current)}return D.useEffect(function(){var p={};if(n)if(r){p.width=b(n.width);var y=o?"right":"left";u==="start"&&(p[y]=n[y]),u==="center"&&(p[y]=n[y]+n.width/2,p.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(p[y]=n[y]+n.width,p.transform="translateX(-100%)")}else p.height=b(n.height),u==="start"&&(p.top=n.top),u==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),u==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return m(),h.current=yt(function(){var C=v&&p&&Object.keys(p).every(function(S){var x=p[S],w=v[S];return typeof x=="number"&&typeof w=="number"?Math.round(x)===Math.round(w):x===w});C||g(p)}),m},[JSON.stringify(n),r,o,u,b]),{style:v}},Vy={width:0,height:0,left:0,top:0};function iF(e,t,n){return D.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Vy,i=a.left+a.width,l=0;l<e.length;l+=1){var s=e[l].key,u=t.get(s);if(!u){var d;u=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||Vy}var f=o.get(s)||G({},u);f.right=i-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Ly(e,t){var n=c.useRef(e),r=c.useState({}),o=K(r,2),a=o[1];function i(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,a({})}return[n.current,i]}var lF=.1,Hy=.01,qs=20,ky=Math.pow(.995,qs);function sF(e,t){var n=D.useState(),r=K(n,2),o=r[0],a=r[1],i=D.useState(0),l=K(i,2),s=l[0],u=l[1],d=D.useState(0),f=K(d,2),v=f[0],g=f[1],h=D.useState(),b=K(h,2),m=b[0],p=b[1],y=D.useRef();function C(O){var I=O.touches[0],_=I.screenX,M=I.screenY;a({x:_,y:M}),window.clearInterval(y.current)}function S(O){if(o){var I=O.touches[0],_=I.screenX,M=I.screenY;a({x:_,y:M});var P=_-o.x,T=M-o.y;t(P,T);var N=Date.now();u(N),g(N-s),p({x:P,y:T})}}function x(){if(o&&(a(null),p(null),m)){var O=m.x/v,I=m.y/v,_=Math.abs(O),M=Math.abs(I);if(Math.max(_,M)<lF)return;var P=O,T=I;y.current=window.setInterval(function(){if(Math.abs(P)<Hy&&Math.abs(T)<Hy){window.clearInterval(y.current);return}P*=ky,T*=ky,t(P*qs,T*qs)},qs)}}var w=D.useRef();function E(O){var I=O.deltaX,_=O.deltaY,M=0,P=Math.abs(I),T=Math.abs(_);P===T?M=w.current==="x"?I:_:P>T?(M=I,w.current="x"):(M=_,w.current="y"),t(-M,-M)&&O.preventDefault()}var $=D.useRef(null);$.current={onTouchStart:C,onTouchMove:S,onTouchEnd:x,onWheel:E},c.useEffect(function(){function O(P){$.current.onTouchStart(P)}function I(P){$.current.onTouchMove(P)}function _(P){$.current.onTouchEnd(P)}function M(P){$.current.onWheel(P)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",_,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",_)}},[])}function Wy(e){var t=D.useState(0),n=K(t,2),r=n[0],o=n[1],a=D.useRef(0),i=D.useRef();return i.current=e,fo(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function cF(e){var t=D.useRef([]),n=D.useState({}),r=K(n,2),o=r[1],a=D.useRef(typeof e=="function"?e():e),i=Wy(function(){var s=a.current;t.current.forEach(function(u){s=u(s)}),t.current=[],a.current=s,o({})});function l(s){t.current.push(s),i()}return[a.current,l]}var qy={width:0,height:0,left:0,top:0,right:0};function uF(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=u?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),D.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,h=g,b=0;b<g;b+=1){var m=e.get(l[b].key)||qy;if(Math.floor(m[f]+m[d])>Math.floor(v+t)){h=b-1;break}}for(var p=0,y=g-1;y>=0;y-=1){var C=e.get(l[y].key)||qy;if(C[f]<v){p=y+1;break}}return p>=h?[0,0]:[p,h]},[e,t,r,o,a,v,s,l.map(function(g){return g.key}).join("_"),u])}function Uy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var dF="TABS_DQ";function Gy(e){return String(e).replace(/"/g,dF)}function $f(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Ky=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Of=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return tt(o)==="object"&&!c.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});process.env.NODE_ENV!=="production"&&(Of.displayName="ExtraContent");var fF=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.more,s=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,m=e.getPopupContainer,p=e.popupClassName,y=D.useState(!1),C=K(y,2),S=C[0],x=C[1],w=D.useState(null),E=K(w,2),$=E[0],O=E[1],I=s.icon,_=I===void 0?"More":I,M="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),T=$!==null?"".concat(M,"-").concat($):null,N=a==null?void 0:a.dropdownAriaLabel;function R(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B})}var F=c.createElement(xi,{onClick:function(V){var L=V.key,q=V.domEvent;b(L,q),x(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[$],"aria-label":N!==void 0?N:"expanded dropdown"},o.map(function(B){var V=B.closable,L=B.disabled,q=B.closeIcon,Y=B.key,U=B.label,ee=$f(V,q,f,L);return c.createElement(Is,{key:Y,id:"".concat(M,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:L},c.createElement("span",null,U),ee&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(Q){Q.stopPropagation(),R(Q,Y)}},q||f.removeIcon||"×"))}));function A(B){for(var V=o.filter(function(ee){return!ee.disabled}),L=V.findIndex(function(ee){return ee.key===$})||0,q=V.length,Y=0;Y<q;Y+=1){L=(L+B+q)%q;var U=V[L];if(!U.disabled){O(U.key);return}}}function j(B){var V=B.which;if(!S){[Fe.DOWN,Fe.SPACE,Fe.ENTER].includes(V)&&(x(!0),B.preventDefault());return}switch(V){case Fe.UP:A(-1),B.preventDefault();break;case Fe.DOWN:A(1),B.preventDefault();break;case Fe.ESC:x(!1);break;case Fe.SPACE:case Fe.ENTER:$!==null&&b($,B);break}}D.useEffect(function(){var B=document.getElementById(T);B&&B.scrollIntoView&&B.scrollIntoView(!1)},[$]),D.useEffect(function(){S||O(null)},[S]);var H=W({},g?"marginRight":"marginLeft",v);o.length||(H.visibility="hidden",H.order=1);var k=re(W({},"".concat(P,"-rtl"),g)),z=i?null:c.createElement(RT,Ce({prefixCls:P,overlay:F,visible:o.length?S:!1,onVisibleChange:x,overlayClassName:re(k,p),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},s),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:H,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:j},_));return c.createElement("div",{className:re("".concat(n,"-nav-operations"),d),style:u,ref:t},z,c.createElement(Ky,{prefixCls:n,locale:a,editable:f}))});const vF=c.memo(fF,function(e,t){return t.tabMoving});var mF=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.focus,i=t.tab,l=i.key,s=i.label,u=i.disabled,d=i.closeIcon,f=i.icon,v=t.closable,g=t.renderWrapper,h=t.removeAriaLabel,b=t.editable,m=t.onClick,p=t.onFocus,y=t.onBlur,C=t.onKeyDown,S=t.onMouseDown,x=t.onMouseUp,w=t.style,E=t.tabCount,$=t.currentPosition,O="".concat(n,"-tab"),I=$f(v,d,b,u);function _(R){u||m(R)}function M(R){R.preventDefault(),R.stopPropagation(),b.onEdit("remove",{key:l,event:R})}var P=c.useMemo(function(){return f&&typeof s=="string"?c.createElement("span",null,s):s},[s,f]),T=c.useRef(null);c.useEffect(function(){a&&T.current&&T.current.focus()},[a]);var N=c.createElement("div",{key:l,"data-node-key":Gy(l),className:re(O,W(W(W(W({},"".concat(O,"-with-remove"),I),"".concat(O,"-active"),o),"".concat(O,"-disabled"),u),"".concat(O,"-focus"),a)),style:w,onClick:_},c.createElement("div",{ref:T,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(O,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(F){F.stopPropagation(),_(F)},onKeyDown:C,onMouseDown:S,onMouseUp:x,onFocus:p,onBlur:y},a&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat($," of ").concat(E)),f&&c.createElement("span",{className:"".concat(O,"-icon")},f),s&&P),I&&c.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:o?0:-1,className:"".concat(O,"-remove"),onClick:function(F){F.stopPropagation(),M(F)}},d||b.removeIcon||"×"));return g?g(N):N},gF=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,u=l.height,d=l.left,f=l.top;return Math.abs(s-r)<1?[s,u,d-n.left,f-n.top]:[r,o,i,a]},Ia=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,u=l.height;if(Math.abs(s-o)<1)return[s,u]}return[o,i]},Us=function(t,n){return t[n?0:1]},Yy=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,l=e.rtl,s=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,g=e.children,h=e.onTabClick,b=e.onTabScroll,m=e.indicator,p=c.useContext(Ws),y=p.prefixCls,C=p.tabs,S=D.useRef(null),x=D.useRef(null),w=D.useRef(null),E=D.useRef(null),$=D.useRef(null),O=D.useRef(null),I=D.useRef(null),_=f==="top"||f==="bottom",M=Ly(0,function(_e,he){_&&b&&b({direction:_e>he?"left":"right"})}),P=K(M,2),T=P[0],N=P[1],R=Ly(0,function(_e,he){!_&&b&&b({direction:_e>he?"top":"bottom"})}),F=K(R,2),A=F[0],j=F[1],H=D.useState([0,0]),k=K(H,2),z=k[0],B=k[1],V=D.useState([0,0]),L=K(V,2),q=L[0],Y=L[1],U=D.useState([0,0]),ee=K(U,2),Z=ee[0],Q=ee[1],J=D.useState([0,0]),ae=K(J,2),ne=ae[0],ie=ae[1],te=cF(new Map),le=K(te,2),se=le[0],fe=le[1],ve=iF(C,se,q[0]),ge=Us(z,_),be=Us(q,_),de=Us(Z,_),pe=Us(ne,_),Se=Math.floor(ge)<Math.floor(be+de),xe=Se?ge-pe:ge-de,De="".concat(y,"-nav-operations-hidden"),ye=0,$e=0;_&&l?(ye=0,$e=Math.max(0,be-xe)):(ye=Math.min(0,xe-be),$e=0);function Te(_e){return _e<ye?ye:_e>$e?$e:_e}var Pe=D.useRef(null),Oe=D.useState(),we=K(Oe,2),me=we[0],Ee=we[1];function ue(){Ee(Date.now())}function ce(){Pe.current&&clearTimeout(Pe.current)}sF(E,function(_e,he){function He(ot,ct){ot(function(It){var Ht=Te(It+ct);return Ht})}return Se?(_?He(N,_e):He(j,he),ce(),ue(),!0):!1}),D.useEffect(function(){return ce(),me&&(Pe.current=setTimeout(function(){Ee(0)},100)),ce},[me]);var Ie=uF(ve,xe,_?T:A,be,de,pe,G(G({},e),{},{tabs:C})),rt=K(Ie,2),lt=rt[0],mt=rt[1],je=Tt(function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,he=ve.get(_e)||{width:0,height:0,left:0,right:0,top:0};if(_){var He=T;l?he.right<T?He=he.right:he.right+he.width>T+xe&&(He=he.right+he.width-xe):he.left<-T?He=-he.left:he.left+he.width>-T+xe&&(He=-(he.left+he.width-xe)),j(0),N(Te(He))}else{var ot=A;he.top<-A?ot=-he.top:he.top+he.height>-A+xe&&(ot=-(he.top+he.height-xe)),N(0),j(Te(ot))}}),Re=D.useState(),Ye=K(Re,2),ke=Ye[0],Xe=Ye[1],We=D.useState(!1),Ae=K(We,2),ze=Ae[0],vt=Ae[1],ft=C.filter(function(_e){return!_e.disabled}).map(function(_e){return _e.key}),Le=function(he){var He=ft.indexOf(ke||i),ot=ft.length,ct=(He+he+ot)%ot,It=ft[ct];Xe(It)},Me=function(he){var He=he.code,ot=l&&_,ct=ft[0],It=ft[ft.length-1];switch(He){case"ArrowLeft":{_&&Le(ot?1:-1);break}case"ArrowRight":{_&&Le(ot?-1:1);break}case"ArrowUp":{he.preventDefault(),_||Le(-1);break}case"ArrowDown":{he.preventDefault(),_||Le(1);break}case"Home":{he.preventDefault(),Xe(ct);break}case"End":{he.preventDefault(),Xe(It);break}case"Enter":case"Space":{he.preventDefault(),h(ke??i,he);break}case"Backspace":case"Delete":{var Ht=ft.indexOf(ke),Ft=C.find(function(it){return it.key===ke}),Je=$f(Ft==null?void 0:Ft.closable,Ft==null?void 0:Ft.closeIcon,u,Ft==null?void 0:Ft.disabled);Je&&(he.preventDefault(),he.stopPropagation(),u.onEdit("remove",{key:ke,event:he}),Ht===ft.length-1?Le(-1):Le(1));break}}},Be={};_?Be[l?"marginRight":"marginLeft"]=v:Be.marginTop=v;var qe=C.map(function(_e,he){var He=_e.key;return c.createElement(mF,{id:o,prefixCls:y,key:He,tab:_e,style:he===0?void 0:Be,closable:_e.closable,editable:u,active:He===i,focus:He===ke,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ft.length,currentPosition:he+1,onClick:function(ct){h(He,ct)},onKeyDown:Me,onFocus:function(){ze||Xe(He),je(He),ue(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){Xe(void 0)},onMouseDown:function(){vt(!0)},onMouseUp:function(){vt(!1)}})}),Ke=function(){return fe(function(){var he,He=new Map,ot=(he=$.current)===null||he===void 0?void 0:he.getBoundingClientRect();return C.forEach(function(ct){var It,Ht=ct.key,Ft=(It=$.current)===null||It===void 0?void 0:It.querySelector('[data-node-key="'.concat(Gy(Ht),'"]'));if(Ft){var Je=gF(Ft,ot),it=K(Je,4),Nt=it[0],Gt=it[1],Xt=it[2],cn=it[3];He.set(Ht,{width:Nt,height:Gt,left:Xt,top:cn})}}),He})};D.useEffect(function(){Ke()},[C.map(function(_e){return _e.key}).join("_")]);var at=Wy(function(){var _e=Ia(S),he=Ia(x),He=Ia(w);B([_e[0]-he[0]-He[0],_e[1]-he[1]-He[1]]);var ot=Ia(I);Q(ot);var ct=Ia(O);ie(ct);var It=Ia($);Y([It[0]-ot[0],It[1]-ot[1]]),Ke()}),wt=C.slice(0,lt),Et=C.slice(mt+1),zt=[].concat(Ne(wt),Ne(Et)),$t=ve.get(i),ht=aF({activeTabOffset:$t,horizontal:_,indicator:m,rtl:l}),_t=ht.style;D.useEffect(function(){je()},[i,ye,$e,Uy($t),Uy(ve),_]),D.useEffect(function(){at()},[l]);var Dt=!!zt.length,Zt="".concat(y,"-nav-wrap"),Vt,Rt,Ve,Qe;return _?l?(Rt=T>0,Vt=T!==$e):(Vt=T<0,Rt=T!==ye):(Ve=A<0,Qe=A!==ye),c.createElement(Wn,{onResize:at},c.createElement("div",{ref:so(t,S),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:re("".concat(y,"-nav"),n),style:r,onKeyDown:function(){ue()}},c.createElement(Of,{ref:x,position:"left",extra:s,prefixCls:y}),c.createElement(Wn,{onResize:at},c.createElement("div",{className:re(Zt,W(W(W(W({},"".concat(Zt,"-ping-left"),Vt),"".concat(Zt,"-ping-right"),Rt),"".concat(Zt,"-ping-top"),Ve),"".concat(Zt,"-ping-bottom"),Qe)),ref:E},c.createElement(Wn,{onResize:at},c.createElement("div",{ref:$,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(A,"px)"),transition:me?"none":void 0}},qe,c.createElement(Ky,{ref:I,prefixCls:y,locale:d,editable:u,style:G(G({},qe.length===0?void 0:Be),{},{visibility:Dt?"hidden":null})}),c.createElement("div",{className:re("".concat(y,"-ink-bar"),W({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:_t}))))),c.createElement(vF,Ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:y,tabs:zt,className:!Dt&&De,tabMoving:!!me})),c.createElement(Of,{ref:w,position:"right",extra:s,prefixCls:y})))}),If=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return c.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:re(n,i&&"".concat(n,"-active"),r),ref:t},s)});process.env.NODE_ENV!=="production"&&(If.displayName="TabPane");var pF=["renderTabBar"],hF=["label","key"],Xy=function(t){var n=t.renderTabBar,r=dt(t,pF),o=c.useContext(Ws),a=o.tabs;if(n){var i=G(G({},r),{},{panes:a.map(function(l){var s=l.label,u=l.key,d=dt(l,hF);return c.createElement(If,Ce({tab:s,key:u,tabKey:u},d))})});return n(i,Yy)}return c.createElement(Yy,r)};process.env.NODE_ENV!=="production"&&(Xy.displayName="TabNavListWrapper");var bF=["key","forceRender","style","className","destroyInactiveTabPane"],yF=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=c.useContext(Ws),s=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return c.createElement("div",{className:re("".concat(s,"-content-holder"))},c.createElement("div",{className:re("".concat(s,"-content"),"".concat(s,"-content-").concat(a),W({},"".concat(s,"-content-animated"),d))},u.map(function(v){var g=v.key,h=v.forceRender,b=v.style,m=v.className,p=v.destroyInactiveTabPane,y=dt(v,bF),C=g===r;return c.createElement($r,Ce({key:g,visible:C,forceRender:h,removeOnLeave:!!(i||p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,x){var w=S.style,E=S.className;return c.createElement(If,Ce({},y,{prefixCls:f,id:n,tabKey:g,animated:d,active:C,style:G(G({},b),w),className:re(m,E),ref:x}))})})))};function CF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=G({inkBar:!0},tt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&ut(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var SF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Qy=0,Jy=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,g=v===void 0?"top":v,h=e.tabBarGutter,b=e.tabBarStyle,m=e.tabBarExtraContent,p=e.locale,y=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,w=e.onTabClick,E=e.onTabScroll,$=e.getPopupContainer,O=e.popupClassName,I=e.indicator,_=dt(e,SF),M=c.useMemo(function(){return(i||[]).filter(function(ne){return ne&&tt(ne)==="object"&&"key"in ne})},[i]),P=l==="rtl",T=CF(f),N=D.useState(!1),R=K(N,2),F=R[0],A=R[1];D.useEffect(function(){A(gs())},[]);var j=qt(function(){var ne;return(ne=M[0])===null||ne===void 0?void 0:ne.key},{value:s,defaultValue:u}),H=K(j,2),k=H[0],z=H[1],B=D.useState(function(){return M.findIndex(function(ne){return ne.key===k})}),V=K(B,2),L=V[0],q=V[1];D.useEffect(function(){var ne=M.findIndex(function(te){return te.key===k});if(ne===-1){var ie;ne=Math.max(0,Math.min(L,M.length-1)),z((ie=M[ne])===null||ie===void 0?void 0:ie.key)}q(ne)},[M.map(function(ne){return ne.key}).join("_"),k,L]);var Y=qt(null,{value:n}),U=K(Y,2),ee=U[0],Z=U[1];D.useEffect(function(){n||(Z("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":Qy)),Qy+=1)},[]);function Q(ne,ie){w==null||w(ne,ie);var te=ne!==k;z(ne),te&&(x==null||x(ne))}var J={id:ee,activeKey:k,animated:T,tabPosition:g,rtl:P,mobile:F},ae=G(G({},J),{},{editable:d,locale:p,more:y,tabBarGutter:h,onTabClick:Q,onTabScroll:E,extra:m,style:b,panes:null,getPopupContainer:$,popupClassName:O,indicator:I});return c.createElement(Ws.Provider,{value:{tabs:M,prefixCls:o}},c.createElement("div",Ce({ref:t,id:n,className:re(o,"".concat(o,"-").concat(g),W(W(W({},"".concat(o,"-mobile"),F),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),P),a)},_),c.createElement(Xy,Ce({},ae,{renderTabBar:S})),c.createElement(yF,Ce({destroyInactiveTabPane:C},J,{animated:T}))))});process.env.NODE_ENV!=="production"&&(Jy.displayName="Tabs");const xF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wF(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},xF),{motionName:Lu(e,"switch")})),n}var EF=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 $F(e){return e.filter(t=>t)}function OF(e,t){if(process.env.NODE_ENV!=="production"&&jt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e.map(r=>{var o;const a=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=kn(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=EF(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return $F(n)}const IF=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[fa(e,"slide-up"),fa(e,"slide-down")]]},NF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${X(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ar(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:X(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:X(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadiusLG)} 0 0 ${X(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},PF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ut(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${X(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Xr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${X(e.paddingXXS)} ${X(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},_F=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${X(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
238
|
-
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
239
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:X(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},MF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadius)} ${X(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${X(e.borderRadius)} ${X(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${X(e.borderRadius)} ${X(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadius)} 0 0 ${X(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},TF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},ia(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:Ar(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},DF=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:X(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:X(e.marginXS)},marginLeft:{_skip_check_:!0,value:X(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},RF=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${X(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ia(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),TF(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},ia(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},FF=Kt("Tabs",e=>{const t=At(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${X(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${X(e.horizontalItemGutter)}`});return[MF(t),DF(t),_F(t),PF(t),NF(t),RF(t),IF(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,i=t||a,l=n||o,s=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Zy=()=>null;process.env.NODE_ENV!=="production"&&(Zy.displayName="DeprecatedTabPane");var AF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nf=e=>{var t,n,r,o,a,i,l,s,u,d,f;const{type:v,className:g,rootClassName:h,size:b,onEdit:m,hideAdd:p,centered:y,addIcon:C,removeIcon:S,moreIcon:x,more:w,popupClassName:E,children:$,items:O,animated:I,style:_,indicatorSize:M,indicator:P,destroyInactiveTabPane:T,destroyOnHidden:N}=e,R=AF(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=R,{direction:A,tabs:j,getPrefixCls:H,getPopupContainer:k}=c.useContext(bt),z=H("tabs",F),B=Gn(z),[V,L,q]=FF(z,B);let Y;v==="editable-card"&&(Y={onEdit:(ne,{key:ie,event:te})=>{m==null||m(ne==="add"?te:ie,ne)},removeIcon:(t=S??(j==null?void 0:j.removeIcon))!==null&&t!==void 0?t:c.createElement(bo,null),addIcon:(C??(j==null?void 0:j.addIcon))||c.createElement(Ef,null),showAdd:p!==!0});const U=H();if(process.env.NODE_ENV!=="production"){const ne=jt("Tabs");process.env.NODE_ENV!=="production"&&ne(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ne(!(M||j!=null&&j.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead."),ne.deprecated(!("destroyInactiveTabPane"in e||O!=null&&O.some(ie=>"destroyInactiveTabPane"in ie)),"destroyInactiveTabPane","destroyOnHidden")}const ee=_n(b),Z=OF(O,$),Q=wF(z,I),J=Object.assign(Object.assign({},j==null?void 0:j.style),_),ae={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=P==null?void 0:P.size)!==null&&o!==void 0?o:M)!==null&&a!==void 0?a:(i=j==null?void 0:j.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return V(c.createElement(Jy,Object.assign({direction:A,getPopupContainer:k},R,{items:Z,className:re({[`${z}-${ee}`]:ee,[`${z}-card`]:["card","editable-card"].includes(v),[`${z}-editable-card`]:v==="editable-card",[`${z}-centered`]:y},j==null?void 0:j.className,g,h,L,q,B),popupClassName:re(E,L,q,B),style:J,editable:Y,more:Object.assign({icon:(f=(d=(u=(s=j==null?void 0:j.more)===null||s===void 0?void 0:s.icon)!==null&&u!==void 0?u:j==null?void 0:j.moreIcon)!==null&&d!==void 0?d:x)!==null&&f!==void 0?f:c.createElement(P0,null),transitionName:`${U}-slide-up`},w),prefixCls:z,animated:Q,indicator:ae,destroyInactiveTabPane:N??T})))};Nf.TabPane=Zy,process.env.NODE_ENV!=="production"&&(Nf.displayName="Tabs");var jF=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 eC=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=jF(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=c.useContext(bt),i=a("card",t),l=re(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},o,{className:l}))},zF=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${X(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},Qa()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Xr),{[`
|
|
240
|
-
> ${n}-typography,
|
|
241
|
-
> ${n}-typography-edit-content
|
|
242
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},BF=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
243
|
-
${X(o)} 0 0 0 ${n},
|
|
244
|
-
0 ${X(o)} 0 0 ${n},
|
|
245
|
-
${X(o)} ${X(o)} 0 0 ${n},
|
|
246
|
-
${X(o)} 0 0 0 ${n} inset,
|
|
247
|
-
0 ${X(o)} 0 0 ${n} inset;
|
|
248
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},VF=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${X(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},Qa()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:X(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:X(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${a}`}}})},LF=e=>Object.assign(Object.assign({margin:`${X(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Qa()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Xr),"&-description":{color:e.colorTextDescription}}),HF=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${X(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${X(e.padding)} ${X(o)}`}}},kF=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},WF=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:i,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:zF(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},Qa()),[`${t}-grid`]:BF(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:VF(e),[`${t}-meta`]:LF(e)}),[`${t}-bordered`]:{border:`${X(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:HF(e),[`${t}-loading`]:kF(e),[`${t}-rtl`]:{direction:"rtl"}}},qF=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${X(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},UF=Kt("Card",e=>{const t=At(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[WF(t),qF(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}});var tC=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 GF=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:i},c.createElement("span",null,o))}))},KF=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:l={},bodyStyle:s={},title:u,loading:d,bordered:f,variant:v,size:g,type:h,cover:b,actions:m,tabList:p,children:y,activeTabKey:C,defaultActiveTabKey:S,tabBarExtraContent:x,hoverable:w,tabProps:E={},classNames:$,styles:O}=e,I=tC(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:M,card:P}=c.useContext(bt),[T]=$o("card",v,f);if(process.env.NODE_ENV!=="production"){const ve=jt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"],["bordered","variant"]].forEach(([ge,be])=>{ve.deprecated(!(ge in e),ge,be)})}const N=ve=>{var ge;(ge=e.onTabChange)===null||ge===void 0||ge.call(e,ve)},R=ve=>{var ge;return re((ge=P==null?void 0:P.classNames)===null||ge===void 0?void 0:ge[ve],$==null?void 0:$[ve])},F=ve=>{var ge;return Object.assign(Object.assign({},(ge=P==null?void 0:P.styles)===null||ge===void 0?void 0:ge[ve]),O==null?void 0:O[ve])},A=c.useMemo(()=>{let ve=!1;return c.Children.forEach(y,ge=>{(ge==null?void 0:ge.type)===eC&&(ve=!0)}),ve},[y]),j=_("card",n),[H,k,z]=UF(j),B=c.createElement(wo,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),V=C!==void 0,L=Object.assign(Object.assign({},E),{[V?"activeKey":"defaultActiveKey"]:V?C:S,tabBarExtraContent:x});let q;const Y=_n(g),U=!Y||Y==="default"?"large":Y,ee=p?c.createElement(Nf,Object.assign({size:U},L,{className:`${j}-head-tabs`,onChange:N,items:p.map(ve=>{var{tab:ge}=ve,be=tC(ve,["tab"]);return Object.assign({label:ge},be)})})):null;if(u||i||ee){const ve=re(`${j}-head`,R("header")),ge=re(`${j}-head-title`,R("title")),be=re(`${j}-extra`,R("extra")),de=Object.assign(Object.assign({},l),F("header"));q=c.createElement("div",{className:ve,style:de},c.createElement("div",{className:`${j}-head-wrapper`},u&&c.createElement("div",{className:ge,style:F("title")},u),i&&c.createElement("div",{className:be,style:F("extra")},i)),ee)}const Z=re(`${j}-cover`,R("cover")),Q=b?c.createElement("div",{className:Z,style:F("cover")},b):null,J=re(`${j}-body`,R("body")),ae=Object.assign(Object.assign({},s),F("body")),ne=c.createElement("div",{className:J,style:ae},d?B:y),ie=re(`${j}-actions`,R("actions")),te=m!=null&&m.length?c.createElement(GF,{actionClasses:ie,actionStyle:F("actions"),actions:m}):null,le=gn(I,["onTabChange"]),se=re(j,P==null?void 0:P.className,{[`${j}-loading`]:d,[`${j}-bordered`]:T!=="borderless",[`${j}-hoverable`]:w,[`${j}-contain-grid`]:A,[`${j}-contain-tabs`]:p==null?void 0:p.length,[`${j}-${Y}`]:Y,[`${j}-type-${h}`]:!!h,[`${j}-rtl`]:M==="rtl"},r,o,k,z),fe=Object.assign(Object.assign({},P==null?void 0:P.style),a);return H(c.createElement("div",Object.assign({ref:t},le,{className:se,style:fe}),q,Q,ne,te))});var YF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XF=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=YF(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=c.useContext(bt),s=l("card",t),u=re(`${s}-meta`,n),d=r?c.createElement("div",{className:`${s}-meta-avatar`},r):null,f=o?c.createElement("div",{className:`${s}-meta-title`},o):null,v=a?c.createElement("div",{className:`${s}-meta-description`},a):null,g=f||v?c.createElement("div",{className:`${s}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,g)},Na=KF;Na.Grid=eC,Na.Meta=XF,process.env.NODE_ENV!=="production"&&(Na.displayName="Card");function QF(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,u=s===void 0?void 0:s,d,f=!1,v=0;function g(){d&&clearTimeout(d)}function h(m){var p=m||{},y=p.upcomingOnly,C=y===void 0?!1:y;g(),f=!C}function b(){for(var m=arguments.length,p=new Array(m),y=0;y<m;y++)p[y]=arguments[y];var C=this,S=Date.now()-v;if(f)return;function x(){v=Date.now(),t.apply(C,p)}function w(){d=void 0}!l&&u&&!d&&x(),g(),u===void 0&&S>e?l?(v=Date.now(),a||(d=setTimeout(u?w:x,e))):x():a!==!0&&(d=setTimeout(u?w:x,u===void 0?e-S:e))}return b.cancel=h,b}function JF(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return QF(e,t,{debounceMode:a!==!1})}const ZF=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ut(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ut(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({},Ut(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({},Ar(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${X(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:`${X(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}})},{[`
|
|
249
|
-
${n}:not(${n}-disabled),
|
|
250
|
-
${t}:not(${t}-disabled)
|
|
251
|
-
`]:{[`&: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}`}}},[`
|
|
252
|
-
${n}-checked:not(${n}-disabled),
|
|
253
|
-
${t}-checked:not(${t}-disabled)
|
|
254
|
-
`]:{[`&: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:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 eA(e,t){const n=At(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[ZF(n)]}const nC=Kt("Checkbox",(e,{prefixCls:t})=>[eA(t,e)]),rC=D.createContext(null);var tA=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 nA=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:v}=e,g=tA(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:m}=c.useContext(bt),p=c.useContext(rC),{isFormItemInput:y}=c.useContext(Cn),C=c.useContext(Tn),S=(n=(p==null?void 0:p.disabled)||v)!==null&&n!==void 0?n:C,x=c.useRef(g.value),w=c.useRef(null),E=En(t,w);if(process.env.NODE_ENV!=="production"){const A=jt("Checkbox");process.env.NODE_ENV!=="production"&&A("checked"in g||!!p||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}c.useEffect(()=>{p==null||p.registerValue(g.value)},[]),c.useEffect(()=>{if(!f)return g.value!==x.current&&(p==null||p.cancelValue(x.current),p==null||p.registerValue(g.value),x.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]),c.useEffect(()=>{var A;!((A=w.current)===null||A===void 0)&&A.input&&(w.current.input.indeterminate=l)},[l]);const $=h("checkbox",r),O=Gn($),[I,_,M]=nC($,O),P=Object.assign({},g);p&&!f&&(P.onChange=(...A)=>{g.onChange&&g.onChange.apply(g,A),p.toggleOption&&p.toggleOption({label:i,value:g.value})},P.name=p.name,P.checked=p.value.includes(g.value));const T=re(`${$}-wrapper`,{[`${$}-rtl`]:b==="rtl",[`${$}-wrapper-checked`]:P.checked,[`${$}-wrapper-disabled`]:S,[`${$}-wrapper-in-form-item`]:y},m==null?void 0:m.className,o,a,M,O,_),N=re({[`${$}-indeterminate`]:l},ns,_),[R,F]=Ey(P.onClick);return I(c.createElement(ri,{component:"Checkbox",disabled:S},c.createElement("label",{className:T,style:Object.assign(Object.assign({},m==null?void 0:m.style),s),onMouseEnter:u,onMouseLeave:d,onClick:R},c.createElement(wy,Object.assign({},P,{onClick:F,prefixCls:$,className:N,disabled:S,ref:E})),i!=null&&c.createElement("span",{className:`${$}-label`},i))))},Pf=c.forwardRef(nA);process.env.NODE_ENV!=="production"&&(Pf.displayName="Checkbox");var rA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oA=c.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:s,onChange:u}=e,d=rA(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:v}=c.useContext(bt),[g,h]=c.useState(d.value||n||[]),[b,m]=c.useState([]);c.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const p=c.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),y=N=>{m(R=>R.filter(F=>F!==N))},C=N=>{m(R=>[].concat(Ne(R),[N]))},S=N=>{const R=g.indexOf(N.value),F=Ne(g);R===-1?F.push(N.value):F.splice(R,1),"value"in d||h(F),u==null||u(F.filter(A=>b.includes(A)).sort((A,j)=>{const H=p.findIndex(z=>z.value===A),k=p.findIndex(z=>z.value===j);return H-k}))},x=f("checkbox",a),w=`${x}-group`,E=Gn(x),[$,O,I]=nC(x,E),_=gn(d,["value","disabled"]),M=o.length?p.map(N=>c.createElement(Pf,{prefixCls:x,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:g.includes(N.value),onChange:N.onChange,className:re(`${w}-item`,N.className),style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,P=c.useMemo(()=>({toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:y}),[S,g,d.disabled,d.name,C,y]),T=re(w,{[`${w}-rtl`]:v==="rtl"},i,l,I,E,O);return $(c.createElement("div",Object.assign({className:T,style:s},_,{ref:t}),c.createElement(rC.Provider,{value:P},M)))}),Ao=Pf;Ao.Group=oA,Ao.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Ao.displayName="Checkbox");const oC=D.createContext({});var aA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function aC(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const iA=["xs","sm","md","lg","xl","xxl"],ln=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(bt),{gutter:o,wrap:a}=c.useContext(oC),{prefixCls:i,span:l,order:s,offset:u,push:d,pull:f,className:v,children:g,flex:h,style:b}=e,m=aA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",i),[y,C,S]=B2(p),x={};let w={};iA.forEach(O=>{let I={};const _=e[O];typeof _=="number"?I.span=_:typeof _=="object"&&(I=_||{}),delete m[O],w=Object.assign(Object.assign({},w),{[`${p}-${O}-${I.span}`]:I.span!==void 0,[`${p}-${O}-order-${I.order}`]:I.order||I.order===0,[`${p}-${O}-offset-${I.offset}`]:I.offset||I.offset===0,[`${p}-${O}-push-${I.push}`]:I.push||I.push===0,[`${p}-${O}-pull-${I.pull}`]:I.pull||I.pull===0,[`${p}-rtl`]:r==="rtl"}),I.flex&&(w[`${p}-${O}-flex`]=!0,x[`--${p}-${O}-flex`]=aC(I.flex))});const E=re(p,{[`${p}-${l}`]:l!==void 0,[`${p}-order-${s}`]:s,[`${p}-offset-${u}`]:u,[`${p}-push-${d}`]:d,[`${p}-pull-${f}`]:f},v,w,C,S),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=aC(h),a===!1&&!$.minWidth&&($.minWidth=0)),y(c.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},$),b),x),className:E,ref:t}),g))});process.env.NODE_ENV!=="production"&&(ln.displayName="Col");function lA(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let l=0;l<Io.length;l++){const s=Io[l];if(o[s]&&a[s]!==void 0){n[i]=a[s];break}}else n[i]=a}),n}var sA=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 iC(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Io.length;a++){const i=Io[a];if(!t||!t[i])continue;const l=e[i];if(l!==void 0){r(l);return}}};return c.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const yr=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:s=0,wrap:u}=e,d=sA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(bt),g=Cs(!0,null),h=iC(o,g),b=iC(r,g),m=f("row",n),[p,y,C]=j2(m),S=lA(s,g),x=re(m,{[`${m}-no-wrap`]:u===!1,[`${m}-${b}`]:b,[`${m}-${h}`]:h,[`${m}-rtl`]:v==="rtl"},a,y,C),w={},E=S[0]!=null&&S[0]>0?S[0]/-2:void 0;E&&(w.marginLeft=E,w.marginRight=E);const[$,O]=S;w.rowGap=O;const I=c.useMemo(()=>({gutter:[$,O],wrap:u}),[$,O,u]);return p(c.createElement(oC.Provider,{value:I},c.createElement("div",Object.assign({},d,{className:x,style:Object.assign(Object.assign({},w),i),ref:t}),l)))});process.env.NODE_ENV!=="production"&&(yr.displayName="Row");var cA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},uA=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:cA}))},_f=c.forwardRef(uA);process.env.NODE_ENV!=="production"&&(_f.displayName="UpOutlined");function Mf(){return typeof BigInt=="function"}function lC(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function jo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function Tf(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function zo(e){var t=String(e);if(Tf(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Df(t)?t.length-t.indexOf(".")-1:0}function Gs(e){var t=String(e);if(Tf(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Mf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Mf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(zo(t))}return jo(t).fullStr}function Df(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var dA=function(){function e(t){if(on(this,e),W(this,"origin",""),W(this,"negative",void 0),W(this,"integer",void 0),W(this,"decimal",void 0),W(this,"decimalLen",void 0),W(this,"empty",void 0),W(this,"nan",void 0),lC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Tf(n)&&(n=Number(n)),n=typeof n=="string"?n:Gs(n),Df(n)){var r=jo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return an(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),l=n.alignDecimal(a),s=r(i,l).toString(),u=o(a),d=jo(s),f=d.negativeStr,v=d.trimStr,g="".concat(f).concat(v.padStart(u+1,"0"));return new e("".concat(g.slice(0,-u),".").concat(g.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,a){return o*a},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":jo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),fA=function(){function e(t){if(on(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),lC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return an(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(zo(this.number),zo(r));return new e(o.toFixed(a))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(zo(this.number),zo(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Gs(this.number):this.origin}}]),e}();function Cr(e){return Mf()?new dA(e):new fA(e)}function Ks(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=jo(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),u="".concat(a).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Cr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return Ks(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function vA(e){return!!(e.addonBefore||e.addonAfter)}function mA(e){return!!(e.prefix||e.suffix||e.allowClear)}function sC(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ys(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=sC(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=sC(t,e,r),n(o);return}n(o)}}function Rf(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 Ff=D.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,v=e.className,g=e.style,h=e.disabled,b=e.readOnly,m=e.focused,p=e.triggerFocus,y=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,w=e.classes,E=e.classNames,$=e.dataAttrs,O=e.styles,I=e.components,_=e.onClear,M=i??a,P=(I==null?void 0:I.affixWrapper)||"span",T=(I==null?void 0:I.groupWrapper)||"span",N=(I==null?void 0:I.wrapper)||"span",R=(I==null?void 0:I.groupAddon)||"span",F=D.useRef(null),A=function(ie){var te;(te=F.current)!==null&&te!==void 0&&te.contains(ie.target)&&(p==null||p())},j=mA(e),H=D.cloneElement(M,{value:C,className:re((n=M.props)===null||n===void 0?void 0:n.className,!j&&(E==null?void 0:E.variant))||null}),k=D.useRef(null);if(D.useImperativeHandle(t,function(){return{nativeElement:k.current||F.current}}),j){var z=null;if(y){var B=!h&&!b&&C,V="".concat(l,"-clear-icon"),L=tt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";z=D.createElement("button",{type:"button",tabIndex:-1,onClick:function(ie){S==null||S(ie),_==null||_()},onMouseDown:function(ie){return ie.preventDefault()},className:re(V,W(W({},"".concat(V,"-hidden"),!B),"".concat(V,"-has-suffix"),!!u))},L)}var q="".concat(l,"-affix-wrapper"),Y=re(q,W(W(W(W(W({},"".concat(l,"-disabled"),h),"".concat(q,"-disabled"),h),"".concat(q,"-focused"),m),"".concat(q,"-readonly"),b),"".concat(q,"-input-with-clear-btn"),u&&y&&C),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),U=(u||y)&&D.createElement("span",{className:re("".concat(l,"-suffix"),E==null?void 0:E.suffix),style:O==null?void 0:O.suffix},z,u);H=D.createElement(P,Ce({className:Y,style:O==null?void 0:O.affixWrapper,onClick:A},$==null?void 0:$.affixWrapper,{ref:F}),s&&D.createElement("span",{className:re("".concat(l,"-prefix"),E==null?void 0:E.prefix),style:O==null?void 0:O.prefix},s),H,U)}if(vA(e)){var ee="".concat(l,"-group"),Z="".concat(ee,"-addon"),Q="".concat(ee,"-wrapper"),J=re("".concat(l,"-wrapper"),ee,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),ae=re(Q,W({},"".concat(Q,"-disabled"),h),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);H=D.createElement(T,{className:ae,ref:k},D.createElement(N,{className:J},d&&D.createElement(R,{className:Z},d),H,f&&D.createElement(R,{className:Z},f)))}return D.cloneElement(H,{className:re((r=H.props)===null||r===void 0?void 0:r.className,v)||null,style:G(G({},(o=H.props)===null||o===void 0?void 0:o.style),g),hidden:x})}),gA=["show"];function cC(e,t){return c.useMemo(function(){var n={};t&&(n.show=tt(t)==="object"&&t.formatter?t.formatter:!!t),n=G(G({},n),e);var r=n,o=r.show,a=dt(r,gA);return G(G({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var pA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hA=D.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,m=e.showCount,p=e.count,y=e.type,C=y===void 0?"text":y,S=e.classes,x=e.classNames,w=e.styles,E=e.onCompositionStart,$=e.onCompositionEnd,O=dt(e,pA),I=D.useState(!1),_=K(I,2),M=_[0],P=_[1],T=D.useRef(!1),N=D.useRef(!1),R=D.useRef(null),F=D.useRef(null),A=function(pe){R.current&&Rf(R.current,pe)},j=qt(e.defaultValue,{value:e.value}),H=K(j,2),k=H[0],z=H[1],B=k==null?"":String(k),V=D.useState(null),L=K(V,2),q=L[0],Y=L[1],U=cC(p,m),ee=U.max||h,Z=U.strategy(B),Q=!!ee&&Z>ee;D.useImperativeHandle(t,function(){var de;return{focus:A,blur:function(){var Se;(Se=R.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,xe,De){var ye;(ye=R.current)===null||ye===void 0||ye.setSelectionRange(Se,xe,De)},select:function(){var Se;(Se=R.current)===null||Se===void 0||Se.select()},input:R.current,nativeElement:((de=F.current)===null||de===void 0?void 0:de.nativeElement)||R.current}}),D.useEffect(function(){N.current&&(N.current=!1),P(function(de){return de&&f?!1:de})},[f]);var J=function(pe,Se,xe){var De=Se;if(!T.current&&U.exceedFormatter&&U.max&&U.strategy(Se)>U.max){if(De=U.exceedFormatter(Se,{max:U.max}),Se!==De){var ye,$e;Y([((ye=R.current)===null||ye===void 0?void 0:ye.selectionStart)||0,(($e=R.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}}else if(xe.source==="compositionEnd")return;z(De),R.current&&Ys(R.current,pe,r,De)};D.useEffect(function(){if(q){var de;(de=R.current)===null||de===void 0||de.setSelectionRange.apply(de,Ne(q))}},[q]);var ae=function(pe){J(pe,pe.target.value,{source:"change"})},ne=function(pe){T.current=!1,J(pe,pe.currentTarget.value,{source:"compositionEnd"}),$==null||$(pe)},ie=function(pe){i&&pe.key==="Enter"&&!N.current&&(N.current=!0,i(pe)),l==null||l(pe)},te=function(pe){pe.key==="Enter"&&(N.current=!1),s==null||s(pe)},le=function(pe){P(!0),o==null||o(pe)},se=function(pe){N.current&&(N.current=!1),P(!1),a==null||a(pe)},fe=function(pe){z(""),A(),R.current&&Ys(R.current,pe,r)},ve=Q&&"".concat(d,"-out-of-range"),ge=function(){var pe=gn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return D.createElement("input",Ce({autoComplete:n},pe,{onChange:ae,onFocus:le,onBlur:se,onKeyDown:ie,onKeyUp:te,className:re(d,W({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:w==null?void 0:w.input,ref:R,size:v,type:C,onCompositionStart:function(xe){T.current=!0,E==null||E(xe)},onCompositionEnd:ne}))},be=function(){var pe=Number(ee)>0;if(b||U.show){var Se=U.showFormatter?U.showFormatter({value:B,count:Z,maxLength:ee}):"".concat(Z).concat(pe?" / ".concat(ee):"");return D.createElement(D.Fragment,null,U.show&&D.createElement("span",{className:re("".concat(d,"-show-count-suffix"),W({},"".concat(d,"-show-count-has-suffix"),!!b),x==null?void 0:x.count),style:G({},w==null?void 0:w.count)},Se),b)}return null};return D.createElement(Ff,Ce({},O,{prefixCls:d,className:re(g,ve),handleReset:fe,value:B,focused:M,triggerFocus:A,suffix:be(),disabled:f,classes:S,classNames:x,styles:w,ref:F}),ge())});function bA(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function yA(e,t){var n=D.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),u=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,u=i.start,d=a.length;if(a.startsWith(l))d=l.length;else if(a.endsWith(s))d=a.length-n.current.afterTxt.length;else{var f=l[u-1],v=a.indexOf(f,u-1);v!==-1&&(d=v+1)}e.setSelectionRange(d,d)}catch(g){ut(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,o]}var CA=function(){var t=D.useState(!1),n=K(t,2),r=n[0],o=n[1];return Pt(function(){o(gs())},[]),r},SA=200,xA=600;function wA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=c.useRef(),s=c.useRef([]),u=c.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function x(){u.current(S),l.current=setTimeout(x,SA)}l.current=setTimeout(x,xA)};c.useEffect(function(){return function(){d(),s.current.forEach(function(y){return yt.cancel(y)})}},[]);var v=CA();if(v)return null;var g="".concat(t,"-handler"),h=re(g,"".concat(g,"-up"),W({},"".concat(g,"-up-disabled"),o)),b=re(g,"".concat(g,"-down"),W({},"".concat(g,"-down-disabled"),a)),m=function(){return s.current.push(yt(d))},p={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return c.createElement("div",{className:"".concat(g,"-wrap")},c.createElement("span",Ce({},p,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",Ce({},p,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:b}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function uC(e){var t=typeof e=="number"?Gs(e):jo(e).fullStr,n=t.includes(".");return n?jo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const EA=function(){var e=D.useRef(0),t=function(){yt.cancel(e.current)};return D.useEffect(function(){return t},[]),function(n){t(),e.current=yt(function(){n()})}};var $A=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],OA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],dC=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},fC=function(t){var n=Cr(t);return n.isInvalidate()?null:n},IA=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,l=e.step,s=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,v=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,m=e.changeOnWheel,p=m===void 0?!1:m,y=e.controls,C=y===void 0?!0:y;e.classNames;var S=e.stringMode,x=e.parser,w=e.formatter,E=e.precision,$=e.decimalSeparator,O=e.onChange,I=e.onInput,_=e.onPressEnter,M=e.onStep,P=e.changeOnBlur,T=P===void 0?!0:P,N=e.domRef,R=dt(e,$A),F="".concat(n,"-input"),A=c.useRef(null),j=c.useState(!1),H=K(j,2),k=H[0],z=H[1],B=c.useRef(!1),V=c.useRef(!1),L=c.useRef(!1),q=c.useState(function(){return Cr(d??u)}),Y=K(q,2),U=Y[0],ee=Y[1];function Z(je){d===void 0&&ee(je)}var Q=c.useCallback(function(je,Re){if(!Re)return E>=0?E:Math.max(zo(je),zo(s))},[E,s]),J=c.useCallback(function(je){var Re=String(je);if(x)return x(Re);var Ye=Re;return $&&(Ye=Ye.replace($,".")),Ye.replace(/[^\w.-]+/g,"")},[x,$]),ae=c.useRef(""),ne=c.useCallback(function(je,Re){if(w)return w(je,{userTyping:Re,input:String(ae.current)});var Ye=typeof je=="number"?Gs(je):je;if(!Re){var ke=Q(Ye,Re);if(Df(Ye)&&($||ke>=0)){var Xe=$||".";Ye=Ks(Ye,Xe,ke)}}return Ye},[w,Q,$]),ie=c.useState(function(){var je=u??d;return U.isInvalidate()&&["string","number"].includes(tt(je))?Number.isNaN(je)?"":je:ne(U.toString(),!1)}),te=K(ie,2),le=te[0],se=te[1];ae.current=le;function fe(je,Re){se(ne(je.isInvalidate()?je.toString(!1):je.toString(!Re),Re))}var ve=c.useMemo(function(){return fC(i)},[i,E]),ge=c.useMemo(function(){return fC(a)},[a,E]),be=c.useMemo(function(){return!ve||!U||U.isInvalidate()?!1:ve.lessEquals(U)},[ve,U]),de=c.useMemo(function(){return!ge||!U||U.isInvalidate()?!1:U.lessEquals(ge)},[ge,U]),pe=yA(A.current,k),Se=K(pe,2),xe=Se[0],De=Se[1],ye=function(Re){return ve&&!Re.lessEquals(ve)?ve:ge&&!ge.lessEquals(Re)?ge:null},$e=function(Re){return!ye(Re)},Te=function(Re,Ye){var ke=Re,Xe=$e(ke)||ke.isEmpty();if(!ke.isEmpty()&&!Ye&&(ke=ye(ke)||ke,Xe=!0),!v&&!f&&Xe){var We=ke.toString(),Ae=Q(We,Ye);return Ae>=0&&(ke=Cr(Ks(We,".",Ae)),$e(ke)||(ke=Cr(Ks(We,".",Ae,!0)))),ke.equals(U)||(Z(ke),O==null||O(ke.isEmpty()?null:dC(S,ke)),d===void 0&&fe(ke,Ye)),ke}return U},Pe=EA(),Oe=function je(Re){if(xe(),ae.current=Re,se(Re),!V.current){var Ye=J(Re),ke=Cr(Ye);ke.isNaN()||Te(ke,!0)}I==null||I(Re),Pe(function(){var Xe=Re;x||(Xe=Re.replace(/。/g,".")),Xe!==Re&&je(Xe)})},we=function(){V.current=!0},me=function(){V.current=!1,Oe(A.current.value)},Ee=function(Re){Oe(Re.target.value)},ue=function(Re){var Ye;if(!(Re&&be||!Re&&de)){B.current=!1;var ke=Cr(L.current?uC(s):s);Re||(ke=ke.negate());var Xe=(U||Cr(0)).add(ke.toString()),We=Te(Xe,!1);M==null||M(dC(S,We),{offset:L.current?uC(s):s,type:Re?"up":"down"}),(Ye=A.current)===null||Ye===void 0||Ye.focus()}},ce=function(Re){var Ye=Cr(J(le)),ke;Ye.isNaN()?ke=Te(U,Re):ke=Te(Ye,Re),d!==void 0?fe(U,!1):ke.isNaN()||fe(ke,!1)},Ie=function(){B.current=!0},rt=function(Re){var Ye=Re.key,ke=Re.shiftKey;B.current=!0,L.current=ke,Ye==="Enter"&&(V.current||(B.current=!1),ce(!1),_==null||_(Re)),b!==!1&&!V.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ye)&&(ue(Ye==="Up"||Ye==="ArrowUp"),Re.preventDefault())},lt=function(){B.current=!1,L.current=!1};c.useEffect(function(){if(p&&k){var je=function(ke){ue(ke.deltaY<0),ke.preventDefault()},Re=A.current;if(Re)return Re.addEventListener("wheel",je,{passive:!1}),function(){return Re.removeEventListener("wheel",je)}}});var mt=function(){T&&ce(!1),z(!1),B.current=!1};return fo(function(){U.isInvalidate()||fe(U,!1)},[E,w]),fo(function(){var je=Cr(d);ee(je);var Re=Cr(J(le));(!je.equals(Re)||!B.current||w)&&fe(je,B.current)},[d]),fo(function(){w&&De()},[le]),c.createElement("div",{ref:N,className:re(n,r,W(W(W(W(W({},"".concat(n,"-focused"),k),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),v),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!$e(U))),style:o,onFocus:function(){z(!0)},onBlur:mt,onKeyDown:rt,onKeyUp:lt,onCompositionStart:we,onCompositionEnd:me,onBeforeInput:Ie},C&&c.createElement(wA,{prefixCls:n,upNode:g,downNode:h,upDisabled:be,downDisabled:de,onStep:ue}),c.createElement("div",{className:"".concat(F,"-wrap")},c.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:s},R,{ref:En(A,t),className:F,value:le,onChange:Ee,disabled:f,readOnly:v}))))}),vC=c.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,l=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.classNames,g=dt(e,OA),h=c.useRef(null),b=c.useRef(null),m=c.useRef(null),p=function(C){m.current&&Rf(m.current,C)};return c.useImperativeHandle(t,function(){return bA(m.current,{focus:p,nativeElement:h.current.nativeElement||b.current})}),c.createElement(Ff,{className:f,triggerFocus:p,prefixCls:a,value:i,disabled:n,style:r,prefix:l,suffix:s,addonAfter:d,addonBefore:u,classNames:v,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},c.createElement(IA,Ce({prefixCls:a,disabled:n,ref:m,domRef:b,className:v==null?void 0:v.input},g)))});process.env.NODE_ENV!=="production"&&(vC.displayName="InputNumber");const NA=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Fo(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new kt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},mC=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},PA=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:v,paddingInlineLG:g,colorIcon:h,motionDurationMid:b,handleHoverColor:m,handleOpacity:p,paddingInline:y,paddingBlock:C,handleBg:S,handleActiveBg:x,colorTextDisabled:w,borderRadiusSM:E,borderRadiusLG:$,controlWidth:O,handleBorderColor:I,filledHandleBg:_,lineHeightLG:M,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),_i(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),pf(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${I}`}}})),bf(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),yf(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${X(n)} ${r} ${I}`}}})),hf(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:M,borderRadius:$,[`input${t}-input`]:{height:P(l).sub(P(n).mul(2)).equal(),padding:`${X(v)} ${X(g)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${X(f)} ${X(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Ut(e)),Ay(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},Ny(e)),Ty(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{width:"100%",padding:`${X(C)} ${X(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),Cf(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:p,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
255
|
-
${t}-handler-up-inner,
|
|
256
|
-
${t}-handler-down-inner
|
|
257
|
-
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${X(n)} ${r} ${I}`,transition:`all ${b} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
|
|
258
|
-
${t}-handler-up-inner,
|
|
259
|
-
${t}-handler-down-inner
|
|
260
|
-
`]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Xa()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},mC(e,"lg")),mC(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
261
|
-
${t}-handler-up-disabled,
|
|
262
|
-
${t}-handler-down-disabled
|
|
263
|
-
`]:{cursor:"not-allowed"},[`
|
|
264
|
-
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
265
|
-
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
266
|
-
`]:{color:w}})}]},_A=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:v}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${X(n)} 0`}},_i(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${X(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${X(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${v}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},MA=Kt("InputNumber",e=>{const t=At(e,Ro(e));return[PA(t),_A(t),ai(t)]},NA,{unitless:{handleOpacity:!0}});var TA=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 gC=c.forwardRef((e,t)=>{if(process.env.NODE_ENV!=="production"){const U=jt("InputNumber");U.deprecated(!("bordered"in e),"bordered","variant"),U(!(e.type==="number"&&e.changeOnWheel),"usage","When `type=number` is used together with `changeOnWheel`, changeOnWheel may not work properly. Please delete `type=number` if it is not necessary.")}const{getPrefixCls:n,direction:r}=c.useContext(bt),o=c.useRef(null);c.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:v,suffix:g,bordered:h,readOnly:b,status:m,controls:p,variant:y}=e,C=TA(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),x=Gn(S),[w,E,$]=MA(S,x),{compactSize:O,compactItemClassnames:I}=Jr(S,r);let _=c.createElement(_f,{className:`${S}-handler-up-inner`}),M=c.createElement(ys,{className:`${S}-handler-down-inner`});const P=typeof p=="boolean"?p:void 0;typeof p=="object"&&(_=typeof p.upIcon>"u"?_:c.createElement("span",{className:`${S}-handler-up-inner`},p.upIcon),M=typeof p.downIcon>"u"?M:c.createElement("span",{className:`${S}-handler-down-inner`},p.downIcon));const{hasFeedback:T,status:N,isFormItemInput:R,feedbackIcon:F}=c.useContext(Cn),A=Eo(N,m),j=_n(U=>{var ee;return(ee=l??O)!==null&&ee!==void 0?ee:U}),H=c.useContext(Tn),k=s??H,[z,B]=$o("inputNumber",y,h),V=T&&c.createElement(c.Fragment,null,F),L=re({[`${S}-lg`]:j==="large",[`${S}-sm`]:j==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:R},E),q=`${S}-group`,Y=c.createElement(vC,Object.assign({ref:o,disabled:k,className:re($,x,a,i,I),upHandler:_,downHandler:M,prefixCls:S,readOnly:b,controls:P,prefix:v,suffix:V||g,addonBefore:d&&c.createElement(xo,{form:!0,space:!0},d),addonAfter:f&&c.createElement(xo,{form:!0,space:!0},f),classNames:{input:L,variant:re({[`${S}-${z}`]:B},eo(S,A,T)),affixWrapper:re({[`${S}-affix-wrapper-sm`]:j==="small",[`${S}-affix-wrapper-lg`]:j==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:p===!1||k},E),wrapper:re({[`${q}-rtl`]:r==="rtl"},E),groupWrapper:re({[`${S}-group-wrapper-sm`]:j==="small",[`${S}-group-wrapper-lg`]:j==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${z}`]:B},eo(`${S}-group-wrapper`,A,T),E)}},C));return w(Y)}),Af=gC,DA=e=>c.createElement(mr,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(gC,Object.assign({},e)));process.env.NODE_ENV!=="production"&&(Af.displayName="InputNumber"),Af._InternalPanelDoNotUseOrYouWillBeFired=DA;const pC=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:D.createElement(ua,null)}),t};function hC(e,t){const n=D.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return D.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function RA(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var FA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mi=D.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:l,onFocus:s,suffix:u,allowClear:d,addonAfter:f,addonBefore:v,className:g,style:h,styles:b,rootClassName:m,onChange:p,classNames:y,variant:C}=e,S=FA(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:fe}=jt("Input");fe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:w,allowClear:E,autoComplete:$,className:O,style:I,classNames:_,styles:M}=Pn("input"),P=x("input",n),T=D.useRef(null),N=Gn(P),[R,F,A]=jy(P,m),[j]=zy(P,N),{compactSize:H,compactItemClassnames:k}=Jr(P,w),z=_n(fe=>{var ve;return(ve=a??H)!==null&&ve!==void 0?ve:fe}),B=D.useContext(Tn),V=i??B,{status:L,hasFeedback:q,feedbackIcon:Y}=D.useContext(Cn),U=Eo(L,o),ee=RA(e)||!!q,Z=D.useRef(ee);if(process.env.NODE_ENV!=="production"){const fe=jt("Input");D.useEffect(()=>{var ve;ee&&!Z.current&&process.env.NODE_ENV!=="production"&&fe(document.activeElement===((ve=T.current)===null||ve===void 0?void 0:ve.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=ee},[ee])}const Q=hC(T,!0),J=fe=>{Q(),l==null||l(fe)},ae=fe=>{Q(),s==null||s(fe)},ne=fe=>{Q(),p==null||p(fe)},ie=(q||u)&&D.createElement(D.Fragment,null,u,q&&Y),te=pC(d??E),[le,se]=$o("input",C,r);return R(j(D.createElement(hA,Object.assign({ref:En(t,T),prefixCls:P,autoComplete:$},S,{disabled:V,onBlur:J,onFocus:ae,style:Object.assign(Object.assign({},I),h),styles:Object.assign(Object.assign({},M),b),suffix:ie,allowClear:te,className:re(g,m,A,N,k,O),onChange:ne,addonBefore:v&&D.createElement(xo,{form:!0,space:!0},v),addonAfter:f&&D.createElement(xo,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),_),{input:re({[`${P}-sm`]:z==="small",[`${P}-lg`]:z==="large",[`${P}-rtl`]:w==="rtl"},y==null?void 0:y.input,_.input,F),variant:re({[`${P}-${le}`]:se},eo(P,U)),affixWrapper:re({[`${P}-affix-wrapper-sm`]:z==="small",[`${P}-affix-wrapper-lg`]:z==="large",[`${P}-affix-wrapper-rtl`]:w==="rtl"},F),wrapper:re({[`${P}-group-rtl`]:w==="rtl"},F),groupWrapper:re({[`${P}-group-wrapper-sm`]:z==="small",[`${P}-group-wrapper-lg`]:z==="large",[`${P}-group-wrapper-rtl`]:w==="rtl",[`${P}-group-wrapper-${le}`]:se},eo(`${P}-group-wrapper`,U,q),F)})}))))});process.env.NODE_ENV!=="production"&&(Mi.displayName="Input");function jf(e,t,n){return(e-t)/(n-t)}function zf(e,t,n,r){var o=jf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Bo(e,t){return Array.isArray(e)?e[t]:e}var Vo=c.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),AA=c.createContext({}),jA=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Bf=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,l=e.style,s=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,v=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=dt(e,jA),m=c.useContext(Vo),p=m.min,y=m.max,C=m.direction,S=m.disabled,x=m.keyboard,w=m.range,E=m.tabIndex,$=m.ariaLabelForHandle,O=m.ariaLabelledByForHandle,I=m.ariaRequired,_=m.ariaValueTextFormatterForHandle,M=m.styles,P=m.classNames,T="".concat(n,"-handle"),N=function(L){S||a(L,o)},R=function(L){g==null||g(L,o)},F=function(L){h(L,o)},A=function(L){if(!S&&x){var q=null;switch(L.which||L.keyCode){case Fe.LEFT:q=C==="ltr"||C==="btt"?-1:1;break;case Fe.RIGHT:q=C==="ltr"||C==="btt"?1:-1;break;case Fe.UP:q=C!=="ttb"?1:-1;break;case Fe.DOWN:q=C!=="ttb"?-1:1;break;case Fe.HOME:q="min";break;case Fe.END:q="max";break;case Fe.PAGE_UP:q=2;break;case Fe.PAGE_DOWN:q=-2;break;case Fe.BACKSPACE:case Fe.DELETE:i(o);break}q!==null&&(L.preventDefault(),f(q,o))}},j=function(L){switch(L.which||L.keyCode){case Fe.LEFT:case Fe.RIGHT:case Fe.UP:case Fe.DOWN:case Fe.HOME:case Fe.END:case Fe.PAGE_UP:case Fe.PAGE_DOWN:v==null||v();break}},H=zf(C,r,p,y),k={};if(o!==null){var z;k={tabIndex:S?null:Bo(E,o),role:"slider","aria-valuemin":p,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":S,"aria-label":Bo($,o),"aria-labelledby":Bo(O,o),"aria-required":Bo(I,o),"aria-valuetext":(z=Bo(_,o))===null||z===void 0?void 0:z(r),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:N,onTouchStart:N,onFocus:R,onMouseEnter:F,onKeyDown:A,onKeyUp:j}}var B=c.createElement("div",Ce({ref:t,className:re(T,W(W(W({},"".concat(T,"-").concat(o+1),o!==null&&w),"".concat(T,"-dragging"),u),"".concat(T,"-dragging-delete"),d),P.handle),style:G(G(G({},H),l),M.handle)},k,b));return s&&(B=s(B,{index:o,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B});process.env.NODE_ENV!=="production"&&(Bf.displayName="Handle");var zA=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],bC=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,v=dt(e,zA),g=c.useRef({}),h=c.useState(!1),b=K(h,2),m=b[0],p=b[1],y=c.useState(-1),C=K(y,2),S=C[0],x=C[1],w=function(_){x(_),p(!0)},E=function(_,M){w(M),f==null||f(_)},$=function(_,M){w(M)};c.useImperativeHandle(t,function(){return{focus:function(_){var M;(M=g.current[_])===null||M===void 0||M.focus()},hideHelp:function(){_r.flushSync(function(){p(!1)})}}});var O=G({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:E,onMouseEnter:$},v);return c.createElement(c.Fragment,null,i.map(function(I,_){var M=u===_;return c.createElement(Bf,Ce({ref:function(T){T?g.current[_]=T:delete g.current[_]},dragging:M,draggingDelete:M&&d,style:Bo(r,_),key:_,value:I,valueIndex:_},O))}),s&&m&&c.createElement(Bf,Ce({key:"a11y"},O,{value:i[S],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});process.env.NODE_ENV!=="production"&&(bC.displayName="Handles");var BA=function(t){var n=t.prefixCls,r=t.style,o=t.children,a=t.value,i=t.onClick,l=c.useContext(Vo),s=l.min,u=l.max,d=l.direction,f=l.includedStart,v=l.includedEnd,g=l.included,h="".concat(n,"-text"),b=zf(d,a,s,u);return c.createElement("span",{className:re(h,W({},"".concat(h,"-active"),g&&f<=a&&a<=v)),style:G(G({},b),r),onMouseDown:function(p){p.stopPropagation()},onClick:function(){i(a)}},o)},VA=function(t){var n=t.prefixCls,r=t.marks,o=t.onClick,a="".concat(n,"-mark");return r.length?c.createElement("div",{className:a},r.map(function(i){var l=i.value,s=i.style,u=i.label;return c.createElement(BA,{key:l,prefixCls:a,style:s,value:l,onClick:o},u)})):null},LA=function(t){var n=t.prefixCls,r=t.value,o=t.style,a=t.activeStyle,i=c.useContext(Vo),l=i.min,s=i.max,u=i.direction,d=i.included,f=i.includedStart,v=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=v,b=G(G({},zf(u,r,l,s)),typeof o=="function"?o(r):o);return h&&(b=G(G({},b),typeof a=="function"?a(r):a)),c.createElement("span",{className:re(g,W({},"".concat(g,"-active"),h)),style:b})},HA=function(t){var n=t.prefixCls,r=t.marks,o=t.dots,a=t.style,i=t.activeStyle,l=c.useContext(Vo),s=l.min,u=l.max,d=l.step,f=c.useMemo(function(){var v=new Set;if(r.forEach(function(h){v.add(h.value)}),o&&d!==null)for(var g=s;g<=u;)v.add(g),g+=d;return Array.from(v)},[s,u,d,o,r]);return c.createElement("div",{className:"".concat(n,"-step")},f.map(function(v){return c.createElement(LA,{prefixCls:n,key:v,value:v,style:a,activeStyle:i})}))},yC=function(t){var n=t.prefixCls,r=t.style,o=t.start,a=t.end,i=t.index,l=t.onStartMove,s=t.replaceCls,u=c.useContext(Vo),d=u.direction,f=u.min,v=u.max,g=u.disabled,h=u.range,b=u.classNames,m="".concat(n,"-track"),p=jf(o,f,v),y=jf(a,f,v),C=function(E){!g&&l&&l(E,-1)},S={};switch(d){case"rtl":S.right="".concat(p*100,"%"),S.width="".concat(y*100-p*100,"%");break;case"btt":S.bottom="".concat(p*100,"%"),S.height="".concat(y*100-p*100,"%");break;case"ttb":S.top="".concat(p*100,"%"),S.height="".concat(y*100-p*100,"%");break;default:S.left="".concat(p*100,"%"),S.width="".concat(y*100-p*100,"%")}var x=s||re(m,W(W({},"".concat(m,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),l),b.track);return c.createElement("div",{className:x,style:G(G({},S),r),onMouseDown:C,onTouchStart:C})},kA=function(t){var n=t.prefixCls,r=t.style,o=t.values,a=t.startPoint,i=t.onStartMove,l=c.useContext(Vo),s=l.included,u=l.range,d=l.min,f=l.styles,v=l.classNames,g=c.useMemo(function(){if(!u){if(o.length===0)return[];var b=a??d,m=o[0];return[{start:Math.min(b,m),end:Math.max(b,m)}]}for(var p=[],y=0;y<o.length-1;y+=1)p.push({start:o[y],end:o[y+1]});return p},[o,u,a,d]);if(!s)return null;var h=g!=null&&g.length&&(v.tracks||f.tracks)?c.createElement(yC,{index:null,prefixCls:n,start:g[0].start,end:g[g.length-1].end,replaceCls:re(v.tracks,"".concat(n,"-tracks")),style:f.tracks}):null;return c.createElement(c.Fragment,null,h,g.map(function(b,m){var p=b.start,y=b.end;return c.createElement(yC,{index:m,prefixCls:n,style:G(G({},Bo(r,m)),f.track),start:p,end:y,key:m,onStartMove:i})}))},WA=130;function CC(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function qA(e,t,n,r,o,a,i,l,s,u,d){var f=c.useState(null),v=K(f,2),g=v[0],h=v[1],b=c.useState(-1),m=K(b,2),p=m[0],y=m[1],C=c.useState(!1),S=K(C,2),x=S[0],w=S[1],E=c.useState(n),$=K(E,2),O=$[0],I=$[1],_=c.useState(n),M=K(_,2),P=M[0],T=M[1],N=c.useRef(null),R=c.useRef(null),F=c.useRef(null),A=c.useContext(AA),j=A.onDragStart,H=A.onDragChange;Pt(function(){p===-1&&I(n)},[n,p]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",N.current),document.removeEventListener("mouseup",R.current),F.current&&(F.current.removeEventListener("touchmove",N.current),F.current.removeEventListener("touchend",R.current))}},[]);var k=function(q,Y,U){Y!==void 0&&h(Y),I(q);var ee=q;U&&(ee=q.filter(function(Z,Q){return Q!==p})),i(ee),H&&H({rawValues:q,deleteIndex:U?p:-1,draggingIndex:p,draggingValue:Y})},z=Tt(function(L,q,Y){if(L===-1){var U=P[0],ee=P[P.length-1],Z=r-U,Q=o-ee,J=q*(o-r);J=Math.max(J,Z),J=Math.min(J,Q);var ae=a(U+J);J=ae-U;var ne=P.map(function(se){return se+J});k(ne)}else{var ie=(o-r)*q,te=Ne(O);te[L]=P[L];var le=s(te,ie,L,"dist");k(le.values,le.value,Y)}}),B=function(q,Y,U){q.stopPropagation();var ee=U||n,Z=ee[Y];y(Y),h(Z),T(ee),I(ee),w(!1);var Q=CC(q),J=Q.pageX,ae=Q.pageY,ne=!1;j&&j({rawValues:ee,draggingIndex:Y,draggingValue:Z});var ie=function(se){se.preventDefault();var fe=CC(se),ve=fe.pageX,ge=fe.pageY,be=ve-J,de=ge-ae,pe=e.current.getBoundingClientRect(),Se=pe.width,xe=pe.height,De,ye;switch(t){case"btt":De=-de/xe,ye=be;break;case"ttb":De=de/xe,ye=be;break;case"rtl":De=-be/Se,ye=de;break;default:De=be/Se,ye=de}ne=u?Math.abs(ye)>WA&&d<O.length:!1,w(ne),z(Y,De,ne)},te=function le(se){se.preventDefault(),document.removeEventListener("mouseup",le),document.removeEventListener("mousemove",ie),F.current&&(F.current.removeEventListener("touchmove",N.current),F.current.removeEventListener("touchend",R.current)),N.current=null,R.current=null,F.current=null,l(ne),y(-1),w(!1)};document.addEventListener("mouseup",te),document.addEventListener("mousemove",ie),q.currentTarget.addEventListener("touchend",te),q.currentTarget.addEventListener("touchmove",ie),N.current=ie,R.current=te,F.current=q.currentTarget},V=c.useMemo(function(){var L=Ne(n).sort(function(Z,Q){return Z-Q}),q=Ne(O).sort(function(Z,Q){return Z-Q}),Y={};q.forEach(function(Z){Y[Z]=(Y[Z]||0)+1}),L.forEach(function(Z){Y[Z]=(Y[Z]||0)-1});var U=u?1:0,ee=Object.values(Y).reduce(function(Z,Q){return Z+Math.abs(Q)},0);return ee<=U?O:n},[n,O,u]);return[p,g,x,V,B]}function UA(e,t,n,r,o,a){var i=c.useCallback(function(g){return Math.max(e,Math.min(t,g))},[e,t]),l=c.useCallback(function(g){if(n!==null){var h=e+Math.round((i(g)-e)/n)*n,b=function(C){return(String(C).split(".")[1]||"").length},m=Math.max(b(n),b(t),b(e)),p=Number(h.toFixed(m));return e<=p&&p<=t?p:null}return null},[n,e,t,i]),s=c.useCallback(function(g){var h=i(g),b=r.map(function(y){return y.value});n!==null&&b.push(l(g)),b.push(e,t);var m=b[0],p=t-e;return b.forEach(function(y){var C=Math.abs(h-y);C<=p&&(m=y,p=C)}),m},[e,t,r,n,i,l]),u=function g(h,b,m){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var y,C=h[m],S=C+b,x=[];r.forEach(function(I){x.push(I.value)}),x.push(e,t),x.push(l(C));var w=b>0?1:-1;p==="unit"?x.push(l(C+w*n)):x.push(l(S)),x=x.filter(function(I){return I!==null}).filter(function(I){return b<0?I<=C:I>=C}),p==="unit"&&(x=x.filter(function(I){return I!==C}));var E=p==="unit"?C:S;y=x[0];var $=Math.abs(y-E);if(x.forEach(function(I){var _=Math.abs(I-E);_<$&&(y=I,$=_)}),y===void 0)return b<0?e:t;if(p==="dist")return y;if(Math.abs(b)>1){var O=Ne(h);return O[m]=y,g(O,b-w,m,p)}return y}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,m){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[m],C=u(h,b,m,p);return{value:C,changed:C!==y}},f=function(h){return a===null&&h===0||typeof a=="number"&&h<a},v=function(h,b,m){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(s),C=y[m],S=u(y,b,m,p);if(y[m]=S,o===!1){var x=a||0;m>0&&y[m-1]!==C&&(y[m]=Math.max(y[m],y[m-1]+x)),m<y.length-1&&y[m+1]!==C&&(y[m]=Math.min(y[m],y[m+1]-x))}else if(typeof a=="number"||a===null){for(var w=m+1;w<y.length;w+=1)for(var E=!0;f(y[w]-y[w-1])&&E;){var $=d(y,1,w);y[w]=$.value,E=$.changed}for(var O=m;O>0;O-=1)for(var I=!0;f(y[O]-y[O-1])&&I;){var _=d(y,-1,O-1);y[O-1]=_.value,I=_.changed}for(var M=y.length-1;M>0;M-=1)for(var P=!0;f(y[M]-y[M-1])&&P;){var T=d(y,-1,M-1);y[M-1]=T.value,P=T.changed}for(var N=0;N<y.length-1;N+=1)for(var R=!0;f(y[N+1]-y[N])&&R;){var F=d(y,1,N+1);y[N+1]=F.value,R=F.changed}}return{value:y[m],values:y}};return[s,v]}function GA(e){return D.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return process.env.NODE_ENV!=="production"&&Wr(!t||!n,"`editable` can not work with `draggableTrack`."),[!0,t,!t&&n,r||0,o]},[e])}var SC=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,l=e.styles,s=e.id,u=e.disabled,d=u===void 0?!1:u,f=e.keyboard,v=f===void 0?!0:f,g=e.autoFocus,h=e.onFocus,b=e.onBlur,m=e.min,p=m===void 0?0:m,y=e.max,C=y===void 0?100:y,S=e.step,x=S===void 0?1:S,w=e.value,E=e.defaultValue,$=e.range,O=e.count,I=e.onChange,_=e.onBeforeChange,M=e.onAfterChange,P=e.onChangeComplete,T=e.allowCross,N=T===void 0?!0:T,R=e.pushable,F=R===void 0?!1:R,A=e.reverse,j=e.vertical,H=e.included,k=H===void 0?!0:H,z=e.startPoint,B=e.trackStyle,V=e.handleStyle,L=e.railStyle,q=e.dotStyle,Y=e.activeDotStyle,U=e.marks,ee=e.dots,Z=e.handleRender,Q=e.activeHandleRender,J=e.track,ae=e.tabIndex,ne=ae===void 0?0:ae,ie=e.ariaLabelForHandle,te=e.ariaLabelledByForHandle,le=e.ariaRequired,se=e.ariaValueTextFormatterForHandle,fe=c.useRef(null),ve=c.useRef(null),ge=c.useMemo(function(){return j?A?"ttb":"btt":A?"rtl":"ltr"},[A,j]),be=GA($),de=K(be,5),pe=de[0],Se=de[1],xe=de[2],De=de[3],ye=de[4],$e=c.useMemo(function(){return isFinite(p)?p:0},[p]),Te=c.useMemo(function(){return isFinite(C)?C:100},[C]),Pe=c.useMemo(function(){return x!==null&&x<=0?1:x},[x]),Oe=c.useMemo(function(){return typeof F=="boolean"?F?Pe:!1:F>=0?F:!1},[F,Pe]),we=c.useMemo(function(){return Object.keys(U||{}).map(function(_e){var he=U[_e],He={value:Number(_e)};return he&&tt(he)==="object"&&!c.isValidElement(he)&&("label"in he||"style"in he)?(He.style=he.style,He.label=he.label):He.label=he,He}).filter(function(_e){var he=_e.label;return he||typeof he=="number"}).sort(function(_e,he){return _e.value-he.value})},[U]),me=UA($e,Te,Pe,we,N,Oe),Ee=K(me,2),ue=Ee[0],ce=Ee[1],Ie=qt(E,{value:w}),rt=K(Ie,2),lt=rt[0],mt=rt[1],je=c.useMemo(function(){var _e=lt==null?[]:Array.isArray(lt)?lt:[lt],he=K(_e,1),He=he[0],ot=He===void 0?$e:He,ct=lt===null?[]:[ot];if(pe){if(ct=Ne(_e),O||lt===void 0){var It=O>=0?O+1:2;for(ct=ct.slice(0,It);ct.length<It;){var Ht;ct.push((Ht=ct[ct.length-1])!==null&&Ht!==void 0?Ht:$e)}}ct.sort(function(Ft,Je){return Ft-Je})}return ct.forEach(function(Ft,Je){ct[Je]=ue(Ft)}),ct},[lt,pe,$e,O,ue]),Re=function(he){return pe?he:he[0]},Ye=Tt(function(_e){var he=Ne(_e).sort(function(He,ot){return He-ot});I&&!Xo(he,je,!0)&&I(Re(he)),mt(he)}),ke=Tt(function(_e){_e&&fe.current.hideHelp();var he=Re(je);M==null||M(he),ut(!M,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),P==null||P(he)}),Xe=function(he){if(!(d||!Se||je.length<=De)){var He=Ne(je);He.splice(he,1),_==null||_(Re(He)),Ye(He);var ot=Math.max(0,he-1);fe.current.hideHelp(),fe.current.focus(ot)}},We=qA(ve,ge,je,$e,Te,ue,Ye,ke,ce,Se,De),Ae=K(We,5),ze=Ae[0],vt=Ae[1],ft=Ae[2],Le=Ae[3],Me=Ae[4],Be=function(he,He){if(!d){var ot=Ne(je),ct=0,It=0,Ht=Te-$e;je.forEach(function(Gt,Xt){var cn=Math.abs(he-Gt);cn<=Ht&&(Ht=cn,ct=Xt),Gt<he&&(It=Xt)});var Ft=ct;Se&&Ht!==0&&(!ye||je.length<ye)?(ot.splice(It+1,0,he),Ft=It+1):ot[ct]=he,pe&&!je.length&&O===void 0&&ot.push(he);var Je=Re(ot);if(_==null||_(Je),Ye(ot),He){var it,Nt;(it=document.activeElement)===null||it===void 0||(Nt=it.blur)===null||Nt===void 0||Nt.call(it),fe.current.focus(Ft),Me(He,Ft,ot)}else M==null||M(Je),ut(!M,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),P==null||P(Je)}},qe=function(he){he.preventDefault();var He=ve.current.getBoundingClientRect(),ot=He.width,ct=He.height,It=He.left,Ht=He.top,Ft=He.bottom,Je=He.right,it=he.clientX,Nt=he.clientY,Gt;switch(ge){case"btt":Gt=(Ft-Nt)/ct;break;case"ttb":Gt=(Nt-Ht)/ct;break;case"rtl":Gt=(Je-it)/ot;break;default:Gt=(it-It)/ot}var Xt=$e+Gt*(Te-$e);Be(ue(Xt),he)},Ke=c.useState(null),at=K(Ke,2),wt=at[0],Et=at[1],zt=function(he,He){if(!d){var ot=ce(je,he,He);_==null||_(Re(je)),Ye(ot.values),Et(ot.value)}};c.useEffect(function(){if(wt!==null){var _e=je.indexOf(wt);_e>=0&&fe.current.focus(_e)}Et(null)},[wt]);var $t=c.useMemo(function(){return xe&&Pe===null?(process.env.NODE_ENV!=="production"&&ut(!1,"`draggableTrack` is not supported when `step` is `null`."),!1):xe},[xe,Pe]),ht=Tt(function(_e,he){Me(_e,he),_==null||_(Re(je))}),_t=ze!==-1;c.useEffect(function(){if(!_t){var _e=je.lastIndexOf(vt);fe.current.focus(_e)}},[_t]);var Dt=c.useMemo(function(){return Ne(Le).sort(function(_e,he){return _e-he})},[Le]),Zt=c.useMemo(function(){return pe?[Dt[0],Dt[Dt.length-1]]:[$e,Dt[0]]},[Dt,pe,$e]),Vt=K(Zt,2),Rt=Vt[0],Ve=Vt[1];c.useImperativeHandle(t,function(){return{focus:function(){fe.current.focus(0)},blur:function(){var he,He=document,ot=He.activeElement;(he=ve.current)!==null&&he!==void 0&&he.contains(ot)&&(ot==null||ot.blur())}}}),c.useEffect(function(){g&&fe.current.focus(0)},[]);var Qe=c.useMemo(function(){return{min:$e,max:Te,direction:ge,disabled:d,keyboard:v,step:Pe,included:k,includedStart:Rt,includedEnd:Ve,range:pe,tabIndex:ne,ariaLabelForHandle:ie,ariaLabelledByForHandle:te,ariaRequired:le,ariaValueTextFormatterForHandle:se,styles:l||{},classNames:i||{}}},[$e,Te,ge,d,v,Pe,k,Rt,Ve,pe,ne,ie,te,le,se,l,i]);return c.createElement(Vo.Provider,{value:Qe},c.createElement("div",{ref:ve,className:re(r,o,W(W(W(W({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),j),"".concat(r,"-horizontal"),!j),"".concat(r,"-with-marks"),we.length)),style:a,onMouseDown:qe,id:s},c.createElement("div",{className:re("".concat(r,"-rail"),i==null?void 0:i.rail),style:G(G({},L),l==null?void 0:l.rail)}),J!==!1&&c.createElement(kA,{prefixCls:r,style:B,values:je,startPoint:z,onStartMove:$t?ht:void 0}),c.createElement(HA,{prefixCls:r,marks:we,dots:ee,style:q,activeStyle:Y}),c.createElement(bC,{ref:fe,prefixCls:r,style:V,values:Le,draggingIndex:ze,draggingDelete:ft,onStartMove:ht,onOffsetChange:zt,onFocus:h,onBlur:b,handleRender:Z,activeHandleRender:Q,onChangeComplete:ke,onDelete:Se?Xe:void 0}),c.createElement(VA,{prefixCls:r,marks:we,onClick:Be})))});process.env.NODE_ENV!=="production"&&(SC.displayName="Slider");const KA=D.createContext({}),Vf=c.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=D.useRef(null),i=n&&!r,l=D.useRef(null);function s(){yt.cancel(l.current),l.current=null}function u(){l.current=yt(()=>{var d;(d=a.current)===null||d===void 0||d.forceAlign(),l.current=null})}return c.useEffect(()=>(i?u():s(),s),[i,e.title,o]),c.createElement(Nr,Object.assign({ref:En(a,t)},e,{open:i}))});process.env.NODE_ENV!=="production"&&(Vf.displayName="SliderTooltip");const YA=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:v,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{position:"relative",height:r,margin:`${X(i)} ${X(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${X(a)} ${X(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${X(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${X(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
267
|
-
inset-inline-start ${m},
|
|
268
|
-
inset-block-start ${m},
|
|
269
|
-
width ${m},
|
|
270
|
-
height ${m},
|
|
271
|
-
box-shadow ${m},
|
|
272
|
-
outline ${m}
|
|
273
|
-
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(b).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(b).mul(-1).equal(),width:u(f).add(u(b).mul(2)).equal(),height:u(f).add(u(b).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${X(b)} ${v}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${X(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
274
|
-
${t}-dot
|
|
275
|
-
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${X(h)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
276
|
-
${t}-mark-text,
|
|
277
|
-
${t}-dot
|
|
278
|
-
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},xC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",v=t?"top":"insetInlineStart",g=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),b=t?{borderWidth:`${X(h)} 0`,transform:`translateY(${X(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${X(h)}`,transform:`translateX(${X(e.calc(h).mul(-1).equal())})`};return{[s]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[v]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[v]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(a).div(2).equal()}}},XA=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},xC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},QA=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},xC(e,!1)),{height:"100%"})}},JA=Kt("Slider",e=>{const t=At(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[YA(t),XA(t),QA(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*1.5,i=e.colorPrimary,l=new kt(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:l,handleColorDisabled:new kt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function Lf(){const[e,t]=c.useState(!1),n=c.useRef(null),r=()=>{yt.cancel(n.current)},o=a=>{r(),a?t(a):n.current=yt(()=>{t(a)})};return c.useEffect(()=>r,[]),[e,o]}var ZA=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 ej(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Hf=D.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:v,tooltip:g={},onChangeComplete:h,classNames:b,styles:m}=e,p=ZA(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:C,direction:S,className:x,style:w,classNames:E,styles:$,getPopupContainer:O}=Pn("slider"),I=D.useContext(Tn),_=l??I,{handleRender:M,direction:P}=D.useContext(KA),N=(P||S)==="rtl",[R,F]=Lf(),[A,j]=Lf(),H=Object.assign({},g),{open:k,placement:z,getPopupContainer:B,prefixCls:V,formatter:L}=H,q=k??d,Y=(R||A)&&q!==!1,U=ej(L,u),[ee,Z]=Lf(),Q=pe=>{h==null||h(pe),Z(!1)},J=(pe,Se)=>pe||(Se?N?"left":"right":"top"),ae=C("slider",n),[ne,ie,te]=JA(ae),le=re(o,x,E.root,b==null?void 0:b.root,a,{[`${ae}-rtl`]:N,[`${ae}-lock`]:ee},ie,te);if(N&&!p.vertical&&(p.reverse=!p.reverse),process.env.NODE_ENV!=="production"){const pe=jt("Slider");[["tooltipPrefixCls","prefixCls"],["getTooltipPopupContainer","getPopupContainer"],["tipFormatter","formatter"],["tooltipPlacement","placement"],["tooltipVisible","open"]].forEach(([Se,xe])=>{pe.deprecated(!(Se in e),Se,`tooltip.${xe}`)})}D.useEffect(()=>{const pe=()=>{yt(()=>{j(!1)},1)};return document.addEventListener("mouseup",pe),()=>{document.removeEventListener("mouseup",pe)}},[]);const se=r&&!q,fe=M||((pe,Se)=>{const{index:xe}=Se,De=pe.props;function ye(Oe,we,me){var Ee,ue,ce,Ie;me&&((ue=(Ee=p)[Oe])===null||ue===void 0||ue.call(Ee,we)),(Ie=(ce=De)[Oe])===null||Ie===void 0||Ie.call(ce,we)}const $e=Object.assign(Object.assign({},De),{onMouseEnter:Oe=>{F(!0),ye("onMouseEnter",Oe)},onMouseLeave:Oe=>{F(!1),ye("onMouseLeave",Oe)},onMouseDown:Oe=>{j(!0),Z(!0),ye("onMouseDown",Oe)},onFocus:Oe=>{var we;j(!0),(we=p.onFocus)===null||we===void 0||we.call(p,Oe),ye("onFocus",Oe,!0)},onBlur:Oe=>{var we;j(!1),(we=p.onBlur)===null||we===void 0||we.call(p,Oe),ye("onBlur",Oe,!0)}}),Te=D.cloneElement(pe,$e),Pe=(!!q||Y)&&U!==null;return se?Te:D.createElement(Vf,Object.assign({},H,{prefixCls:C("tooltip",V??s),title:U?U(Se.value):"",value:Se.value,open:Pe,placement:J(z??v,y),key:xe,classNames:{root:`${ae}-tooltip`},getPopupContainer:B||f||O}),Te)}),ve=se?(pe,Se)=>{const xe=D.cloneElement(pe,{style:Object.assign(Object.assign({},pe.props.style),{visibility:"hidden"})});return D.createElement(Vf,Object.assign({},H,{prefixCls:C("tooltip",V??s),title:U?U(Se.value):"",open:U!==null&&Y,placement:J(z??v,y),key:"tooltip",classNames:{root:`${ae}-tooltip`},getPopupContainer:B||f||O,draggingDelete:Se.draggingDelete}),xe)}:void 0,ge=Object.assign(Object.assign(Object.assign(Object.assign({},$.root),w),m==null?void 0:m.root),i),be=Object.assign(Object.assign({},$.tracks),m==null?void 0:m.tracks),de=re(E.tracks,b==null?void 0:b.tracks);return ne(D.createElement(SC,Object.assign({},p,{classNames:Object.assign({handle:re(E.handle,b==null?void 0:b.handle),rail:re(E.rail,b==null?void 0:b.rail),track:re(E.track,b==null?void 0:b.track)},de?{tracks:de}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},$.handle),m==null?void 0:m.handle),rail:Object.assign(Object.assign({},$.rail),m==null?void 0:m.rail),track:Object.assign(Object.assign({},$.track),m==null?void 0:m.track)},Object.keys(be).length?{tracks:be}:{}),step:p.step,range:r,className:le,style:ge,disabled:_,ref:t,prefixCls:ae,handleRender:fe,activeHandleRender:ve,onChangeComplete:Q})))});process.env.NODE_ENV!=="production"&&(Hf.displayName="Slider");var tj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},nj=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:tj}))},kf=c.forwardRef(nj);process.env.NODE_ENV!=="production"&&(kf.displayName="CalendarOutlined");var rj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},oj=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:rj}))},Wf=c.forwardRef(oj);process.env.NODE_ENV!=="production"&&(Wf.displayName="ClockCircleOutlined");var aj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ij=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:aj}))},wC=c.forwardRef(ij);process.env.NODE_ENV!=="production"&&(wC.displayName="SwapRightOutlined");function lj(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function sj(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function EC(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=Xb(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[cj,uj]=["week","WeekPicker"],[dj,fj]=["month","MonthPicker"],[vj,mj]=["year","YearPicker"],[gj,pj]=["quarter","QuarterPicker"],[qf,$C]=["time","TimePicker"],hj=e=>c.createElement(pn,Object.assign({size:"small",type:"primary"},e));function OC(e){return D.useMemo(()=>Object.assign({button:hj},e),[e])}function IC(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],l=o[a];if(i&&typeof i=="object")if(l&&typeof l=="object")r[a]=IC(i,r[a],l);else{const{_default:s}=i;r[a]=r[a]||{},r[a][s]=re(r[a][s],l)}else r[a]=re(r[a],l)}),r),{})}function bj(e,...t){return c.useMemo(()=>IC.apply(void 0,[e].concat(t)),[t])}function yj(...e){return c.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function Uf(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?Uf(a,o):a}}),n}function Cj(e,t,n){const r=bj.apply(void 0,[n].concat(Ne(e))),o=yj.apply(void 0,Ne(t));return c.useMemo(()=>[Uf(r,n),Uf(o,n)],[r,o])}const NC=(e,t,n,r,o)=>{const{classNames:a,styles:i}=Pn(e),[l,s]=Cj([a,t],[i,n],{popup:{_default:"root"}});return c.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:re((u=l.popup)===null||u===void 0?void 0:u.root,r)})}),v=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},(d=s.popup)===null||d===void 0?void 0:d.root),o)})});return[f,v]},[l,s,r,o])};var Sj=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 xj=e=>{const t=D.forwardRef((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:l,className:s,style:u,placement:d,size:f,disabled:v,bordered:g=!0,placeholder:h,popupStyle:b,popupClassName:m,dropdownClassName:p,status:y,rootClassName:C,variant:S,picker:x,styles:w,classNames:E}=n,$=Sj(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=x===qf?"timePicker":"datePicker",I=c.useRef(null),{getPrefixCls:_,direction:M,getPopupContainer:P,rangePicker:T}=D.useContext(bt),N=_("picker",a),{compactSize:R,compactItemClassnames:F}=Jr(N,M),A=_(),[j,H]=$o("rangePicker",S,g),k=Gn(N),[z,B,V]=By(N,k);if(process.env.NODE_ENV!=="production"){const ve=jt("DatePicker.RangePicker");Object.entries({dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",popupStyle:"styles.popup.root",bordered:"variant",onSelect:"onCalendarChange"}).forEach(([be,de])=>{ve.deprecated(!(be in n),be,de)})}const[L,q]=NC(O,E,w,m||p,b),[Y]=EC(n,N),U=OC(l),ee=_n(ve=>{var ge;return(ge=f??R)!==null&&ge!==void 0?ge:ve}),Z=c.useContext(Tn),Q=v??Z,J=D.useContext(Cn),{hasFeedback:ae,status:ne,feedbackIcon:ie}=J,te=c.createElement(c.Fragment,null,x===qf?c.createElement(Wf,null):c.createElement(kf,null),ae&&ie);D.useImperativeHandle(r,()=>I.current);const[le]=Fr("Calendar",ml),se=Object.assign(Object.assign({},le),n.locale),[fe]=Jl("DatePicker",(o=q.popup.root)===null||o===void 0?void 0:o.zIndex);return z(c.createElement(xo,{space:!0},c.createElement(by,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${N}-separator`},c.createElement(wC,null)),disabled:Q,ref:I,placement:d,placeholder:sj(se,x,h),suffixIcon:te,prevIcon:c.createElement("span",{className:`${N}-prev-icon`}),nextIcon:c.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:x},$,{className:re({[`${N}-${ee}`]:ee,[`${N}-${j}`]:H},eo(N,Eo(ne,y),ae),B,F,s,T==null?void 0:T.className,V,k,C,L.root),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),u),q.root),locale:se.lang,prefixCls:N,getPopupContainer:i||P,generateConfig:e,components:U,direction:M,classNames:{popup:re(B,V,k,C,L.popup.root)},styles:{popup:Object.assign(Object.assign({},q.popup.root),{zIndex:fe})},allowClear:Y}))))});return process.env.NODE_ENV!=="production"&&(t.displayName="RangePicker"),t};var wj=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 Ej=e=>{const t=(s,u)=>{const d=u===$C?"timePicker":"datePicker",f=D.forwardRef((v,g)=>{var h;const{prefixCls:b,getPopupContainer:m,components:p,style:y,className:C,rootClassName:S,size:x,bordered:w,placement:E,placeholder:$,popupStyle:O,popupClassName:I,dropdownClassName:_,disabled:M,status:P,variant:T,onCalendarChange:N,styles:R,classNames:F}=v,A=wj(v,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:j,direction:H,getPopupContainer:k,[d]:z}=D.useContext(bt),B=j("picker",b),{compactSize:V,compactItemClassnames:L}=Jr(B,H),q=c.useRef(null),[Y,U]=$o("datePicker",T,w),ee=Gn(B),[Z,Q,J]=By(B,ee);D.useImperativeHandle(g,()=>q.current);const ae={showToday:!0},ne=s||v.picker,ie=j(),{onSelect:te,multiple:le}=A,se=te&&s==="time"&&!le,fe=(ue,ce,Ie)=>{N==null||N(ue,ce,Ie),se&&te(ue)};if(process.env.NODE_ENV!=="production"){const ue=jt(u||"DatePicker");process.env.NODE_ENV!=="production"&&ue(s!=="quarter","deprecated",`DatePicker.${u} is legacy usage. Please use DatePicker[picker='${s}'] directly.`),Object.entries({dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",popupStyle:"styles.popup.root",bordered:"variant",onSelect:"onCalendarChange"}).forEach(([Ie,rt])=>{ue.deprecated(!(Ie in v),Ie,rt)})}const[ve,ge]=NC(d,F,R,I||_,O),[be,de]=EC(v,B),pe=OC(p),Se=_n(ue=>{var ce;return(ce=x??V)!==null&&ce!==void 0?ce:ue}),xe=c.useContext(Tn),De=M??xe,ye=D.useContext(Cn),{hasFeedback:$e,status:Te,feedbackIcon:Pe}=ye,Oe=c.createElement(c.Fragment,null,ne==="time"?c.createElement(Wf,null):c.createElement(kf,null),$e&&Pe),[we]=Fr("DatePicker",ml),me=Object.assign(Object.assign({},we),v.locale),[Ee]=Jl("DatePicker",(h=ge.popup.root)===null||h===void 0?void 0:h.zIndex);return Z(c.createElement(xo,{space:!0},c.createElement(Cy,Object.assign({ref:q,placeholder:lj(me,ne,$),suffixIcon:Oe,placement:E,prevIcon:c.createElement("span",{className:`${B}-prev-icon`}),nextIcon:c.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:s,onCalendarChange:fe},ae,A,{locale:me.lang,className:re({[`${B}-${Se}`]:Se,[`${B}-${Y}`]:U},eo(B,Eo(Te,P),$e),Q,L,z==null?void 0:z.className,C,J,ee,S,ve.root),style:Object.assign(Object.assign(Object.assign({},z==null?void 0:z.style),y),ge.root),prefixCls:B,getPopupContainer:m||k,generateConfig:e,components:pe,direction:H,disabled:De,classNames:{popup:re(Q,J,ee,S,ve.popup.root)},styles:{popup:Object.assign(Object.assign({},ge.popup.root),{zIndex:Ee})},allowClear:be,removeIcon:de}))))});return process.env.NODE_ENV!=="production"&&u&&(f.displayName=u),f},n=t(),r=t(cj,uj),o=t(dj,fj),a=t(vj,mj),i=t(gj,pj),l=t(qf,$C);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:i}},PC=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=Ej(e),l=xj(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=a,s.QuarterPicker=i,process.env.NODE_ENV!=="production"&&(s.displayName="DatePicker"),s},oo=PC(TD),$j=Id(oo,"popupAlign",void 0,"picker");oo._InternalPanelDoNotUseOrYouWillBeFired=$j;const Oj=Id(oo.RangePicker,"popupAlign",void 0,"picker");oo._InternalRangePanelDoNotUseOrYouWillBeFired=Oj,oo.generatePicker=PC;function _C(e){return["small","middle","large"].includes(e)}function MC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const TC=D.createContext({latestIndex:0}),Ij=TC.Provider,Nj=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=c.useContext(TC);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:e,style:o},n),t<a&&r&&c.createElement("span",{className:`${e}-split`},r))};var Pj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pa=c.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:i,style:l,classNames:s,styles:u}=Pn("space"),{size:d=a??"small",align:f,className:v,rootClassName:g,children:h,direction:b="horizontal",prefixCls:m,split:p,style:y,wrap:C=!1,classNames:S,styles:x}=e,w=Pj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,$]=Array.isArray(d)?d:[d,d],O=_C($),I=_C(E),_=MC($),M=MC(E),P=kn(h,{keepEmpty:!0}),T=f===void 0&&b==="horizontal"?"center":f,N=r("space",m),[R,F,A]=oh(N),j=re(N,i,F,`${N}-${b}`,{[`${N}-rtl`]:o==="rtl",[`${N}-align-${T}`]:T,[`${N}-gap-row-${$}`]:O,[`${N}-gap-col-${E}`]:I},v,g,A),H=re(`${N}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:s.item);let k=0;const z=P.map((L,q)=>{var Y;L!=null&&(k=q);const U=(L==null?void 0:L.key)||`${H}-${q}`;return c.createElement(Nj,{className:H,key:U,index:q,split:p,style:(Y=x==null?void 0:x.item)!==null&&Y!==void 0?Y:u.item},L)}),B=c.useMemo(()=>({latestIndex:k}),[k]);if(P.length===0)return null;const V={};return C&&(V.flexWrap="wrap"),!I&&M&&(V.columnGap=E),!O&&_&&(V.rowGap=$),R(c.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},V),l),y)},w),c.createElement(Ij,{value:B},z)))});Pa.Compact=DI,process.env.NODE_ENV!=="production"&&(Pa.displayName="Space");function _j(e){return e==null?null:typeof e=="object"&&!D.isValidElement(e)?e:{title:e}}function Xs(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Mj=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
279
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
280
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Tj=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),DC=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Dj=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ut(e)),Tj(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},DC(e,e.controlHeightSM)),"&-large":Object.assign({},DC(e,e.controlHeightLG))})}},Rj=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
281
|
-
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ed,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},RC=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Fj=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
282
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Sr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),FC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Sr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Aj=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
283
|
-
${r}-col-24${n}-label,
|
|
284
|
-
${r}-col-xl-24${n}-label`]:Sr(e)}},[`@media (max-width: ${X(e.screenXSMax)})`]:[FC(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Sr(e)}}}],[`@media (max-width: ${X(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Sr(e)}}},[`@media (max-width: ${X(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Sr(e)}}},[`@media (max-width: ${X(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Sr(e)}}}}},jj=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
|
285
|
-
${n}-col-24${t}-label,
|
|
286
|
-
${n}-col-xl-24${t}-label`]:Sr(e),[`@media (max-width: ${X(e.screenXSMax)})`]:[FC(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Sr(e)}}],[`@media (max-width: ${X(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Sr(e)}},[`@media (max-width: ${X(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Sr(e)}},[`@media (max-width: ${X(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Sr(e)}}}},zj=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),AC=(e,t)=>At(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Gf=Kt("Form",(e,{rootPrefixCls:t})=>{const n=AC(e,t);return[Dj(n),Rj(n),Mj(n),RC(n,n.componentCls),RC(n,n.formItemCls),Fj(n),Aj(n),jj(n),aN(n),ed]},zj,{order:-1e3}),jC=[];function Kf(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const zC=({help:e,helpStatus:t,errors:n=jC,warnings:r=jC,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:l}=c.useContext(Cd),s=`${l}-item-explain`,u=Gn(l),[d,f,v]=Gf(l,u),g=c.useMemo(()=>rh(l),[l]),h=Xs(n),b=Xs(r),m=c.useMemo(()=>e!=null?[Kf(e,"help",t)]:[].concat(Ne(h.map((C,S)=>Kf(C,"error","error",S))),Ne(b.map((C,S)=>Kf(C,"warning","warning",S)))),[e,t,h,b]),p=c.useMemo(()=>{const C={};return m.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),m.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[m]),y={};return a&&(y.id=`${a}_help`),d(c.createElement($r,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!p.length,onVisibleChanged:i},C=>{const{className:S,style:x}=C;return c.createElement("div",Object.assign({},y,{className:re(s,S,v,u,o,f),style:x}),c.createElement(dO,Object.assign({keys:p},rh(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:E,error:$,errorStatus:O,className:I,style:_}=w;return c.createElement("div",{key:E,className:re(I,{[`${s}-${O}`]:O}),style:_},$)}))}))},Bj=["parentNode"],Vj="form_item";function Ti(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function BC(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Bj.includes(n)?`${Vj}_${n}`:n}function VC(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var Lj=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 LC(e){return Ti(e).join("_")}function HC(e,t){const n=t.getFieldInstance(e),r=Am(n);if(r)return r;const o=BC(Ti(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function kC(e){const[t]=bd(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=LC(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,l=Lj(a,["focus"]),s=HC(o,r);s&&(nI(s,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(o))},focusField:o=>{var a,i;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(a=HC(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=LC(o);return n.current[a]}}),[e,t]);return[r]}const Qs={};function Hj({name:e}){const t=jt("Form");c.useEffect(()=>{if(e)return Qs[e]=(Qs[e]||0)+1,process.env.NODE_ENV!=="production"&&t(Qs[e]<=1,"usage","There exist multiple Form with same `name`."),()=>{Qs[e]-=1}},[e])}var kj=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 Wj=(e,t)=>{const n=c.useContext(Tn),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:l,className:s,style:u}=Pn("form"),{prefixCls:d,className:f,rootClassName:v,size:g,disabled:h=n,form:b,colon:m,labelAlign:p,labelWrap:y,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:w="horizontal",scrollToFirstError:E,requiredMark:$,onFinishFailed:O,name:I,style:_,feedbackIcons:M,variant:P}=e,T=kj(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=_n(g),R=c.useContext(Vg);process.env.NODE_ENV!=="production"&&Hj(e);const F=c.useMemo(()=>$!==void 0?$:x?!1:a!==void 0?a:!0,[x,$,a]),A=m??i,j=r("form",d),H=Gn(j),[k,z,B]=Gf(j,H),V=re(j,`${j}-${w}`,{[`${j}-hide-required-mark`]:F===!1,[`${j}-rtl`]:o==="rtl",[`${j}-${N}`]:N},B,H,z,s,f,v),[L]=kC(b),{__INTERNAL__:q}=L;q.name=I;const Y=c.useMemo(()=>({name:I,labelAlign:p,labelCol:C,labelWrap:y,wrapperCol:S,vertical:w==="vertical",colon:A,requiredMark:F,itemRef:q.itemRef,form:L,feedbackIcons:M}),[I,p,C,S,w,A,F,L,M]),U=c.useRef(null);c.useImperativeHandle(t,()=>{var Q;return Object.assign(Object.assign({},L),{nativeElement:(Q=U.current)===null||Q===void 0?void 0:Q.nativeElement})});const ee=(Q,J)=>{if(Q){let ae={block:"nearest"};typeof Q=="object"&&(ae=Object.assign(Object.assign({},ae),Q)),L.scrollToField(J,ae)}},Z=Q=>{if(O==null||O(Q),Q.errorFields.length){const J=Q.errorFields[0].name;if(E!==void 0){ee(E,J);return}l!==void 0&&ee(l,J)}};return k(c.createElement(Kh.Provider,{value:P},c.createElement(rp,{disabled:h},c.createElement(po.Provider,{value:N},c.createElement(Gh,{validateMessages:R},c.createElement(Br.Provider,{value:Y},c.createElement(pa,Object.assign({id:I},T,{name:I,onFinishFailed:Z,form:L,ref:U,style:Object.assign(Object.assign({},u),_),className:V}))))))))},WC=c.forwardRef(Wj);process.env.NODE_ENV!=="production"&&(WC.displayName="Form");function qj(e){if(typeof e=="function")return e;const t=kn(e);return t.length<=1?t[0]:t}const qC=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(Cn);if(process.env.NODE_ENV!=="production"){const r=jt("Form.Item");process.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};qC.Context=Cn;function Uj(e){const[t,n]=c.useState(e),r=c.useRef(null),o=c.useRef([]),a=c.useRef(!1);c.useEffect(()=>(a.current=!1,()=>{a.current=!0,yt.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=yt(()=>{r.current=null,n(s=>{let u=s;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}function Gj(){const{itemRef:e}=c.useContext(Br),t=c.useRef({});function n(r,o){const a=o&&typeof o=="object"&&co(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=En(e(r),a)),t.current.ref}return n}const Kj=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Yj=Ja(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=AC(e,t);return[Kj(n)]});var Xj=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 Qj=24,Jj=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:l,_internalItemRender:s,extra:u,help:d,fieldId:f,marginBottom:v,onErrorVisibleChanged:g,label:h}=e,b=`${t}-item`,m=c.useContext(Br),p=c.useMemo(()=>{let T=Object.assign({},o||m.wrapperCol||{});return h===null&&!r&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const F=R?[R]:[],A=rr(m.labelCol,F),j=typeof A=="object"?A:{},H=rr(T,F),k=typeof H=="object"?H:{};"span"in j&&!("offset"in k)&&j.span<Qj&&(T=or(T,[].concat(F,["offset"]),j.span))}),T},[o,m]),y=re(`${b}-control`,p.className),C=c.useMemo(()=>{const{labelCol:T,wrapperCol:N}=m;return Xj(m,["labelCol","wrapperCol"])},[m]),S=c.useRef(null),[x,w]=c.useState(0);Pt(()=>{u&&S.current?w(S.current.clientHeight):w(0)},[u]);const E=c.createElement("div",{className:`${b}-control-input`},c.createElement("div",{className:`${b}-control-input-content`},a)),$=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=v!==null||i.length||l.length?c.createElement(Cd.Provider,{value:$},c.createElement(zC,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:g})):null,I={};f&&(I.id=`${f}_extra`);const _=u?c.createElement("div",Object.assign({},I,{className:`${b}-extra`,ref:S}),u):null,M=O||_?c.createElement("div",{className:`${b}-additional`,style:v?{minHeight:v+x}:{}},O,_):null,P=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:E,errorList:O,extra:_}):c.createElement(c.Fragment,null,E,M);return c.createElement(Br.Provider,{value:C},c.createElement(ln,Object.assign({},p,{className:y}),P),c.createElement(Yj,{prefixCls:t}))};var Zj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ez=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:Zj}))},UC=c.forwardRef(ez);process.env.NODE_ENV!=="production"&&(UC.displayName="QuestionCircleOutlined");var tz=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 nz=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:l,tooltip:s,vertical:u})=>{var d;const[f]=Fr("Form"),{labelAlign:v,labelCol:g,labelWrap:h,colon:b}=c.useContext(Br);if(!t)return null;const m=r||g||{},p=o||v,y=`${e}-item-label`,C=re(y,p==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!h});let S=t;const x=a===!0||b!==!1&&a!==!1;x&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const E=_j(s);if(E){const{icon:P=c.createElement(UC,null)}=E,T=tz(E,["icon"]),N=c.createElement(Nr,Object.assign({},T),c.cloneElement(P,{className:`${e}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));S=c.createElement(c.Fragment,null,S,N)}const $=l==="optional",O=typeof l=="function",I=l===!1;O?S=l(S,{required:!!i}):$&&!i&&(S=c.createElement(c.Fragment,null,S,c.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Yr.Form)===null||d===void 0?void 0:d.optional))));let _;I?_="hidden":($||O)&&(_="optional");const M=re({[`${e}-item-required`]:i,[`${e}-item-required-mark-${_}`]:_,[`${e}-item-no-colon`]:!x});return c.createElement(ln,Object.assign({},m,{className:C}),c.createElement("label",{htmlFor:n,className:M,title:typeof t=="string"?t:""},S))},rz={success:Kl,warning:Mu,error:ua,validating:ei};function GC({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:l}){const s=`${a}-item`,{feedbackIcons:u}=c.useContext(Br),d=VC(t,n,i,null,!!r,o),{isFormItemInput:f,status:v,hasFeedback:g,feedbackIcon:h}=c.useContext(Cn),b=c.useMemo(()=>{var m;let p;if(r){const C=r!==!0&&r.icons||u,S=d&&((m=C==null?void 0:C({status:d,errors:t,warnings:n}))===null||m===void 0?void 0:m[d]),x=d&&rz[d];p=S!==!1&&x?c.createElement("span",{className:re(`${s}-feedback-icon`,`${s}-feedback-icon-${d}`)},S||c.createElement(x,null)):null}const y={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:p,isFormItemInput:!0};return l&&(y.status=(d??v)||"",y.isFormItemInput=f,y.hasFeedback=!!(r??g),y.feedbackIcon=r!==void 0?y.feedbackIcon:h),y},[d,r,l,f,v]);return c.createElement(Cn.Provider,{value:b},e)}var oz=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 az(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:l,validateStatus:s,meta:u,hasFeedback:d,hidden:f,children:v,fieldId:g,required:h,isRequired:b,onSubItemMetaChange:m,layout:p}=e,y=oz(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),C=`${t}-item`,{requiredMark:S,vertical:x}=c.useContext(Br),w=x||p==="vertical",E=c.useRef(null),$=Xs(i),O=Xs(l),I=a!=null,_=!!(I||i.length||l.length),M=!!E.current&&ni(E.current),[P,T]=c.useState(null);Pt(()=>{if(_&&E.current){const j=getComputedStyle(E.current);T(parseInt(j.marginBottom,10))}},[_,M]);const N=j=>{j||T(null)},F=((j=!1)=>{const H=j?$:u.errors,k=j?O:u.warnings;return VC(H,k,u,"",!!d,s)})(),A=re(C,n,r,{[`${C}-with-help`]:I||$.length||O.length,[`${C}-has-feedback`]:F&&d,[`${C}-has-success`]:F==="success",[`${C}-has-warning`]:F==="warning",[`${C}-has-error`]:F==="error",[`${C}-is-validating`]:F==="validating",[`${C}-hidden`]:f,[`${C}-${p}`]:p});return c.createElement("div",{className:A,style:o,ref:E},c.createElement(yr,Object.assign({className:`${C}-row`},gn(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),c.createElement(nz,Object.assign({htmlFor:g},e,{requiredMark:S,required:h??b,prefixCls:t,vertical:w})),c.createElement(Jj,Object.assign({},e,u,{errors:$,warnings:O,prefixCls:t,status:F,help:a,marginBottom:P,onErrorVisibleChanged:N}),c.createElement(Uh.Provider,{value:m},c.createElement(GC,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:F},v)))),!!P&&c.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-P}}))}const iz="__SPLIT__";function lz(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const sz=c.memo(({children:e})=>e,(e,t)=>lz(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function KC(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function cz(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:s,required:u,label:d,messageVariables:f,trigger:v="onChange",validateTrigger:g,hidden:h,help:b,layout:m}=e,{getPrefixCls:p}=c.useContext(bt),{name:y}=c.useContext(Br),C=qj(s),S=typeof C=="function",x=c.useContext(Uh),{validateTrigger:w}=c.useContext(So),E=g!==void 0?g:w,$=t!=null,O=p("form",a),I=Gn(O),[_,M,P]=Gf(O,I),T=jt("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&T(t!==null,"usage","`null` is passed as `name` property");const N=c.useContext(ii),R=c.useRef(null),[F,A]=Uj({}),[j,H]=aa(()=>KC()),k=U=>{const ee=N==null?void 0:N.getKey(U.name);if(H(U.destroy?KC():U,!0),n&&b!==!1&&x){let Z=U.name;if(U.destroy)Z=R.current||Z;else if(ee!==void 0){const[Q,J]=ee;Z=[Q].concat(Ne(J)),R.current=Z}x(U,Z)}},z=(U,ee)=>{A(Z=>{const Q=Object.assign({},Z),ae=[].concat(Ne(U.name.slice(0,-1)),Ne(ee)).join(iz);return U.destroy?delete Q[ae]:Q[ae]=U,Q})},[B,V]=c.useMemo(()=>{const U=Ne(j.errors),ee=Ne(j.warnings);return Object.values(F).forEach(Z=>{U.push.apply(U,Ne(Z.errors||[])),ee.push.apply(ee,Ne(Z.warnings||[]))}),[U,ee]},[F,j.errors,j.warnings]),L=Gj();function q(U,ee,Z){return n&&!h?c.createElement(GC,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:B,warnings:V,noStyle:!0},U):c.createElement(az,Object.assign({key:"row"},e,{className:re(r,P,I,M),prefixCls:O,fieldId:ee,isRequired:Z,errors:B,warnings:V,meta:j,onSubItemMetaChange:z,layout:m}),U)}if(!$&&!S&&!o)return _(q(C));let Y={};return typeof d=="string"?Y.label=d:t&&(Y.label=String(t)),f&&(Y=Object.assign(Object.assign({},Y),f)),_(c.createElement(pd,Object.assign({},e,{messageVariables:Y,trigger:v,validateTrigger:E,onMetaChange:k}),(U,ee,Z)=>{const Q=Ti(t).length&&ee?ee.name:[],J=BC(Q,y),ae=u!==void 0?u:!!(l!=null&&l.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const le=te(Z);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),ne=Object.assign({},U);let ie=null;if(process.env.NODE_ENV!=="production"&&T(!(i&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(C)&&$)process.env.NODE_ENV!=="production"&&T(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ie=C;else if(S&&(!(i||o)||$))process.env.NODE_ENV!=="production"&&T(!!(i||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&T(!$,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!S&&!$)process.env.NODE_ENV!=="production"&&T(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(c.isValidElement(C)){process.env.NODE_ENV!=="production"&&T(C.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const te=Object.assign(Object.assign({},C.props),ne);if(te.id||(te.id=J),b||B.length>0||V.length>0||e.extra){const fe=[];(b||B.length>0)&&fe.push(`${J}_help`),e.extra&&fe.push(`${J}_extra`),te["aria-describedby"]=fe.join(" ")}B.length>0&&(te["aria-invalid"]="true"),ae&&(te["aria-required"]="true"),qr(C)&&(te.ref=L(Q,C)),new Set([].concat(Ne(Ti(v)),Ne(Ti(E)))).forEach(fe=>{te[fe]=(...ve)=>{var ge,be,de,pe,Se;(de=ne[fe])===null||de===void 0||(ge=de).call.apply(ge,[ne].concat(ve)),(Se=(pe=C.props)[fe])===null||Se===void 0||(be=Se).call.apply(be,[pe].concat(ve))}});const se=[te["aria-required"],te["aria-invalid"],te["aria-describedby"]];ie=c.createElement(sz,{control:ne,update:C,childProps:se},gr(C,te))}else S&&(i||o)&&!$?ie=C(Z):(process.env.NODE_ENV!=="production"&&T(!Q.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ie=C);return q(ie,J,ae)}))}const YC=cz;YC.useStatus=qC;var uz=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 dz=e=>{var{prefixCls:t,children:n}=e,r=uz(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const l=jt("Form.List");process.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=c.useContext(bt),a=o("form",t),i=c.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return c.createElement(Lh,Object.assign({},r),(l,s,u)=>c.createElement(Cd.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:u.errors,warnings:u.warnings})))};function fz(){const{form:e}=c.useContext(Br);return e}const jn=WC;jn.Item=YC,jn.List=dz,jn.ErrorList=zC,jn.useForm=kC,jn.useFormInstance=fz,jn.useWatch=qh,jn.Provider=Gh,jn.create=()=>{process.env.NODE_ENV!=="production"&&Kr(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var vz={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"},mz=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:vz}))},XC=c.forwardRef(mz);process.env.NODE_ENV!=="production"&&(XC.displayName="EyeOutlined");const gz=e=>{const{getPrefixCls:t,direction:n}=D.useContext(bt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s,u]=zy(i),d=re(a,u,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),f=D.useContext(Cn),v=D.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return process.env.NODE_ENV!=="production"&&jt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(c.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Cn.Provider,{value:v},e.children)))},pz=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},hz=Kt(["Input","OTP"],e=>{const t=At(e,Ro(e));return[pz(t)]},Fo);var bz=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 yz=c.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:l}=e,s=bz(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=c.useContext(bt),d=u("otp"),f=typeof l=="string"?l:r,v=c.useRef(null);c.useImperativeHandle(t,()=>v.current);const g=p=>{o(i,p.target.value)},h=()=>{yt(()=>{var p;const y=(p=v.current)===null||p===void 0?void 0:p.input;document.activeElement===y&&y&&y.select()})},b=p=>{const{key:y,ctrlKey:C,metaKey:S}=p;y==="ArrowLeft"?a(i-1):y==="ArrowRight"?a(i+1):y==="z"&&(C||S)&&p.preventDefault(),h()},m=p=>{p.key==="Backspace"&&!r&&a(i-1),h()};return c.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&c.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),c.createElement(Mi,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},s,{ref:v,value:r,onInput:g,onFocus:h,onKeyDown:b,onKeyUp:m,onMouseDown:h,onMouseUp:h,className:re(n,{[`${d}-mask-input`]:l})})))});var Cz=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 Js(e){return(e||"").split("")}const Sz=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?c.createElement("span",{className:`${n}-separator`},o):null},xz=c.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:s,separator:u,variant:d,disabled:f,status:v,autoFocus:g,mask:h,type:b,onInput:m,inputMode:p}=e,y=Cz(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const V=jt("Input.OTP");process.env.NODE_ENV!=="production"&&V(!(typeof h=="string"&&h.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:C,direction:S}=c.useContext(bt),x=C("otp",n),w=Jn(y,{aria:!0,data:!0,attr:!0}),[E,$,O]=hz(x),I=_n(V=>o??V),_=c.useContext(Cn),M=Eo(_.status,v),P=c.useMemo(()=>Object.assign(Object.assign({},_),{status:M,hasFeedback:!1,feedbackIcon:null}),[_,M]),T=c.useRef(null),N=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{var V;(V=N.current[0])===null||V===void 0||V.focus()},blur:()=>{var V;for(let L=0;L<r;L+=1)(V=N.current[L])===null||V===void 0||V.blur()},nativeElement:T.current}));const R=V=>s?s(V):V,[F,A]=c.useState(()=>Js(R(a||"")));c.useEffect(()=>{i!==void 0&&A(Js(i))},[i]);const j=Tt(V=>{A(V),m&&m(V),l&&V.length===r&&V.every(L=>L)&&V.some((L,q)=>F[q]!==L)&&l(V.join(""))}),H=Tt((V,L)=>{let q=Ne(F);for(let U=0;U<V;U+=1)q[U]||(q[U]="");L.length<=1?q[V]=L:q=q.slice(0,V).concat(Js(L)),q=q.slice(0,r);for(let U=q.length-1;U>=0&&!q[U];U-=1)q.pop();const Y=R(q.map(U=>U||" ").join(""));return q=Js(Y).map((U,ee)=>U===" "&&!q[ee]?q[ee]:U),q}),k=(V,L)=>{var q;const Y=H(V,L),U=Math.min(V+L.length,r-1);U!==V&&Y[V]!==void 0&&((q=N.current[U])===null||q===void 0||q.focus()),j(Y)},z=V=>{var L;(L=N.current[V])===null||L===void 0||L.focus()},B={variant:d,disabled:f,status:M,mask:h,type:b,inputMode:p};return E(c.createElement("div",Object.assign({},w,{ref:T,className:re(x,{[`${x}-sm`]:I==="small",[`${x}-lg`]:I==="large",[`${x}-rtl`]:S==="rtl"},O,$),role:"group"}),c.createElement(Cn.Provider,{value:P},Array.from({length:r}).map((V,L)=>{const q=`otp-${L}`,Y=F[L]||"";return c.createElement(c.Fragment,{key:q},c.createElement(yz,Object.assign({ref:U=>{N.current[L]=U},index:L,size:I,htmlSize:1,className:`${x}-input`,onChange:k,value:Y,onActiveChange:z,autoFocus:L===0&&g},B)),L<r-1&&c.createElement(Sz,{separator:u,index:L,prefixCls:x}))}))))});var wz={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"},Ez=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:wz}))},QC=c.forwardRef(Ez);process.env.NODE_ENV!=="production"&&(QC.displayName="EyeInvisibleOutlined");var $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 Oz=e=>e?c.createElement(XC,null):c.createElement(QC,null),Iz={click:"onClick",hover:"onMouseOver"},JC=c.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=Oz}=e,i=c.useContext(Tn),l=n??i,s=typeof o=="object"&&o.visible!==void 0,[u,d]=D.useState(()=>s?o.visible:!1),f=D.useRef(null);c.useEffect(()=>{s&&d(o.visible)},[s,o]);const v=hC(f),g=()=>{var I;if(l)return;u&&v();const _=!u;d(_),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,_))},h=I=>{const _=Iz[r]||"",M=a(u),P={[_]:g,className:`${I}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return c.cloneElement(c.isValidElement(M)?M:c.createElement("span",null,M),P)},{className:b,prefixCls:m,inputPrefixCls:p,size:y}=e,C=$z(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=c.useContext(bt),x=S("input",p),w=S("input-password",m),E=o&&h(w),$=re(w,b,{[`${w}-${y}`]:!!y}),O=Object.assign(Object.assign({},gn(C,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:$,prefixCls:x,suffix:E});return y&&(O.size=y),c.createElement(Mi,Object.assign({ref:En(t,f)},O))});process.env.NODE_ENV!=="production"&&(JC.displayName="Input.Password");var Nz=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 ZC=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:v,onCompositionStart:g,onCompositionEnd:h,variant:b,onPressEnter:m}=e,p=Nz(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:C}=c.useContext(bt),S=c.useRef(!1),x=y("input-search",n),w=y("input",r),{compactSize:E}=Jr(x,C),$=_n(B=>{var V;return(V=a??E)!==null&&V!==void 0?V:B}),O=c.useRef(null),I=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),v==null||v(B)},_=B=>{var V;document.activeElement===((V=O.current)===null||V===void 0?void 0:V.input)&&B.preventDefault()},M=B=>{var V,L;f&&f((L=(V=O.current)===null||V===void 0?void 0:V.input)===null||L===void 0?void 0:L.value,B,{source:"input"})},P=B=>{S.current||u||(m==null||m(B),M(B))},T=typeof l=="boolean"?c.createElement(kd,null):null,N=`${x}-button`;let R;const F=l||{},A=F.type&&F.type.__ANT_BUTTON===!0;A||F.type==="button"?R=gr(F,Object.assign({onMouseDown:_,onClick:B=>{var V,L;(L=(V=F==null?void 0:F.props)===null||V===void 0?void 0:V.onClick)===null||L===void 0||L.call(V,B),M(B)},key:"enterButton"},A?{className:N,size:$}:{})):R=c.createElement(pn,{className:N,color:l?"primary":"default",size:$,disabled:d,key:"enterButton",onMouseDown:_,onClick:M,loading:u,icon:T,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":l?"solid":void 0},l),s&&(R=[R,gr(s,{key:"addonAfter"})]);const j=re(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${$}`]:!!$,[`${x}-with-button`]:!!l},o),H=B=>{S.current=!0,g==null||g(B)},k=B=>{S.current=!1,h==null||h(B)},z=Object.assign(Object.assign({},p),{className:j,prefixCls:w,type:"search",size:$,variant:b,onPressEnter:P,onCompositionStart:H,onCompositionEnd:k,addonAfter:R,suffix:i,onChange:I,disabled:d});return c.createElement(Mi,Object.assign({ref:En(O,t)},z))});process.env.NODE_ENV!=="production"&&(ZC.displayName="Search");var Pz=`
|
|
287
|
-
min-height:0 !important;
|
|
288
|
-
max-height:none !important;
|
|
289
|
-
height:0 !important;
|
|
290
|
-
visibility:hidden !important;
|
|
291
|
-
overflow:hidden !important;
|
|
292
|
-
position:absolute !important;
|
|
293
|
-
z-index:-1000 !important;
|
|
294
|
-
top:0 !important;
|
|
295
|
-
right:0 !important;
|
|
296
|
-
pointer-events: none !important;
|
|
297
|
-
`,_z=["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"],Yf={},tr;function Mz(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&&Yf[n])return Yf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=_z.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Yf[n]=s),s}function Tz(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;tr||(tr=document.createElement("textarea"),tr.setAttribute("tab-index","-1"),tr.setAttribute("aria-hidden","true"),tr.setAttribute("name","hiddenTextarea"),document.body.appendChild(tr)),e.getAttribute("wrap")?tr.setAttribute("wrap",e.getAttribute("wrap")):tr.removeAttribute("wrap");var o=Mz(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;tr.setAttribute("style","".concat(s,";").concat(Pz)),tr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=tr.scrollHeight;if(l==="border-box"?v+=i:l==="content-box"&&(v-=a),n!==null||r!==null){tr.value=" ";var g=tr.scrollHeight-a;n!==null&&(u=g*n,l==="border-box"&&(u=u+a+i),v=Math.max(u,v)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var Dz=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xf=0,Qf=1,Jf=2,Rz=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,v=n.onInternalAutoSize,g=dt(n,Dz),h=qt(o,{value:a,postState:function(L){return L??""}}),b=K(h,2),m=b[0],p=b[1],y=function(L){p(L.target.value),f==null||f(L)},C=c.useRef();c.useImperativeHandle(t,function(){return{textArea:C.current}});var S=c.useMemo(function(){return i&&tt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),x=K(S,2),w=x[0],E=x[1],$=!!i,O=function(){try{if(document.activeElement===C.current){var L=C.current,q=L.selectionStart,Y=L.selectionEnd,U=L.scrollTop;C.current.setSelectionRange(q,Y),C.current.scrollTop=U}}catch{}},I=c.useState(Jf),_=K(I,2),M=_[0],P=_[1],T=c.useState(),N=K(T,2),R=N[0],F=N[1],A=function(){P(Xf),process.env.NODE_ENV==="test"&&(v==null||v())};Pt(function(){$&&A()},[a,w,E,$]),Pt(function(){if(M===Xf)P(Qf);else if(M===Qf){var V=Tz(C.current,!1,w,E);P(Jf),F(V)}else O()},[M]);var j=c.useRef(),H=function(){yt.cancel(j.current)},k=function(L){M===Jf&&(l==null||l(L),i&&(H(),j.current=yt(function(){A()})))};c.useEffect(function(){return H},[]);var z=$?R:null,B=G(G({},u),z);return(M===Xf||M===Qf)&&(B.overflowY="hidden",B.overflowX="hidden"),c.createElement(Wn,{onResize:k,disabled:!(i||l)},c.createElement("textarea",Ce({},g,{ref:C,style:B,className:re(r,s,W({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:y})))}),Fz=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Az=D.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,m=e.count,p=e.className,y=e.style,C=e.disabled,S=e.hidden,x=e.classNames,w=e.styles,E=e.onResize,$=e.onClear,O=e.onPressEnter,I=e.readOnly,_=e.autoSize,M=e.onKeyDown,P=dt(e,Fz),T=qt(r,{value:o,defaultValue:r}),N=K(T,2),R=N[0],F=N[1],A=R==null?"":String(R),j=D.useState(!1),H=K(j,2),k=H[0],z=H[1],B=D.useRef(!1),V=D.useState(null),L=K(V,2),q=L[0],Y=L[1],U=D.useRef(null),ee=D.useRef(null),Z=function(){var me;return(me=ee.current)===null||me===void 0?void 0:me.textArea},Q=function(){Z().focus()};D.useImperativeHandle(t,function(){var we;return{resizableTextArea:ee.current,focus:Q,blur:function(){Z().blur()},nativeElement:((we=U.current)===null||we===void 0?void 0:we.nativeElement)||Z()}}),D.useEffect(function(){z(function(we){return!C&&we})},[C]);var J=D.useState(null),ae=K(J,2),ne=ae[0],ie=ae[1];D.useEffect(function(){if(ne){var we;(we=Z()).setSelectionRange.apply(we,Ne(ne))}},[ne]);var te=cC(m,b),le=(n=te.max)!==null&&n!==void 0?n:u,se=Number(le)>0,fe=te.strategy(A),ve=!!le&&fe>le,ge=function(me,Ee){var ue=Ee;!B.current&&te.exceedFormatter&&te.max&&te.strategy(Ee)>te.max&&(ue=te.exceedFormatter(Ee,{max:te.max}),Ee!==ue&&ie([Z().selectionStart||0,Z().selectionEnd||0])),F(ue),Ys(me.currentTarget,me,l,ue)},be=function(me){B.current=!0,d==null||d(me)},de=function(me){B.current=!1,ge(me,me.currentTarget.value),f==null||f(me)},pe=function(me){ge(me,me.target.value)},Se=function(me){me.key==="Enter"&&O&&O(me),M==null||M(me)},xe=function(me){z(!0),a==null||a(me)},De=function(me){z(!1),i==null||i(me)},ye=function(me){F(""),Q(),Ys(Z(),me,l)},$e=v,Te;te.show&&(te.showFormatter?Te=te.showFormatter({value:A,count:fe,maxLength:le}):Te="".concat(fe).concat(se?" / ".concat(le):""),$e=D.createElement(D.Fragment,null,$e,D.createElement("span",{className:re("".concat(h,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},Te)));var Pe=function(me){var Ee;E==null||E(me),(Ee=Z())!==null&&Ee!==void 0&&Ee.style.height&&Y(!0)},Oe=!_&&!b&&!s;return D.createElement(Ff,{ref:U,value:A,allowClear:s,handleReset:ye,suffix:$e,prefixCls:h,classNames:G(G({},x),{},{affixWrapper:re(x==null?void 0:x.affixWrapper,W(W({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:C,focused:k,className:re(p,ve&&"".concat(h,"-out-of-range")),style:G(G({},y),q&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Te=="string"?Te:void 0}},hidden:S,readOnly:I,onClear:$},D.createElement(Rz,Ce({},P,{autoSize:_,maxLength:u,onKeyDown:Se,onChange:pe,onFocus:xe,onBlur:De,onCompositionStart:be,onCompositionEnd:de,className:re(x==null?void 0:x.textarea),style:G(G({},w==null?void 0:w.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:h,onResize:Pe,ref:ee,readOnly:I})))});const jz=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
298
|
-
&-allow-clear > ${t},
|
|
299
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
300
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},zz=Kt(["Input","TextArea"],e=>{const t=At(e,Ro(e));return[jz(t)]},Fo,{resetFont:!1});var Bz=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 eS=D.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:l,allowClear:s,classNames:u,rootClassName:d,className:f,style:v,styles:g,variant:h,showCount:b,onMouseDown:m,onResize:p}=e,y=Bz(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:te}=jt("TextArea");te(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:S,allowClear:x,autoComplete:w,className:E,style:$,classNames:O,styles:I}=Pn("textArea"),_=c.useContext(Tn),M=i??_,{status:P,hasFeedback:T,feedbackIcon:N}=c.useContext(Cn),R=Eo(P,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=F.current)===null||te===void 0?void 0:te.resizableTextArea,focus:le=>{var se,fe;Rf((fe=(se=F.current)===null||se===void 0?void 0:se.resizableTextArea)===null||fe===void 0?void 0:fe.textArea,le)},blur:()=>{var le;return(le=F.current)===null||le===void 0?void 0:le.blur()}}});const A=C("input",r),j=Gn(A),[H,k,z]=jy(A,d),[B]=zz(A,j),{compactSize:V,compactItemClassnames:L}=Jr(A,S),q=_n(te=>{var le;return(le=a??V)!==null&&le!==void 0?le:te}),[Y,U]=$o("textArea",h,o),ee=pC(s??x),[Z,Q]=c.useState(!1),[J,ae]=c.useState(!1),ne=te=>{Q(!0),m==null||m(te);const le=()=>{Q(!1),document.removeEventListener("mouseup",le)};document.addEventListener("mouseup",le)},ie=te=>{var le,se;if(p==null||p(te),Z&&typeof getComputedStyle=="function"){const fe=(se=(le=F.current)===null||le===void 0?void 0:le.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");fe&&getComputedStyle(fe).resize==="both"&&ae(!0)}};return H(B(c.createElement(Az,Object.assign({autoComplete:w},y,{style:Object.assign(Object.assign({},$),v),styles:Object.assign(Object.assign({},I),g),disabled:M,allowClear:ee,className:re(z,j,f,d,L,E,J&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:re({[`${A}-sm`]:q==="small",[`${A}-lg`]:q==="large"},k,u==null?void 0:u.textarea,O.textarea,Z&&`${A}-mouse-active`),variant:re({[`${A}-${Y}`]:U},eo(A,R)),affixWrapper:re(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:S==="rtl",[`${A}-affix-wrapper-sm`]:q==="small",[`${A}-affix-wrapper-lg`]:q==="large",[`${A}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:A,suffix:T&&c.createElement("span",{className:`${A}-textarea-suffix`},N),showCount:b,ref:F,onResize:ie,onMouseDown:ne}))))}),rn=Mi;rn.Group=gz,rn.Search=ZC,rn.TextArea=eS,rn.Password=JC,rn.OTP=xz;var Vz={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"},Lz=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:Vz}))},Zf=c.forwardRef(Lz);process.env.NODE_ENV!=="production"&&(Zf.displayName="DoubleLeftOutlined");var Hz={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"},kz=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:Hz}))},ev=c.forwardRef(kz);process.env.NODE_ENV!=="production"&&(ev.displayName="DoubleRightOutlined");var Wz={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:"页码"},qz=[10,20,50,100],tS=function(t){var n=t.pageSizeOptions,r=n===void 0?qz:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,v=t.showSizeChanger,g=t.sizeChangerRender,h=D.useState(""),b=K(h,2),m=b[0],p=b[1],y=function(){return!m||Number.isNaN(m)?void 0:Number(m)},C=typeof f=="function"?f:function(M){return"".concat(M," ").concat(o.items_per_page)},S=function(P){p(P.target.value)},x=function(P){l||m===""||(p(""),!(P.relatedTarget&&(P.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||P.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(y())))},w=function(P){m!==""&&(P.keyCode===Fe.ENTER||P.type==="click")&&(p(""),s==null||s(y()))},E=function(){return r.some(function(P){return P.toString()===i.toString()})?r:r.concat([i]).sort(function(P,T){var N=Number.isNaN(Number(P))?0:Number(P),R=Number.isNaN(Number(T))?0:Number(T);return N-R})},$="".concat(u,"-options");if(!v&&!s)return null;var O=null,I=null,_=null;return v&&g&&(O=g({disabled:d,size:i,onSizeChange:function(P){a==null||a(Number(P))},"aria-label":o.page_size,className:"".concat($,"-size-changer"),options:E().map(function(M){return{label:C(M),value:M}})})),s&&(l&&(_=typeof l=="boolean"?D.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:d,className:"".concat($,"-quick-jumper-button")},o.jump_to_confirm):D.createElement("span",{onClick:w,onKeyUp:w},l)),I=D.createElement("div",{className:"".concat($,"-quick-jumper")},o.jump_to,D.createElement("input",{disabled:d,type:"text",value:m,onChange:S,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,_)),D.createElement("li",{className:$},O,I)};process.env.NODE_ENV!=="production"&&(tS.displayName="Options");var _a=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,i=t.showTitle,l=t.onClick,s=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=re(d,"".concat(d,"-").concat(r),W(W({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),a),v=function(){l(r)},g=function(m){s(m,l,r)},h=u(r,"page",D.createElement("a",{rel:"nofollow"},r));return h?D.createElement("li",{title:i?String(r):null,className:f,onClick:v,onKeyDown:g,tabIndex:0},h):null};process.env.NODE_ENV!=="production"&&(_a.displayName="Pager");var Uz=function(t,n,r){return r};function tv(){}function nS(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Lo(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var rS=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,i=t.className,l=t.current,s=t.defaultCurrent,u=s===void 0?1:s,d=t.total,f=d===void 0?0:d,v=t.pageSize,g=t.defaultPageSize,h=g===void 0?10:g,b=t.onChange,m=b===void 0?tv:b,p=t.hideOnSinglePage,y=t.align,C=t.showPrevNextJumpers,S=C===void 0?!0:C,x=t.showQuickJumper,w=t.showLessItems,E=t.showTitle,$=E===void 0?!0:E,O=t.onShowSizeChange,I=O===void 0?tv:O,_=t.locale,M=_===void 0?Wz:_,P=t.style,T=t.totalBoundaryShowSizeChanger,N=T===void 0?50:T,R=t.disabled,F=t.simple,A=t.showTotal,j=t.showSizeChanger,H=j===void 0?f>N:j,k=t.sizeChangerRender,z=t.pageSizeOptions,B=t.itemRender,V=B===void 0?Uz:B,L=t.jumpPrevIcon,q=t.jumpNextIcon,Y=t.prevIcon,U=t.nextIcon,ee=D.useRef(null),Z=qt(10,{value:v,defaultValue:h}),Q=K(Z,2),J=Q[0],ae=Q[1],ne=qt(1,{value:l,defaultValue:u,postState:function(it){return Math.max(1,Math.min(it,Lo(void 0,J,f)))}}),ie=K(ne,2),te=ie[0],le=ie[1],se=D.useState(te),fe=K(se,2),ve=fe[0],ge=fe[1];D.useEffect(function(){ge(te)},[te]);var be=m!==tv,de="current"in t;process.env.NODE_ENV!=="production"&&ut(de?be:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var pe=Math.max(1,te-(w?3:5)),Se=Math.min(Lo(void 0,J,f),te+(w?3:5));function xe(Je,it){var Nt=Je||D.createElement("button",{type:"button","aria-label":it,className:"".concat(r,"-item-link")});return typeof Je=="function"&&(Nt=D.createElement(Je,G({},t))),Nt}function De(Je){var it=Je.target.value,Nt=Lo(void 0,J,f),Gt;return it===""?Gt=it:Number.isNaN(Number(it))?Gt=ve:it>=Nt?Gt=Nt:Gt=Number(it),Gt}function ye(Je){return nS(Je)&&Je!==te&&nS(f)&&f>0}var $e=f>J?x:!1;function Te(Je){(Je.keyCode===Fe.UP||Je.keyCode===Fe.DOWN)&&Je.preventDefault()}function Pe(Je){var it=De(Je);switch(it!==ve&&ge(it),Je.keyCode){case Fe.ENTER:me(it);break;case Fe.UP:me(it-1);break;case Fe.DOWN:me(it+1);break}}function Oe(Je){me(De(Je))}function we(Je){var it=Lo(Je,J,f),Nt=te>it&&it!==0?it:te;ae(Je),ge(Nt),I==null||I(te,Je),le(Nt),m==null||m(Nt,Je)}function me(Je){if(ye(Je)&&!R){var it=Lo(void 0,J,f),Nt=Je;return Je>it?Nt=it:Je<1&&(Nt=1),Nt!==ve&&ge(Nt),le(Nt),m==null||m(Nt,J),Nt}return te}var Ee=te>1,ue=te<Lo(void 0,J,f);function ce(){Ee&&me(te-1)}function Ie(){ue&&me(te+1)}function rt(){me(pe)}function lt(){me(Se)}function mt(Je,it){if(Je.key==="Enter"||Je.charCode===Fe.ENTER||Je.keyCode===Fe.ENTER){for(var Nt=arguments.length,Gt=new Array(Nt>2?Nt-2:0),Xt=2;Xt<Nt;Xt++)Gt[Xt-2]=arguments[Xt];it.apply(void 0,Gt)}}function je(Je){mt(Je,ce)}function Re(Je){mt(Je,Ie)}function Ye(Je){mt(Je,rt)}function ke(Je){mt(Je,lt)}function Xe(Je){var it=V(Je,"prev",xe(Y,"prev page"));return D.isValidElement(it)?D.cloneElement(it,{disabled:!Ee}):it}function We(Je){var it=V(Je,"next",xe(U,"next page"));return D.isValidElement(it)?D.cloneElement(it,{disabled:!ue}):it}function Ae(Je){(Je.type==="click"||Je.keyCode===Fe.ENTER)&&me(ve)}var ze=null,vt=Jn(t,{aria:!0,data:!0}),ft=A&&D.createElement("li",{className:"".concat(r,"-total-text")},A(f,[f===0?0:(te-1)*J+1,te*J>f?f:te*J])),Le=null,Me=Lo(void 0,J,f);if(p&&f<=J)return null;var Be=[],qe={rootPrefixCls:r,onClick:me,onKeyPress:mt,showTitle:$,itemRender:V,page:-1},Ke=te-1>0?te-1:0,at=te+1<Me?te+1:Me,wt=x&&x.goButton,Et=tt(F)==="object"?F.readOnly:!F,zt=wt,$t=null;F&&(wt&&(typeof wt=="boolean"?zt=D.createElement("button",{type:"button",onClick:Ae,onKeyUp:Ae},M.jump_to_confirm):zt=D.createElement("span",{onClick:Ae,onKeyUp:Ae},wt),zt=D.createElement("li",{title:$?"".concat(M.jump_to).concat(te,"/").concat(Me):null,className:"".concat(r,"-simple-pager")},zt)),$t=D.createElement("li",{title:$?"".concat(te,"/").concat(Me):null,className:"".concat(r,"-simple-pager")},Et?ve:D.createElement("input",{type:"text","aria-label":M.jump_to,value:ve,disabled:R,onKeyDown:Te,onKeyUp:Pe,onChange:Pe,onBlur:Oe,size:3}),D.createElement("span",{className:"".concat(r,"-slash")},"/"),Me));var ht=w?1:2;if(Me<=3+ht*2){Me||Be.push(D.createElement(_a,Ce({},qe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var _t=1;_t<=Me;_t+=1)Be.push(D.createElement(_a,Ce({},qe,{key:_t,page:_t,active:te===_t})))}else{var Dt=w?M.prev_3:M.prev_5,Zt=w?M.next_3:M.next_5,Vt=V(pe,"jump-prev",xe(L,"prev page")),Rt=V(Se,"jump-next",xe(q,"next page"));S&&(ze=Vt?D.createElement("li",{title:$?Dt:null,key:"prev",onClick:rt,tabIndex:0,onKeyDown:Ye,className:re("".concat(r,"-jump-prev"),W({},"".concat(r,"-jump-prev-custom-icon"),!!L))},Vt):null,Le=Rt?D.createElement("li",{title:$?Zt:null,key:"next",onClick:lt,tabIndex:0,onKeyDown:ke,className:re("".concat(r,"-jump-next"),W({},"".concat(r,"-jump-next-custom-icon"),!!q))},Rt):null);var Ve=Math.max(1,te-ht),Qe=Math.min(te+ht,Me);te-1<=ht&&(Qe=1+ht*2),Me-te<=ht&&(Ve=Me-ht*2);for(var _e=Ve;_e<=Qe;_e+=1)Be.push(D.createElement(_a,Ce({},qe,{key:_e,page:_e,active:te===_e})));if(te-1>=ht*2&&te!==3&&(Be[0]=D.cloneElement(Be[0],{className:re("".concat(r,"-item-after-jump-prev"),Be[0].props.className)}),Be.unshift(ze)),Me-te>=ht*2&&te!==Me-2){var he=Be[Be.length-1];Be[Be.length-1]=D.cloneElement(he,{className:re("".concat(r,"-item-before-jump-next"),he.props.className)}),Be.push(Le)}Ve!==1&&Be.unshift(D.createElement(_a,Ce({},qe,{key:1,page:1}))),Qe!==Me&&Be.push(D.createElement(_a,Ce({},qe,{key:Me,page:Me})))}var He=Xe(Ke);if(He){var ot=!Ee||!Me;He=D.createElement("li",{title:$?M.prev_page:null,onClick:ce,tabIndex:ot?null:0,onKeyDown:je,className:re("".concat(r,"-prev"),W({},"".concat(r,"-disabled"),ot)),"aria-disabled":ot},He)}var ct=We(at);if(ct){var It,Ht;F?(It=!ue,Ht=Ee?0:null):(It=!ue||!Me,Ht=It?null:0),ct=D.createElement("li",{title:$?M.next_page:null,onClick:Ie,tabIndex:Ht,onKeyDown:Re,className:re("".concat(r,"-next"),W({},"".concat(r,"-disabled"),It)),"aria-disabled":It},ct)}var Ft=re(r,i,W(W(W(W(W({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),F),"".concat(r,"-disabled"),R));return D.createElement("ul",Ce({className:Ft,style:P,ref:ee},vt),ft,He,F?$t:Be,ct,D.createElement(tS,{locale:M,rootPrefixCls:r,disabled:R,selectPrefixCls:a,changeSize:we,pageSize:J,pageSizeOptions:z,quickGo:$e?me:null,goButton:zt,showSizeChanger:H,sizeChangerRender:k}))};process.env.NODE_ENV!=="production"&&(rS.displayName="Pagination");const Gz=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Kz=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:X(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:X(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:X(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"}}},[`
|
|
301
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
302
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
303
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:X(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:X(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:X(e.itemSizeSM),input:Object.assign(Object.assign({},Sf(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Yz=e=>{const{componentCls:t}=e;return{[`
|
|
304
|
-
&${t}-simple ${t}-prev,
|
|
305
|
-
&${t}-simple ${t}-next
|
|
306
|
-
`]:{height:e.itemSizeSM,lineHeight:X(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:X(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${X(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${X(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:`${X(e.inputOutlineOffset)} 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Xz=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
307
|
-
${t}-prev,
|
|
308
|
-
${t}-jump-prev,
|
|
309
|
-
${t}-jump-next
|
|
310
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
311
|
-
${t}-prev,
|
|
312
|
-
${t}-next,
|
|
313
|
-
${t}-jump-prev,
|
|
314
|
-
${t}-jump-next
|
|
315
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:X(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:X(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},_i(e)),gf(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ks(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Qz=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:X(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${X(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}}}}},Jz=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:X(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Qz(e)),Xz(e)),Yz(e)),Kz(e)),Gz(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"}}},Zz=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ia(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ar(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ar(e))}}}},oS=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},Fo(e)),aS=e=>At(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ro(e)),e4=Kt("Pagination",e=>{const t=aS(e);return[Jz(t),Zz(t)]},oS),t4=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:`${X(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}}}}},n4=Ja(["Pagination","bordered"],e=>{const t=aS(e);return[t4(t)]},oS);function iS(e){return D.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var r4=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 lS=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:i,size:l,locale:s,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:v}=e,g=r4(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=Cs(u),[,b]=Qn(),{getPrefixCls:m,direction:p,showSizeChanger:y,className:C,style:S}=Pn("pagination"),x=m("pagination",n),[w,E,$]=e4(x),O=_n(l),I=O==="small"||!!(h&&!O&&u),[_]=Fr("Pagination",Lg),M=Object.assign(Object.assign({},_),s),[P,T]=iS(d),[N,R]=iS(y),F=P??N,A=T??R,j=f||Ir,H=c.useMemo(()=>v?v.map(q=>Number(q)):void 0,[v]),k=q=>{var Y;const{disabled:U,size:ee,onSizeChange:Z,"aria-label":Q,className:J,options:ae}=q,{className:ne,onChange:ie}=A||{},te=(Y=ae.find(le=>String(le.value)===String(ee)))===null||Y===void 0?void 0:Y.value;return c.createElement(j,Object.assign({disabled:U,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":Q,options:ae},A,{value:te,onChange:(le,se)=>{Z==null||Z(le),ie==null||ie(le,se)},size:I?"small":"middle",className:re(J,ne)}))};if(process.env.NODE_ENV!=="production"){const q=jt("Pagination");process.env.NODE_ENV!=="production"&&q(!f,"usage","`selectComponentClass` is not official api which will be removed.")}const z=c.useMemo(()=>{const q=c.createElement("span",{className:`${x}-item-ellipsis`},"•••"),Y=c.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},p==="rtl"?c.createElement(oi,null):c.createElement(pi,null)),U=c.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},p==="rtl"?c.createElement(pi,null):c.createElement(oi,null)),ee=c.createElement("a",{className:`${x}-item-link`},c.createElement("div",{className:`${x}-item-container`},p==="rtl"?c.createElement(ev,{className:`${x}-item-link-icon`}):c.createElement(Zf,{className:`${x}-item-link-icon`}),q)),Z=c.createElement("a",{className:`${x}-item-link`},c.createElement("div",{className:`${x}-item-container`},p==="rtl"?c.createElement(Zf,{className:`${x}-item-link-icon`}):c.createElement(ev,{className:`${x}-item-link-icon`}),q));return{prevIcon:Y,nextIcon:U,jumpPrevIcon:ee,jumpNextIcon:Z}},[p,x]),B=m("select",r),V=re({[`${x}-${t}`]:!!t,[`${x}-mini`]:I,[`${x}-rtl`]:p==="rtl",[`${x}-bordered`]:b.wireframe},C,o,a,E,$),L=Object.assign(Object.assign({},S),i);return w(c.createElement(c.Fragment,null,b.wireframe&&c.createElement(n4,{prefixCls:x}),c.createElement(rS,Object.assign({},z,g,{style:L,prefixCls:x,selectPrefixCls:B,className:V,locale:M,pageSizeOptions:H,showSizeChanger:F,sizeChangerRender:k}))))};process.env.NODE_ENV!=="production"&&(lS.displayName="Pagination");const Zs=100,sS=Zs/5,cS=Zs/2-sS/2,nv=cS*2*Math.PI,uS=50,dS=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:cS,cx:uS,cy:uS,strokeWidth:sS,style:n})},o4=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,i]=c.useState(!1);Pt(()=>{e!==0&&i(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!a)return null;const s={strokeDashoffset:`${nv/4}`,strokeDasharray:`${nv*l/100} ${nv*(100-l)/100}`};return c.createElement("span",{className:re(r,`${n}-progress`,l<=0&&o)},c.createElement("svg",{viewBox:`0 0 ${Zs} ${Zs}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},c.createElement(dS,{dotClassName:n,hasCircleCls:!0}),c.createElement(dS,{dotClassName:n,style:s})))};function a4(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:re(o,n>0&&a)},c.createElement("span",{className:re(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>c.createElement("i",{className:`${t}-dot-item`,key:i})))),c.createElement(o4,{prefixCls:t,percent:n}))}function i4(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&c.isValidElement(n)?gr(n,{className:re(n.props.className,o),percent:r}):c.createElement(a4,{prefixCls:t,percent:r})}const l4=new Lt("antSpinMove",{to:{opacity:1}}),s4=new Lt("antRotate",{to:{transform:"rotate(405deg)"}}),c4=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:l4,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:s4,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},u4=Kt("Spin",e=>{const t=At(e,{spinDotDefault:e.colorTextDescription});return[c4(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),d4=200,fS=[[30,.05],[70,.03],[96,.01]];function f4(e,t){const[n,r]=c.useState(0),o=c.useRef(null),a=t==="auto";return c.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const l=100-i;for(let s=0;s<fS.length;s+=1){const[u,d]=fS[s];if(i<=u)return i+l*d}return i})},d4)),()=>{clearInterval(o.current)}),[a,e]),a?n:t}var v4=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 vS;function m4(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const rv=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:l="default",tip:s,wrapperClassName:u,style:d,children:f,fullscreen:v=!1,indicator:g,percent:h}=e,b=v4(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:m,direction:p,className:y,style:C,indicator:S}=Pn("spin"),x=m("spin",n),[w,E,$]=u4(x),[O,I]=c.useState(()=>r&&!m4(r,o)),_=f4(O,h);c.useEffect(()=>{if(r){const A=JF(o,()=>{I(!0)});return A(),()=>{var j;(j=A==null?void 0:A.cancel)===null||j===void 0||j.call(A)}}I(!1)},[o,r]);const M=c.useMemo(()=>typeof f<"u"&&!v,[f,v]);if(process.env.NODE_ENV!=="production"){const A=jt("Spin");process.env.NODE_ENV!=="production"&&A(!s||M||v,"usage","`tip` only work in nest or fullscreen pattern.")}const P=re(x,y,{[`${x}-sm`]:l==="small",[`${x}-lg`]:l==="large",[`${x}-spinning`]:O,[`${x}-show-text`]:!!s,[`${x}-rtl`]:p==="rtl"},a,!v&&i,E,$),T=re(`${x}-container`,{[`${x}-blur`]:O}),N=(t=g??S)!==null&&t!==void 0?t:vS,R=Object.assign(Object.assign({},C),d),F=c.createElement("div",Object.assign({},b,{style:R,className:P,"aria-live":"polite","aria-busy":O}),c.createElement(i4,{prefixCls:x,indicator:N,percent:_}),s&&(M||v)?c.createElement("div",{className:`${x}-text`},s):null);return w(M?c.createElement("div",Object.assign({},b,{className:re(`${x}-nested-loading`,u,E,$)}),O&&c.createElement("div",{key:"loading"},F),c.createElement("div",{className:T,key:"container"},f)):v?c.createElement("div",{className:re(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:O},i,E,$)},F):F)};rv.setDefaultIndicator=e=>{vS=e},process.env.NODE_ENV!=="production"&&(rv.displayName="Spin");const ov=D.createContext({});ov.Consumer;var mS=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 g4=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=mS(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=D.useContext(bt),s=l("list",t),u=re(`${s}-item-meta`,n),d=D.createElement("div",{className:`${s}-item-meta-content`},o&&D.createElement("h4",{className:`${s}-item-meta-title`},o),a&&D.createElement("div",{className:`${s}-item-meta-description`},a));return D.createElement("div",Object.assign({},i,{className:u}),r&&D.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||a)&&d)},gS=D.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:a,styles:i,className:l,classNames:s,colStyle:u}=e,d=mS(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:v}=D.useContext(ov),{getPrefixCls:g,list:h}=D.useContext(bt),b=E=>{var $,O;return re((O=($=h==null?void 0:h.item)===null||$===void 0?void 0:$.classNames)===null||O===void 0?void 0:O[E],s==null?void 0:s[E])},m=E=>{var $,O;return Object.assign(Object.assign({},(O=($=h==null?void 0:h.item)===null||$===void 0?void 0:$.styles)===null||O===void 0?void 0:O[E]),i==null?void 0:i[E])},p=()=>{let E=!1;return D.Children.forEach(r,$=>{typeof $=="string"&&(E=!0)}),E&&D.Children.count(r)>1},y=()=>v==="vertical"?!!a:!p(),C=g("list",n),S=o&&o.length>0&&D.createElement("ul",{className:re(`${C}-item-action`,b("actions")),key:"actions",style:m("actions")},o.map((E,$)=>D.createElement("li",{key:`${C}-item-action-${$}`},E,$!==o.length-1&&D.createElement("em",{className:`${C}-item-action-split`})))),x=f?"div":"li",w=D.createElement(x,Object.assign({},d,f?{}:{ref:t},{className:re(`${C}-item`,{[`${C}-item-no-flex`]:!y()},l)}),v==="vertical"&&a?[D.createElement("div",{className:`${C}-item-main`,key:"content"},r,S),D.createElement("div",{className:re(`${C}-item-extra`,b("extra")),key:"extra",style:m("extra")},a)]:[r,S,gr(a,{key:"extra"})]);return f?D.createElement(ln,{ref:t,flex:1,style:u},w):w});gS.Meta=g4;const p4=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:l,borderRadiusLG:s}=e;return{[t]:{border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${X(o)} ${X(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},h4=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${X(i)}`}}}}}},b4=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,itemPadding:s,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:v,margin:g,colorText:h,colorTextDescription:b,motionDurationSlow:m,lineWidth:p,headerBg:y,footerBg:C,emptyTextPadding:S,metaMarginBottom:x,avatarMarginRight:w,titleMarginBottom:E,descriptionFontSize:$}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${X(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${m}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${X(v)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:p,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${X(l)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${X(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},y4=Kt("List",e=>{const t=At(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[b4(t),p4(t),h4(t)]},e=>({contentWidth:220,itemPadding:`${X(e.paddingContentVertical)} 0`,itemPaddingSM:`${X(e.paddingContentVerticalSM)} ${X(e.paddingContentHorizontal)}`,itemPaddingLG:`${X(e.paddingContentVerticalLG)} ${X(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var C4=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 S4(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:a=!0,className:i,rootClassName:l,style:s,children:u,itemLayout:d,loadMore:f,grid:v,dataSource:g=[],size:h,header:b,footer:m,loading:p=!1,rowKey:y,renderItem:C,locale:S}=e,x=C4(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),w=n&&typeof n=="object"?n:{},[E,$]=c.useState(w.defaultCurrent||1),[O,I]=c.useState(w.defaultPageSize||10),{getPrefixCls:_,direction:M,className:P,style:T}=Pn("list"),{renderEmpty:N}=c.useContext(bt),R={current:1,total:0,position:"bottom"},F=be=>(de,pe)=>{var Se;$(de),I(pe),n&&((Se=n==null?void 0:n[be])===null||Se===void 0||Se.call(n,de,pe))},A=F("onChange"),j=F("onShowSizeChange"),H=(be,de)=>{if(!C)return null;let pe;return typeof y=="function"?pe=y(be):y?pe=be[y]:pe=be.key,pe||(pe=`list-item-${de}`),c.createElement(c.Fragment,{key:pe},C(be,de))},k=!!(f||n||m),z=_("list",r),[B,V,L]=y4(z);let q=p;typeof q=="boolean"&&(q={spinning:q});const Y=!!(q!=null&&q.spinning),U=_n(h);let ee="";switch(U){case"large":ee="lg";break;case"small":ee="sm";break}const Z=re(z,{[`${z}-vertical`]:d==="vertical",[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:o,[`${z}-loading`]:Y,[`${z}-grid`]:!!v,[`${z}-something-after-last-item`]:k,[`${z}-rtl`]:M==="rtl"},P,i,l,V,L),Q=Sd(R,{total:g.length,current:E,pageSize:O},n||{}),J=Math.ceil(Q.total/Q.pageSize);Q.current=Math.min(Q.current,J);const ae=n&&c.createElement("div",{className:re(`${z}-pagination`)},c.createElement(lS,Object.assign({align:"end"},Q,{onChange:A,onShowSizeChange:j})));let ne=Ne(g);n&&g.length>(Q.current-1)*Q.pageSize&&(ne=Ne(g).splice((Q.current-1)*Q.pageSize,Q.pageSize));const ie=Object.keys(v||{}).some(be=>["xs","sm","md","lg","xl","xxl"].includes(be)),te=Cs(ie),le=c.useMemo(()=>{for(let be=0;be<Io.length;be+=1){const de=Io[be];if(te[de])return de}},[te]),se=c.useMemo(()=>{if(!v)return;const be=le&&v[le]?v[le]:v.column;if(be)return{width:`${100/be}%`,maxWidth:`${100/be}%`}},[JSON.stringify(v),le]);let fe=Y&&c.createElement("div",{style:{minHeight:53}});if(ne.length>0){const be=ne.map(H);fe=v?c.createElement(yr,{gutter:v.gutter},c.Children.map(be,de=>c.createElement("div",{key:de==null?void 0:de.key,style:se},de))):c.createElement("ul",{className:`${z}-items`},be)}else!u&&!Y&&(fe=c.createElement("div",{className:`${z}-empty-text`},(S==null?void 0:S.emptyText)||(N==null?void 0:N("List"))||c.createElement(Vb,{componentName:"List"})));const ve=Q.position,ge=c.useMemo(()=>({grid:v,itemLayout:d}),[JSON.stringify(v),d]);return B(c.createElement(ov.Provider,{value:ge},c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T),s),className:Z},x),(ve==="top"||ve==="both")&&ae,b&&c.createElement("div",{className:`${z}-header`},b),c.createElement(rv,Object.assign({},q),fe,u),m&&c.createElement("div",{className:`${z}-footer`},m),f||(ve==="bottom"||ve==="both")&&ae)))}const pS=c.forwardRef(S4);process.env.NODE_ENV!=="production"&&(pS.displayName="List");const av=pS;av.Item=gS;const x4=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var w4={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},E4=function(){var t=D.useRef([]),n=D.useRef(null);return D.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(a){if(a){o=!0;var i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current};process.env.NODE_ENV;var hS=0,$4=process.env.NODE_ENV!=="test"&&Nn();function O4(){var e;return $4?(e=hS,hS+=1):e="TEST_OR_SSR",e}const I4=function(e){var t=c.useState(),n=K(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_progress_".concat(O4()))},[]),e||r};var bS=function(t){var n=t.bg,r=t.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function yS(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 CS=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,a=e.radius,i=e.style,l=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,v=r&&tt(r)==="object",g=v?"#FFF":void 0,h=d/2,b=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:g,strokeLinecap:s,strokeWidth:u,opacity:l===0?0:1,style:i,ref:t});if(!v)return b;var m="".concat(o,"-conic"),p=f?"".concat(180+f/2,"deg"):"0deg",y=yS(r,(360-f)/360),C=yS(r,1),S="conic-gradient(from ".concat(p,", ").concat(y.join(", "),")"),x="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(C.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:m},b),c.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(m,")")},c.createElement(bS,{bg:x},c.createElement(bS,{bg:S}))))});process.env.NODE_ENV!=="production"&&(CS.displayName="PtgCircle");var Di=100,iv=function(t,n,r,o,a,i,l,s,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,v=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-o)/100*n;u==="round"&&o!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=Di/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(a+v+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"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}},N4=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function SS(e){var t=e??[];return Array.isArray(t)?t:[t]}var xS=function(t){var n=G(G({},w4),t),r=n.id,o=n.prefixCls,a=n.steps,i=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,v=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,m=n.percent,p=dt(n,N4),y=Di/2,C=I4(r),S="".concat(C,"-gradient"),x=y-i/2,w=Math.PI*2*x,E=u>0?90+u/2:-90,$=w*((360-u)/360),O=tt(a)==="object"?a:{count:a,gap:2},I=O.count,_=O.gap,M=SS(m),P=SS(b),T=P.find(function(k){return k&&tt(k)==="object"}),N=T&&tt(T)==="object",R=N?"butt":v,F=iv(w,$,0,100,E,u,d,f,R,i),A=E4(),j=function(){var z=0;return M.map(function(B,V){var L=P[V]||P[P.length-1],q=iv(w,$,z,B,E,u,d,L,R,i);return z+=B,c.createElement(CS,{key:V,color:L,ptg:B,radius:x,prefixCls:o,gradientId:S,style:q,strokeLinecap:R,strokeWidth:i,gapDegree:u,ref:function(U){A[V]=U},size:Di})}).reverse()},H=function(){var z=Math.round(I*(M[0]/100)),B=100/I,V=0;return new Array(I).fill(null).map(function(L,q){var Y=q<=z-1?P[0]:f,U=Y&&tt(Y)==="object"?"url(#".concat(S,")"):void 0,ee=iv(w,$,V,B,E,u,d,Y,"butt",i,_);return V+=($-ee.strokeDashoffset+_)*100/$,c.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:x,cx:y,cy:y,stroke:U,strokeWidth:i,opacity:1,style:ee,ref:function(Q){A[q]=Q}})})};return c.createElement("svg",Ce({className:re("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Di," ").concat(Di),style:g,id:r,role:"presentation"},p),!I&&c.createElement("circle",{className:"".concat(o,"-circle-trail"),r:x,cx:y,cy:y,stroke:f,strokeLinecap:R,strokeWidth:l||i,style:F}),I?H():j())};process.env.NODE_ENV!=="production"&&(xS.displayName="Circle");function ao(e){return!e||e<0?0:e>100?100:e}function ec({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const P4=({percent:e,success:t,successPercent:n})=>{const r=ao(ec({success:t,successPercent:n}));return[r,ao(ao(e)-r)]},_4=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||go.green,t||null]},tc=(e,t,n)=>{var r,o,a,i;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]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=Array.isArray(e)?e:[e.width,e.height]}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]:Array.isArray(e)&&(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[l,s]},M4=3,T4=e=>M4/e*100,D4=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:l,children:s,success:u,size:d=i,steps:f}=e,[v,g]=tc(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(T4(v),6));const b={width:v,height:g,fontSize:v*.15+6},m=c.useMemo(()=>{if(a||a===0)return a;if(l==="dashboard")return 75},[a,l]),p=P4(e),y=o||l==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=_4({success:u,strokeColor:e.strokeColor}),x=re(`${t}-inner`,{[`${t}-circle-gradient`]:C}),w=c.createElement(xS,{steps:f,percent:f?p[1]:p,strokeWidth:h,trailWidth:h,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:m,gapPosition:y}),E=v<=20,$=c.createElement("div",{className:x,style:b},w,!E&&s);return E?c.createElement(Nr,{title:s},$):$},nc="--progress-line-stroke-color",wS="--progress-percent",ES=e=>{const t=e?"100%":"-100%";return new Lt(`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}})},R4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ut(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${nc})`]},height:"100%",width:`calc(1 / var(${wS}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${X(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:ES(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ES(!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}}})}},F4=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"}}}},A4=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}}}}}},j4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},z4=Kt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=At(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[R4(n),F4(n),A4(n),j4(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var B4=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 V4=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},L4=(e,t)=>{const{from:n=go.blue,to:r=go.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=B4(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=V4(a),s=`linear-gradient(${o}, ${l})`;return{background:s,[nc]:s}}const i=`linear-gradient(${o}, ${n}, ${r})`;return{background:i,[nc]:i}},H4=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:l="round",children:s,trailColor:u=null,percentPosition:d,success:f}=e,{align:v,type:g}=d,h=i&&typeof i!="string"?L4(i,n):{[nc]:i,background:i},b=l==="square"||l==="butt"?0:void 0,m=o??[-1,a||(o==="small"?6:8)],[p,y]=tc(m,"line",{strokeWidth:a});process.env.NODE_ENV!=="production"&&jt("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const C={backgroundColor:u||void 0,borderRadius:b},S=Object.assign(Object.assign({width:`${ao(r)}%`,height:y,borderRadius:b},h),{[wS]:ao(r)/100}),x=ec(e),w={width:`${ao(x)}%`,height:y,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},E={width:p<0?"100%":p},$=c.createElement("div",{className:`${t}-inner`,style:C},c.createElement("div",{className:re(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&s),x!==void 0&&c.createElement("div",{className:`${t}-success-bg`,style:w})),O=g==="outer"&&v==="start",I=g==="outer"&&v==="end";return g==="outer"&&v==="center"?c.createElement("div",{className:`${t}-layout-bottom`},$,s):c.createElement("div",{className:`${t}-outer`,style:E},O&&s,$,I&&s)},k4=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:l=null,prefixCls:s,children:u}=e,d=r(n*(o/100)),v=t??[t==="small"?2:14,a],[g,h]=tc(v,"step",{steps:n,strokeWidth:a}),b=g/n,m=Array.from({length:n});for(let p=0;p<n;p++){const y=Array.isArray(i)?i[p]:i;m[p]=c.createElement("div",{key:p,className:re(`${s}-steps-item`,{[`${s}-steps-item-active`]:p<=d-1}),style:{backgroundColor:p<=d-1?y:l,width:b,height:h}})}return c.createElement("div",{className:`${s}-steps-outer`},m,u)};var W4=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 q4=["normal","exception","active","success"],lv=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:a,strokeColor:i,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:v,style:g,percentPosition:h={}}=e,b=W4(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:m="end",type:p="outer"}=h,y=Array.isArray(i)?i[0]:i,C=typeof i=="string"||Array.isArray(i)?i:void 0,S=c.useMemo(()=>{if(y){const j=typeof y=="string"?y:Object.values(y)[0];return new kt(j).isLight()}return!1},[i]),x=c.useMemo(()=>{var j,H;const k=ec(e);return parseInt(k!==void 0?(j=k??0)===null||j===void 0?void 0:j.toString():(H=l??0)===null||H===void 0?void 0:H.toString(),10)},[l,e.success,e.successPercent]),w=c.useMemo(()=>!q4.includes(f)&&x>=100?"success":f||"normal",[f,x]),{getPrefixCls:E,direction:$,progress:O}=c.useContext(bt),I=E("progress",n),[_,M,P]=z4(I),T=d==="line",N=T&&!a,R=c.useMemo(()=>{if(!u)return null;const j=ec(e);let H;const k=v||(B=>`${B}%`),z=T&&S&&p==="inner";return p==="inner"||v||w!=="exception"&&w!=="success"?H=k(ao(l),ao(j)):w==="exception"?H=T?c.createElement(ua,null):c.createElement(bo,null):w==="success"&&(H=T?c.createElement(Kl,null):c.createElement(Oo,null)),c.createElement("span",{className:re(`${I}-text`,{[`${I}-text-bright`]:z,[`${I}-text-${m}`]:N,[`${I}-text-${p}`]:N}),title:typeof H=="string"?H:void 0},H)},[u,l,x,w,d,I,v]);if(process.env.NODE_ENV!=="production"){const j=jt("Progress");j.deprecated(!("successPercent"in e),"successPercent","success.percent"),j.deprecated(!("width"in e),"width","size"),(d==="circle"||d==="dashboard")&&(Array.isArray(s)?process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof s=="object"&&process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&j.deprecated(!1,"success.progress","success.percent")}let F;d==="line"?F=a?c.createElement(k4,Object.assign({},e,{strokeColor:C,prefixCls:I,steps:typeof a=="object"?a.count:a}),R):c.createElement(H4,Object.assign({},e,{strokeColor:y,prefixCls:I,direction:$,percentPosition:{align:m,type:p}}),R):(d==="circle"||d==="dashboard")&&(F=c.createElement(D4,Object.assign({},e,{strokeColor:y,prefixCls:I,progressStatus:w}),R));const A=re(I,`${I}-status-${w}`,{[`${I}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${I}-inline-circle`]:d==="circle"&&tc(s,"circle")[0]<=20,[`${I}-line`]:N,[`${I}-line-align-${m}`]:N,[`${I}-line-position-${p}`]:N,[`${I}-steps`]:a,[`${I}-show-info`]:u,[`${I}-${s}`]:typeof s=="string",[`${I}-rtl`]:$==="rtl"},O==null?void 0:O.className,r,o,M,P);return _(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),className:A,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},gn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))});process.env.NODE_ENV!=="production"&&(lv.displayName="Progress");var U4={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"},G4=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:U4}))},$S=c.forwardRef(G4);process.env.NODE_ENV!=="production"&&($S.displayName="CopyOutlined");var K4={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"},Y4=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:K4}))},OS=c.forwardRef(Y4);process.env.NODE_ENV!=="production"&&(OS.displayName="DeleteOutlined");var X4={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"},Q4=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:X4}))},IS=c.forwardRef(Q4);process.env.NODE_ENV!=="production"&&(IS.displayName="EditOutlined");var J4={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"},Z4=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:J4}))},NS=c.forwardRef(Z4);process.env.NODE_ENV!=="production"&&(NS.displayName="EnterOutlined");var eB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},tB=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:eB}))},PS=c.forwardRef(tB);process.env.NODE_ENV!=="production"&&(PS.displayName="MenuOutlined");var nB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},rB=function(t,n){return c.createElement(Yt,Ce({},t,{ref:n,icon:nB}))},_S=c.forwardRef(rB);process.env.NODE_ENV!=="production"&&(_S.displayName="StarFilled");function oB(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,a=e.characterRender,i=e.index,l=e.count,s=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,v=e.onClick,g=function(x){f(x,i)},h=function(x){v(x,i)},b=function(x){x.keyCode===Fe.ENTER&&v(x,i)},m=i+1,p=new Set([r]);s===0&&i===0&&d?p.add("".concat(r,"-focused")):u&&s+.5>=m&&s<m?(p.add("".concat(r,"-half")),p.add("".concat(r,"-active")),d&&p.add("".concat(r,"-focused"))):(m<=s?p.add("".concat(r,"-full")):p.add("".concat(r,"-zero")),m===s&&d&&p.add("".concat(r,"-focused")));var y=typeof o=="function"?o(e):o,C=D.createElement("li",{className:re(Array.from(p)),ref:t},D.createElement("div",{onClick:n?null:h,onKeyDown:n?null:b,onMouseMove:n?null:g,role:"radio","aria-checked":s>i?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},D.createElement("div",{className:"".concat(r,"-first")},y),D.createElement("div",{className:"".concat(r,"-second")},y)));return a&&(C=a(C,e)),C}const aB=D.forwardRef(oB);function iB(){var e=c.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function lB(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function sB(e){var t,n,r=e.ownerDocument,o=r.body,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:t,top:n}}function cB(e){var t=sB(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=lB(r),t.left}var uB=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function dB(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,o=e.className,a=e.defaultValue,i=e.value,l=e.count,s=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,v=f===void 0?!0:f,g=e.keyboard,h=g===void 0?!0:g,b=e.character,m=b===void 0?"★":b,p=e.characterRender,y=e.disabled,C=e.direction,S=C===void 0?"ltr":C,x=e.tabIndex,w=x===void 0?0:x,E=e.autoFocus,$=e.onHoverChange,O=e.onChange,I=e.onFocus,_=e.onBlur,M=e.onKeyDown,P=e.onMouseLeave,T=dt(e,uB),N=iB(),R=K(N,2),F=R[0],A=R[1],j=D.useRef(null),H=function(){if(!y){var ye;(ye=j.current)===null||ye===void 0||ye.focus()}};D.useImperativeHandle(t,function(){return{focus:H,blur:function(){if(!y){var ye;(ye=j.current)===null||ye===void 0||ye.blur()}}}});var k=qt(a||0,{value:i}),z=K(k,2),B=z[0],V=z[1],L=qt(null),q=K(L,2),Y=q[0],U=q[1],ee=function(ye,$e){var Te=S==="rtl",Pe=ye+1;if(d){var Oe=F(ye),we=cB(Oe),me=Oe.clientWidth;(Te&&$e-we>me/2||!Te&&$e-we<me/2)&&(Pe-=.5)}return Pe},Z=function(ye){V(ye),O==null||O(ye)},Q=D.useState(!1),J=K(Q,2),ae=J[0],ne=J[1],ie=function(){ne(!0),I==null||I()},te=function(){ne(!1),_==null||_()},le=D.useState(null),se=K(le,2),fe=se[0],ve=se[1],ge=function(ye,$e){var Te=ee($e,ye.pageX);Te!==Y&&(ve(Te),U(null)),$==null||$(Te)},be=function(ye){y||(ve(null),U(null),$==null||$(void 0)),ye&&(P==null||P(ye))},de=function(ye,$e){var Te=ee($e,ye.pageX),Pe=!1;v&&(Pe=Te===B),be(),Z(Pe?0:Te),U(Pe?Te:null)},pe=function(ye){var $e=ye.keyCode,Te=S==="rtl",Pe=d?.5:1;h&&($e===Fe.RIGHT&&B<s&&!Te?(Z(B+Pe),ye.preventDefault()):$e===Fe.LEFT&&B>0&&!Te||$e===Fe.RIGHT&&B>0&&Te?(Z(B-Pe),ye.preventDefault()):$e===Fe.LEFT&&B<s&&Te&&(Z(B+Pe),ye.preventDefault())),M==null||M(ye)};D.useEffect(function(){E&&!y&&H()},[]);var Se=new Array(s).fill(0).map(function(De,ye){return D.createElement(aB,{ref:A(ye),index:ye,count:s,disabled:y,prefixCls:"".concat(r,"-star"),allowHalf:d,value:fe===null?B:fe,onClick:de,onHover:ge,key:De||ye,character:m,characterRender:p,focused:ae})}),xe=re(r,o,W(W({},"".concat(r,"-disabled"),y),"".concat(r,"-rtl"),S==="rtl"));return D.createElement("ul",Ce({className:xe,onMouseLeave:be,tabIndex:y?-1:w,onFocus:y?null:ie,onBlur:y?null:te,onKeyDown:y?null:pe,ref:j},Jn(T,{aria:!0,data:!0,attr:!0})),Se)}const fB=D.forwardRef(dB),vB=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${X(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},mB=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),gB=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),vB(e)),mB(e))}},pB=Kt("Rate",e=>{const t=At(e,{});return[gB(t)]},e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}));var hB=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 MS=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,tooltips:i,character:l=c.createElement(_S,null),disabled:s}=e,u=hB(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(x,{index:w})=>i?c.createElement(Nr,{title:i[w]},x):x,{getPrefixCls:f,direction:v,rate:g}=c.useContext(bt),h=f("rate",n),[b,m,p]=pB(h),y=Object.assign(Object.assign({},g==null?void 0:g.style),a),C=c.useContext(Tn),S=s??C;return b(c.createElement(fB,Object.assign({ref:t,character:l,characterRender:d,disabled:S},u,{className:re(r,o,m,p,g==null?void 0:g.className),style:y,prefixCls:h,direction:v})))});process.env.NODE_ENV!=="production"&&(MS.displayName="Rate");var bB=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function TS(e){return typeof e=="string"}function DS(e){var t,n=e.className,r=e.prefixCls,o=e.style,a=e.active,i=e.status,l=e.iconPrefix,s=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,v=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,m=e.tailContent,p=e.icons,y=e.stepIndex,C=e.onStepClick,S=e.onClick,x=e.render,w=dt(e,bB),E=!!C&&!d,$={};E&&($.role="button",$.tabIndex=0,$.onClick=function(T){S==null||S(T),C(y)},$.onKeyDown=function(T){var N=T.which;(N===Fe.ENTER||N===Fe.SPACE)&&C(y)});var O=function(){var N,R,F=re("".concat(r,"-icon"),"".concat(l,"icon"),(N={},W(N,"".concat(l,"icon-").concat(s),s&&TS(s)),W(N,"".concat(l,"icon-check"),!s&&i==="finish"&&(p&&!p.finish||!p)),W(N,"".concat(l,"icon-cross"),!s&&i==="error"&&(p&&!p.error||!p)),N)),A=c.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?R=c.createElement("span",{className:"".concat(r,"-icon")},h(A,{index:u-1,status:i,title:v,description:f})):R=c.createElement("span",{className:"".concat(r,"-icon")},A):s&&!TS(s)?R=c.createElement("span",{className:"".concat(r,"-icon")},s):p&&p.finish&&i==="finish"?R=c.createElement("span",{className:"".concat(r,"-icon")},p.finish):p&&p.error&&i==="error"?R=c.createElement("span",{className:"".concat(r,"-icon")},p.error):s||i==="finish"||i==="error"?R=c.createElement("span",{className:F}):R=c.createElement("span",{className:"".concat(r,"-icon")},u),b&&(R=b({index:u-1,status:i,title:v,description:f,node:R})),R},I=i||"wait",_=re("".concat(r,"-item"),"".concat(r,"-item-").concat(I),n,(t={},W(t,"".concat(r,"-item-custom"),s),W(t,"".concat(r,"-item-active"),a),W(t,"".concat(r,"-item-disabled"),d===!0),t)),M=G({},o),P=c.createElement("div",Ce({},w,{className:_,style:M}),c.createElement("div",Ce({onClick:S},$,{className:"".concat(r,"-item-container")}),c.createElement("div",{className:"".concat(r,"-item-tail")},m),c.createElement("div",{className:"".concat(r,"-item-icon")},O()),c.createElement("div",{className:"".concat(r,"-item-content")},c.createElement("div",{className:"".concat(r,"-item-title")},v,g&&c.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&c.createElement("div",{className:"".concat(r,"-item-description")},f))));return x&&(P=x(P)||null),P}var yB=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function sv(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,o=e.style,a=o===void 0?{}:o,i=e.className;e.children;var l=e.direction,s=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,v=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,m=b===void 0?"process":b,p=e.size,y=e.current,C=y===void 0?0:y,S=e.progressDot,x=S===void 0?!1:S,w=e.stepIcon,E=e.initial,$=E===void 0?0:E,O=e.icons,I=e.onChange,_=e.itemRender,M=e.items,P=M===void 0?[]:M,T=dt(e,yB),N=d==="navigation",R=d==="inline",F=R||x,A=R?"horizontal":s,j=R?void 0:p,H=F?"vertical":v,k=re(r,"".concat(r,"-").concat(A),i,(t={},W(t,"".concat(r,"-").concat(j),j),W(t,"".concat(r,"-label-").concat(H),A==="horizontal"),W(t,"".concat(r,"-dot"),!!F),W(t,"".concat(r,"-navigation"),N),W(t,"".concat(r,"-inline"),R),t)),z=function(L){I&&C!==L&&I(L)},B=function(L,q){var Y=G({},L),U=$+q;return m==="error"&&q===C-1&&(Y.className="".concat(r,"-next-error")),Y.status||(U===C?Y.status=m:U<C?Y.status="finish":Y.status="wait"),R&&(Y.icon=void 0,Y.subTitle=void 0),!Y.render&&_&&(Y.render=function(ee){return _(Y,ee)}),D.createElement(DS,Ce({},Y,{active:U===C,stepNumber:U+1,stepIndex:U,key:U,prefixCls:r,iconPrefix:h,wrapperStyle:a,progressDot:F,stepIcon:w,icons:O,onStepClick:I&&z}))};return D.createElement("div",Ce({className:k,style:a},T),P.filter(function(V){return V}).map(B))}sv.Step=DS;const CB=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:X(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},SB=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},xB=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${X(a)} ${X(e.paddingXXS)} 0`,margin:`0 ${X(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${X(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${X(e.lineWidth)} ${e.lineType} ${o}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${X(e.lineWidth)} ${e.lineType} ${o}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${X(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},wB=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${X(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},EB=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Xr),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${X(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${X(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${X(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},$B=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:a,marginXXS:i,lineWidthBold:l,lineWidth:s,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(s).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(s).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${X(d)} !important`,height:`${X(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${X(f)} !important`,height:`${X(f)} !important`}}}}},OB=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:a,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${X(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${X(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:X(a),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(o).div(2).equal(),width:o,height:o,lineHeight:X(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${X(e.calc(a).add(e.paddingXS).equal())} 0 ${X(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},IB=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},NB=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${X(e.marginXS)}`,fontSize:r,lineHeight:X(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:X(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:X(n),transform:"none"}}}}},PB=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:X(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${X(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${X(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${X(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${X(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:X(n)}}}}},_B="wait",MB="process",TB="finish",DB="error",rc=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,a=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},RB=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},Ar(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:X(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${X(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:X(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},rc(_B,e)),rc(MB,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),rc(TB,e)),rc(DB,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},FB=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},AB=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ut(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),RB(e)),FB(e)),CB(e)),NB(e)),PB(e)),SB(e)),wB(e)),OB(e)),EB(e)),IB(e)),$B(e)),xB(e))}},jB=Kt("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:a,colorTextDescription:i,colorTextQuaternary:l,colorError:s,colorBorderSecondary:u,colorSplit:d}=e,f=At(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:a,finishTitleColor:o,finishDescriptionColor:i,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:d,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return[AB(f)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));function zB(e){return e.filter(t=>t)}function BB(e,t){if(process.env.NODE_ENV==="test"&&jt("Menu").deprecated(!t,"Step","items"),e)return e;const n=kn(t).map(r=>{if(c.isValidElement(r)){const{props:o}=r;return Object.assign({},o)}return null});return zB(n)}var VB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cv=e=>{const{percent:t,size:n,className:r,rootClassName:o,direction:a,items:i,responsive:l=!0,current:s=0,children:u,style:d}=e,f=VB(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:v}=Cs(l),{getPrefixCls:g,direction:h,className:b,style:m}=Pn("steps"),p=c.useMemo(()=>l&&v?"vertical":a,[v,a]),y=_n(n),C=g("steps",e.prefixCls),[S,x,w]=jB(C),E=e.type==="inline",$=g("",e.iconPrefix),O=BB(i,u),I=E?void 0:t,_=Object.assign(Object.assign({},m),d),M=re(b,{[`${C}-rtl`]:h==="rtl",[`${C}-with-progress`]:I!==void 0},r,o,x,w),P={finish:c.createElement(Oo,{className:`${C}-finish-icon`}),error:c.createElement(bo,{className:`${C}-error-icon`})},T=({node:R,status:F})=>{if(F==="process"&&I!==void 0){const A=y==="small"?32:40;return c.createElement("div",{className:`${C}-progress-icon`},c.createElement(lv,{type:"circle",percent:I,size:A,strokeWidth:4,format:()=>null}),R)}return R},N=(R,F)=>R.description?c.createElement(Nr,{title:R.description},F):F;return S(c.createElement(sv,Object.assign({icons:P},f,{style:_,current:s,size:y,items:O,itemRender:E?N:void 0,stepIcon:T,direction:p,prefixCls:C,iconPrefix:$,className:M})))};cv.Step=sv.Step,process.env.NODE_ENV!=="production"&&(cv.displayName="Steps");const LB=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Ut(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},uv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return At(e,{tagFontSize:o,tagLineHeight:X(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},dv=e=>({defaultBg:new kt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),RS=Kt("Tag",e=>{const t=uv(e);return LB(t)},dv);var HB=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 kB=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:l}=e,s=HB(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=c.useContext(bt),f=p=>{i==null||i(!a),l==null||l(p)},v=u("tag",n),[g,h,b]=RS(v),m=re(v,`${v}-checkable`,{[`${v}-checkable-checked`]:a},d==null?void 0:d.className,o,h,b);return g(c.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:m,onClick:f})))}),WB=e=>Hl(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),qB=Ja(["Tag","preset"],e=>{const t=uv(e);return WB(t)},dv);function UB(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const oc=(e,t,n)=>{const r=UB(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"}}}},GB=Ja(["Tag","status"],e=>{const t=uv(e);return[oc(t,"success","Success"),oc(t,"processing","Info"),oc(t,"error","Error"),oc(t,"warning","Warning")]},dv);var KB=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 ac=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:s,onClose:u,bordered:d=!0,visible:f}=e,v=KB(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=c.useContext(bt),[m,p]=c.useState(!0),y=gn(v,["closeIcon","closable"]);process.env.NODE_ENV!=="production"&&jt("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),c.useEffect(()=>{f!==void 0&&p(f)},[f]);const C=xs(s),S=lT(s),x=C||S,w=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},b==null?void 0:b.style),a),E=g("tag",n),[$,O,I]=RS(E),_=re(E,b==null?void 0:b.className,{[`${E}-${s}`]:x,[`${E}-has-color`]:s&&!x,[`${E}-hidden`]:!m,[`${E}-rtl`]:h==="rtl",[`${E}-borderless`]:!d},r,o,O,I),M=A=>{A.stopPropagation(),u==null||u(A),!A.defaultPrevented&&p(!1)},[,P]=u2(Yh(e),Yh(b),{closable:!1,closeIconRender:A=>{const j=c.createElement("span",{className:`${E}-close-icon`,onClick:M},A);return Tu(A,j,H=>({onClick:k=>{var z;(z=H==null?void 0:H.onClick)===null||z===void 0||z.call(H,k),M(k)},className:re(H==null?void 0:H.className,`${E}-close-icon`)}))}}),T=typeof v.onClick=="function"||i&&i.type==="a",N=l||null,R=N?c.createElement(c.Fragment,null,N,i&&c.createElement("span",null,i)):i,F=c.createElement("span",Object.assign({},y,{ref:t,className:_,style:w}),R,P,C&&c.createElement(qB,{key:"preset",prefixCls:E}),S&&c.createElement(GB,{key:"status",prefixCls:E}));return $(T?c.createElement(ri,{component:"Tag"},F):F)});process.env.NODE_ENV!=="production"&&(ac.displayName="Tag"),ac.CheckableTag=kB;const YB=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},XB=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
316
|
-
h${r}&,
|
|
317
|
-
div&-h${r},
|
|
318
|
-
div&-h${r} > textarea,
|
|
319
|
-
h${r}
|
|
320
|
-
`]=YB(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},QB=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},hp(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},JB=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:Wa[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}}),ZB=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 - ${X(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},eV=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tV=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),nV=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},XB(e)),{[`
|
|
321
|
-
& + h1${t},
|
|
322
|
-
& + h2${t},
|
|
323
|
-
& + h3${t},
|
|
324
|
-
& + h4${t},
|
|
325
|
-
& + h5${t}
|
|
326
|
-
`]:{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}}}),JB(e)),QB(e)),{[`
|
|
327
|
-
${t}-expand,
|
|
328
|
-
${t}-collapse,
|
|
329
|
-
${t}-edit,
|
|
330
|
-
${t}-copy
|
|
331
|
-
`]:Object.assign(Object.assign({},hp(e)),{marginInlineStart:e.marginXXS})}),ZB(e)),eV(e)),tV()),{"&-rtl":{direction:"rtl"}})}},FS=Kt("Typography",e=>[nV(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),rV=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:a,maxLength:i,autoSize:l=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:g=c.createElement(NS,null)}=e,h=c.useRef(null),b=c.useRef(!1),m=c.useRef(null),[p,y]=c.useState(s);c.useEffect(()=>{y(s)},[s]),c.useEffect(()=>{var T;if(!((T=h.current)===null||T===void 0)&&T.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:R}=N.value;N.setSelectionRange(R,R)}},[]);const C=({target:T})=>{y(T.value.replace(/[\n\r]/g,""))},S=()=>{b.current=!0},x=()=>{b.current=!1},w=({keyCode:T})=>{b.current||(m.current=T)},E=()=>{u(p.trim())},$=({keyCode:T,ctrlKey:N,altKey:R,metaKey:F,shiftKey:A})=>{m.current!==T||b.current||N||R||F||A||(T===Fe.ENTER?(E(),f==null||f()):T===Fe.ESC&&d())},O=()=>{E()},[I,_,M]=FS(t),P=re(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${v}`]:!!v},r,_,M);return I(c.createElement("div",{className:P,style:o},c.createElement(eS,{ref:h,maxLength:i,value:p,onChange:C,onKeyDown:w,onKeyUp:$,onCompositionStart:S,onCompositionEnd:x,onBlur:O,"aria-label":n,rows:1,autoSize:l}),g!==null?gr(g,{className:`${t}-edit-content-confirm`}):null))};var oV=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()}},aV=oV,AS={"text/plain":"Text","text/html":"Url",default:"Text"},iV="Copy to clipboard: #{key}, Enter";function lV(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function sV(e,t){var n,r,o,a,i,l,s=!1;t||(t={}),n=t.debug||!1;try{o=aV(),a=document.createRange(),i=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=AS[t.format]||AS.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),a.selectNodeContents(l),i.addRange(a);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=lV("message"in t?t.message:iV),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return s}var cV=sV;const uV=Hn(cV);var dV=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(d){try{u(r.next(d))}catch(f){i(f)}}function s(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const fV=({copyConfig:e,children:t})=>{const[n,r]=c.useState(!1),[o,a]=c.useState(!1),i=c.useRef(null),l=()=>{i.current&&clearTimeout(i.current)},s={};e.format&&(s.format=e.format),c.useEffect(()=>l,[]);const u=Tt(d=>dV(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const v=typeof e.text=="function"?yield e.text():e.text;uV(v||x4(t,!0).join("")||"",s),a(!1),r(!0),l(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(v){throw a(!1),v}}));return{copied:n,copyLoading:o,onClick:u}};function fv(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vV=e=>{const t=D.useRef(void 0);return D.useEffect(()=>{t.current=e}),t.current},mV=(e,t,n)=>D.useMemo(()=>e===!0?{title:t??n}:D.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var gV=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 vv=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:a,setContentRef:i,children:l,direction:s,style:u}=e,d=gV(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,className:g,style:h}=Pn("typography"),b=s??v,m=i?En(t,i):t,p=f("typography",n);process.env.NODE_ENV!=="production"&&jt("Typography").deprecated(!i,"setContentRef","ref");const[y,C,S]=FS(p),x=re(p,g,{[`${p}-rtl`]:b==="rtl"},o,a,C,S),w=Object.assign(Object.assign({},h),u);return y(c.createElement(r,Object.assign({className:x,style:w,ref:m},d),l))});process.env.NODE_ENV!=="production"&&(vv.displayName="Typography");function jS(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function mv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function pV(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const gv=e=>["string","number"].includes(typeof e),hV=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:a,tabIndex:i,onCopy:l,loading:s})=>{const u=jS(o),d=jS(a),{copied:f,copy:v}=n??{},g=t?f:v,h=mv(u[t?1:0],g),b=typeof h=="string"?h:g;return c.createElement(Nr,{title:h},c.createElement("button",{type:"button",className:re(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":b,tabIndex:i},t?mv(d[1],c.createElement(Oo,null),!0):mv(d[0],s?c.createElement(ei,null):c.createElement($S,null),!0)))},ic=c.forwardRef(({style:e,children:t},n)=>{const r=c.useRef(null);return c.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),bV=e=>e.reduce((t,n)=>t+(gv(n)?String(n).length:1),0);function zS(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],l=gv(a)?String(a).length:1,s=n+l;if(s>t){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=s}return e}const pv=0,hv=1,bv=2,yv=3,BS=4,lc={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function yV(e){const{enableMeasure:t,width:n,text:r,children:o,rows:a,expanded:i,miscDeps:l,onEllipsis:s}=e,u=c.useMemo(()=>kn(r),[r]),d=c.useMemo(()=>bV(u),[r]),f=c.useMemo(()=>o(u,!1),[r]),[v,g]=c.useState(null),h=c.useRef(null),b=c.useRef(null),m=c.useRef(null),p=c.useRef(null),y=c.useRef(null),[C,S]=c.useState(!1),[x,w]=c.useState(pv),[E,$]=c.useState(0),[O,I]=c.useState(null);Pt(()=>{w(t&&n&&d?hv:pv)},[n,r,a,t,u]),Pt(()=>{var T,N,R,F;if(x===hv){w(bv);const A=b.current&&getComputedStyle(b.current).whiteSpace;I(A)}else if(x===bv){const A=!!(!((T=m.current)===null||T===void 0)&&T.isExceed());w(A?yv:BS),g(A?[0,d]:null),S(A);const j=((N=m.current)===null||N===void 0?void 0:N.getHeight())||0,H=a===1?0:((R=p.current)===null||R===void 0?void 0:R.getHeight())||0,k=((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,z=Math.max(j,H+k);$(z+1),s(A)}},[x]);const _=v?Math.ceil((v[0]+v[1])/2):0;Pt(()=>{var T;const[N,R]=v||[0,0];if(N!==R){const A=(((T=h.current)===null||T===void 0?void 0:T.getHeight())||0)>E;let j=_;R-N===1&&(j=A?N:R),g(A?[N,j]:[j,R])}},[v,_]);const M=c.useMemo(()=>{if(!t)return o(u,!1);if(x!==yv||!v||v[0]!==v[1]){const T=o(u,!1);return[BS,pv].includes(x)?T:c.createElement("span",{style:Object.assign(Object.assign({},lc),{WebkitLineClamp:a})},T)}return o(i?u:zS(u,v[0]),C)},[i,x,v,u].concat(Ne(l))),P={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,M,x===bv&&c.createElement(c.Fragment,null,c.createElement(ic,{style:Object.assign(Object.assign(Object.assign({},P),lc),{WebkitLineClamp:a}),ref:m},f),c.createElement(ic,{style:Object.assign(Object.assign(Object.assign({},P),lc),{WebkitLineClamp:a-1}),ref:p},f),c.createElement(ic,{style:Object.assign(Object.assign(Object.assign({},P),lc),{WebkitLineClamp:1}),ref:y},o([],!0))),x===yv&&v&&v[0]!==v[1]&&c.createElement(ic,{style:Object.assign(Object.assign({},P),{top:400}),ref:h},o(zS(u,_),!0)),x===hv&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const VS=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:c.createElement(Nr,Object.assign({open:t?void 0:!1},r),n);process.env.NODE_ENV!=="production"&&(VS.displayName="EllipsisTooltip");var CV=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 SV({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:a,italic:i},l){let s=l;function u(d,f){f&&(s=c.createElement(d,{},s))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",a),u("i",i),s}const xV="...",LS=["delete","mark","code","underline","strong","keyboard","italic"],sc=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:a,type:i,disabled:l,children:s,ellipsis:u,editable:d,copyable:f,component:v,title:g}=e,h=CV(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:m}=c.useContext(bt),[p]=Fr("Text"),y=c.useRef(null),C=c.useRef(null),S=b("typography",r),x=gn(h,LS),[w,E]=fv(d),[$,O]=qt(!1,{value:E.editing}),{triggerType:I=["icon"]}=E,_=ue=>{var ce;ue&&((ce=E.onStart)===null||ce===void 0||ce.call(E)),O(ue)},M=vV($);Pt(()=>{var ue;!$&&M&&((ue=C.current)===null||ue===void 0||ue.focus())},[$]);const P=ue=>{ue==null||ue.preventDefault(),_(!0)},T=ue=>{var ce;(ce=E.onChange)===null||ce===void 0||ce.call(E,ue),_(!1)},N=()=>{var ue;(ue=E.onCancel)===null||ue===void 0||ue.call(E),_(!1)},[R,F]=fv(f),{copied:A,copyLoading:j,onClick:H}=fV({copyConfig:F,children:s}),[k,z]=c.useState(!1),[B,V]=c.useState(!1),[L,q]=c.useState(!1),[Y,U]=c.useState(!1),[ee,Z]=c.useState(!0),[Q,J]=fv(u,{expandable:!1,symbol:ue=>ue?p==null?void 0:p.collapse:p==null?void 0:p.expand}),[ae,ne]=qt(J.defaultExpanded||!1,{value:J.expanded}),ie=Q&&(!ae||J.expandable==="collapsible"),{rows:te=1}=J,le=c.useMemo(()=>ie&&(J.suffix!==void 0||J.onEllipsis||J.expandable||w||R),[ie,J,w,R]);Pt(()=>{Q&&!le&&(z(Qh("webkitLineClamp")),V(Qh("textOverflow")))},[le,Q]);const[se,fe]=c.useState(ie),ve=c.useMemo(()=>le?!1:te===1?B:k,[le,B,k]);Pt(()=>{fe(ve&&ie)},[ve,ie]);const ge=ie&&(se?Y:L),be=ie&&te===1&&se,de=ie&&te>1&&se,pe=(ue,ce)=>{var Ie;ne(ce.expanded),(Ie=J.onExpand)===null||Ie===void 0||Ie.call(J,ue,ce)},[Se,xe]=c.useState(0),De=({offsetWidth:ue})=>{xe(ue)},ye=ue=>{var ce;q(ue),L!==ue&&((ce=J.onEllipsis)===null||ce===void 0||ce.call(J,ue))};c.useEffect(()=>{const ue=y.current;if(Q&&se&&ue){const ce=pV(ue);Y!==ce&&U(ce)}},[Q,se,s,de,ee,Se]),c.useEffect(()=>{const ue=y.current;if(typeof IntersectionObserver>"u"||!ue||!se||!ie)return;const ce=new IntersectionObserver(()=>{Z(!!ue.offsetParent)});return ce.observe(ue),()=>{ce.disconnect()}},[se,ie]);const $e=mV(J.tooltip,E.text,s),Te=c.useMemo(()=>{if(!(!Q||se))return[E.text,s,g,$e.title].find(gv)},[Q,se,g,$e.title,ge]);if($)return c.createElement(rV,{value:(n=E.text)!==null&&n!==void 0?n:typeof s=="string"?s:"",onSave:T,onCancel:N,onEnd:E.onEnd,prefixCls:S,className:o,style:a,direction:m,component:v,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Pe=()=>{const{expandable:ue,symbol:ce}=J;return ue?c.createElement("button",{type:"button",key:"expand",className:`${S}-${ae?"collapse":"expand"}`,onClick:Ie=>pe(Ie,{expanded:!ae}),"aria-label":ae?p.collapse:p==null?void 0:p.expand},typeof ce=="function"?ce(ae):ce):null},Oe=()=>{if(!w)return;const{icon:ue,tooltip:ce,tabIndex:Ie}=E,rt=kn(ce)[0]||(p==null?void 0:p.edit),lt=typeof rt=="string"?rt:"";return I.includes("icon")?c.createElement(Nr,{key:"edit",title:ce===!1?"":rt},c.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:P,"aria-label":lt,tabIndex:Ie},ue||c.createElement(IS,{role:"button"}))):null},we=()=>R?c.createElement(hV,Object.assign({key:"copy"},F,{prefixCls:S,copied:A,locale:p,onCopy:H,loading:j,iconOnly:s==null})):null,me=ue=>[ue&&Pe(),Oe(),we()],Ee=ue=>[ue&&!ae&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},xV),J.suffix,me(ue)];return c.createElement(Wn,{onResize:De,disabled:!ie},ue=>c.createElement(VS,{tooltipProps:$e,enableEllipsis:ie,isEllipsis:ge},c.createElement(vv,Object.assign({className:re({[`${S}-${i}`]:i,[`${S}-disabled`]:l,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:be,[`${S}-ellipsis-multiple-line`]:de},o),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:de?te:void 0}),component:v,ref:En(ue,y,t),direction:m,onClick:I.includes("text")?P:void 0,"aria-label":Te==null?void 0:Te.toString(),title:g},x),c.createElement(yV,{enableMeasure:ie&&!se,text:s,rows:te,width:Se,onEllipsis:ye,expanded:ae,miscDeps:[A,ae,j,w,R,p].concat(Ne(LS.map(ce=>e[ce])))},(ce,Ie)=>SV(e,c.createElement(c.Fragment,null,ce.length>0&&Ie&&!ae&&Te?c.createElement("span",{key:"show-content","aria-hidden":!0},ce):ce,Ee(Ie)))))))});var wV=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 EV=c.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=wV(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=jt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,c.createElement(sc,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),$V=c.forwardRef((e,t)=>c.createElement(sc,Object.assign({ref:t},e,{component:"div"})));var OV=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 IV=(e,t)=>{var{ellipsis:n}=e,r=OV(e,["ellipsis"]);const o=c.useMemo(()=>n&&typeof n=="object"?gn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const a=jt("Typography.Text");process.env.NODE_ENV!=="production"&&a(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(sc,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},NV=c.forwardRef(IV);var PV=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 HS=[1,2,3,4,5],_V=c.forwardRef((e,t)=>{const{level:n=1}=e,r=PV(e,["level"]);if(process.env.NODE_ENV!=="production"){const a=jt("Typography.Title");process.env.NODE_ENV!=="production"&&a(HS.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=HS.includes(n)?`h${n}`:"h1";return c.createElement(sc,Object.assign({ref:t},r,{component:o}))}),Ri=vv;Ri.Text=NV,Ri.Link=EV,Ri.Title=_V,Ri.Paragraph=$V;const kS=D.createContext(null),WS=({eventHub:e,formData:t,children:n})=>oe.jsx(kS.Provider,{value:{eventHub:e,formData:t},children:n}),qS=()=>{const e=D.useContext(kS);if(!e)throw new Error("useFormEventHub must be used within a FormEventProvider");return e},vn=(e,t,n)=>{const{eventHub:r,formData:o}=qS();return D.useMemo(()=>r.createFieldEventHandlers(e,t,o,n),[r,e,t,o,n])},Cv=e=>typeof e=="object"&&e!==null,US=({formData:e,onChange:t,required:n,disabled:r,readonly:o,schema:a,idSchema:i,rawErrors:l=[]})=>{const s=vn(i.$id,a),u=C=>async S=>{const x=typeof S=="string"?S:S.target.value,w={...e,[C]:x};t(w),await s.onChange(w)},d=async()=>{await s.onFocus(e)},f=async()=>{await s.onBlur(e)},v=(C,S)=>{var w;const x=(w=a.properties)==null?void 0:w[C];return x&&Cv(x)&&x.title||S},g=C=>{var x;const S=(x=a.properties)==null?void 0:x[C];return S&&Cv(S)&&S.enum?S.enum.map(w=>({value:String(w),label:String(w)})):[]},h=C=>{var S;return((S=a.required)==null?void 0:S.includes(C))||!1},b=C=>{const S=l==null?void 0:l.find(x=>{var w,E;return x.property===`.${C}`||((w=x.message)==null?void 0:w.includes(C))||((E=x.schemaPath)==null?void 0:E.includes(C))});return S==null?void 0:S.message},m=(C,S)=>{var w,E;const x=(w=a.properties)==null?void 0:w[C];return!x||!Cv(x)?null:(E=a.required)!=null&&E.includes(C)&&(!S||S.trim()==="")?`${v(C,C)} is required`:x.minLength&&S&&S.length<x.minLength?`${v(C,C)} must be at least ${x.minLength} characters`:x.pattern&&S&&!new RegExp(x.pattern).test(S)?C==="postcode"?"Postcode must be 4 digits":`${v(C,C)} format is invalid`:x.enum&&S&&!x.enum.includes(S)?`${v(C,C)} must be one of: ${x.enum.join(", ")}`:null},p=C=>{const S=(e==null?void 0:e[C])||"",x=b(C),w=m(C,S);return x||w?"error":""},y=C=>{const S=(e==null?void 0:e[C])||"",x=b(C),w=m(C,S);return x||w};return oe.jsxs("div",{children:[a.title&&oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{style:{display:"block",fontSize:"16px",fontWeight:600,color:"#262626",marginBottom:"4px"},children:[a.title,n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),a.description&&oe.jsx("div",{style:{fontSize:"14px",color:"#8c8c8c",marginBottom:"8px"},children:a.description})]}),oe.jsx(jn.Item,{label:v("streetAddress","Street Address"),required:h("streetAddress"),validateStatus:p("streetAddress"),help:y("streetAddress"),style:{marginBottom:"16px"},labelCol:{span:24},wrapperCol:{span:24},children:oe.jsx(rn,{id:`${i.$id}_streetAddress`,value:(e==null?void 0:e.streetAddress)||"",onChange:u("streetAddress"),onFocus:d,onBlur:f,disabled:r||o,placeholder:"123 Main St",status:p("streetAddress")})}),oe.jsx(jn.Item,{label:v("suburb","Suburb/City"),required:h("suburb"),validateStatus:p("suburb"),help:y("suburb"),style:{marginBottom:"16px"},labelCol:{span:24},wrapperCol:{span:24},children:oe.jsx(rn,{id:`${i.$id}_suburb`,value:(e==null?void 0:e.suburb)||"",onChange:u("suburb"),onFocus:d,onBlur:f,disabled:r||o,placeholder:"Sydney",status:p("suburb")})}),oe.jsxs(yr,{gutter:16,children:[oe.jsx(ln,{span:12,children:oe.jsx(jn.Item,{label:v("state","State/Territory"),required:h("state"),validateStatus:p("state"),help:y("state"),style:{marginBottom:"16px"},labelCol:{span:24},wrapperCol:{span:24},children:oe.jsx(Ir,{id:`${i.$id}_state`,value:(e==null?void 0:e.state)||void 0,onChange:u("state"),onFocus:d,onBlur:f,disabled:r||o,placeholder:"Select state",status:p("state"),style:{width:"100%"},options:g("state")})})}),oe.jsx(ln,{span:12,children:oe.jsx(jn.Item,{label:v("postcode","Postcode"),required:h("postcode"),validateStatus:p("postcode"),help:y("postcode"),style:{marginBottom:"16px"},labelCol:{span:24},wrapperCol:{span:24},children:oe.jsx(rn,{id:`${i.$id}_postcode`,value:(e==null?void 0:e.postcode)||"",onChange:u("postcode"),onFocus:d,onBlur:f,disabled:r||o,placeholder:"2000",status:p("postcode")})})})]}),oe.jsx(jn.Item,{label:v("country","Country"),required:h("country"),validateStatus:p("country"),help:y("country"),style:{marginBottom:"0"},labelCol:{span:24},wrapperCol:{span:24},children:oe.jsx(rn,{id:`${i.$id}_country`,value:(e==null?void 0:e.country)||"",onChange:u("country"),onFocus:d,onBlur:f,disabled:r||o,placeholder:"Australia",status:p("country")})})]})},GS=({formData:e,onChange:t,required:n,disabled:r,readonly:o,schema:a,idSchema:i})=>{const l=vn(i.$id,a),s=d=>{const f=d.replace(/\D/g,""),v=f.length;return v<4?f:v<7?`(${f.slice(0,3)}) ${f.slice(3)}`:`(${f.slice(0,3)}) ${f.slice(3,6)}-${f.slice(6,10)}`},u=async d=>{const f=s(d.target.value);t(f),await l.onChange(f)};return oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{htmlFor:i.$id,style:{display:"block",marginBottom:"4px",fontWeight:500},children:[a.title||"Phone Number",n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),oe.jsx(rn,{id:i.$id,type:"tel",value:e||"",onChange:u,disabled:r||o,placeholder:"(555) 123-4567",maxLength:14})]})},KS=({formData:e,onChange:t,required:n,disabled:r,readonly:o,schema:a,uiSchema:i,idSchema:l})=>{var h,b;const s=((h=i==null?void 0:i["ui:options"])==null?void 0:h.currency)||"USD",u=((b=i==null?void 0:i["ui:options"])==null?void 0:b.symbol)||"$",d=vn(l.$id,a),f=m=>{const p=parseFloat(m.replace(/[^0-9.-]+/g,""));return isNaN(p)?"":p.toFixed(2)},v=async m=>{const p=m.target.value.replace(/[^0-9.-]+/g,""),y=p?parseFloat(p):void 0;t(y),await d.onChange(y)},g=async m=>{const p=f(m.target.value),y=p?parseFloat(p):void 0;t(y),await d.onBlur(y)};return oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{htmlFor:l.$id,style:{display:"block",marginBottom:"4px",fontWeight:500},children:[a.title||"Amount",n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),oe.jsx(rn,{id:l.$id,inputMode:"decimal",value:e||"",onChange:v,onBlur:g,disabled:r||o,placeholder:"0.00",prefix:String(u),suffix:String(s)})]})};function YS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=YS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function MV(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=YS(e))&&(r&&(r+=" "),r+=t);return r}const XS=e=>{const{canAdd:t,disabled:n,idSchema:r,uiSchema:o,items:a,onAddClick:i,readonly:l,registry:s,required:u,schema:d,title:f}=e,v=et.getUiOptions(o),g=et.getTemplate("ArrayFieldDescriptionTemplate",s,v),h=et.getTemplate("ArrayFieldItemTemplate",s,v),b=et.getTemplate("ArrayFieldTitleTemplate",s,v),m=f||v.title?oe.jsxs(oe.Fragment,{children:[oe.jsx(b,{idSchema:r,title:v.title||f,required:u,schema:d,uiSchema:o,registry:s}),(v.description||d.description)&&oe.jsx("div",{style:{marginTop:"8px"},children:oe.jsx(g,{idSchema:r,description:v.description||d.description,schema:d,uiSchema:o,registry:s})})]}):void 0;return oe.jsx("div",{className:MV("rjsf-array-field",v.classNames),children:oe.jsx(Na,{title:m,style:{borderColor:"#e2e8f0"},children:oe.jsxs(Pa,{direction:"vertical",style:{width:"100%"},size:"middle",children:[a&&a.map(({key:p,...y})=>oe.jsx(h,{...y},p)),t&&oe.jsxs(pn,{type:"dashed",onClick:i,disabled:n||l,size:"small",block:!0,icon:oe.jsx(Ef,{}),children:["Add ",f||"Item"]})]})})})},QS=e=>{const{children:t,disabled:n,hasToolbar:r,buttonsProps:o,readonly:a}=e,{hasMoveDown:i,hasMoveUp:l,hasRemove:s,index:u,onDropIndexClick:d,onReorderClick:f}=o,v=r?oe.jsxs(Pa,{size:"small",children:[(l||i)&&oe.jsx(PS,{style:{color:"#94a3b8",fontSize:"16px"}}),l&&oe.jsx(pn,{type:"text",size:"small",disabled:n||a,onClick:f(u,u-1),icon:oe.jsx(_f,{}),title:"Move up"}),i&&oe.jsx(pn,{type:"text",size:"small",disabled:n||a,onClick:f(u,u+1),icon:oe.jsx(ys,{}),title:"Move down"}),s&&oe.jsx(pn,{type:"text",size:"small",danger:!0,disabled:n||a,onClick:d(u),icon:oe.jsx(OS,{}),title:"Remove"})]}):null;return oe.jsx(Na,{style:{borderColor:"#e2e8f0",position:"relative"},extra:v,bodyStyle:{padding:"16px"},children:oe.jsx("div",{style:r?{paddingRight:"96px"}:void 0,children:t})})},JS=({currentStep:e,totalSteps:t,progressPercentage:n,className:r,style:o})=>oe.jsxs("div",{className:r,style:{...o},children:[oe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"14px",marginBottom:"12px"},children:[oe.jsxs("span",{style:{fontWeight:500,color:"#374151"},children:["Step ",e," of ",t]}),oe.jsxs("span",{style:{fontWeight:500,color:"#374151"},children:[n,"% Complete"]})]}),oe.jsx(lv,{percent:n,showInfo:!1,strokeColor:"#1f2937",trailColor:"#e5e7eb"})]}),ZS=({steps:e,currentStep:t,onStepChange:n,className:r,style:o})=>{const a=l=>{n&&!e[l].disabled&&n(l)},i=(l,s,u)=>l?{backgroundColor:"#1f2937",borderColor:"#1f2937",color:"white"}:s&&!l?{backgroundColor:"#f0fdf4",borderColor:"#86efac",color:"#15803d"}:u?{backgroundColor:"#f3f4f6",borderColor:"#f3f4f6",color:"#9ca3af",cursor:"not-allowed"}:{};return oe.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",overflowX:"auto",...o},className:r,children:e.map((l,s)=>{const u=s===t,d=l.completed,f=l.disabled,v=l.icon;return oe.jsxs(pn,{type:u?"primary":"default",size:"small",onClick:()=>a(s),disabled:f,style:{borderRadius:"9999px",display:"flex",alignItems:"center",gap:"8px",...i(u,d||!1,f||!1)},icon:v?oe.jsx(v,{className:""}):void 0,children:[oe.jsx("span",{style:{fontWeight:500,fontSize:"14px",whiteSpace:"nowrap"},children:l.title}),d&&!u&&oe.jsx(Wd,{count:oe.jsx(Oo,{style:{fontSize:"10px",color:"#15803d"}}),style:{backgroundColor:"#dcfce7",marginLeft:"4px"}})]},l.id)})})},ex=({onPrevious:e,onNext:t,onSubmit:n,canGoNext:r=!0,canGoPrevious:o=!0,isLastStep:a=!1,submitLabel:i="Submit",nextLabel:l="Next",previousLabel:s="Previous",className:u,style:d})=>{const f=()=>{a&&n?n():t&&t()};return oe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",...d},className:u,children:[oe.jsx(pn,{onClick:e,disabled:!o||!e,icon:oe.jsx(pi,{}),children:s}),oe.jsxs(pn,{type:a?"primary":"default",onClick:f,disabled:!r,style:a?{backgroundColor:"#52c41a",borderColor:"#52c41a"}:void 0,children:[a?i:l,!a&&oe.jsx(oi,{})]})]})},TV=({title:e,subtitle:t,steps:n,currentStep:r,children:o,onStepChange:a,onPrevious:i,onNext:l,onSubmit:s,canGoNext:u=!0,canGoPrevious:d=!0,isLastStep:f=!1,submitLabel:v="Submit",nextLabel:g="Next",previousLabel:h="Previous",className:b})=>{const m=n.filter(C=>C.completed).length,p=n.length,y=Math.round(m/p*100);return oe.jsx("div",{className:b,style:{minHeight:"100vh",backgroundColor:"#f5f5f5",padding:"32px 0"},children:oe.jsxs("div",{style:{maxWidth:"896px",margin:"0 auto",padding:"0 16px"},children:[oe.jsxs("div",{style:{textAlign:"center",marginBottom:"32px"},children:[oe.jsx("h1",{style:{fontSize:"30px",fontWeight:"bold",color:"#1f2937",marginBottom:"8px"},children:e}),t&&oe.jsx("p",{style:{fontSize:"16px",color:"#6b7280",marginBottom:"32px"},children:t}),oe.jsx("div",{style:{marginBottom:"32px"},children:oe.jsx(JS,{currentStep:r+1,totalSteps:p,progressPercentage:y})}),oe.jsx("div",{style:{marginBottom:"32px"},children:oe.jsx(ZS,{steps:n,currentStep:r,onStepChange:a})})]}),oe.jsx("div",{style:{backgroundColor:"white",borderRadius:"8px",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",border:"1px solid #e5e7eb",padding:"32px",marginBottom:"32px"},children:o}),oe.jsx(ex,{onPrevious:i,onNext:l,onSubmit:s,canGoNext:u,canGoPrevious:d,isLastStep:f,submitLabel:v,nextLabel:g,previousLabel:h})]})})},tx=({title:e,description:t,properties:n,required:r,uiSchema:o,idSchema:a,schema:i,registry:l})=>{const s=et.getUiOptions(o),u=et.getTemplate("TitleFieldTemplate",l,s),d=et.getTemplate("DescriptionFieldTemplate",l,s),f=e&&e!==i.title,v=s.icon,g=s.columns||1,h=s.sectionClass||"",b=()=>{switch(g){case 2:return"repeat(2, 1fr)";case 3:return"repeat(3, 1fr)";case 4:return"repeat(4, 1fr)";default:return"1fr"}};return oe.jsxs("div",{className:h,style:{display:"flex",flexDirection:"column",gap:"24px"},children:[f&&oe.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[oe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[v&&D.createElement(v,{className:""}),oe.jsx(u,{id:a.$id,title:e,required:r,schema:i,uiSchema:o,registry:l})]}),t&&oe.jsx(d,{id:a.$id,description:t,schema:i,uiSchema:o,registry:l})]}),oe.jsx("div",{style:{display:"grid",gap:"24px",gridTemplateColumns:b()},children:n.map(m=>{const p=m.name==="description"||m.name==="notes"||m.name==="primaryActivity"||m.name==="residentialAddress";return oe.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",gridColumn:p?"1 / -1":void 0},children:m.content},m.name)})})]})},nx=({title:e,description:t,properties:n,uiSchema:r,schema:o,sectionTitle:a,sectionDescription:i,sectionIcon:l})=>{const s=et.getUiOptions(r),u=a||e,d=i||t,f=s.columns||1;return oe.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[u&&oe.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[oe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[l&&oe.jsx(l,{className:""}),oe.jsx("h2",{style:{fontSize:"20px",fontWeight:600,color:"#111827",margin:0},children:u})]}),d&&oe.jsx("p",{style:{fontSize:"14px",color:"#6b7280",margin:0},children:d})]}),e&&e!==u&&oe.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",borderBottom:"1px solid #e5e7eb",paddingBottom:"16px"},children:[oe.jsx("h3",{style:{fontSize:"18px",fontWeight:500,color:"#111827",margin:0},children:e}),t&&oe.jsx("p",{style:{fontSize:"14px",color:"#6b7280",margin:0},children:t})]}),oe.jsx("div",{style:{display:"grid",gap:"24px",gridTemplateColumns:f===1?"1fr":f===2?"repeat(2, 1fr)":"repeat(3, 1fr)",gridAutoRows:"min-content"},children:n.map(v=>{var m,p,y,C,S,x;const g=(m=o.properties)==null?void 0:m[v.name],h=g&&typeof g=="object"&&"type"in g&&g.type==="array",b=((p=v.name)==null?void 0:p.includes("address"))||((y=v.name)==null?void 0:y.includes("description"))||((C=v.name)==null?void 0:C.includes("notes"))||((S=v.name)==null?void 0:S.includes("Activity"))||h||((x=r==null?void 0:r[v.name])==null?void 0:x["ui:widget"])==="textarea";return oe.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px",gridColumn:b&&f>1?"1 / -1":void 0},children:v.content},v.name)})})]})},rx=({uiSchema:e,...t})=>{const{submitText:n,norender:r,props:o={}}=et.getSubmitButtonOptions(e);return r?null:oe.jsx("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:"16px",borderTop:"1px solid #d9d9d9"},children:oe.jsx(pn,{type:"primary",htmlType:"submit",size:"large",style:{minWidth:"96px"},...o,...t,children:n||"Submit"})})},ox=({id:e,children:t,displayLabel:n,rawErrors:r=[],errors:o,help:a,description:i,rawDescription:l,classNames:s,style:u,disabled:d,label:f,hidden:v,readonly:g,required:h,schema:b,uiSchema:m,registry:p})=>{var $;const y=et.getUiOptions(m),C=et.getTemplate("WrapIfAdditionalTemplate",p,y);if(v)return oe.jsx("div",{style:{display:"none"},children:t});const S=r.length>0?"error":void 0,w=a&&(($=a.props)==null?void 0:$.help)?a:n&&l?i:void 0,E=r.length>0?o:void 0;return oe.jsx(C,{classNames:s,style:u,disabled:d,id:e,label:f,onDropPropertyClick:O=>()=>{},onKeyChange:O=>()=>{},readonly:g,required:h,schema:b,uiSchema:m,registry:p,children:oe.jsxs(jn.Item,{label:n?f:void 0,required:h,validateStatus:S,help:w,labelCol:{span:24},wrapperCol:{span:24},style:{...u},className:`${s||""} vertical-form-item`,children:[t,E]})})},ax={address:US,phone:GS,currency:KS},Sv={FieldTemplate:ox,ArrayFieldTemplate:XS,ArrayFieldItemTemplate:QS,WizardObjectFieldTemplate:tx,WizardSectionTemplate:nx,ButtonTemplates:{SubmitButton:rx}},ix=({id:e,value:t,required:n,disabled:r,readonly:o,onChange:a,onBlur:i,onFocus:l,schema:s})=>{const u=vn(e,s),d=async g=>{const h=g.target.value;a(h),await u.onChange(h)},f=async g=>{const h=g.target.value;i&&i(e,h),await u.onBlur(h)},v=async g=>{const h=g.target.value;l&&l(e,h),await u.onFocus(h)};return oe.jsx(rn,{id:e,type:"color",value:t||"#000000",required:n,disabled:r||o,onChange:d,onBlur:f,onFocus:v,style:{height:"40px",width:"100%",cursor:"pointer"}})},DV=({id:e,value:t,required:n,disabled:r,readonly:o,label:a,onChange:i,onBlur:l,onFocus:s,options:u,schema:d})=>{const f=u.inputType||"date",v=vn(e,d),g=async m=>{const p=m.target.value;i(p),await v.onChange(p)},h=async m=>{const p=m.target.value;l&&l(e,p),await v.onBlur(p)},b=async m=>{const p=m.target.value;s&&s(e,p),await v.onFocus(p)};return oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{htmlFor:e,style:{display:"block",marginBottom:"4px",fontWeight:500},children:[a||d.title,n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),oe.jsx(rn,{id:e,type:f,value:t||"",required:n,disabled:r||o,onChange:g,onBlur:h,onFocus:b,min:typeof u.minDate=="string"||typeof u.minDate=="number"?u.minDate:void 0,max:typeof u.maxDate=="string"||typeof u.maxDate=="number"?u.maxDate:void 0,style:{width:"100%"}})]})},lx=({id:e,value:t,required:n,disabled:r,readonly:o,label:a,onChange:i,options:l,schema:s})=>{const u=D.useRef(null),d=l.accept||"*/*",f=l.multiple||!1,v=vn(e,s),g=async m=>{const p=m.target.files;if(!p)return;let y;if(f){const C=Array.from(p).map(S=>({name:S.name,size:S.size,type:S.type,lastModified:S.lastModified}));y=C,i(C)}else{const C=p[0];C&&(y={name:C.name,size:C.size,type:C.type,lastModified:C.lastModified},i(y))}y&&await v.onChange(y)},h=async()=>{u.current&&(u.current.value=""),i(null),await v.onChange(null)},b=m=>m<1024?m+" B":m<1024*1024?(m/1024).toFixed(1)+" KB":(m/(1024*1024)).toFixed(1)+" MB";return oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{htmlFor:e,style:{display:"block",marginBottom:"8px",fontWeight:500},children:[a||s.title,n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),oe.jsx("input",{ref:u,id:e,type:"file",accept:d,multiple:f,required:n,disabled:r||o,onChange:g,style:{cursor:"pointer",width:"100%"}}),t&&oe.jsx("div",{style:{marginTop:"8px"},children:f&&Array.isArray(t)?oe.jsx(Pa,{wrap:!0,children:t.map((m,p)=>oe.jsx(ac,{closable:!r&&!o,onClose:h,style:{display:"flex",alignItems:"center",gap:"4px"},children:oe.jsxs("span",{style:{fontSize:"12px"},children:[m.name," (",b(m.size),")"]})},p))}):t&&typeof t=="object"&&"name"in t?oe.jsx(ac,{closable:!r&&!o,onClose:h,style:{display:"inline-flex",alignItems:"center",gap:"4px"},children:oe.jsxs("span",{style:{fontSize:"12px"},children:[t.name," (",b(t.size),")"]})}):null})]})},sx=({id:e,value:t,disabled:n,readonly:r,onChange:o,onBlur:a,schema:i})=>{const l=i.minimum||0,s=i.maximum||100,u=i.multipleOf||1,d=vn(e,i),f=async v=>{o(v),a&&a(e,v),await d.onChange(v)};return oe.jsxs("div",{children:[oe.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginBottom:"8px"},children:oe.jsx("span",{style:{fontSize:"14px",fontWeight:500,fontVariantNumeric:"tabular-nums"},children:t||l})}),oe.jsx(Hf,{id:e,min:l,max:s,step:u,value:t||l,onChange:f,disabled:n||r})]})},cx=({id:e,value:t,required:n,disabled:r,readonly:o,label:a,onChange:i,options:l,schema:s})=>{const u=Number(l.max||s.maximum||5),d=vn(e,s),f=async v=>{i(v),await d.onChange(v)};return oe.jsxs("div",{style:{marginBottom:"16px"},children:[oe.jsxs("label",{htmlFor:e,style:{display:"block",marginBottom:"4px",fontWeight:500},children:[a||s.title,n&&oe.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}),oe.jsx(MS,{value:t||0,onChange:f,disabled:r||o,count:u})]})};function ux(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async y=>{const C=y.target.value===""?d.emptyValue:y.target.value;l(C),await g.onChange(C)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=f.length>0;return oe.jsx(rn,{id:t,value:n||"",placeholder:i,required:r,disabled:o,readOnly:a,onChange:h,onBlur:b,onFocus:m,status:p?"error":void 0})}function dx(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async C=>{const S=C.target.value===""?d.emptyValue:C.target.value;l(S),await g.onChange(S)},b=async C=>{const S=C.target.value;s&&s(t,S),await g.onBlur(S)},m=async C=>{const S=C.target.value;u&&u(t,S),await g.onFocus(S)},p=f.length>0,y=d.rows||4;return oe.jsx(rn.TextArea,{id:t,value:n||"",placeholder:i,required:r,disabled:o,readOnly:a,rows:y,onChange:h,onBlur:b,onFocus:m,status:p?"error":void 0,style:{resize:"vertical"}})}function fx(e){const{id:t,value:n,disabled:r,onChange:o,onBlur:a,onFocus:i,options:l,rawErrors:s=[],schema:u}=e,d=vn(t,u),f=async m=>{const p=m===""?l.emptyValue:m;o(p),await d.onChange(p)},v=async()=>{a&&a(t,n),await d.onBlur(n)},g=async()=>{i&&i(t,n),await d.onFocus(n)},h=s.length>0,{enumOptions:b=[]}=l;return oe.jsx(Ir,{id:t,value:n||void 0,onChange:f,disabled:r,onBlur:v,onFocus:g,status:h?"error":void 0,placeholder:"Select an option...",style:{width:"100%"},options:b.map(m=>({value:m.value,label:m.label}))})}function vx(e){const{id:t,value:n,disabled:r,readonly:o,onChange:a,onBlur:i,onFocus:l,label:s,rawErrors:u=[],schema:d}=e,f=vn(t,d),v=async m=>{const p=m.target.checked;a(p),await f.onChange(p)},g=async()=>{i&&i(t,n),await f.onBlur(n)},h=async()=>{l&&l(t,n),await f.onFocus(n)},b=u.length>0;return oe.jsx(Ao,{id:t,checked:n||!1,disabled:r||o,onChange:v,onBlur:g,onFocus:h,style:b?{borderColor:"#ff4d4f"}:void 0,children:s})}function mx(e){const{id:t,value:n,disabled:r,readonly:o,onChange:a,onBlur:i,onFocus:l,options:s,rawErrors:u=[],schema:d}=e,f=vn(t,d),v=async p=>{const y=p.target.value;a(y),await f.onChange(y)},g=async()=>{i&&i(t,n),await f.onBlur(n)},h=async()=>{l&&l(t,n),await f.onFocus(n)},b=u.length>0,{enumOptions:m=[]}=s;return oe.jsx(Do.Group,{id:t,value:n,onChange:v,disabled:r||o,onBlur:g,onFocus:h,style:b?{borderColor:"#ff4d4f"}:void 0,children:m.map(p=>oe.jsx(Do,{value:p.value,style:{display:"block",marginBottom:"8px"},children:p.label},p.value))})}function gx(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,schema:f,rawErrors:v=[]}=e,g=vn(t,f),h=async y=>{const C=y.target.value,S=C===""?d.emptyValue:parseFloat(C);l(S),await g.onChange(S)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=v.length>0;return oe.jsx(rn,{id:t,type:"number",value:n??"",placeholder:i,required:r,disabled:o,readOnly:a,min:f.minimum,max:f.maximum,step:f.multipleOf||"any",onChange:h,onBlur:b,onFocus:m,status:p?"error":void 0})}function xv(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async y=>{const C=y.target.value===""?d.emptyValue:y.target.value;l(C),await g.onChange(C)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=f.length>0;return oe.jsx(rn,{id:t,type:"tel",value:n||"",placeholder:i||"Enter phone number",required:r,disabled:o,readOnly:a,onChange:h,onBlur:b,onFocus:m,"aria-invalid":p,status:p?"error":void 0})}function wv(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async y=>{const C=y.target.value===""?d.emptyValue:y.target.value;l(C),await g.onChange(C)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=f.length>0;return oe.jsx(rn,{id:t,type:"email",value:n||"",placeholder:i||"Enter email address",required:r,disabled:o,readOnly:a,onChange:h,onBlur:b,onFocus:m,"aria-invalid":p,status:p?"error":void 0})}function Ev(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async y=>{const C=y.target.value===""?d.emptyValue:y.target.value;l(C),await g.onChange(C)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=f.length>0;return oe.jsx(rn,{id:t,type:"url",value:n||"",placeholder:i||"Enter URL",required:r,disabled:o,readOnly:a,onChange:h,onBlur:b,onFocus:m,"aria-invalid":p,status:p?"error":void 0})}function $v(e){const{id:t,value:n,required:r,disabled:o,readonly:a,placeholder:i,onChange:l,onBlur:s,onFocus:u,options:d,rawErrors:f=[],schema:v}=e,g=vn(t,v),h=async y=>{const C=y.target.value===""?d.emptyValue:y.target.value;l(C),await g.onChange(C)},b=async y=>{const C=y.target.value;s&&s(t,C),await g.onBlur(C)},m=async y=>{const C=y.target.value;u&&u(t,C),await g.onFocus(C)},p=f.length>0;return oe.jsx(rn,{id:t,type:"password",value:n||"",placeholder:i||"Enter password",required:r,disabled:o,readOnly:a,onChange:h,onBlur:b,onFocus:m,"aria-invalid":p,status:p?"error":void 0})}function px(e){const{id:t,value:n,required:r,disabled:o,readonly:a,onChange:i,onBlur:l,onFocus:s,options:u,rawErrors:d=[],schema:f}=e,v=vn(t,f),g=async(p,y)=>{const C=Array.isArray(y)?y[0]:y,S=C===""?u.emptyValue:C;i(S),await v.onChange(S)},h=async()=>{l&&l(t,n),await v.onBlur(n)},b=async()=>{s&&s(t,n),await v.onFocus(n)},m=d.length>0;return a?oe.jsx(rn,{id:t,type:"date",value:n||"",required:r,disabled:o,readOnly:a,"aria-invalid":m,status:m?"error":void 0}):oe.jsx(oo,{id:t,value:n?Mn(n):void 0,placeholder:"Select a date",disabled:o,onChange:g,onBlur:h,onFocus:b,status:m?"error":void 0,style:{width:"100%"},format:"YYYY-MM-DD"})}function Ov(e){const{id:t,value:n,required:r,disabled:o,readonly:a,onChange:i,onBlur:l,onFocus:s,options:u,rawErrors:d=[],schema:f}=e,v=vn(t,f),g=async p=>{const y=p.target.value===""?u.emptyValue:p.target.value;i(y),await v.onChange(y)},h=async p=>{const y=p.target.value;l&&l(t,y),await v.onBlur(y)},b=async p=>{const y=p.target.value;s&&s(t,y),await v.onFocus(y)},m=d.length>0;return oe.jsx(rn,{id:t,type:"datetime-local",value:n||"",required:r,disabled:o,readOnly:a,onChange:g,onBlur:h,onFocus:b,"aria-invalid":m,status:m?"error":void 0})}function hx(e){const{id:t,required:n,disabled:r,readonly:o,onChange:a,onBlur:i,onFocus:l,options:s,rawErrors:u=[],schema:d}=e,f=vn(t,d),v=async p=>{const y=p.target.files;if(y&&y.length>0){const C=y[0],S=new FileReader;S.onload=async()=>{const x=S.result;a(x),await f.onChange(x)},S.readAsDataURL(C)}},g=async p=>{const y=p.target.value;i&&i(t,y),await f.onBlur(y)},h=async p=>{const y=p.target.value;l&&l(t,y),await f.onFocus(y)},b=u.length>0,m=typeof s.accept=="string"?s.accept:"*/*";return oe.jsx(rn,{id:t,type:"file",required:n,disabled:r,readOnly:o,accept:m,onChange:v,onBlur:g,onFocus:h,"aria-invalid":b,className:"file:mr-4 file:py-1 file:px-2 file:rounded file:border-0 file:text-sm file:font-medium file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100",style:b?{borderColor:"#ff4d4f"}:void 0})}const bx={TextWidget:ux,TextareaWidget:dx,SelectWidget:fx,CheckboxWidget:vx,RadioWidget:mx,UpDownWidget:gx,FileWidget:hx,tel:xv,email:wv,url:Ev,password:$v,date:px,"datetime-local":Ov,TelWidget:xv,EmailWidget:wv,URLWidget:Ev,PasswordWidget:$v,DateWidget:px,DateTimeWidget:Ov},yx={color:ix,file:lx,range:sx,rating:cx,...bx};class RV{constructor(t){wn(this,"handlers");this.handlers=t}async handleBeforeSubmit(t){return this.handlers.beforeSubmit?await this.handlers.beforeSubmit(t):t}async handleAfterSubmit(t){this.handlers.afterSubmit&&await this.handlers.afterSubmit(t)}async handleBeforeValidation(t){return this.handlers.beforeValidation?await this.handlers.beforeValidation(t):t}async handleAfterValidation(t,n){this.handlers.afterValidation&&await this.handlers.afterValidation(t,n)}}class Cx{constructor(t,n={},r=[]){wn(this,"formHandlers");wn(this,"fieldHandlers");wn(this,"webhooks");wn(this,"debounceTimers",new Map);wn(this,"webhookQueue",[]);wn(this,"isProcessingQueue",!1);this.formHandlers=t,this.fieldHandlers=n,this.webhooks=r}async handleBeforeSubmit(t){return this.formHandlers.beforeSubmit?await this.formHandlers.beforeSubmit(t):t}async handleAfterSubmit(t){this.formHandlers.afterSubmit&&await this.formHandlers.afterSubmit(t)}async handleBeforeValidation(t){return this.formHandlers.beforeValidation?await this.formHandlers.beforeValidation(t):t}async handleAfterValidation(t,n){this.formHandlers.afterValidation&&await this.formHandlers.afterValidation(t,n)}async handleFieldEvent(t,n,r,o,a,i){const l={eventType:t,fieldId:n,fieldValue:r,schema:o,formData:a,timestamp:Date.now(),fieldPath:i};try{switch(t){case"focus":this.fieldHandlers.onFieldFocus&&await this.fieldHandlers.onFieldFocus(l);break;case"blur":this.fieldHandlers.onFieldBlur&&await this.fieldHandlers.onFieldBlur(l);break;case"change":this.fieldHandlers.onFieldChange&&await this.fieldHandlers.onFieldChange(l);break}}catch(s){console.error(`Error in field event handler (${t}):`,s)}this.processWebhooks(l)}processWebhooks(t){const n=this.webhooks.filter(r=>!r.events||r.events.includes(t.eventType));for(const r of n)r.debounceMs&&r.debounceMs>0?this.debounceWebhook(r,t):this.queueWebhook(r,t)}debounceWebhook(t,n){const r=`${t.url}-${n.fieldId}-${n.eventType}`;this.debounceTimers.has(r)&&clearTimeout(this.debounceTimers.get(r));const o=setTimeout(()=>{this.queueWebhook(t,n),this.debounceTimers.delete(r)},t.debounceMs);this.debounceTimers.set(r,o)}queueWebhook(t,n){this.webhookQueue.push({config:t,event:n,retryCount:0}),this.isProcessingQueue||this.processWebhookQueue()}async processWebhookQueue(){if(!(this.isProcessingQueue||this.webhookQueue.length===0)){for(this.isProcessingQueue=!0;this.webhookQueue.length>0;){const t=this.webhookQueue.shift();try{await this.callWebhook(t.config,t.event)}catch(n){const r=t.config.retries||3;t.retryCount<r?(t.retryCount++,setTimeout(()=>{this.webhookQueue.push(t)},Math.pow(2,t.retryCount)*1e3)):console.error(`Webhook failed after ${r} retries:`,n)}}this.isProcessingQueue=!1}}async callWebhook(t,n){const r={event:n,timestamp:Date.now(),source:"extended-dynamic-forms"},o={method:t.method||"POST",headers:{"Content-Type":"application/json",...t.headers},body:JSON.stringify(r)};t.timeout&&(o.signal=AbortSignal.timeout(t.timeout));const a=await fetch(t.url,o);if(!a.ok)throw new Error(`Webhook request failed: ${a.status} ${a.statusText}`)}createFieldEventHandlers(t,n,r,o){return{onFocus:a=>this.handleFieldEvent("focus",t,a,n,r,o),onBlur:a=>this.handleFieldEvent("blur",t,a,n,r,o),onChange:a=>this.handleFieldEvent("change",t,a,n,r,o)}}cleanup(){for(const t of this.debounceTimers.values())clearTimeout(t);this.debounceTimers.clear()}}const Sx=(e,t)=>{const n=t.split(".");let r=e;for(const o of n){if(!r)return;const a=o.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\[(\d+)\]$/);if(a){const[,i]=a;if(r[i]&&r[i].items&&r[i].items.properties)r=r[i].items.properties;else return}else{if(r[o]===void 0)return;r=r[o]}}return r},xx=(e,t)=>{const n={...e};for(const r in t)t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?n[r]=xx(n[r]||{},t[r]):Array.isArray(t[r])&&Array.isArray(n[r])?n[r]=[...n[r],...t[r]]:n[r]=t[r];return n},Iv=(e,t,n,r)=>{const{field:o}=e;(Array.isArray(o)?o:[o]).forEach(i=>{const l=i.match(/^(.+\.)?([a-zA-Z_$][a-zA-Z0-9_$]*)\[(\d+)\]\.([a-zA-Z_$][a-zA-Z0-9_$]*)$/);if(l){const[,s,u,d,f]=l,v=parseInt(d,10);let g=n;if(s){const h=s.slice(0,-1).split(".");for(const b of h)g[b]||(g[b]={}),g=g[b]}if(g[u]||(g[u]={}),g[u].items||(g[u].items={}),Array.isArray(g[u].items)){const h=g[u].items[0]||{};for(;g[u].items.length<=v;)g[u].items.push({...h})}else{const h=g[u].items;g[u].items=[];for(let b=0;b<=v;b++)g[u].items[b]={...h}}g[u].items[v][f]={"ui:widget":"hidden"}}else if(i.includes(".")){const s=i.split("."),u=s[s.length-1],d=s.slice(0,-1);s.some(h=>h.includes("[")&&h.includes("]"))&&(console.log(`[ConditionalActions] Warning: Attempting to remove field with array index: ${i}`),console.log("This could affect all array items. Consider using uiSchema hiding instead."));let v="properties";for(const h of d){const b=h.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\[(\d+)\]$/);if(b){const[,m]=b;v+=`.${m}.items.properties`}else v+=`.${h}.properties`}const g=Sx(t,v);g&&g[u]&&(console.log(`[ConditionalActions] Removing ${u} from schema at ${v}`),delete g[u])}else t.properties&&delete t.properties[i];!i.includes("[")&&t.required&&t.required.includes(i)&&(t.required=t.required.filter(s=>s!==i)),!i.includes("[")&&n[i]&&delete n[i]})},Nv=(e,t,n,r)=>{const{field:o}=e;(Array.isArray(o)?o:[o]).forEach(i=>{const l=i.split(".");if(l.length===1)t.required||(t.required=[]),t.required.includes(i)||t.required.push(i);else{let s=t;const u=l.pop();for(const d of l)if(s.properties&&s.properties[d])s=s.properties[d];else{console.warn(`Cannot find property path: ${l.join(".")} in schema`);return}s.required||(s.required=[]),s.required.includes(u)||s.required.push(u)}})},wx=(e,t,n,r)=>{Object.keys(e).forEach(o=>{o==="ui:order"&&Array.isArray(e[o])?n["ui:order"]?n["ui:order"]=[...n["ui:order"],...e[o]]:n["ui:order"]=[...e[o]]:n[o]&&typeof n[o]=="object"&&!Array.isArray(n[o])?n[o]=xx(n[o],e[o]):typeof e[o]=="string"&&typeof n[o]=="string"?n[o]=`${n[o]} ${e[o]}`:n[o]=e[o]})},Ex=(e,t,n,r)=>{Object.keys(e).forEach(o=>{n[o]=e[o]})},$x=(e,t,n,r)=>{Object.keys(n).forEach(o=>{delete n[o]}),Object.keys(e).forEach(o=>{n[o]=e[o]})};Iv.validate=function({field:e},t,n){(Array.isArray(e)?e:[e]).forEach(o=>{if(!(o.includes("STEP_")&&!t.properties)&&!(o.includes("[")&&o.includes("]")&&o.includes(".")))if(o.includes(".")){const a=o.split(".");if(a[0].startsWith("STEP_")&&t.properties&&!t.properties[a[0]])return;const i=`properties.${a.slice(0,-1).join(".properties.")}`,l=Sx(t,i);(!l||!l.properties||!l.properties[a[a.length-1]])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "remove"`)}else(!t.properties||!t.properties[o])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "remove"`)})},Nv.validate=function({field:e},t,n){(Array.isArray(e)?e:[e]).forEach(o=>{if(!(o.includes("STEP_")&&!t.properties))if(o.includes(".")){const a=o.split(".");if(a[0].startsWith("STEP_")&&t.properties&&!t.properties[a[0]])return;let i=t;for(const l of a)if(i.properties&&i.properties[l])i=i.properties[l];else{typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "require"`);return}}else(!t.properties||!t.properties[o])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "require"`)})};const Pv=(e,t,n,r)=>{const{field:o}=e;(Array.isArray(o)?o:[o]).forEach(i=>{n[i]&&(delete n[i]["ui:disabled"],Object.keys(n[i]).length===0&&delete n[i])})},_v=(e,t,n,r)=>{const{field:o}=e;(Array.isArray(o)?o:[o]).forEach(i=>{n[i]||(n[i]={}),n[i]["ui:disabled"]=!0})},Mv=(e,t,n,r)=>{const{field:o}=e;(Array.isArray(o)?o:[o]).forEach(i=>{const l=i.split(".");if(l.length===1)t.required&&Array.isArray(t.required)&&(t.required=t.required.filter(s=>s!==i),t.required.length===0&&delete t.required);else{let s=t;const u=l.pop();for(const d of l)if(s.properties&&s.properties[d])s=s.properties[d];else{console.warn(`Cannot find property path: ${l.join(".")} in schema`);return}s.required&&Array.isArray(s.required)&&(s.required=s.required.filter(d=>d!==u),s.required.length===0&&delete s.required)}})},Ox=(e,t,n,r)=>{const{field:o,fieldSchema:a}=e,i=Array.isArray(o)?o:[o];if(!a){console.warn("Show action requires fieldSchema parameter to restore fields");return}i.forEach((l,s)=>{const u=Array.isArray(a)?a[s]:a;if(l.includes(".")){const d=l.split(".");let f=t;for(let v=0;v<d.length-1;v++)f.properties||(f.properties={}),f.properties[d[v]]||(f.properties[d[v]]={type:"object",properties:{}}),f=f.properties[d[v]];f.properties||(f.properties={}),f.properties[d[d.length-1]]=u}else t.properties||(t.properties={}),t.properties[l]=u})};Pv.validate=function({field:e},t,n){(Array.isArray(e)?e:[e]).forEach(o=>{o.includes("STEP_")&&(!t.properties||t.properties&&!t.properties[o.split(".")[0]])||(!t.properties||!t.properties[o])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "enable"`)})},_v.validate=function({field:e},t,n){(Array.isArray(e)?e:[e]).forEach(o=>{o.includes("STEP_")&&(!t.properties||t.properties&&!t.properties[o.split(".")[0]])||(!t.properties||!t.properties[o])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "disable"`)})},Mv.validate=function({field:e},t,n){(Array.isArray(e)?e:[e]).forEach(o=>{o.includes("STEP_")&&(!t.properties||t.properties&&!t.properties[o.split(".")[0]])||(!t.properties||!t.properties[o])&&typeof window<"u"&&process.env.NODE_ENV==="development"&&!o.includes("STEP_")&&console.warn(`Field "${o}" is missing from schema on "optional"`)})};const Tv={remove:Iv,require:Nv,uiAppend:wx,uiOverride:Ex,uiReplace:$x,enable:Pv,disable:_v,optional:Mv,show:Ox};class Fi{constructor(t,n,r={},o={}){wn(this,"rules");wn(this,"actions");wn(this,"originalSchema");wn(this,"originalUiSchema");this.actions={...Tv,...o},this.originalSchema=JSON.parse(JSON.stringify(n)),this.originalUiSchema=JSON.parse(JSON.stringify(r)),this.rules=[...t].sort((a,i)=>{const l=a.priority||999,s=i.priority||999,u=a.order||999,d=i.order||999;return u!==d?u-d:l-s}),console.log("[SimpleConditionalEngine] Initialized with rules:",JSON.stringify(this.rules,null,2))}getNestedValue(t,n){if(!t||typeof t!="object")return;const r=n.split(".");let o=t;for(const a of r){if(o==null)return;const i=a.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\[(\d+)\]$/);if(i){const[,l,s]=i,u=parseInt(s,10);if(o=o[l],!Array.isArray(o))return;o=o[u]}else o=o[a]}return o}evaluateCondition(t,n){if(typeof t=="boolean")return t;if(typeof t=="object"&&t!==null){if(t.and)return Array.isArray(t.and)?t.and.every(r=>this.evaluateCondition(r,n)):this.evaluateCondition(t.and,n);if(t.or)return Array.isArray(t.or)?t.or.some(r=>this.evaluateCondition(r,n)):this.evaluateCondition(t.or,n);if(t.not!==void 0)return!this.evaluateCondition(t.not,n);for(const[r,o]of Object.entries(t)){if(["and","or","not"].includes(r))continue;const a=this.getNestedValue(n,r),i=this.evaluateFieldCondition(a,o);if(console.log(`[SimpleConditionalEngine] Evaluating ${r}: ${JSON.stringify(a)} against ${JSON.stringify(o)} = ${i}`),!i)return!1}return!0}return!1}evaluateFieldCondition(t,n){if(typeof n=="object"&&n!==null){if(n.is!==void 0)return t===n.is;if(n.not!==void 0)return t!==n.not;if(n.greater!==void 0)return typeof t=="number"&&t>n.greater;if(n.less!==void 0)return typeof t=="number"&&t<n.less;if(n.greaterEq!==void 0)return typeof t=="number"&&t>=n.greaterEq;if(n.lessEq!==void 0)return typeof t=="number"&&t<=n.lessEq;if(n.in!==void 0)return Array.isArray(n.in)&&n.in.includes(t);if(n.notIn!==void 0)return Array.isArray(n.notIn)&&!n.notIn.includes(t);if(n.contains!==void 0)return typeof t=="string"&&t.includes(n.contains)}return t===n}addRule(t){this.rules.push(t),this.rules.sort((n,r)=>{const o=n.priority||999,a=r.priority||999;return o-a})}async run(t){const n=[];console.log("[SimpleConditionalEngine] Running rules with formData:",JSON.stringify(t,null,2));for(const r of this.rules)try{const o=this.evaluateCondition(r.conditions,t);console.log(`[SimpleConditionalEngine] Rule condition result: ${o} for rule:`,r),o&&n.push(r.event)}catch(o){console.error("[SimpleConditionalEngine] Error evaluating rule:",o,r)}return console.log("[SimpleConditionalEngine] Events returned:",n),n}processEvents(t,n,r,o){const a=JSON.parse(JSON.stringify(n)),i=JSON.parse(JSON.stringify(r||{}));return t.forEach(l=>{const s=this.actions[l.type];if(s){typeof window<"u"&&s.validate&&s.validate(l.params||{},a,i);try{s(l.params||{},a,i,o)}catch(u){console.error(`[SimpleConditionalEngine] Error executing action "${l.type}":`,u)}}else console.warn(`[SimpleConditionalEngine] Unknown conditional action: ${l.type}`)}),{schema:a,uiSchema:i}}async processFormData(t){try{const n=await this.run(t),{schema:r,uiSchema:o}=this.processEvents(n,this.originalSchema,this.originalUiSchema,t);return{schema:r,uiSchema:o,formData:t}}catch(n){return console.error("[SimpleConditionalEngine] Error processing form data with conditionals:",n),{schema:this.originalSchema,uiSchema:this.originalUiSchema,formData:t}}}async runAndProcess(t,n,r){const o=await this.run(t),{schema:a,uiSchema:i}=this.processEvents(o,n,r,t);return{schema:a,uiSchema:i,events:o}}getAvailableActions(){return Object.keys(this.actions)}addAction(t,n){this.actions[t]=n}removeAction(t){if(t in Tv){console.warn(`Cannot remove default action: ${t}`);return}delete this.actions[t]}}class cc{constructor(t,n,r={},o={}){wn(this,"originalRules");wn(this,"engine");wn(this,"expandedRules",[]);this.originalRules=t,this.engine=new Fi([],n,r,o)}expandArrayPatterns(t,n){const r=[];for(const o of t)if(this.hasArrayPatterns(o)){const a=this.expandSingleRule(o,n);r.push(...a)}else r.push(o);return r}hasArrayPatterns(t){return!!(JSON.stringify(t.conditions).includes("[*]")||JSON.stringify(t.event).includes("[*]"))}expandSingleRule(t,n){const r=[],o=this.findArrayPatterns(t);if(o.length===0)return[t];const a=new Map;for(const l of o){const s=l.replace("[*]",""),u=this.getNestedValue(n,s),d=Array.isArray(u)?u.length:0;a.set(l,d)}const i=Math.max(...Array.from(a.values()),0);for(let l=0;l<i;l++){const s=this.expandRuleForIndex(t,l);r.push(s)}return r}findArrayPatterns(t){const n=new Set,o=JSON.stringify(t).match(/[a-zA-Z_$][a-zA-Z0-9_$.]*\[\*\]/g);return o&&o.forEach(a=>n.add(a)),Array.from(n)}expandRuleForIndex(t,n){const r=JSON.parse(JSON.stringify(t)),a=JSON.stringify(r).replace(/\[\*\]/g,`[${n}]`);return JSON.parse(a)}getNestedValue(t,n){if(!t||typeof t!="object")return;const r=n.split(".");let o=t;for(const a of r){if(o==null)return;const i=a.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\[(\d+)\]$/);if(i){const[,l,s]=i,u=parseInt(s,10);if(o=o[l],!Array.isArray(o))return;o=o[u]}else o=o[a]}return o}preprocessUiSchemaForArrays(t,n){const r=JSON.parse(JSON.stringify(t)),o=new Set;for(const a of this.originalRules)this.findArrayPatterns(a).forEach(l=>o.add(l));for(const a of o){const i=a.replace("[*]",""),l=i.split(".");let s=r;for(const d of l)s[d]||(s[d]={}),s=s[d];const u=this.getNestedValue(n,i);if(Array.isArray(u)&&u.length>0&&s.items&&!Array.isArray(s.items)){const d=s.items;s.items=[];for(let f=0;f<u.length;f++)s.items[f]=JSON.parse(JSON.stringify(d))}}return r}async processFormData(t){try{this.expandedRules=this.expandArrayPatterns(this.originalRules,t);const n=this.preprocessUiSchemaForArrays(this.engine.originalUiSchema,t);return await new Fi(this.expandedRules,this.engine.originalSchema,n,this.engine.actions).processFormData(t)}catch(n){return console.error("[DynamicArrayConditionalEngine] Error processing form data:",n),{schema:this.engine.originalSchema,uiSchema:this.preprocessUiSchemaForArrays(this.engine.originalUiSchema,t),formData:t}}}getOriginalRules(){return this.originalRules}getCurrentRules(){return this.expandedRules}setRules(t){this.originalRules=t,this.expandedRules=[]}addRule(t){this.originalRules.push(t)}async run(t){return this.expandedRules=this.expandArrayPatterns(this.originalRules,t),await new Fi(this.expandedRules,this.engine.originalSchema,this.engine.originalUiSchema,this.engine.actions).run(t)}addAction(t,n){this.engine.actions=this.engine.actions||{},this.engine.actions[t]=n}removeAction(t){this.engine.actions&&delete this.engine.actions[t]}getAvailableActions(){return Object.keys(this.engine.actions||{})}}const FV={equal:"is",notEqual:"not",lessThan:"less",lessThanInclusive:"lessEq",greaterThan:"greater",greaterThanInclusive:"greaterEq",in:"in",notIn:"notIn",contains:"contains",doesNotContain:"doesNotContain"};function Ho(e){if(e.any)return{or:e.any.map(Ho)};if(e.all){if(e.all.length===1)return Ho(e.all[0]);const l={};return e.all.forEach(s=>{Object.assign(l,Ho(s))}),l}const{fact:t,operator:n,value:r,path:o}=e,a=o?`${t}.${o}`:t,i=FV[n]||n;return i==="is"||n==="equal"?{[a]:r}:i==="not"&&typeof r!="object"?{[a]:{not:r}}:{[a]:{[i]:r}}}function Ix(e){if(!e||!e.all&&!e.any&&!e.not)return{};if(e.all&&e.all.length>0){const t=[],n={};for(const r of e.all){const o=Ho(r);o.or||Object.keys(o).some(a=>typeof o[a]=="object"&&(o[a].or||o[a].and))?t.push(o):Object.assign(n,o)}if(Object.keys(n).length>0){if(t.length===0)return n;t.unshift(n)}return t.length>1?{and:t}:t.length===1?t[0]:{}}if(e.any&&e.any.length>0)return{or:e.any.map(Ho)};if(e.not){if(e.not.all)return{not:{and:e.not.all.map(Ho)}};if(e.not.any)return{not:{or:e.not.any.map(Ho)}}}return{}}function AV(e){const t=new Map,n=new Map,r=[],o=[];e.forEach(l=>{var s,u;if(l.event.type==="show"&&((s=l.event.params)!=null&&s.field)){const d=Array.isArray(l.event.params.field)?l.event.params.field.sort().join(","):l.event.params.field;t.set(d,l)}else if(l.event.type==="hide"&&((u=l.event.params)!=null&&u.field)){const d=Array.isArray(l.event.params.field)?l.event.params.field.sort().join(","):l.event.params.field;n.set(d,l)}else r.push(l)});const a=new Set;t.forEach((l,s)=>{const u=n.get(s);u&&!a.has(s)&&(o.push({show:l,hide:u}),a.add(s))});const i=[...r];return t.forEach((l,s)=>{a.has(s)||i.push(l)}),n.forEach((l,s)=>{a.has(s)||i.push(l)}),{pairs:o,singles:i}}function jV(e){const{show:t,hide:n}=e,r=Ix(t.conditions);return{conditions:uc(r),event:{type:"remove",params:t.event.params||n.event.params},priority:t.priority||n.priority,order:t.order||n.order}}function uc(e){let t={};for(const[n,r]of Object.entries(e))n==="and"||n==="or"?t[n]=Array.isArray(r)?r.map(uc):uc(r):n==="not"?t={...t,...r}:typeof r=="object"&&r!==null?r.not!==void 0?t[n]=r.not:r.is!==void 0?t[n]={not:r.is}:t[n]={not:r}:t[n]={not:r};return t}function zV(e){let t=e.type;return e.type==="show"||e.type==="hide"?t="remove":e.type==="required"?t="require":e.type==="optional"&&(t="optional"),{type:t,params:e.params||{}}}function BV(e){let t=Ix(e.conditions),n=zV(e.event);e.event.type==="show"&&(t=uc(t),n={type:"remove",params:e.event.params||{}});const r={conditions:t,event:n};return e.priority!==void 0&&(r.priority=e.priority),e.order!==void 0&&(r.order=e.order),r}function VV(e){return!e.conditions||typeof e.conditions!="object"?!1:!(e.conditions.all||e.conditions.any||e.conditions.not)}function dc(e){const t=[],n=[];e.forEach(i=>{VV(i)?n.push(i):t.push(i)});const{pairs:r,singles:o}=AV(t),a=[...n];return r.forEach(i=>{a.push(jV(i))}),o.forEach(i=>{a.push(BV(i))}),a.sort((i,l)=>{const s=i.priority||999,u=l.priority||999;return s-u}),console.log("Smart transformed rules:",JSON.stringify(a,null,2)),a}var Nx={},Dv={},sr={},Px={exports:{}};(function(e){const t=e.exports,n=Array.prototype.slice,r=function(a,i){return a.toString=()=>i.toString(),a.src=i,a},o=t.curry=function(a){return r(function(l,s){switch(arguments.length){case 0:throw new TypeError("Function called with no arguments");case 1:return r(function(u){return a(l,u)},a)}return a(l,s)},a)};t.partial=function(a){const i=n.call(arguments,1);return function(){return a.apply(null,i.concat(n.call(arguments)))}},t.complement=t.invert=function(a){return function(){const i=a.apply(null,arguments);return typeof i=="function"?t.complement(i):!i}},t.mod=o(function(a,i){return a%i}),t.assign=o(Object.assign||function(a,i){for(let l in i)i.hasOwnProperty(l)&&(a[l]=i[l]);return a})})(Px);var Rv=Px.exports,_x={exports:{}};(function(e){const t=Rv,n=e.exports,r=t.curry;Object.is?n.is=r(Object.is):n.is=r(function(s,u){return s===0&&u===0?1/s===1/u:s!==s?u!==u:s===u}),n.exists=function(s){return s!=null},n.truthy=function(s){return!!(s&&n.exists(s))},n.falsey=t.complement(n.truthy),n.equal=r(function(s,u){return s===u}),n.eq=r(function(s,u){return s==u}),n.null=n.equal(null),n.undef=n.equal(void 0),n.lt=n.less=r(function(s,u){return s<u}),n.ltEq=n.le=n.lessEq=r(function(s,u){return n.equal(s,u)||n.less(s,u)}),n.gt=n.greater=r(function(s,u){return s>u}),n.gtEq=n.ge=n.greaterEq=r(function(s,u){return n.equal(s,u)||n.greater(s,u)});const o=Object.prototype.toString,a=r(function(s,u){return n.equal(s,o.call(u))});n.object=n.obj=function(s){return s===Object(s)},n.array=n.arr=Array.isArray||a("[object Array]"),n.date=a("[object Date]"),n.regex=n.regexp=n.rgx=n.RegExp=a("[object RegExp]"),n.finite=Number.isFinite||function(s){return n.number(s)&&isFinite(s)},n.nan=n.NaN=n.is(NaN),n.instance=r(function(s,u){return u instanceof s}),n.arguments=a("[object Arguments]"),n.error=n.instance(Error);const i=r(function(s,u){return n.equal(s,typeof u)});[["function","fn"],["string","str"],["boolean","bool"]].reduce(function(s,u){return s[u[0]]=s[u[1]]=i(u[0]),s},n),n.number=n.num=function(s){return typeof s=="number"&&n.not.NaN(s)},n.int=function(s){return n.num(s)&&n.zero(t.mod(s,1))},n.pos=function(s){return n.num(s)&&n.greater(s,0)},n.neg=function(s){return n.num(s)&&n.less(s,0)},n.zero=function(s){return n.num(s)&&n.equal(s,0)},n.even=function(s){return n.num(s)&&n.not.zero(s)&&n.zero(t.mod(s,2))},n.odd=function(s){return n.num(s)&&n.not.zero(s)&&n.not.zero(t.mod(s,2))},n.contains=n.includes=r(function(s,u){if(!n.array(s)&&!n.string(s))throw new TypeError("Expected an array or string");return n.string(s)&&!n.string(u)?!1:n.NaN(u)?s.some(n.NaN):!!~s.indexOf(u)});const l=Object.prototype.hasOwnProperty;n.has=r(function(s,u){return l.call(s,u)}),n.empty=function(s){if(n.not.exists(s))return!0;if(n.arr(s)||n.str(s))return!s.length;if(n.obj(s)){for(let u in s)if(n.has(s,u))return!1;return!0}throw new TypeError},n.primitive=function(s){return n.string(s)||n.num(s)||n.bool(s)||n.null(s)||n.undef(s)||n.NaN(s)},n.matches=r(function(s,u){return s.test(u)}),n.not=Object.keys(n).reduce(function(s,u){return s[u]=t.complement(n[u]),s},{})})(_x);var Fv=_x.exports,Mx={exports:{}};(function(e){const t=Fv,n=e.exports;class r{constructor(){this.lazy=[]}valueOf(){return this.val()}val(){return this.lazy[this.method](function(l){return l[0].apply(null,l[1])})}}class o extends r{constructor(){super(),this.method="every"}}class a extends r{constructor(){super(),this.method="some"}}[o,a].forEach(function(i){Object.keys(t).reduce(function(l,s){return t.fn(t[s])&&(l[s]=function(){return this.lazy.push([t[s],arguments]),this}),l},i.prototype)}),n.all=n.every=function(){return new o},n.any=n.some=function(){return new a}})(Mx);var LV=Mx.exports,Tx={exports:{}};(function(e){const t=Fv,n=Rv,r=e.exports;r.ternary=function(i,l,s){return t.bool(i)?i?l:s:t.undef(l)?n.partial(r.ternary,i):t.undef(s)?n.partial(r.ternary,i,l):r.ternary(i(l,s),l,s)};const o=Array.prototype.every,a=Array.prototype.some;r.and=function(){const i=arguments;return function(s){return o.call(i,function(u){return u(s)})}},r.or=function(){const i=arguments;return function(s){return a.call(i,function(u){return u(s)})}}})(Tx);var HV=Tx.exports;const Dx=Rv,Av={};Av.VERSION="1.0.0",[Dx,Fv,LV,HV].reduce(Dx.assign,Av);var Rx=Av,zn={},jv,Fx;function kV(){return Fx||(Fx=1,jv=function(e){var t=this,n;if(arguments.length<2)n=function(){if(this instanceof n){var a=t.apply(this,arguments);return Object(a)===a?a:this}else return t.apply(e,arguments)};else{for(var r=new Array(arguments.length-1),o=1;o<arguments.length;o++)r[o-1]=arguments[o];n=function(){var a=r.length,i=new Array(a+arguments.length),l;for(l=0;l<a;l++)i[l]=r[l];for(l=0;l<arguments.length;l++)i[a+l]=arguments[l];if(this instanceof n){var s=t.apply(this,i);return Object(s)===s?s:this}else return t.apply(e,i)}}return n.prototype=t.prototype,n}),jv}/*!
|
|
332
|
-
* imports.
|
|
333
|
-
*/var WV=Function.prototype.bind||kV();/*!
|
|
334
|
-
* exports.
|
|
335
|
-
*/var qV=UV;function UV(e,t){var n=function(){return arguments.length===0?n:arguments.length>1?e.apply(t,arguments):WV.call(e,t,arguments[0])};return n.uncurry=function(){return e},n}var zv={exports:{}},Bv={exports:{}},Ai=1e3,ji=Ai*60,zi=ji*60,Bi=zi*24,GV=Bi*365.25,KV=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return YV(e);if(n==="number"&&isNaN(e)===!1)return t.long?QV(e):XV(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function YV(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*GV;case"days":case"day":case"d":return n*Bi;case"hours":case"hour":case"hrs":case"hr":case"h":return n*zi;case"minutes":case"minute":case"mins":case"min":case"m":return n*ji;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ai;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function XV(e){return e>=Bi?Math.round(e/Bi)+"d":e>=zi?Math.round(e/zi)+"h":e>=ji?Math.round(e/ji)+"m":e>=Ai?Math.round(e/Ai)+"s":e+"ms"}function QV(e){return fc(e,Bi,"day")||fc(e,zi,"hour")||fc(e,ji,"minute")||fc(e,Ai,"second")||e+" ms"}function fc(e,t,n){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}(function(e,t){t=e.exports=o.debug=o.default=o,t.coerce=s,t.disable=i,t.enable=a,t.enabled=l,t.humanize=KV,t.names=[],t.skips=[],t.formatters={};var n;function r(u){var d=0,f;for(f in u)d=(d<<5)-d+u.charCodeAt(f),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function o(u){function d(){if(d.enabled){var f=d,v=+new Date,g=v-(n||v);f.diff=g,f.prev=n,f.curr=v,n=v;for(var h=new Array(arguments.length),b=0;b<h.length;b++)h[b]=arguments[b];h[0]=t.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");var m=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,function(y,C){if(y==="%%")return y;m++;var S=t.formatters[C];if(typeof S=="function"){var x=h[m];y=S.call(f,x),h.splice(m,1),m--}return y}),t.formatArgs.call(f,h);var p=d.log||t.log||console.log.bind(console);p.apply(f,h)}}return d.namespace=u,d.enabled=t.enabled(u),d.useColors=t.useColors(),d.color=r(u),typeof t.init=="function"&&t.init(d),d}function a(u){t.save(u),t.names=[],t.skips=[];for(var d=(typeof u=="string"?u:"").split(/[\s,]+/),f=d.length,v=0;v<f;v++)d[v]&&(u=d[v].replace(/\*/g,".*?"),u[0]==="-"?t.skips.push(new RegExp("^"+u.substr(1)+"$")):t.names.push(new RegExp("^"+u+"$")))}function i(){t.enable("")}function l(u){var d,f;for(d=0,f=t.skips.length;d<f;d++)if(t.skips[d].test(u))return!1;for(d=0,f=t.names.length;d<f;d++)if(t.names[d].test(u))return!0;return!1}function s(u){return u instanceof Error?u.stack||u.message:u}})(Bv,Bv.exports);var JV=Bv.exports;(function(e,t){t=e.exports=JV,t.log=o,t.formatArgs=r,t.save=a,t.load=i,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}};function r(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+t.humanize(this.diff),!!u){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var f=0,v=0;s[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(f++,g==="%c"&&(v=f))}),s.splice(v,0,d)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(s){try{s==null?t.storage.removeItem("debug"):t.storage.debug=s}catch{}}function i(){var s;try{s=t.storage.debug}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}t.enable(i());function l(){try{return window.localStorage}catch{}}})(zv,zv.exports);var ZV=zv.exports;/*!
|
|
336
|
-
* exports.
|
|
337
|
-
*/var eL=rL;/*!
|
|
338
|
-
* regexp patterns.
|
|
339
|
-
*/var tL=/\[([^\[\]]+)\]/g,nL=/^[.]*|[.]*$/g;function rL(e){return{}.toString.call(e)=="[object String]"?e.replace(tL,".$1").replace(nL,""):""}var oL=Object.prototype.toString;function aL(e){for(var t=-1,n=lL(iL(e).split(".")),r=n.length,o=[];++t<r;)o.push(sL(n[t]));return o}function iL(e){return(oL.call(e)==="[object String]"?e:"").replace(/\\\./g,"")}function lL(e){for(var t=-1,n=e.length,r=[];++t<n;)e[t]&&r.push(e[t]);return r}function sL(e){return e.replace(/\uffff/g,".")}/*!
|
|
340
|
-
* exports.
|
|
341
|
-
*/var cL=aL,uL=qV,Ax=ZV("selectn"),dL=eL,fL=cL,vL=Object.prototype.toString,mL=uL(gL);function gL(e,t){Ax("arguments:",{path:e,object:t});for(var n=-1,r=vL.call(e)==="[object Array]"?e:fL(dL(e)),o=r.length,a=o?t:void 0;++n<o;){if(Object(a)!==a)return;a=a[r[n]]}return Ax("ref:",a),typeof a=="function"?a():a}Object.defineProperty(zn,"__esModule",{value:!0}),zn.flatMap=void 0;var pL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};zn.normRef=jx,zn.selectRef=CL,zn.isObject=SL,zn.isDevelopment=zx,zn.toArray=xL,zn.toError=vc,zn.isRefArray=Bx,zn.extractRefSchema=wL;var hL=mL,bL=yL(hL);function yL(e){return e&&e.__esModule?e:{default:e}}function jx(e){return e.replace(/\$/g,".")}function CL(e,t){var n=jx(e);return(0,bL.default)(n,t)}function SL(e){return(typeof e>"u"?"undefined":pL(e))==="object"&&e!==null}function zx(){return process.env.NODE_ENV!=="production"}function xL(e){return Array.isArray(e)?e:[e]}function vc(e){if(zx())throw new ReferenceError(e);console.error(e)}function Bx(e,t){return t.properties[e]&&t.properties[e].type==="array"&&t.properties[e].items&&t.properties[e].items.$ref}function Vx(e,t){if(e.startsWith("#/"))return e.substr(2).split("/").reduce(function(n,r){return n[r]},t);vc("Only local references supported at this point use json-schema-deref")}function wL(e,t){var n=t.properties;if(!n||!n[e]){vc(e+" not defined in properties");return}else{if(n[e].type==="array")return Bx(e,t)?Vx(n[e].items.$ref,t):n[e].items;if(n[e]&&n[e].$ref)return Vx(n[e].$ref,t);if(n[e]&&n[e].type==="object")return n[e];vc(e+" has no $ref field ref schema extraction is impossible");return}}var EL=function(t,n){return t.concat(n)};zn.flatMap=function(t,n){return t.map(n).reduce(EL,[])};var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.OR="or",ko.AND="and",ko.NOT="not",Object.defineProperty(sr,"__esModule",{value:!0}),sr.predicatesFromRule=Vi,sr.predicatesFromCondition=Ma,sr.listAllPredicates=Lx,sr.listInvalidPredicates=Hx,sr.validatePredicates=_L,sr.fieldsFromPredicates=mc,sr.fieldsFromCondition=gc,sr.listAllFields=kx,sr.listInvalidFields=Wx,sr.validateConditionFields=ML;var $L=Rx,OL=IL($L),sn=zn,Lr=ko;function IL(e){return e&&e.__esModule?e:{default:e}}function NL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PL=["and","or","ternary","every","some","curry","partial","complement","mod"];function Vi(e,t){return(0,sn.isObject)(e)?(0,sn.flatMap)(Object.keys(e),function(n){var r=e[n];if((0,sn.isObject)(r)||n===Lr.NOT){if(n===Lr.OR||n===Lr.AND)return Array.isArray(r)?(0,sn.flatMap)(r,function(a){return Vi(a)}):((0,sn.toError)('"'+n+'" must be an array'),[]);var o=Vi(r);return o.push(n),o}else return Vi(n)}):[e]}function Ma(e,t){return(0,sn.flatMap)(Object.keys(e),function(n){var r=e[n];if(n=(0,sn.normRef)(n),n===Lr.OR||n===Lr.AND)return Array.isArray(r)?(0,sn.flatMap)(r,function(d){return Ma(d,t)}):((0,sn.toError)(n+" with "+JSON.stringify(r)+" must be an Array"),[]);if(n===Lr.NOT)return Ma(r,t);if(n.indexOf(".")!==-1){var o=n.indexOf("."),a=n.substr(0,o),i=(0,sn.extractRefSchema)(a,t);if(i){var l=n.substr(o+1),s=NL({},l,r);return Ma(s,i)}else return(0,sn.toError)("Can't find schema for "+a),[]}else if((0,sn.isRefArray)(n,t)){var u=(0,sn.extractRefSchema)(n,t);return u?Ma(r,u):[]}else return t.properties[n]?Vi(r):((0,sn.toError)("Can't validate "+n),[])})}function Lx(e,t){var n=(0,sn.flatMap)(e,function(r){return Ma(r,t)});return n.filter(function(r,o,a){return n.indexOf(r)===o})}function Hx(e,t){var n=Lx(e,t);return n.filter(function(r){return PL.includes(r)||OL.default[r]===void 0})}function _L(e,t){var n=Hx(e,t);n.length!==0&&(0,sn.toError)("Rule contains invalid predicates "+n)}function mc(e){return Array.isArray(e)?(0,sn.flatMap)(e,mc):(0,sn.isObject)(e)?(0,sn.flatMap)(Object.keys(e),function(t){var n=e[t];return mc(n)}):typeof e=="string"&&e.startsWith("$")?[e.substr(1)]:[]}function gc(e){return(0,sn.flatMap)(Object.keys(e),function(t){var n=e[t];return t===Lr.OR||t===Lr.AND?(0,sn.flatMap)(n,gc):t===Lr.NOT?gc(n):[(0,sn.normRef)(t)].concat(mc(n))})}function kx(e){var t=(0,sn.flatMap)(e,gc);return t.filter(function(n){return n.indexOf(".")===-1}).filter(function(n,r,o){return t.indexOf(n)===r})}function Wx(e,t){var n=kx(e);return n.filter(function(r){return t.properties[r]===void 0})}function ML(e,t){var n=Wx(e,t);n.length!==0&&(0,sn.toError)("Rule contains invalid fields "+n)}var Vv={},pc={},Lv={};Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=AL;var TL=Rx,Hv=RL(TL),DL=zn,hc=ko;function RL(e){return e&&e.__esModule?e:{default:e}}var FL=function e(t,n){return(0,DL.isObject)(n)?Object.keys(n).every(function(r){var o=n[r];return r===hc.OR||r===hc.AND?Array.isArray(o)?r===hc.OR?o.some(function(a){return e(t,a)}):o.every(function(a){return e(t,a)}):!1:r===hc.NOT?!e(t,o):Hv.default[r]?Hv.default[r](t,o):!1}):Hv.default[n](t)};function AL(e,t){return FL(e,t)}Object.defineProperty(pc,"__esModule",{value:!0}),pc.toRelCondition=Li,pc.default=Hi;var Wo=zn,jL=Lv,qx=zL(jL),kv=ko;function zL(e){return e&&e.__esModule?e:{default:e}}function Li(e,t){return Array.isArray(e)?e.map(function(n){return Li(n,t)}):(0,Wo.isObject)(e)?Object.keys(e).reduce(function(n,r){return n[r]=Li(e[r],t),n},{}):typeof e=="string"&&e.startsWith("$")?(0,Wo.selectRef)(e.substr(1),t):e}function Hi(e,t){return!(0,Wo.isObject)(e)||!(0,Wo.isObject)(t)?((0,Wo.toError)("Rule "+JSON.stringify(e)+" with "+t+" can't be processed"),!1):Object.keys(e).every(function(n){var r=e[n];if(n===kv.OR)return r.some(function(i){return Hi(i,t)});if(n===kv.AND)return r.every(function(i){return Hi(i,t)});if(n===kv.NOT)return!Hi(r,t);var o=(0,Wo.selectRef)(n,t);if(Array.isArray(o)){var a=o.some(function(i){return(0,Wo.isObject)(i)?Hi(r,i):!1});return a||(0,qx.default)(o,Li(r,t))}else return(0,qx.default)(o,Li(r,t))})}Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.default=HL;var Ux=zn,BL=pc,VL=LL(BL);function LL(e){return e&&e.__esModule?e:{default:e}}function HL(e,t){return(0,Ux.flatMap)(e,function(n){var r=n.conditions,o=n.event;return(0,VL.default)(r,t)?(0,Ux.toArray)(o):[]})}Object.defineProperty(Dv,"__esModule",{value:!0});var Gx=sr,kL=Vv,WL=qL(kL),bc=zn;function qL(e){return e&&e.__esModule?e:{default:e}}function UL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var GL=function(t){var n=t!=null;return(0,bc.isDevelopment)()&&n?((0,bc.isObject)(t)||(0,bc.toError)("Expected valid schema object, but got - "+t),function(r){(0,Gx.validatePredicates)([r.conditions],t),(0,Gx.validateConditionFields)([r.conditions],t)}):function(){}},KL=function e(t,n){var r=this;UL(this,e),this.addRule=function(o){r.validate(o),r.rules.push(o)},this.run=function(o){return Promise.resolve((0,WL.default)(r.rules,o))},this.rules=[],this.validate=GL(n),t&&(0,bc.toArray)(t).forEach(function(o){return r.addRule(o)})};Dv.default=KL,Object.defineProperty(Nx,"__esModule",{value:!0});var YL=Dv,XL=QL(YL);function QL(e){return e&&e.__esModule?e:{default:e}}var JL=Nx.default=XL.default;const Kx={cloneFormData:e=>JSON.parse(JSON.stringify(e)),mergeFormData:(e,t)=>({...e,...t}),getNestedValue:(e,t)=>{const n=t.split(".");let r=e;for(const o of n)if(r&&typeof r=="object"&&o in r)r=r[o];else return;return r},setNestedValue:(e,t,n)=>{const r=t.split("."),o={...e};let a=o;for(let i=0;i<r.length-1;i++){const l=r[i];(!(l in a)||typeof a[l]!="object")&&(a[l]={}),a=a[l]}return a[r[r.length-1]]=n,o},removeEmptyValues:e=>{if(Array.isArray(e))return e.filter(t=>t!=null&&t!=="");if(e!==null&&typeof e=="object"){const t={};for(const[n,r]of Object.entries(e))r!=null&&r!==""&&(t[n]=Kx.removeEmptyValues(r));return t}return e}},Yx={getRequiredFields:e=>e.required||[],isFieldRequired:(e,t)=>(e.required||[]).includes(t),getFieldSchema:(e,t)=>{const n=t.split(".");let r=e;for(const o of n)if(r.type==="object"&&r.properties)r=r.properties[o];else if(r.type==="array"&&r.items)r=r.items;else return;return r},mergeSchemas:(e,t)=>({...e,...t,properties:{...e.properties,...t.properties},required:[...new Set([...e.required||[],...t.required||[]])]}),getAllFieldPaths:(e,t="")=>{const n=[];if(e.type==="object"&&e.properties)for(const[r,o]of Object.entries(e.properties)){const a=t?`${t}.${r}`:r;n.push(a),n.push(...Yx.getAllFieldPaths(o,a))}return n}},ZL={isValidEmail:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),isValidPhone:e=>/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/.test(e),isValidUrl:e=>{try{return new URL(e),!0}catch{return!1}},isValidDate:e=>{const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())},isInRange:(e,t,n)=>!(t!==void 0&&e<t||n!==void 0&&e>n),getValidationMessage:(e,t)=>({required:"This field is required",email:"Please enter a valid email address",phone:"Please enter a valid phone number",url:"Please enter a valid URL",date:"Please enter a valid date",min:`Value must be at least ${t==null?void 0:t.min}`,max:`Value must be at most ${t==null?void 0:t.max}`,minLength:`Must be at least ${t==null?void 0:t.minLength} characters`,maxLength:`Must be at most ${t==null?void 0:t.maxLength} characters`})[e]||"Invalid value"};function qo(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(typeof e!="object"||typeof t!="object")return e===t;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!qo(e[o],t[o]))return!1;return!0}const eH={width:"100%"},yc={width:"calc(100% / 4)"};function tH(e){const{children:t,disabled:n,hasCopy:r,hasMoveDown:o,hasMoveUp:a,hasRemove:i,hasToolbar:l,index:s,onCopyIndexClick:u,onDropIndexClick:d,onReorderClick:f,readonly:v,registry:g,uiSchema:h}=e,{CopyButton:b,MoveDownButton:m,MoveUpButton:p,RemoveButton:y}=g.templates.ButtonTemplates,{rowGutter:C=24,toolbarAlign:S="top"}=g.formContext;return oe.jsxs(yr,{align:S,gutter:C,children:[oe.jsx(ln,{flex:"1",children:t}),l&&oe.jsx(ln,{flex:"192px",children:oe.jsxs(pn.Group,{style:eH,children:[(a||o)&&oe.jsx(p,{disabled:n||v||!a,onClick:f(s,s-1),style:yc,uiSchema:h,registry:g}),(a||o)&&oe.jsx(m,{disabled:n||v||!o,onClick:f(s,s+1),style:yc,uiSchema:h,registry:g}),r&&oe.jsx(b,{disabled:n||v,onClick:u(s),style:yc,uiSchema:h,registry:g}),i&&oe.jsx(y,{disabled:n||v,onClick:d(s),style:yc,uiSchema:h,registry:g})]})})]},`array-item-${s}`)}const nH={paddingBottom:"8px"};function rH(e){const{canAdd:t,className:n,disabled:r,formContext:o,idSchema:a,items:i,onAddClick:l,readonly:s,registry:u,required:d,schema:f,title:v,uiSchema:g}=e,h=et.getUiOptions(g),b=et.getTemplate("ArrayFieldDescriptionTemplate",u,h),m=et.getTemplate("ArrayFieldItemTemplate",u,h),p=et.getTemplate("ArrayFieldTitleTemplate",u,h),{ButtonTemplates:{AddButton:y}}=u.templates,{labelAlign:C="right",rowGutter:S=24}=o,{getPrefixCls:x}=D.useContext(mr.ConfigContext),E=`${x("form")}-item-label`,$=re(E,C==="left"&&`${E}-left`);return oe.jsx("fieldset",{className:n,id:a.$id,children:oe.jsxs(yr,{gutter:S,children:[(h.title||v)&&oe.jsx(ln,{className:$,span:24,children:oe.jsx(p,{idSchema:a,required:d,title:h.title||v,schema:f,uiSchema:g,registry:u})}),(h.description||f.description)&&oe.jsx(ln,{span:24,style:nH,children:oe.jsx(b,{description:h.description||f.description,idSchema:a,schema:f,uiSchema:g,registry:u})}),oe.jsx(ln,{className:"row array-item-list",span:24,children:i&&i.map(({key:O,...I})=>oe.jsx(m,{...I},O))}),t&&oe.jsx(ln,{span:24,children:oe.jsx(yr,{gutter:S,justify:"end",children:oe.jsx(ln,{flex:"192px",children:oe.jsx(y,{className:"array-item-add",disabled:r||s,onClick:l,uiSchema:g,registry:u})})})})]})})}const Xx={width:"100%"};function oH(e){const{disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onChangeOverride:i,onFocus:l,options:s,placeholder:u,readonly:d,schema:f,value:v,type:g}=e,h=et.getInputProps(f,g,s,!1),{readonlyAsDisabled:b=!0}=n,m=x=>a(x),p=i||(({target:x})=>a(x.value===""?s.emptyValue:x.value)),y=({target:x})=>o(r,x&&x.value),C=({target:x})=>l(r,x&&x.value),S=h.type==="number"||h.type==="integer"?oe.jsx(Af,{disabled:t||b&&d,id:r,name:r,onBlur:d?void 0:y,onChange:d?void 0:m,onFocus:d?void 0:C,placeholder:u,style:Xx,list:f.examples?et.examplesId(r):void 0,...h,value:v,"aria-describedby":et.ariaDescribedByIds(r,!!f.examples)}):oe.jsx(rn,{disabled:t||b&&d,id:r,name:r,onBlur:d?void 0:y,onChange:d?void 0:p,onFocus:d?void 0:C,placeholder:u,style:Xx,list:f.examples?et.examplesId(r):void 0,...h,value:v,"aria-describedby":et.ariaDescribedByIds(r,!!f.examples)});return oe.jsxs(oe.Fragment,{children:[S,Array.isArray(f.examples)&&oe.jsx("datalist",{id:et.examplesId(r),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(x=>oe.jsx("option",{value:x},x))})]})}function aH(e){const{id:t,description:n}=e;return n?oe.jsx("span",{id:t,children:n}):null}var Wv={exports:{}},Cc={},Qx={exports:{}},Jx={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jx);var Sc=Jx.exports;(function(e){var t=Sc.default;function n(r,o){if(typeof WeakMap=="function")var a=new WeakMap,i=new WeakMap;return(e.exports=n=function(s,u){if(!u&&s&&s.__esModule)return s;var d,f,v={__proto__:null,default:s};if(s===null||t(s)!="object"&&typeof s!="function")return v;if(d=u?i:a){if(d.has(s))return d.get(s);d.set(s,v)}for(var g in s)g!=="default"&&{}.hasOwnProperty.call(s,g)&&((f=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,g))&&(f.get||f.set)?d(v,g,f):v[g]=s[g]);return v},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Qx);var Hr=Qx.exports,Zx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zx);var xr=Zx.exports,ew={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)({}).hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ew);var Uo=ew.exports,qv={};Object.defineProperty(qv,"__esModule",{value:!0});var iH={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"};qv.default=iH;var kr={},tw={exports:{}},nw={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nw);var lH=nw.exports,rw={exports:{}};(function(e){function t(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var a,i,l,s,u=[],d=!0,f=!1;try{if(l=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;d=!1}else for(;!(d=(a=l.call(o)).done)&&(u.push(a.value),u.length!==r);d=!0);}catch(v){f=!0,i=v}finally{try{if(!d&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rw);var sH=rw.exports,ow={exports:{}},aw={exports:{}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,a=Array(r);o<r;o++)a[o]=n[o];return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aw);var cH=aw.exports;(function(e){var t=cH;function n(r,o){if(r){if(typeof r=="string")return t(r,o);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(r,o):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ow);var uH=ow.exports,iw={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
342
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(iw);var dH=iw.exports;(function(e){var t=lH,n=sH,r=uH,o=dH;function a(i,l){return t(i)||n(i,l)||r(i,l)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(tw);var lw=tw.exports,sw={exports:{}},cw={exports:{}},uw={exports:{}};(function(e){var t=Sc.default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(uw);var fH=uw.exports;(function(e){var t=Sc.default,n=fH;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(cw);var vH=cw.exports;(function(e){var t=vH;function n(r,o,a){return(o=t(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(sw);var dw=sw.exports,fw={exports:{}},vw={exports:{}};(function(e){function t(n,r){if(n==null)return{};var o={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.indexOf(a)!==-1)continue;o[a]=n[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vw);var mH=vw.exports;(function(e){var t=mH;function n(r,o){if(r==null)return{};var a,i,l=t(r,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(i=0;i<s.length;i++)a=s[i],o.indexOf(a)===-1&&{}.propertyIsEnumerable.call(r,a)&&(l[a]=r[a])}return l}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fw);var mw=fw.exports;const gw=Jw(r$);var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0;var gH=D,pH=(0,gH.createContext)({});ki.default=pH;var Wi={},pw={exports:{}};(function(e){var t=dw;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function r(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?n(Object(i),!0).forEach(function(l){t(o,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(i,l))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(pw);var Uv=pw.exports,Bn={},Ta={},Gv={};Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=hH;function hH(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.default=bH;function bH(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 Yv=xr.default;Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.clearContainerCache=$H,Ta.injectCSS=Qv,Ta.removeCSS=wH,Ta.updateCSS=OH;var hw=Yv(Uv),yH=Yv(Gv),CH=Yv(Kv),bw="data-rc-order",yw="data-rc-priority",SH="rc-util-key",xc=new Map;function Cw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):SH}function wc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function xH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xv(e){return Array.from((xc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Qv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,yH.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=xH(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(bw,i),l&&a&&s.setAttribute(yw,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=wc(t),d=u.firstChild;if(r){if(l){var f=(t.styles||Xv(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(bw)))return!1;var g=Number(v.getAttribute(yw)||0);return a>=g});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function Sw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wc(t);return(t.styles||Xv(n)).find(function(r){return r.getAttribute(Cw(t))===e})}function wH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Sw(e,t);if(n){var r=wc(t);r.removeChild(n)}}function EH(e,t){var n=xc.get(e);if(!n||!(0,CH.default)(document,n)){var r=Qv("",t),o=r.parentNode;xc.set(e,o),e.removeChild(r)}}function $H(){xc.clear()}function OH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=wc(n),o=Xv(r),a=(0,hw.default)((0,hw.default)({},n),{},{styles:o});EH(r,a);var i=Sw(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Qv(e,a);return d.setAttribute(Cw(a),t),d}var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.getShadowRoot=IH,Ec.inShadow=ww;function xw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ww(e){return xw(e)instanceof ShadowRoot}function IH(e){return ww(e)?xw(e):null}var cr={};Object.defineProperty(cr,"__esModule",{value:!0}),cr.call=em,cr.default=void 0,cr.note=$w,cr.noteOnce=Iw,cr.preMessage=void 0,cr.resetWarned=Ow,cr.warning=Ew,cr.warningOnce=qi;var Jv={},Zv=[],NH=cr.preMessage=function(t){Zv.push(t)};function Ew(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Zv.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function $w(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Zv.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ow(){Jv={}}function em(e,t,n){!t&&!Jv[n]&&(e(!1,n),Jv[n]=!0)}function qi(e,t){em(Ew,e,t)}function Iw(e,t){em($w,e,t)}qi.preMessage=NH,qi.resetWarned=Ow,qi.noteOnce=Iw,cr.default=qi;var PH=Hr.default,$c=xr.default;Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.generate=rm,Bn.getSecondaryColor=zH,Bn.iconStyles=void 0,Bn.isIconDefinition=jH,Bn.normalizeAttrs=nm,Bn.normalizeTwoToneColors=BH,Bn.useInsertStyles=Bn.svgBaseProps=void 0,Bn.warning=AH;var tm=$c(Uv),Nw=$c(Sc),_H=gw,MH=Ta,TH=Ec,DH=$c(cr),Oc=PH(D),RH=$c(ki);function FH(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function AH(e,t){(0,DH.default)(e,"[@ant-design/icons] ".concat(t))}function jH(e){return(0,Nw.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Nw.default)(e.icon)==="object"||typeof e.icon=="function")}function nm(){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[FH(n)]=r}return t},{})}function rm(e,t,n){return n?Oc.default.createElement(e.tag,(0,tm.default)((0,tm.default)({key:t},nm(e.attrs)),n),(e.children||[]).map(function(r,o){return rm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Oc.default.createElement(e.tag,(0,tm.default)({key:t},nm(e.attrs)),(e.children||[]).map(function(r,o){return rm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function zH(e){return(0,_H.generate)(e)[0]}function BH(e){return e?Array.isArray(e)?e:[e]:[]}Bn.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var VH=Bn.iconStyles=`
|
|
343
|
-
.anticon {
|
|
344
|
-
display: inline-flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
color: inherit;
|
|
347
|
-
font-style: normal;
|
|
348
|
-
line-height: 0;
|
|
349
|
-
text-align: center;
|
|
350
|
-
text-transform: none;
|
|
351
|
-
vertical-align: -0.125em;
|
|
352
|
-
text-rendering: optimizeLegibility;
|
|
353
|
-
-webkit-font-smoothing: antialiased;
|
|
354
|
-
-moz-osx-font-smoothing: grayscale;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.anticon > * {
|
|
358
|
-
line-height: 1;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.anticon svg {
|
|
362
|
-
display: inline-block;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.anticon::before {
|
|
366
|
-
display: none;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.anticon .anticon-icon {
|
|
370
|
-
display: block;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.anticon[tabindex] {
|
|
374
|
-
cursor: pointer;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.anticon-spin::before,
|
|
378
|
-
.anticon-spin {
|
|
379
|
-
display: inline-block;
|
|
380
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
381
|
-
animation: loadingCircle 1s infinite linear;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
@-webkit-keyframes loadingCircle {
|
|
385
|
-
100% {
|
|
386
|
-
-webkit-transform: rotate(360deg);
|
|
387
|
-
transform: rotate(360deg);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
@keyframes loadingCircle {
|
|
392
|
-
100% {
|
|
393
|
-
-webkit-transform: rotate(360deg);
|
|
394
|
-
transform: rotate(360deg);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
`;Bn.useInsertStyles=function(t){var n=(0,Oc.useContext)(RH.default),r=n.csp,o=n.prefixCls,a=n.layer,i=VH;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
398
|
-
`).concat(i,`
|
|
399
|
-
}`)),(0,Oc.useEffect)(function(){var l=t.current,s=(0,TH.getShadowRoot)(l);(0,MH.updateCSS)(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:s})},[])};var Pw=xr.default,LH=Hr.default;Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var HH=Pw(mw),Ui=Pw(Uv),kH=LH(D),Go=Bn,WH=["icon","className","onClick","style","primaryColor","secondaryColor"],Gi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qH(e){var t=e.primaryColor,n=e.secondaryColor;Gi.primaryColor=t,Gi.secondaryColor=n||(0,Go.getSecondaryColor)(t),Gi.calculated=!!n}function UH(){return(0,Ui.default)({},Gi)}var Ic=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=(0,HH.default)(t,WH),u=kH.useRef(),d=Gi;if(i&&(d={primaryColor:i,secondaryColor:l||(0,Go.getSecondaryColor)(i)}),(0,Go.useInsertStyles)(u),(0,Go.warning)((0,Go.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,Go.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,Ui.default)((0,Ui.default)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),(0,Go.generate)(f.icon,"svg-".concat(f.name),(0,Ui.default)((0,Ui.default)({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};Ic.displayName="IconReact",Ic.getTwoToneColors=UH,Ic.setTwoToneColors=qH,Wi.default=Ic;var Nc={},_w=xr.default;Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.getTwoToneColor=XH,Nc.setTwoToneColor=YH;var GH=_w(lw),Mw=_w(Wi),KH=Bn;function YH(e){var t=(0,KH.normalizeTwoToneColors)(e),n=(0,GH.default)(t,2),r=n[0],o=n[1];return Mw.default.setTwoToneColors({primaryColor:r,secondaryColor:o})}function XH(){var e=Mw.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ko=xr.default,QH=Hr.default;Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var JH=Ko(Uo),ZH=Ko(lw),Tw=Ko(dw),e3=Ko(mw),Pc=QH(D),t3=Ko(_m),n3=gw,r3=Ko(ki),o3=Ko(Wi),om=Nc,a3=Bn,i3=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,om.setTwoToneColor)(n3.blue.primary);var _c=Pc.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=(0,e3.default)(e,i3),d=Pc.useContext(r3.default),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,h=(0,t3.default)(g,v,(0,Tw.default)((0,Tw.default)({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,p=(0,a3.normalizeTwoToneColors)(s),y=(0,ZH.default)(p,2),C=y[0],S=y[1];return Pc.createElement("span",(0,JH.default)({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),Pc.createElement(o3.default,{icon:r,primaryColor:C,secondaryColor:S,style:m}))});_c.displayName="AntdIcon",_c.getTwoToneColor=om.getTwoToneColor,_c.setTwoToneColor=om.setTwoToneColor,kr.default=_c;var l3=Hr.default,am=xr.default;Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=void 0;var s3=am(Uo),Dw=l3(D),c3=am(qv),u3=am(kr),d3=function(t,n){return Dw.createElement(u3.default,(0,s3.default)({},t,{ref:n,icon:c3.default}))},Rw=Dw.forwardRef(d3);process.env.NODE_ENV!=="production"&&(Rw.displayName="ExclamationCircleOutlined"),Cc.default=Rw,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Cc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(Wv,Wv.exports);var f3=Wv.exports;const v3=Hn(f3);function m3({errors:e,registry:t}){const{translateString:n}=t,r=()=>oe.jsx(av,{className:"list-group",size:"small",children:e.map((o,a)=>oe.jsx(av.Item,{children:oe.jsxs(Pa,{children:[oe.jsx(v3,{}),o.stack]})},a))});return oe.jsx(Up,{className:"panel panel-danger errors",description:r(),message:n(et.TranslatableString.ErrorsLabel),type:"error"})}var im={exports:{}},Mc={},lm={};Object.defineProperty(lm,"__esModule",{value:!0});var g3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};lm.default=g3;var p3=Hr.default,sm=xr.default;Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.default=void 0;var h3=sm(Uo),Fw=p3(D),b3=sm(lm),y3=sm(kr),C3=function(t,n){return Fw.createElement(y3.default,(0,h3.default)({},t,{ref:n,icon:b3.default}))},Aw=Fw.forwardRef(C3);process.env.NODE_ENV!=="production"&&(Aw.displayName="ArrowDownOutlined"),Mc.default=Aw,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Mc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(im,im.exports);var S3=im.exports;const x3=Hn(S3);var cm={exports:{}},Tc={},um={};Object.defineProperty(um,"__esModule",{value:!0});var w3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};um.default=w3;var E3=Hr.default,dm=xr.default;Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=void 0;var $3=dm(Uo),jw=E3(D),O3=dm(um),I3=dm(kr),N3=function(t,n){return jw.createElement(I3.default,(0,$3.default)({},t,{ref:n,icon:O3.default}))},zw=jw.forwardRef(N3);process.env.NODE_ENV!=="production"&&(zw.displayName="ArrowUpOutlined"),Tc.default=zw,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Tc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(cm,cm.exports);var P3=cm.exports;const _3=Hn(P3);var fm={exports:{}},Dc={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});var M3={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"};vm.default=M3;var T3=Hr.default,mm=xr.default;Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.default=void 0;var D3=mm(Uo),Bw=T3(D),R3=mm(vm),F3=mm(kr),A3=function(t,n){return Bw.createElement(F3.default,(0,D3.default)({},t,{ref:n,icon:R3.default}))},Vw=Bw.forwardRef(A3);process.env.NODE_ENV!=="production"&&(Vw.displayName="CopyOutlined"),Dc.default=Vw,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Dc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(fm,fm.exports);var j3=fm.exports;const z3=Hn(j3);var gm={exports:{}},Rc={},pm={};Object.defineProperty(pm,"__esModule",{value:!0});var B3={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"};pm.default=B3;var V3=Hr.default,hm=xr.default;Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.default=void 0;var L3=hm(Uo),Lw=V3(D),H3=hm(pm),k3=hm(kr),W3=function(t,n){return Lw.createElement(k3.default,(0,L3.default)({},t,{ref:n,icon:H3.default}))},Hw=Lw.forwardRef(W3);process.env.NODE_ENV!=="production"&&(Hw.displayName="DeleteOutlined"),Rc.default=Hw,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Rc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(gm,gm.exports);var q3=gm.exports;const U3=Hn(q3);var bm={exports:{}},Fc={},ym={};Object.defineProperty(ym,"__esModule",{value:!0});var G3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};ym.default=G3;var K3=Hr.default,Cm=xr.default;Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.default=void 0;var Y3=Cm(Uo),kw=K3(D),X3=Cm(ym),Q3=Cm(kr),J3=function(t,n){return kw.createElement(Q3.default,(0,Y3.default)({},t,{ref:n,icon:X3.default}))},Ww=kw.forwardRef(J3);process.env.NODE_ENV!=="production"&&(Ww.displayName="PlusCircleOutlined"),Fc.default=Ww,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Fc);function r(a){return a&&a.__esModule?a:{default:a}}const o=n;t.default=o,e.exports=o}(bm,bm.exports);var Z3=bm.exports;const e6=Hn(Z3);function Ki(e){const{iconType:t="default",icon:n,onClick:r,uiSchema:o,registry:a,...i}=e;return oe.jsx(pn,{onClick:r,type:t,icon:n,...i})}function t6(e){const{registry:{translateString:t}}=e;return oe.jsx(Ki,{title:t(et.TranslatableString.AddItemButton),...e,block:!0,iconType:"primary",icon:oe.jsx(e6,{})})}function n6(e){const{registry:{translateString:t}}=e;return oe.jsx(Ki,{title:t(et.TranslatableString.CopyButton),...e,icon:oe.jsx(z3,{})})}function r6(e){const{registry:{translateString:t}}=e;return oe.jsx(Ki,{title:t(et.TranslatableString.MoveDownButton),...e,icon:oe.jsx(x3,{})})}function o6(e){const{registry:{translateString:t}}=e;return oe.jsx(Ki,{title:t(et.TranslatableString.MoveUpButton),...e,icon:oe.jsx(_3,{})})}function a6(e){const t=et.getUiOptions(e.uiSchema),{registry:{translateString:n}}=e;return oe.jsx(Ki,{title:n(et.TranslatableString.RemoveButton),...e,danger:!0,block:!!t.block,iconType:"primary",icon:oe.jsx(U3,{})})}function i6(e){const{errors:t=[],idSchema:n}=e;if(t.length===0)return null;const r=et.errorId(n);return oe.jsx("div",{id:r,children:t.map(o=>oe.jsx("div",{children:o},`field-${r}-error-${o}`))})}const l6={span:24},s6={span:24};function c6(e){const{children:t,classNames:n,style:r,description:o,disabled:a,displayLabel:i,errors:l,formContext:s,help:u,hidden:d,id:f,label:v,onDropPropertyClick:g,onKeyChange:h,rawErrors:b,rawDescription:m,rawHelp:p,readonly:y,registry:C,required:S,schema:x,uiSchema:w}=e,{colon:E,labelCol:$=l6,wrapperCol:O=s6,wrapperStyle:I,descriptionLocation:_="below"}=s,M=et.getUiOptions(w),P=et.getTemplate("WrapIfAdditionalTemplate",C,M);if(d)return oe.jsx("div",{className:"field-hidden",children:t});const T=m?o:void 0,N={};switch(_){case"tooltip":N.tooltip=T;break;case"below":default:N.extra=T;break}return oe.jsx(P,{classNames:n,style:r,disabled:a,id:f,label:v,onDropPropertyClick:g,onKeyChange:h,readonly:y,required:S,schema:x,uiSchema:w,registry:C,children:oe.jsx(jn.Item,{colon:E,hasFeedback:x.type!=="array"&&x.type!=="object",help:!!p&&u||(b!=null&&b.length?l:void 0),htmlFor:f,label:i&&v,labelCol:$,required:S,style:I,validateStatus:b!=null&&b.length?"error":void 0,wrapperCol:O,...N,children:t})})}function u6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var d6=typeof global=="object"&&global&&global.Object===Object&&global,f6=typeof self=="object"&&self&&self.Object===Object&&self,v6=d6||f6||Function("return this")(),Ac=v6.Symbol,qw=Object.prototype,m6=qw.hasOwnProperty,g6=qw.toString,Yi=Ac?Ac.toStringTag:void 0;function p6(e){var t=m6.call(e,Yi),n=e[Yi];try{e[Yi]=void 0;var r=!0}catch{}var o=g6.call(e);return r&&(t?e[Yi]=n:delete e[Yi]),o}var h6=Object.prototype,b6=h6.toString;function y6(e){return b6.call(e)}var C6="[object Null]",S6="[object Undefined]",Uw=Ac?Ac.toStringTag:void 0;function Gw(e){return e==null?e===void 0?S6:C6:Uw&&Uw in Object(e)?p6(e):y6(e)}function Kw(e){return e!=null&&typeof e=="object"}var x6="[object Number]";function w6(e){return typeof e=="number"||Kw(e)&&Gw(e)==x6}var E6=Array.isArray,$6="[object String]";function jc(e){return typeof e=="string"||!E6(e)&&Kw(e)&&Gw(e)==$6}const O6={paddingBottom:"8px"};function I6(e){const{description:t,disabled:n,formContext:r,formData:o,idSchema:a,onAddClick:i,properties:l,readonly:s,required:u,registry:d,schema:f,title:v,uiSchema:g}=e,h=et.getUiOptions(g),b=et.getTemplate("TitleFieldTemplate",d,h),m=et.getTemplate("DescriptionFieldTemplate",d,h),{ButtonTemplates:{AddButton:p}}=d.templates,{colSpan:y=24,labelAlign:C="right",rowGutter:S=24}=r,x=N=>N.content.props.schema,w=N=>x(N).type,E=N=>N.content.props.uiSchema,$=N=>et.getUiOptions(E(N)).field,O=N=>et.getUiOptions(E(N)).widget,I=N=>{const R=w(N),F=$(N),A=O(N),j=l.length<2||R==="object"||R==="array"||A==="textarea"?24:12;if(u6(y)){const H=y;if(jc(A))return H[A];if(jc(F))return H[F];if(jc(R))return H[R]}return w6(y)?y:j},{getPrefixCls:_}=D.useContext(mr.ConfigContext),P=`${_("form")}-item-label`,T=re(P,C==="left"&&`${P}-left`);return oe.jsxs("fieldset",{id:a.$id,children:[oe.jsxs(yr,{gutter:S,children:[v&&oe.jsx(ln,{className:T,span:24,children:oe.jsx(b,{id:et.titleId(a),title:v,required:u,schema:f,uiSchema:g,registry:d})}),t&&oe.jsx(ln,{span:24,style:O6,children:oe.jsx(m,{id:et.descriptionId(a),description:t,schema:f,uiSchema:g,registry:d})}),l.filter(N=>!N.hidden).map(N=>oe.jsx(ln,{span:I(N),children:N.content},N.name))]}),et.canExpand(f,g,o)&&oe.jsx(ln,{span:24,children:oe.jsx(yr,{gutter:S,justify:"end",children:oe.jsx(ln,{flex:"192px",children:oe.jsx(p,{className:"object-property-expand",disabled:n||s,onClick:i(f),uiSchema:g,registry:d})})})})]})}function N6({uiSchema:e}){const{submitText:t,norender:n,props:r}=et.getSubmitButtonOptions(e);return n?null:oe.jsx(pn,{type:"submit",...r,htmlType:"submit",children:t})}function P6({id:e,required:t,registry:n,title:r}){const{formContext:o}=n,{colon:a=!0}=o;let i=r;a&&typeof r=="string"&&r.trim()!==""&&(i=r.replace(/[::]\s*$/,""));const l=()=>{if(!e)return;const f=document.querySelector(`[id="${e}"]`);f&&f.focus&&f.focus()},{getPrefixCls:s}=D.useContext(mr.ConfigContext),u=s("form"),d=re({[`${u}-item-required`]:t,[`${u}-item-no-colon`]:!a});return r?oe.jsx("label",{className:d,htmlFor:e,onClick:l,title:typeof r=="string"?r:"",children:i}):null}const _6={span:24},M6={span:24},T6={width:"100%"};function D6(e){const{children:t,classNames:n,style:r,disabled:o,id:a,label:i,onDropPropertyClick:l,onKeyChange:s,readonly:u,required:d,registry:f,schema:v,uiSchema:g}=e,{colon:h,labelCol:b=_6,readonlyAsDisabled:m=!0,rowGutter:p=24,toolbarAlign:y="top",wrapperCol:C=M6,wrapperStyle:S}=f.formContext,{templates:x,translateString:w}=f,{RemoveButton:E}=x.ButtonTemplates,$=w(et.TranslatableString.KeyLabel,[i]);if(!(et.ADDITIONAL_PROPERTY_FLAG in v))return oe.jsx("div",{className:n,style:r,children:t});const I=({target:P})=>s(P&&P.value),_=g?g[et.UI_OPTIONS_KEY]:{},M={...g,[et.UI_OPTIONS_KEY]:{..._,block:!0}};return oe.jsx("div",{className:n,style:r,children:oe.jsxs(yr,{align:y,gutter:p,children:[oe.jsx(ln,{className:"form-additional",flex:"1",children:oe.jsx("div",{className:"form-group",children:oe.jsx(jn.Item,{colon:h,className:"form-group",hasFeedback:!0,htmlFor:`${a}-key`,label:$,labelCol:b,required:d,style:S,wrapperCol:C,children:oe.jsx(rn,{className:"form-control",defaultValue:i,disabled:o||m&&u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:I,style:T6,type:"text"})})})}),oe.jsx(ln,{className:"form-additional",flex:"1",children:t}),oe.jsx(ln,{flex:"192px",children:oe.jsx(E,{className:"array-item-remove",disabled:o||u,onClick:l(i),uiSchema:M,registry:f})})]})})}function R6(){return{ArrayFieldItemTemplate:tH,ArrayFieldTemplate:rH,BaseInputTemplate:oH,ButtonTemplates:{AddButton:t6,CopyButton:n6,MoveDownButton:r6,MoveUpButton:o6,RemoveButton:a6,SubmitButton:N6},DescriptionFieldTemplate:aH,ErrorListTemplate:m3,FieldErrorTemplate:i6,FieldTemplate:c6,ObjectFieldTemplate:I6,TitleFieldTemplate:P6,WrapIfAdditionalTemplate:D6}}const F6=e=>Object.values(e).every(t=>t!==-1);function Sm(e){const{autofocus:t,disabled:n,formContext:r,id:o,onBlur:a,onChange:i,onFocus:l,options:s,readonly:u,registry:d,showTime:f,value:v}=e,{translateString:g,widgets:h}=d,{SelectWidget:b}=h,{rowGutter:m=24}=r,[p,y]=D.useState(et.parseDateString(v,f));D.useEffect(()=>{y(et.parseDateString(v,f))},[f,v]);const C=(E,$)=>{const O={...p,[E]:typeof $>"u"?-1:$};F6(O)?i(et.toDateString(O,f)):y(O)},S=E=>{if(E.preventDefault(),n||u)return;const $=et.parseDateString(new Date().toJSON(),f);i(et.toDateString($,f))},x=E=>{E.preventDefault(),!(n||u)&&i(void 0)},w=E=>oe.jsx(b,{autofocus:E.autofocus,className:"form-control",disabled:E.disabled,id:E.id,name:E.name,onBlur:E.onBlur,onChange:$=>E.select(E.type,$),onFocus:E.onFocus,options:{enumOptions:et.dateRangeOptions(E.range[0],E.range[1])},placeholder:E.type,readonly:E.readonly,schema:{type:"integer"},value:E.value,registry:d,label:"","aria-describedby":et.ariaDescribedByIds(o)});return oe.jsxs(yr,{gutter:[Math.floor(m/2),Math.floor(m/2)],children:[et.getDateElementProps(p,f,s.yearsRange,s.format).map((E,$)=>{const O=o+"_"+E.type;return oe.jsx(ln,{flex:"88px",children:w({...E,autofocus:t&&$===0,disabled:n,id:O,name:o,onBlur:a,onFocus:l,readonly:u,registry:d,select:C,value:(E.value,void 0)})},O)}),!s.hideNowButton&&oe.jsx(ln,{flex:"88px",children:oe.jsx(pn,{block:!0,className:"btn-now",onClick:S,type:"primary",children:g(et.TranslatableString.NowLabel)})}),!s.hideClearButton&&oe.jsx(ln,{flex:"88px",children:oe.jsx(pn,{block:!0,className:"btn-clear",danger:!0,onClick:x,type:"primary",children:g(et.TranslatableString.ClearLabel)})})]})}Sm.defaultProps={autofocus:!1,disabled:!1,options:{yearsRange:[1900,new Date().getFullYear()+2]},readonly:!1,showTime:!1};function Yw(e){const{AltDateWidget:t}=e.registry.widgets;return oe.jsx(t,{showTime:!0,...e})}Yw.defaultProps={...Sm.defaultProps,showTime:!0};function A6({autofocus:e,disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onFocus:i,options:l,readonly:s,value:u}){const{readonlyAsDisabled:d=!0}=n,{enumOptions:f,enumDisabled:v,inline:g,emptyValue:h}=l,b=S=>a(et.enumOptionsValueForIndex(S,f,h)),y={id:r,onBlur:s?void 0:({target:S})=>o(r,et.enumOptionsValueForIndex(S.value,f,h)),onFocus:s?void 0:({target:S})=>i(r,et.enumOptionsValueForIndex(S.value,f,h))},C=et.enumOptionsIndexForValue(u,f,!0);return Array.isArray(f)&&f.length>0?oe.jsx(oe.Fragment,{children:oe.jsx(Ao.Group,{disabled:t||d&&s,name:r,onChange:s?void 0:b,value:C,...y,"aria-describedby":et.ariaDescribedByIds(r),children:Array.isArray(f)&&f.map((S,x)=>oe.jsxs("span",{children:[oe.jsx(Ao,{id:et.optionId(r,x),name:r,autoFocus:x===0?e:!1,disabled:Array.isArray(v)&&v.indexOf(S.value)!==-1,value:String(x),children:S.label}),!g&&oe.jsx("br",{})]},x))})}):null}function j6(e){const{autofocus:t,disabled:n,formContext:r,id:o,label:a,hideLabel:i,onBlur:l,onChange:s,onFocus:u,readonly:d,value:f}=e,{readonlyAsDisabled:v=!0}=r,g=({target:p})=>s(p.checked),m={onBlur:d?void 0:({target:p})=>l(o,p&&p.checked),onFocus:d?void 0:({target:p})=>u(o,p&&p.checked)};return oe.jsx(Ao,{autoFocus:t,checked:typeof f>"u"?!1:f,disabled:n||v&&d,id:o,name:o,onChange:d?void 0:g,...m,"aria-describedby":et.ariaDescribedByIds(o),children:et.labelValue(a,i,"")})}const z6={width:"100%"};function B6(e){const{disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onFocus:i,placeholder:l,readonly:s,value:u}=e,{readonlyAsDisabled:d=!0}=n,f=b=>a(b&&b.toISOString()),v=()=>o(r,u),g=()=>i(r,u),h=b=>b.parentNode;return oe.jsx(oo,{disabled:t||d&&s,getPopupContainer:h,id:r,name:r,onBlur:s?void 0:v,onChange:s?void 0:f,onFocus:s?void 0:g,placeholder:l,showTime:!0,style:z6,value:u&&Mn(u),"aria-describedby":et.ariaDescribedByIds(r)})}const V6={width:"100%"};function L6(e){const{disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onFocus:i,placeholder:l,readonly:s,value:u}=e,{readonlyAsDisabled:d=!0}=n,f=b=>a(b&&b.format("YYYY-MM-DD")),v=()=>o(r,u),g=()=>i(r,u),h=b=>b.parentNode;return oe.jsx(oo,{disabled:t||d&&s,getPopupContainer:h,id:r,name:r,onBlur:s?void 0:v,onChange:s?void 0:f,onFocus:s?void 0:g,placeholder:l,showTime:!1,style:V6,value:u&&Mn(u),"aria-describedby":et.ariaDescribedByIds(r)})}function H6(e){const{disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onFocus:i,options:l,placeholder:s,readonly:u,value:d}=e,{readonlyAsDisabled:f=!0}=n,v=l.emptyValue||"",g=({target:m})=>a(m.value===""?v:m.value),h=({target:m})=>o(r,m.value),b=({target:m})=>i(r,m.value);return oe.jsx(rn.Password,{disabled:t||f&&u,id:r,name:r,onBlur:u?void 0:h,onChange:u?void 0:g,onFocus:u?void 0:b,placeholder:s,value:d||"","aria-describedby":et.ariaDescribedByIds(r)})}function k6({autofocus:e,disabled:t,formContext:n,id:r,onBlur:o,onChange:a,onFocus:i,options:l,readonly:s,value:u}){const{readonlyAsDisabled:d=!0}=n,{enumOptions:f,enumDisabled:v,emptyValue:g}=l,h=({target:{value:y}})=>a(et.enumOptionsValueForIndex(y,f,g)),b=({target:y})=>o(r,et.enumOptionsValueForIndex(y&&y.value,f,g)),m=({target:y})=>i(r,et.enumOptionsValueForIndex(y&&y.value,f,g)),p=et.enumOptionsIndexForValue(u,f);return oe.jsx(Do.Group,{disabled:t||d&&s,id:r,name:r,onChange:s?void 0:h,onBlur:s?void 0:b,onFocus:s?void 0:m,value:p,"aria-describedby":et.ariaDescribedByIds(r),children:Array.isArray(f)&&f.map((y,C)=>oe.jsx(Do,{id:et.optionId(r,C),name:r,autoFocus:C===0?e:!1,disabled:t||Array.isArray(v)&&v.indexOf(y.value)!==-1,value:String(C),children:y.label},C))})}function W6(e){const{autofocus:t,disabled:n,formContext:r,id:o,onBlur:a,onChange:i,onFocus:l,options:s,placeholder:u,readonly:d,schema:f,value:v}=e,{readonlyAsDisabled:g=!0}=r,{min:h,max:b,step:m}=et.rangeSpec(f),p=s.emptyValue||"",y=w=>i(w===""?p:w),x={placeholder:u,onBlur:d?void 0:()=>a(o,v),onFocus:d?void 0:()=>l(o,v)};return oe.jsx(Hf,{autoFocus:t,disabled:n||g&&d,id:o,max:b,min:h,onChange:d?void 0:y,range:!1,step:m,value:v,...x,"aria-describedby":et.ariaDescribedByIds(o)})}const q6={width:"100%"};function U6({autofocus:e,disabled:t,formContext:n={},id:r,multiple:o,onBlur:a,onChange:i,onFocus:l,options:s,placeholder:u,readonly:d,value:f,schema:v}){const{readonlyAsDisabled:g=!0}=n,{enumOptions:h,enumDisabled:b,emptyValue:m}=s,p=I=>i(et.enumOptionsValueForIndex(I,h,m)),y=()=>a(r,et.enumOptionsValueForIndex(f,h,m)),C=()=>l(r,et.enumOptionsValueForIndex(f,h,m)),S=(I,_)=>_&&jc(_.label)?_.label.toLowerCase().indexOf(I.toLowerCase())>=0:!1,x=I=>I.parentNode,w=et.enumOptionsIndexForValue(f,h,o),E={name:r},$=!o&&v.default===void 0,O=D.useMemo(()=>{if(Array.isArray(h)){const I=h.map(({value:_,label:M},P)=>({disabled:Array.isArray(b)&&b.indexOf(_)!==-1,key:String(P),value:String(P),label:M}));return $&&I.unshift({value:"",label:u||""}),I}},[b,h,u,$]);return oe.jsx(Ir,{autoFocus:e,disabled:t||g&&d,getPopupContainer:x,id:r,mode:o?"multiple":void 0,onBlur:d?void 0:y,onChange:d?void 0:p,onFocus:d?void 0:C,placeholder:u,style:q6,value:w,...E,filterOption:S,"aria-describedby":et.ariaDescribedByIds(r),options:O})}const G6={width:"100%"};function K6({disabled:e,formContext:t,id:n,onBlur:r,onChange:o,onFocus:a,options:i,placeholder:l,readonly:s,value:u}){const{readonlyAsDisabled:d=!0}=t,f=({target:b})=>o(b.value===""?i.emptyValue:b.value),v=({target:b})=>r(n,b&&b.value),g=({target:b})=>a(n,b&&b.value),h={type:"textarea"};return oe.jsx(rn.TextArea,{disabled:e||d&&s,id:n,name:n,onBlur:s?void 0:v,onChange:s?void 0:f,onFocus:s?void 0:g,placeholder:l,rows:i.rows||4,style:G6,value:u,...h,"aria-describedby":et.ariaDescribedByIds(n)})}function Y6(){return{AltDateTimeWidget:Yw,AltDateWidget:Sm,CheckboxesWidget:A6,CheckboxWidget:j6,DateTimeWidget:B6,DateWidget:L6,PasswordWidget:H6,RadioWidget:k6,RangeWidget:W6,SelectWidget:U6,TextareaWidget:K6}}function X6(){return{templates:R6(),widgets:Y6()}}function Q6(){return Qw.withTheme(X6())}const J6=Q6();class Z6 extends D.Component{constructor(n){var r;super(n);wn(this,"processor",null);wn(this,"eventHub");wn(this,"updateCount",0);wn(this,"updateHandler",null);(r=n.conditionals)!=null&&r.rules&&n.conditionals.rules.length>0&&(this.processor=new cc(n.conditionals.rules,n.schema,n.uiSchema||{},n.conditionals.extraActions)),this.eventHub=new Cx({beforeSubmit:n.beforeSubmit,afterSubmit:n.afterSubmit,beforeValidation:n.beforeValidation,afterValidation:n.afterValidation},{onFieldFocus:n.onFieldFocus,onFieldBlur:n.onFieldBlur,onFieldChange:n.onFieldChange},n.webhooks||[]),this.state={schema:n.schema,uiSchema:n.uiSchema||{},formData:n.formData||{}},this.handleChange=this.handleChange.bind(this),this.updateConditionals=this.updateConditionals.bind(this)}componentDidMount(){this.processor&&this.props.formData&&this.updateConditionals(this.props.formData)}componentDidUpdate(n){const r=!qo(n.schema,this.props.schema),o=!qo(n.uiSchema,this.props.uiSchema),a=!qo(n.formData||{},this.props.formData||{});(r||o)&&this.setState({schema:this.props.schema,uiSchema:this.props.uiSchema||{}}),a&&this.updateConditionals(this.props.formData||{})}componentWillUnmount(){this.eventHub.cleanup()}async updateConditionals(n,r){var o;if(this.processor){this.updateCount+=1,r&&(this.updateHandler=r);try{const a=await this.processor.processFormData(n);if(this.updateCount-=1,this.updateCount<1){const i={schema:a.schema,uiSchema:a.uiSchema,formData:a.formData};qo(i,this.state)||(this.setState(i),(o=this.props.conditionals)!=null&&o.onSchemaChange&&this.props.conditionals.onSchemaChange({schema:a.schema,uiSchema:a.uiSchema}));const l=this.updateHandler;this.updateHandler=null,l==null||l(i)}}catch(a){console.error("Error processing conditionals:",a),this.updateCount-=1}}}handleChange(n){const{formData:r}=n,{onChange:o}=this.props;qo(r,this.state.formData)?o==null||o(n):this.processor?this.updateConditionals(r,a=>{if(o){const i={...n,...a};o(i)}}):(this.setState({formData:r}),o==null||o(n))}async handleSubmit(n,r){const o=await this.eventHub.handleBeforeSubmit(n);this.props.onSubmit&&await this.props.onSubmit(o,r),await this.eventHub.handleAfterSubmit(o)}render(){const{conditionals:n,widgets:r={},fields:o={},templates:a={},beforeSubmit:i,afterSubmit:l,beforeValidation:s,afterValidation:u,onFieldFocus:d,onFieldBlur:f,onFieldChange:v,webhooks:g,...h}=this.props,b={...yx,...r},m={...ax,...o},p={...Sv,...a,ButtonTemplates:{...Sv.ButtonTemplates,...a==null?void 0:a.ButtonTemplates}};return oe.jsx(WS,{eventHub:this.eventHub,formData:this.state.formData,children:oe.jsx("div",{className:"extended-form-container space-y-6 p-6 bg-background",children:oe.jsx(J6,{...h,schema:this.state.schema,uiSchema:this.state.uiSchema,formData:this.state.formData,validator:Lc,onChange:this.handleChange,onSubmit:(y,C)=>this.handleSubmit(y,C),widgets:b,fields:m,templates:p})})})}}const xm=D.forwardRef((e,t)=>oe.jsx(Z6,{...e})),{Title:e5,Text:t5}=Ri;function n5({schema:e,uiSchema:t,conditions:n=[],webhooks:r=[],formData:o={},onSubmit:a,onStepChange:i,onFieldFocus:l,onFieldBlur:s,onFieldChange:u,showProgressBar:d=!0,showStepDescription:f=!0,submitButtonText:v="Submit",liveValidate:g=!0,showErrorList:h=!1}){const b=D.useMemo(()=>{const z=[];return Object.keys(e.properties||{}).forEach(B=>{if(B.startsWith("STEP_")){const V=e.properties[B];z.push({id:B,title:V.title||B.replace("STEP_","").replace(/_/g," "),description:V.description})}}),z.length===0?[{id:"root",title:e.title||"Form",description:e.description}]:z},[e]),m=b.length>1,[p,y]=D.useState(0),[C,S]=D.useState(o),[,x]=D.useState({}),w=D.useCallback(z=>{if(!n||n.length===0||!m)return;const B=b[z].id;console.log(`[WizardForm] Processing conditions for step ${z}: ${B}`);const V=n.filter(q=>{var Z,Q,J,ae;const Y=Object.keys(q.conditions||{}),U=Array.isArray((Q=(Z=q.event)==null?void 0:Z.params)==null?void 0:Q.field)?q.event.params.field:[(ae=(J=q.event)==null?void 0:J.params)==null?void 0:ae.field].filter(Boolean);return[...Y,...U].some(ne=>ne==null?void 0:ne.startsWith(B))}).map(q=>{var U,ee;const Y={...q};if(Y.conditions){const Z={};Object.entries(Y.conditions).forEach(([Q,J])=>{if(Q.startsWith(`${B}.`)){const ae=Q.substring(B.length+1);Z[ae]=J}else Z[Q]=J}),Y.conditions=Z}if((ee=(U=Y.event)==null?void 0:U.params)!=null&&ee.field){const Z=Y.event.params.field,Q=Array.isArray(Z)?Z.map(J=>J.startsWith(`${B}.`)?J.substring(B.length+1):J):Z.startsWith(`${B}.`)?Z.substring(B.length+1):Z;Y.event.params.field=Q}return Y});if(V.length===0)return;const L=dc(V);if(L.length!==0)return console.log(`[WizardForm] Created step-aware conditional config with ${L.length} rules for step ${z}`),console.log("Step conditions:",V),console.log("Transformed rules:",L),{rules:L,engine:cc,extraActions:{},onSchemaChange:q=>{console.log(`[WizardForm] Schema changed via conditionals for step ${z}:`,q)}}},[n,m,b]),E=D.useMemo(()=>{if(!(!n||n.length===0)){if(!m){const z=dc(n);return z.length===0?void 0:{rules:z,engine:cc,extraActions:{},onSchemaChange:B=>{console.log("[WizardForm] Schema changed via conditionals:",B)}}}return w(p)}},[n,m,p,w]),$=D.useCallback(()=>{if(!m)return e;const z=b[p].id,B=e.properties[z];return console.log(`Getting schema for step ${p}: ${z}`),console.log("Step schema:",B),{type:"object",title:b[p].title,...B}},[p,e,b,m]),O=D.useCallback(()=>{if(!m)return t;const z=b[p].id,B=t[z];return console.log("Step UI schema:",B),B||{}},[p,t,b,m]),I=D.useCallback(()=>{if(!m)return C;const z=b[p].id;return C[z]||{}},[p,C,b,m]),[_,M]=D.useState(!0),P=D.useCallback(()=>{if(!m)return!0;const z=b[p].id,B=$(),V=I();try{const L=Lc.validateFormData(V,B),q=L.errors.length===0;return q?console.log(`✓ Validation passed for step: ${z}`):(console.log(`Validation check for step: ${z} (Step ${p+1} of ${b.length})`),console.log("Step data:",V),console.log("Validation errors:",L.errors),console.log("Missing/invalid fields:",L.errors.map(Y=>{var U;return Y.property||((U=Y.params)==null?void 0:U.missingProperty)||Y.stack}))),M(q),q}catch(L){return console.error("Validation error:",L),M(!1),!1}},[m,b,p,$,I]),T=D.useCallback(({formData:z,errors:B})=>{if(console.log("Form data changed:",z),m){const V=b[p].id;S(L=>{const q={...L,[V]:z};return console.log("Updated form state:",q),q})}else S(z);x(B)},[m,b,p]),N=D.useCallback(z=>{console.log("WizardForm: Field change event received:",z),u&&u(z)},[u]);D.useEffect(()=>{P()},[C,p,P]),D.useEffect(()=>{var z;console.log(`📍 Current step changed to: ${p} (${(z=b[p])==null?void 0:z.id})`)},[p,b]);const R=_,F=p===0,A=p===b.length-1,j=()=>{const z=P();if(!A&&z){console.log(`✅ Step ${b[p].id} validation passed! Moving to next step.`);const B=p+1;y(B),i==null||i(B,C)}else z||console.log(`❌ Step ${b[p].id} validation failed. Cannot proceed to next step.`)},H=()=>{if(!F){const z=p-1;y(z),i==null||i(z,C)}},k=({formData:z})=>{a==null||a(z)};return m?oe.jsxs("div",{style:{marginBottom:"24px"},children:[d&&oe.jsx("div",{style:{margin:"0 auto 32px"},children:oe.jsx(cv,{labelPlacement:"vertical",current:p,size:"default",items:b.map((z,B)=>({title:oe.jsx("div",{style:{lineHeight:1,marginBottom:"8px"},children:z.title}),description:oe.jsx("div",{style:{lineHeight:1},children:f?z.description:void 0}),status:B<p?"finish":B===p?_?"process":"error":"wait"})),onChange:z=>{z<=p&&(y(z),i==null||i(z,C))}})}),oe.jsxs(Na,{title:oe.jsx(e5,{level:4,children:b[p].title}),extra:f&&b[p].description&&oe.jsx(t5,{type:"secondary",children:b[p].description}),children:[oe.jsx(xm,{schema:$(),uiSchema:O(),formData:I(),onChange:z=>{console.log("ExtendedForm onChange called:",z),T(z)},onSubmit:A?k:void 0,onFieldFocus:l,onFieldBlur:s,onFieldChange:N,webhooks:r,conditionals:E,liveValidate:!0,showErrorList:!1,children:oe.jsx("div",{style:{display:"none"},children:oe.jsx("button",{type:"submit"})})},`wizard-step-${p}`),oe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"24px"},children:[oe.jsx(pn,{onClick:H,disabled:F,icon:oe.jsx(pi,{}),children:"Previous"}),A?oe.jsxs(pn,{type:"primary",onClick:()=>{const z=document.querySelector("form");z&&z.dispatchEvent(new Event("submit",{bubbles:!0}))},disabled:!R,children:[v,oe.jsx(Oo,{style:{marginLeft:"8px"}})]}):oe.jsxs(pn,{type:"primary",onClick:j,disabled:!R,children:["Next",oe.jsx(oi,{style:{marginLeft:"8px"}})]})]})]})]}):oe.jsx(xm,{schema:e,uiSchema:t,formData:C,onChange:T,onSubmit:k,onFieldFocus:l,onFieldBlur:s,onFieldChange:u,webhooks:r,conditionals:E,liveValidate:g,showErrorList:h?"top":!1},"single-form")}Ze.validator=Lc,Ze.AddressField=US,Ze.ArrayFieldItemTemplate=QS,Ze.ArrayFieldTemplate=XS,Ze.ColorWidget=ix,Ze.ConditionalProcessor=Fi,Ze.CurrencyField=KS,Ze.DateTimeWidget=Ov,Ze.DateWidget=DV,Ze.DynamicArrayConditionalEngine=cc,Ze.EmailWidget=wv,Ze.Engine=JL,Ze.EnhancedCheckboxWidget=vx,Ze.EnhancedNumberWidget=gx,Ze.EnhancedRadioWidget=mx,Ze.EnhancedSelectWidget=fx,Ze.EnhancedTextWidget=ux,Ze.EnhancedTextareaWidget=dx,Ze.ExtendedForm=xm,Ze.FieldTemplate=ox,Ze.FileUploadWidget=hx,Ze.FileWidget=lx,Ze.FormEventHub=Cx,Ze.FormEventManager=RV,Ze.FormEventProvider=WS,Ze.PasswordWidget=$v,Ze.PhoneField=GS,Ze.ProgressIndicator=JS,Ze.RangeWidget=sx,Ze.RatingWidget=cx,Ze.SimpleConditionalEngine=Fi,Ze.StepNavigation=ZS,Ze.SubmitButton=rx,Ze.TelephoneWidget=xv,Ze.URLWidget=Ev,Ze.WizardForm=n5,Ze.WizardLayout=TV,Ze.WizardNavigation=ex,Ze.WizardObjectFieldTemplate=tx,Ze.WizardSectionTemplate=nx,Ze.customFields=ax,Ze.customTemplates=Sv,Ze.customWidgets=yx,Ze.deepEquals=qo,Ze.defaultActions=Tv,Ze.disable=_v,Ze.enable=Pv,Ze.enhancedWidgets=bx,Ze.formDataUtils=Kx,Ze.optional=Mv,Ze.remove=Iv,Ze.require=Nv,Ze.schemaUtils=Yx,Ze.show=Ox,Ze.smartTransformJsonRulesEngine=dc,Ze.transformJsonRulesEngine=dc,Ze.uiAppend=wx,Ze.uiOverride=Ex,Ze.uiReplace=$x,Ze.useFieldEventHandlers=vn,Ze.useFormEventHub=qS,Ze.validationUtils=ZL,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})});
|