@akinon/app-client 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,303 +1,7 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".app-client-provider__loading{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;color:#fff}.ant-breadcrumb{padding:.625rem 1rem;border-bottom:1px solid var(--color-gray-900)}.ant-breadcrumb .ant-breadcrumb-separator{margin-left:.4rem;margin-right:.4rem}.ant-btn-secondary{color:var(--color-neutral-50);background-color:var(--color-green-500);box-shadow:0 2px #0591ff1a}.data-table-wrapper{border-radius:10px;width:100%}.data-table-wrapper .row-action{width:40px;height:40px;display:flex;border:1px solid rgba(0,47,255,.273);border-radius:7px;align-items:center;justify-content:center;margin-right:5px}.data-table-wrapper .row-action i:before{color:#222222b6}.data-table-wrapper .ant-table-wrapper .ant-table-thead>tr>th{color:var(--color-ebonyClay-375);font-size:.75rem;font-weight:500;padding:6px 28px}.data-table-actions__apply-button.ant-btn{padding:0 10px;border-radius:5px;font-weight:600;font-size:14px;height:40px;color:#4482ff;border:solid 1px #4482ff}.data-table-actions__apply-button.ant-btn:hover,.data-table-actions__apply-button.ant-btn:focus{color:#4482ff;border:solid 1px #4482ff}.data-table-actions .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{box-sizing:border-box;height:40px;align-items:center;border-radius:5px;border:solid 1px #c8daec;width:150px}.data-table-actions .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{border-right-width:0!important}.data-table-footer{padding:20px;display:flex;justify-content:flex-end;align-items:center}.data-table-header{padding:20px 32px 16px;display:flex;justify-content:space-between;gap:16px}.data-table-header .akinon-pagination{margin-left:auto}.data-table-header__left-block{flex:1}.data-table-header__middle-block{color:#000}.data-table-header__right-block{display:flex;justify-content:flex-start;align-items:flex-end;flex-direction:column;gap:20px}.data-table-header__export-options{display:flex;align-items:center;gap:12px}.data-table-header__export-option{cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#4482ff;color:#fff;width:36px;height:36px;border-radius:5px}.data-table-header__export-option-icon{height:16px}.data-table-header__export-option-icon>i{color:#fff;margin:0;font-size:10px;font-weight:700}.data-table-header__export-option-icon>i:before{color:#fff}.data-table-header__export-option-label{font-weight:700;font-size:11px;-webkit-user-select:none;user-select:none;cursor:pointer}.data-table-header__description.ant-typography{font-size:13px;color:#797979;font-weight:400}.data-table-header__title.ant-typography{font-size:20px;margin:.5rem 0}.data-table-pagination{display:flex}.data-table-pagination .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{box-sizing:border-box;height:40px;align-items:center;border-radius:5px;border:solid 1px #c8daec}.data-table-pagination__page-size-label.ant-typography{font-size:14px;font-weight:500;color:#788195}.data-table-pagination__pagination.ant-pagination{display:flex;align-items:center;border-radius:5px}.data-table-pagination__pagination.ant-pagination li{margin:0}.data-table-pagination__pagination.ant-pagination .ant-pagination-prev,.data-table-pagination__pagination.ant-pagination .ant-pagination-next{width:36px}.data-table-pagination__pagination.ant-pagination .ant-pagination-prev>button,.data-table-pagination__pagination.ant-pagination .ant-pagination-next>button{color:#788195}.data-table-pagination__pagination.ant-pagination .ant-pagination-prev>button:hover,.data-table-pagination__pagination.ant-pagination .ant-pagination-prev>button:focus,.data-table-pagination__pagination.ant-pagination .ant-pagination-next>button:hover,.data-table-pagination__pagination.ant-pagination .ant-pagination-next>button:focus{color:#788195}.data-table-pagination__pagination.ant-pagination .ant-pagination-simple-pager{color:#9b9b9b;height:40px;border:1px solid #c8daec;margin-inline-end:unset!important;padding-inline-end:8px!important}.data-table-pagination__pagination.ant-pagination .ant-pagination-simple-pager>input{color:#062a4a;font-weight:600;border:1px solid #c8daec;border-radius:0;box-shadow:inset 2px 2px #eef0f2;background-color:#fbfcfd}.data-table-pagination__pagination.ant-pagination .ant-pagination-simple-pager>input:hover{border:1px solid #c8daec}.data-table-pagination .ant-select-selector{color:#9b9b9b!important}.data-table-pagination .ant-pagination-prev{height:40px!important;border:1px solid #c8daec!important;border-right:none!important;border-top-right-radius:0%!important;border-bottom-right-radius:0%!important}.data-table-pagination .ant-pagination-prev>*{height:inherit!important}.data-table-pagination .ant-pagination-next{height:40px!important;border:1px solid #c8daec!important;border-left:none!important;border-top-left-radius:0%!important;border-bottom-left-radius:0%!important}.data-table-pagination .ant-pagination-next>*{height:inherit!important}.data-table-pagination .ant-pagination-options{height:40px!important;order:-1!important;margin-right:20px!important}.ant-divider-custom{height:1.5em;border-color:var(--color-gray-900)}.ant-divider-custom:after,.ant-divider-custom:before{background-color:var(--color-gray-900)}.ant-divider-custom.no-margin{margin:0}.ant-dropdown-menu-item-selected{font-weight:700!important}.akinon-filter{background-color:var(--color-ebonyClay-400);margin-block:2rem;padding:1.25rem 1.5rem 1.5rem;border-radius:10px}.akinon-filter__title{margin:0;font-weight:500!important}.akinon-filter__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.akinon-filter__header{color:var(--color-gray-500);margin:1.25rem 0 .5rem!important}.akinon-filter .ant-form{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:.5rem .75rem}.akinon-filter .ant-picker,.akinon-filter .ant-input-number,.akinon-filter [class^=antd-item]{width:100%}.akinon-filter .ant-form-item-control-input-content>*{height:2.5rem;align-items:center}.akinon-filter .applied_filters{padding:5px 6px;background-color:#2b344c;border-radius:5px}.akinon-filter .applied_filters__list{flex:1;background-color:#1e1e2d;padding:6px 16px;border-radius:3px}.akinon-filter .applied_filters__label.ant-typography{color:#fff;font-size:14px;font-weight:600}.akinon-filter .applied_filters__reset-filters-icon{cursor:pointer;color:#fff;font-size:20px;padding:6px;margin:6px}.akinon-filter .applied_filters__items{flex-wrap:wrap}.akinon-filter .active-filter-item{font-size:14px;background-color:#fff;padding:4px;border-radius:3px;line-height:1rem}.akinon-filter .active-filter-item .ant-space-item{display:flex;justify-content:center}.akinon-filter .active-filter-item__label.ant-typography,.akinon-filter .active-filter-item__value.ant-typography{color:#4a4a4a}.akinon-filter .active-filter-item__label.ant-typography{font-weight:600}.akinon-filter .active-filter-item__value.ant-typography{font-weight:500}.akinon-filter .active-filter-item__remove-filter-icon{cursor:pointer;background-color:#4482ff;color:#fff;font-size:5px;padding:5px;border-radius:99px}.ant-input{box-shadow:none!important}.filter-options__item{display:flex;align-items:center;justify-content:center;height:36px;width:36px;background-color:#4482ff;color:var(--color-neutral-50);border-radius:5px;cursor:pointer}.filter-options__filter-modal-open-icon{color:#fff;font-size:23px}.filter-options__modal-header{position:relative;display:flex;align-items:center}.filter-options__modal-header-banner{position:absolute;width:4px;height:16px;background-color:#ff5163;left:-22px}.filter-options__modal-header-title{font-size:20px;color:#fff;font-weight:500;margin:0}.filter-options__modal-divider.ant-divider-horizontal{background-color:#363d51;width:calc(100% + 44px);margin-left:-22px;margin-top:22px}.filter-options__modal-form.ant-form{margin:32px 44px 0}.filter-options__export-item{display:flex;flex-direction:column;justify-content:center;align-items:center}.filter-options__export-icon{color:#fff}.filter-options__export-label.ant-typography{text-transform:uppercase;color:#fff;font-size:11px;font-weight:700;line-height:14px}.filter-options__modal.ant-modal .ant-checkbox-wrapper{color:#fff}.filter-options__modal.ant-modal .ant-checkbox-checked .ant-checkbox-inner{background-color:#6c7ebe;border-color:#6c7ebe}.filter-options__modal.ant-modal .ant-checkbox-checked .ant-checkbox-inner:hover{border-color:#6c7ebe}.filter-options__modal-form .ant-form{display:grid;grid-template-columns:1fr 1fr 1fr 1fr}body{padding:0;margin:0}.ant-layout:not(.ant-layout-has-sider){border-inline:1px solid var(--color-gray-900)}.ant-layout .ant-layout-header{padding-inline:1rem;height:3.5rem;border-bottom:1px solid var(--color-gray-900);display:flex;align-items:center;justify-content:space-between;line-height:unset;position:sticky;top:0;z-index:1}.ant-layout .ant-layout-sider{position:sticky;top:0;height:100vh;overflow-y:auto}.ant-layout .ant-layout-sider.left{inset-inline-start:0}.ant-layout .ant-layout-sider.right{inset-inline-end:0}.ant-layout .ant-layout-sider .logo-container{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3.5rem;gap:.8rem}.ant-layout .ant-layout-sider .logo-container.collapsed .brand-image{display:none}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react/jsx-runtime"),B=require("react"),_o=require("react-dom"),Ov=require("react-router-dom");function W0(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 u=W0(B),nR=W0(_o);var Vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U0={exports:{}};/*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var l=typeof a;if(l==="string"||l==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var c=n.apply(null,a);c&&r.push(c)}}else if(l==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var d in a)t.call(a,d)&&a[d]&&r.push(d)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(U0);var rR=U0.exports;const ce=Di(rR);function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}var ef={exports:{}},Zt={};/**
7
- * @license React
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */var _v;function iR(){if(_v)return Zt;_v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function m(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case e:switch(b=b.type,b){case n:case i:case r:case p:case g:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case d:case v:case h:case a:return b;default:return x}}case t:return x}}}return Zt.ContextConsumer=l,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=d,Zt.Fragment=n,Zt.Lazy=v,Zt.Memo=h,Zt.Portal=t,Zt.Profiler=i,Zt.StrictMode=r,Zt.Suspense=p,Zt.SuspenseList=g,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(b){return m(b)===l},Zt.isContextProvider=function(b){return m(b)===a},Zt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Zt.isForwardRef=function(b){return m(b)===d},Zt.isFragment=function(b){return m(b)===n},Zt.isLazy=function(b){return m(b)===v},Zt.isMemo=function(b){return m(b)===h},Zt.isPortal=function(b){return m(b)===t},Zt.isProfiler=function(b){return m(b)===i},Zt.isStrictMode=function(b){return m(b)===r},Zt.isSuspense=function(b){return m(b)===p},Zt.isSuspenseList=function(b){return m(b)===g},Zt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===p||b===g||b===S||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===h||b.$$typeof===a||b.$$typeof===l||b.$$typeof===d||b.$$typeof===C||b.getModuleId!==void 0)},Zt.typeOf=m,Zt}var Qt={};/**
15
- * @license React
16
- * react-is.development.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */var Rv;function oR(){return Rv||(Rv=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"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),C=!1,m=!1,b=!1,x=!1,w=!1,E;E=Symbol.for("react.module.reference");function O(te){return!!(typeof te=="string"||typeof te=="function"||te===n||te===i||w||te===r||te===p||te===g||x||te===S||C||m||b||typeof te=="object"&&te!==null&&(te.$$typeof===v||te.$$typeof===h||te.$$typeof===a||te.$$typeof===l||te.$$typeof===d||te.$$typeof===E||te.getModuleId!==void 0))}function I(te){if(typeof te=="object"&&te!==null){var $e=te.$$typeof;switch($e){case e:var Oe=te.type;switch(Oe){case n:case i:case r:case p:case g:return Oe;default:var _e=Oe&&Oe.$$typeof;switch(_e){case c:case l:case d:case v:case h:case a:return _e;default:return $e}}case t:return $e}}}var R=l,_=a,P=e,D=d,A=n,k=v,j=h,F=t,H=i,V=r,L=p,T=g,N=!1,W=!1;function K(te){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(te){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(te){return I(te)===l}function ne(te){return I(te)===a}function oe(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function re(te){return I(te)===d}function fe(te){return I(te)===n}function de(te){return I(te)===v}function se(te){return I(te)===h}function ee(te){return I(te)===t}function ae(te){return I(te)===i}function ge(te){return I(te)===r}function he(te){return I(te)===p}function ue(te){return I(te)===g}Qt.ContextConsumer=R,Qt.ContextProvider=_,Qt.Element=P,Qt.ForwardRef=D,Qt.Fragment=A,Qt.Lazy=k,Qt.Memo=j,Qt.Portal=F,Qt.Profiler=H,Qt.StrictMode=V,Qt.Suspense=L,Qt.SuspenseList=T,Qt.isAsyncMode=K,Qt.isConcurrentMode=X,Qt.isContextConsumer=Y,Qt.isContextProvider=ne,Qt.isElement=oe,Qt.isForwardRef=re,Qt.isFragment=fe,Qt.isLazy=de,Qt.isMemo=se,Qt.isPortal=ee,Qt.isProfiler=ae,Qt.isStrictMode=ge,Qt.isSuspense=he,Qt.isSuspenseList=ue,Qt.isValidElementType=O,Qt.typeOf=I}()),Qt}process.env.NODE_ENV==="production"?ef.exports=iR():ef.exports=oR();var G0=ef.exports;function Wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return B.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Wr(r)):G0.isFragment(r)&&r.props?n=n.concat(Wr(r.props.children,t)):n.push(r))}),n}var tf={},hp=[],aR=function(t){hp.push(t)};function Ro(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=hp.reduce(function(r,i){return i(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function sR(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=hp.reduce(function(r,i){return i(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function K0(){tf={}}function q0(e,t,n){!t&&!tf[n]&&(e(!1,n),tf[n]=!0)}function _t(e,t){q0(Ro,e,t)}function nf(e,t){q0(sR,e,t)}_t.preMessage=aR;_t.resetWarned=K0;_t.noteOnce=nf;function Rt(e){"@babel/helpers - typeof";return Rt=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},Rt(e)}function lR(e,t){if(Rt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X0(e){var t=lR(e,"string");return Rt(t)==="symbol"?t:String(t)}function U(e,t,n){return t=X0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(n),!0).forEach(function(r){U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sc(e){return e instanceof HTMLElement||e instanceof SVGElement}function hs(e){return sc(e)?e:e instanceof B.Component?_o.findDOMNode(e):null}function As(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function vp(e,t){typeof e=="function"?e(t):Rt(e)==="object"&&e&&"current"in e&&(e.current=t)}function pi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(i){return i});return r.length<=1?r[0]:function(i){t.forEach(function(a){vp(a,i)})}}function Fa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return As(function(){return pi.apply(void 0,t)},t,function(r,i){return r.length!==i.length||r.every(function(a,l){return a!==i[l]})})}function zo(e){var t,n,r=G0.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var rf=u.createContext(null);function cR(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),i=u.useRef([]),a=u.useContext(rf),l=u.useCallback(function(c,d,p){r.current+=1;var g=r.current;i.current.push({size:c,element:d,data:p}),Promise.resolve().then(function(){g===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(c,d,p)},[n,a]);return u.createElement(rf.Provider,{value:l},t)}var Y0=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[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),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,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 i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},t}()}(),of=typeof window<"u"&&typeof document<"u"&&window.document===document,lc=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")()}(),uR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(lc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),dR=2;function fR(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function l(){uR(a)}function c(){var d=Date.now();if(n){if(d-i<dR)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=d}return c}var pR=20,gR=["top","right","bottom","left","width","height","size","weight"],hR=typeof MutationObserver<"u",vR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=fR(this.refresh.bind(this),pR)}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(){!of||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),hR?(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(){!of||!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,i=gR.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Z0=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Pa=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||lc},Q0=Pc(0,0,0,0);function cc(e){return parseFloat(e)||0}function Pv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+cc(a)},0)}function mR(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],l=e["padding-"+a];n[a]=cc(l)}return n}function bR(e){var t=e.getBBox();return Pc(0,0,t.width,t.height)}function yR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q0;var r=Pa(e).getComputedStyle(e),i=mR(r),a=i.left+i.right,l=i.top+i.bottom,c=cc(r.width),d=cc(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=Pv(r,"left","right")+a),Math.round(d+l)!==n&&(d-=Pv(r,"top","bottom")+l)),!CR(e)){var p=Math.round(c+a)-t,g=Math.round(d+l)-n;Math.abs(p)!==1&&(c-=p),Math.abs(g)!==1&&(d-=g)}return Pc(i.left,i.top,c,d)}var SR=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Pa(e).SVGGraphicsElement}:function(e){return e instanceof Pa(e).SVGElement&&typeof e.getBBox=="function"}}();function CR(e){return e===Pa(e).document.documentElement}function xR(e){return of?SR(e)?bR(e):yR(e):Q0}function wR(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return Z0(l,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),l}function Pc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ER=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xR(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}(),$R=function(){function e(t,n){var r=wR(n);Z0(this,{target:t,contentRect:r})}return e}(),OR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Y0,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 Pa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ER(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 Pa(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 $R(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}(),J0=typeof WeakMap<"u"?new WeakMap:new Y0,eb=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=vR.getInstance(),r=new OR(t,n,this);J0.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eb.prototype[e]=function(){var t;return(t=J0.get(this))[e].apply(t,arguments)}});var _R=function(){return typeof lc.ResizeObserver<"u"?lc.ResizeObserver:eb}(),Ni=new Map;function tb(e){e.forEach(function(t){var n,r=t.target;(n=Ni.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var nb=new _R(tb);process.env.NODE_ENV;process.env.NODE_ENV;function RR(e,t){Ni.has(e)||(Ni.set(e,new Set),nb.observe(e)),Ni.get(e).add(t)}function IR(e,t){Ni.has(e)&&(Ni.get(e).delete(t),Ni.get(e).size||(nb.unobserve(e),Ni.delete(e)))}function ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tv(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,X0(r.key),r)}}function sr(e,t,n){return t&&Tv(e.prototype,t),n&&Tv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},af(e,t)}function eo(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&&af(e,t)}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uc(e)}function PR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TR(e,t){if(t&&(Rt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function to(e){var t=PR();return function(){var r=uc(e),i;if(t){var a=uc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return TR(this,i)}}var NR=function(e){eo(n,e);var t=to(n);function n(){return ar(this,n),t.apply(this,arguments)}return sr(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function MR(e,t){var n=e.children,r=e.disabled,i=u.useRef(null),a=u.useRef(null),l=u.useContext(rf),c=typeof n=="function",d=c?n(i):n,p=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!c&&u.isValidElement(d)&&zo(d),h=g?d.ref:null,v=Fa(h,i),S=function(){var x;return hs(i.current)||(i.current&&Rt(i.current)==="object"?hs((x=i.current)===null||x===void 0?void 0:x.nativeElement):null)||hs(a.current)};u.useImperativeHandle(t,function(){return S()});var C=u.useRef(e);C.current=e;var m=u.useCallback(function(b){var x=C.current,w=x.onResize,E=x.data,O=b.getBoundingClientRect(),I=O.width,R=O.height,_=b.offsetWidth,P=b.offsetHeight,D=Math.floor(I),A=Math.floor(R);if(p.current.width!==D||p.current.height!==A||p.current.offsetWidth!==_||p.current.offsetHeight!==P){var k={width:D,height:A,offsetWidth:_,offsetHeight:P};p.current=k;var j=_===Math.round(I)?I:_,F=P===Math.round(R)?R:P,H=J(J({},k),{},{offsetWidth:j,offsetHeight:F});l==null||l(H,b,E),w&&Promise.resolve().then(function(){w(H,b)})}},[]);return u.useEffect(function(){var b=S();return b&&!r&&RR(b,m),function(){return IR(b,m)}},[i.current,r]),u.createElement(NR,{ref:a},g?u.cloneElement(d,{ref:v}):d)}var rb=u.forwardRef(MR);process.env.NODE_ENV!=="production"&&(rb.displayName="SingleObserver");var AR="rc-observer-key";function DR(e,t){var n=e.children,r=typeof n=="function"?[n]:Wr(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Ro(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Ro(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(i,a){var l=(i==null?void 0:i.key)||"".concat(AR,"-").concat(a);return u.createElement(rb,rt({},e,{key:l,ref:a===0?t:void 0}),i)})}var Rr=u.forwardRef(DR);process.env.NODE_ENV!=="production"&&(Rr.displayName="ResizeObserver");Rr.Collection=cR;function mr(e,t){var n=J({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LR(e){if(Array.isArray(e))return sf(e)}function ib(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mp(e,t){if(e){if(typeof e=="string")return sf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sf(e,t)}}function zR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(e){return LR(e)||ib(e)||mp(e)||zR()}var ob=function(t){return+setTimeout(t,16)},ab=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ob=function(t){return window.requestAnimationFrame(t)},ab=function(t){return window.cancelAnimationFrame(t)});var Nv=0,bp=new Map;function sb(e){bp.delete(e)}var Jt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Nv+=1;var r=Nv;function i(a){if(a===0)sb(r),t();else{var l=ob(function(){i(a-1)});bp.set(r,l)}}return i(n),r};Jt.cancel=function(e){var t=bp.get(e);return sb(t),ab(t)};function yp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 FR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Tt(e,t){if(e==null)return{};var n=FR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(a);if(_t(!d,"Warning: There may be circular references"),d)return!1;if(a===l)return!0;if(n&&c>1)return!1;r.add(a);var p=c+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var g=0;g<a.length;g++)if(!i(a[g],l[g],p))return!1;return!0}if(a&&l&&Rt(a)==="object"&&Rt(l)==="object"){var h=Object.keys(a);return h.length!==Object.keys(l).length?!1:h.every(function(v){return i(a[v],l[v],p)})}return!1}return i(e,t)}var Mv="%",BR=function(){function e(t){ar(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t}return sr(e,[{key:"get",value:function(n){return this.cache.get(n.join(Mv))||null}},{key:"update",value:function(n,r){var i=n.join(Mv),a=this.cache.get(i),l=r(a);l===null?this.cache.delete(i):this.cache.set(i,l)}}]),e}(),lf="data-token-hash",Eo="data-css-hash",jR="data-cache-path",xa="__cssinjs_instance__";function HR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Eo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[xa]=i[xa]||e,i[xa]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Eo,"]"))).forEach(function(i){var a=i.getAttribute(Eo);if(r[a]){if(i[xa]===e){var l;(l=i.parentNode)===null||l===void 0||l.removeChild(i)}}else r[a]=!0})}return new BR(e)}var Sp=u.createContext({hashPriority:"low",cache:HR(),defaultCache:!0});function Hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function kR(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 Av="data-rc-order",Dv="data-rc-priority",VR="rc-util-key",cf=new Map;function lb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):VR}function Nc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function WR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function cb(e){return Array.from((cf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ub(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Hn())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,l=WR(r),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(Av,l),c&&a&&d.setAttribute(Dv,"".concat(a)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var p=Nc(t),g=p.firstChild;if(r){if(c){var h=cb(p).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Av)))return!1;var S=Number(v.getAttribute(Dv)||0);return a>=S});if(h.length)return p.insertBefore(d,h[h.length-1].nextSibling),d}p.insertBefore(d,g)}else p.appendChild(d);return d}function db(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Nc(t);return cb(n).find(function(r){return r.getAttribute(lb(t))===e})}function dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=db(e,t);if(n){var r=Nc(t);r.removeChild(n)}}function UR(e,t){var n=cf.get(e);if(!n||!kR(document,n)){var r=ub("",t),i=r.parentNode;cf.set(e,i),e.removeChild(r)}}function Cs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Nc(n);UR(r,n);var i=db(t,n);if(i){var a,l;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&i.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=ub(e,n);return d.setAttribute(lb(n),t),d}function fb(e){if(Array.isArray(e))return e}function GR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,c=[],d=!0,p=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(g){p=!0,i=g}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(p)throw i}}return c}}function pb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return fb(e)||GR(e,t)||mp(e,t)||pb()}function KR(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 Cp=function(){function e(){ar(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return sr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(c){if(!l)l=void 0;else{var d,p;l=(d=l)===null||d===void 0||(p=d.map)===null||p===void 0?void 0:p.get(c)}}),(r=l)!==null&&r!==void 0&&r.value&&a&&(l.value[1]=this.cacheCallTimes++),(i=l)===null||i===void 0?void 0:i.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 i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(p,g){var h=ie(p,2),v=h[1];return i.internalGet(g)[1]<v?[g,i.internalGet(g)[1]]:p},[this.keys[0],this.cacheCallTimes]),l=ie(a,1),c=l[0];this.delete(c)}this.keys.push(n)}var d=this.cache;n.forEach(function(p,g){if(g===n.length-1)d.set(p,{value:[r,i.cacheCallTimes++]});else{var h=d.get(p);h?h.map||(h.map=new Map):d.set(p,{map:new Map}),d=d.get(p).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!KR(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(Cp,"MAX_CACHE_SIZE",20);U(Cp,"MAX_CACHE_OFFSET",5);var Lv=0,gb=function(){function e(t){ar(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Lv,t.length===0&&Ro(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Lv+=1}return sr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),gd=new Cp;function xs(e){var t=Array.isArray(e)?e:[e];return gd.has(t)||gd.set(t,new gb(t)),gd.get(t)}var qR=new WeakMap,hd={};function XR(e,t){for(var n=qR,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(hd)||n.set(hd,e()),n.get(hd)}var zv=new WeakMap;function fc(e){var t=zv.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof gb?t+=r.id:r&&Rt(r)==="object"?t+=fc(r):t+=r}),zv.set(e,t)),t}function YR(e,t){return yp("".concat(t,"_").concat(fc(e)))}var vs="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),hb="_bAmBoO_";function ZR(e,t,n){if(Hn()){var r,i;Cs(e,vs);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a),process.env.NODE_ENV!=="production"&&(a.innerHTML="Test",a.style.zIndex="9999999");var l=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(hb);return(i=a.parentNode)===null||i===void 0||i.removeChild(a),dc(vs),l}return!1}var vd=void 0;function QR(){return vd===void 0&&(vd=ZR("@layer ".concat(vs," { .").concat(vs,' { content: "').concat(hb,'"!important; } }'),function(e){e.className=vs})),vd}var Fv=process.env.NODE_ENV!=="test"&&Hn()?u.useLayoutEffect:u.useEffect,nn=function(t,n){var r=u.useRef(!0);Fv(function(){return t(r.current)},n),Fv(function(){return r.current=!1,function(){r.current=!0}},[])},uf=function(t,n){nn(function(r){if(!r)return t()},n)},JR=J({},u),Bv=JR.useInsertionEffect,eI=function(t,n,r){u.useMemo(t,r),nn(function(){return n(!0)},r)},tI=Bv?function(e,t,n){return Bv(function(){return e(),t()},n)}:eI,nI=J({},u),rI=nI.useInsertionEffect,iI=function(t){var n=[],r=!1;function i(a){if(r){process.env.NODE_ENV!=="production"&&Ro(!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 u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},oI=function(){return function(t){t()}},aI=typeof rI<"u"?iI:oI;function sI(){return!1}var df=!1;function lI(){return df}const cI=process.env.NODE_ENV==="production"?sI:lI;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var md=window;if(typeof md.webpackHotUpdate=="function"){var uI=md.webpackHotUpdate;md.webpackHotUpdate=function(){return df=!0,setTimeout(function(){df=!1},0),uI.apply(void 0,arguments)}}}function vb(e,t,n,r,i){var a=u.useContext(Sp),l=a.cache,c=[e].concat(je(t)),d=c.join("_"),p=aI([d]),g=cI(),h=function(m){l.update(c,function(b){var x=b||[],w=ie(x,2),E=w[0],O=E===void 0?0:E,I=w[1],R=I;process.env.NODE_ENV!=="production"&&I&&g&&(r==null||r(R,g),R=null);var _=R||n(),P=[O,_];return m?m(P):P})};u.useMemo(function(){h()},[d]);var v=l.get(c);process.env.NODE_ENV!=="production"&&!v&&(h(),v=l.get(c));var S=v[1];return tI(function(){i==null||i(S)},function(C){return h(function(m){var b=ie(m,2),x=b[0],w=b[1];return C&&x===0&&(i==null||i(S)),[x+1,w]}),function(){l.update(c,function(m){var b=m||[],x=ie(b,2),w=x[0],E=w===void 0?0:w,O=x[1],I=E-1;return I===0?(p(function(){return r==null?void 0:r(O,!1)}),null):[E-1,O]})}},[d]),S}var dI={},fI=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",So=new Map;function pI(e){So.set(e,(So.get(e)||0)+1)}function gI(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(lf,'="').concat(e,'"]'));n.forEach(function(r){if(r[xa]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var hI=0;function vI(e,t){So.set(e,(So.get(e)||0)-1);var n=Array.from(So.keys()),r=n.filter(function(i){var a=So.get(i)||0;return a<=0});n.length-r.length>hI&&r.forEach(function(i){gI(i,t),So.delete(i)})}var mb=function(t,n,r,i){var a=r.getDerivativeToken(t),l=J(J({},a),n);return i&&(l=i(l)),l};function mI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.useContext(Sp),i=r.cache.instanceId,a=n.salt,l=a===void 0?"":a,c=n.override,d=c===void 0?dI:c,p=n.formatToken,g=n.getComputedToken,h=XR(function(){return Object.assign.apply(Object,[{}].concat(je(t)))},t),v=fc(h),S=fc(d),C=vb("token",[l,e.id,v,S],function(){var m=g?g(h,d,e):mb(h,d,e,p),b=YR(m,l);m._tokenKey=b,pI(b);var x="".concat(fI,"-").concat(yp(b));return m._hashId=x,[m,x]},function(m){vI(m[0]._tokenKey,i)});return C}var bI={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},bb="comm",yb="rule",Sb="decl",yI="@import",SI="@keyframes",CI="@layer",xI=Math.abs,xp=String.fromCharCode;function Cb(e){return e.trim()}function Ql(e,t,n){return e.replace(t,n)}function wI(e,t){return e.indexOf(t)}function ws(e,t){return e.charCodeAt(t)|0}function Es(e,t,n){return e.slice(t,n)}function Ti(e){return e.length}function EI(e){return e.length}function Al(e,t){return t.push(e),e}var Mc=1,Ta=1,xb=0,Ur=0,Rn=0,Ba="";function wp(e,t,n,r,i,a,l,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Mc,column:Ta,length:l,return:"",siblings:c}}function $I(){return Rn}function OI(){return Rn=Ur>0?ws(Ba,--Ur):0,Ta--,Rn===10&&(Ta=1,Mc--),Rn}function oi(){return Rn=Ur<xb?ws(Ba,Ur++):0,Ta++,Rn===10&&(Ta=1,Mc++),Rn}function $o(){return ws(Ba,Ur)}function Jl(){return Ur}function Ac(e,t){return Es(Ba,e,t)}function ff(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 _I(e){return Mc=Ta=1,xb=Ti(Ba=e),Ur=0,[]}function RI(e){return Ba="",e}function bd(e){return Cb(Ac(Ur-1,pf(e===91?e+2:e===40?e+1:e)))}function II(e){for(;(Rn=$o())&&Rn<33;)oi();return ff(e)>2||ff(Rn)>3?"":" "}function PI(e,t){for(;--t&&oi()&&!(Rn<48||Rn>102||Rn>57&&Rn<65||Rn>70&&Rn<97););return Ac(e,Jl()+(t<6&&$o()==32&&oi()==32))}function pf(e){for(;oi();)switch(Rn){case e:return Ur;case 34:case 39:e!==34&&e!==39&&pf(Rn);break;case 40:e===41&&pf(e);break;case 92:oi();break}return Ur}function TI(e,t){for(;oi()&&e+Rn!==47+10;)if(e+Rn===42+42&&$o()===47)break;return"/*"+Ac(t,Ur-1)+"*"+xp(e===47?e:oi())}function NI(e){for(;!ff($o());)oi();return Ac(e,Ur)}function MI(e){return RI(ec("",null,null,null,[""],e=_I(e),0,[0],e))}function ec(e,t,n,r,i,a,l,c,d){for(var p=0,g=0,h=l,v=0,S=0,C=0,m=1,b=1,x=1,w=0,E="",O=i,I=a,R=r,_=E;b;)switch(C=w,w=oi()){case 40:if(C!=108&&ws(_,h-1)==58){wI(_+=Ql(bd(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=bd(w);break;case 9:case 10:case 13:case 32:_+=II(C);break;case 92:_+=PI(Jl()-1,7);continue;case 47:switch($o()){case 42:case 47:Al(AI(TI(oi(),Jl()),t,n,d),d);break;default:_+="/"}break;case 123*m:c[p++]=Ti(_)*x;case 125*m:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+g:x==-1&&(_=Ql(_,/\f/g,"")),S>0&&Ti(_)-h&&Al(S>32?Hv(_+";",r,n,h-1,d):Hv(Ql(_," ","")+";",r,n,h-2,d),d);break;case 59:_+=";";default:if(Al(R=jv(_,t,n,p,g,i,c,E,O=[],I=[],h,a),a),w===123)if(g===0)ec(_,t,R,R,O,a,h,c,I);else switch(v===99&&ws(_,3)===110?100:v){case 100:case 108:case 109:case 115:ec(e,R,R,r&&Al(jv(e,R,R,0,0,i,c,E,i,O=[],h,I),I),i,I,h,c,r?O:I);break;default:ec(_,R,R,R,[""],I,0,c,I)}}p=g=S=0,m=x=1,E=_="",h=l;break;case 58:h=1+Ti(_),S=C;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&OI()==125)continue}switch(_+=xp(w),w*m){case 38:x=g>0?1:(_+="\f",-1);break;case 44:c[p++]=(Ti(_)-1)*x,x=1;break;case 64:$o()===45&&(_+=bd(oi())),v=$o(),g=h=Ti(E=_+=NI(Jl())),w++;break;case 45:C===45&&Ti(_)==2&&(m=0)}}return a}function jv(e,t,n,r,i,a,l,c,d,p,g,h){for(var v=i-1,S=i===0?a:[""],C=EI(S),m=0,b=0,x=0;m<r;++m)for(var w=0,E=Es(e,v+1,v=xI(b=l[m])),O=e;w<C;++w)(O=Cb(b>0?S[w]+" "+E:Ql(E,/&\f/g,S[w])))&&(d[x++]=O);return wp(e,t,n,i===0?yb:c,d,p,g,h)}function AI(e,t,n,r){return wp(e,t,n,bb,xp($I()),Es(e,2,-2),0,r)}function Hv(e,t,n,r,i){return wp(e,t,n,Sb,Es(e,0,r),Es(e,r+1,-1),r,i)}function gf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function DI(e,t,n,r){switch(e.type){case CI:if(e.children.length)break;case yI:case Sb:return e.return=e.return||e.value;case bb:return"";case SI:return e.return=e.value+"{"+gf(e.children,r)+"}";case yb:if(!Ti(e.value=e.props.join(",")))return""}return Ti(n=gf(e.children,r))?e.return=e.value+"{"+n+"}":""}function wb(e,t){var n=t.path,r=t.parentSelectors;_t(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var LI=function(t,n,r){if(t==="content"){var i=/(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&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&wb("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},zI=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&wb("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},kv="data-ant-cssinjs-cache-path",Eb="_FILE_STYLE__",Oo,$b=!0;function FI(){if(!Oo&&(Oo={},Hn())){var e=document.createElement("div");e.className=kv,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(i){var a=i.split(":"),l=ie(a,2),c=l[0],d=l[1];Oo[c]=d});var n=document.querySelector("style[".concat(kv,"]"));if(n){var r;$b=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function BI(e){return FI(),!!Oo[e]}function jI(e){var t=Oo[e],n=null;if(t&&Hn())if($b)n=Eb;else{var r=document.querySelector("style[".concat(Eo,'="').concat(Oo[e],'"]'));r?n=r.innerHTML:delete Oo[e]}return[n,t]}var Vv=Hn(),Ob="_skip_check_",_b="_multi_value_";function Wv(e){var t=gf(MI(e),DI);return t.replace(/\{%%%\:[^;];}/g,";")}function HI(e){return Rt(e)==="object"&&e&&(Ob in e||_b in e)}function kI(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(l){var c,d=l.trim().split(/\s+/),p=d[0]||"",g=((c=p.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return p="".concat(g).concat(i).concat(p.slice(g.length)),[p].concat(je(d.slice(1))).join(" ")});return a.join(",")}var VI=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:[]},i=r.root,a=r.injectHash,l=r.parentSelectors,c=n.hashId,d=n.layer,p=n.path,g=n.hashPriority,h=n.transformers,v=h===void 0?[]:h,S=n.linters,C=S===void 0?[]:S,m="",b={};function x(R){var _=R.getName(c);if(!b[_]){var P=e(R.style,n,{root:!1,parentSelectors:l}),D=ie(P,1),A=D[0];b[_]="@keyframes ".concat(R.getName(c)).concat(A)}}function w(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return R.forEach(function(P){Array.isArray(P)?w(P,_):P&&_.push(P)}),_}var E=w(Array.isArray(t)?t:[t]);if(E.forEach(function(R){var _=typeof R=="string"&&!i?{}:R;if(typeof _=="string")m+="".concat(_,`
25
- `);else if(_._keyframe)x(_);else{var P=v.reduce(function(D,A){var k;return(A==null||(k=A.visit)===null||k===void 0?void 0:k.call(A,D))||D},_);Object.keys(P).forEach(function(D){var A=P[D];if(Rt(A)==="object"&&A&&(D!=="animationName"||!A._keyframe)&&!HI(A)){var k=!1,j=D.trim(),F=!1;(i||a)&&c?j.startsWith("@")?k=!0:j=kI(D,c,g):i&&!c&&(j==="&"||j==="")&&(j="",F=!0);var H=e(A,n,{root:F,injectHash:k,parentSelectors:[].concat(je(l),[j])}),V=ie(H,2),L=V[0],T=V[1];b=J(J({},b),T),m+="".concat(j).concat(L)}else{let K=function(X,Y){process.env.NODE_ENV!=="production"&&(Rt(A)!=="object"||!(A!=null&&A[Ob]))&&[LI,zI].concat(je(C)).forEach(function(re){return re(X,Y,{path:p,hashId:c,parentSelectors:l})});var ne=X.replace(/[A-Z]/g,function(re){return"-".concat(re.toLowerCase())}),oe=Y;!bI[X]&&typeof oe=="number"&&oe!==0&&(oe="".concat(oe,"px")),X==="animationName"&&Y!==null&&Y!==void 0&&Y._keyframe&&(x(Y),oe=Y.getName(c)),m+="".concat(ne,":").concat(oe,";")};var N,W=(N=A==null?void 0:A.value)!==null&&N!==void 0?N:A;Rt(A)==="object"&&A!==null&&A!==void 0&&A[_b]&&Array.isArray(W)?W.forEach(function(X){K(D,X)}):K(D,W)}})}}),!i)m="{".concat(m,"}");else if(d&&QR()){var O=d.split(","),I=O[O.length-1].trim();m="@layer ".concat(I," {").concat(m,"}"),O.length>1&&(m="@layer ".concat(d,"{%%%:%}").concat(m))}return[m,b]};function WI(e,t){return yp("".concat(e.join("%")).concat(t))}function UI(){return null}function hf(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,d=e.order,p=d===void 0?0:d,g=u.useContext(Sp),h=g.autoClear,v=g.mock,S=g.defaultCache,C=g.hashPriority,m=g.container,b=g.ssrInline,x=g.transformers,w=g.linters,E=g.cache,O=n._tokenKey,I=[O].concat(je(r)),R=Vv;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var _=vb("style",I,function(){var j=I.join("|");if(BI(j)){var F=jI(j),H=ie(F,2),V=H[0],L=H[1];if(V)return[V,O,L,{},c,p]}var T=t(),N=VI(T,{hashId:i,hashPriority:C,layer:a,path:r.join("-"),transformers:x,linters:w}),W=ie(N,2),K=W[0],X=W[1],Y=Wv(K),ne=WI(I,Y);return[Y,O,ne,X,c,p]},function(j,F){var H=ie(j,3),V=H[2];(F||h)&&Vv&&dc(V,{mark:Eo})},function(j){var F=ie(j,4),H=F[0];F[1];var V=F[2],L=F[3];if(R&&H!==Eb){var T={mark:Eo,prepend:"queue",attachTo:m,priority:p},N=typeof l=="function"?l():l;N&&(T.csp={nonce:N});var W=Cs(H,V,T);W[xa]=E.instanceId,W.setAttribute(lf,O),process.env.NODE_ENV!=="production"&&W.setAttribute(jR,I.join("|")),Object.keys(L).forEach(function(K){Cs(Wv(L[K]),"_effect-".concat(K),T)})}}),P=ie(_,3),D=P[0],A=P[1],k=P[2];return function(j){var F;if(!b||R||!S)F=u.createElement(UI,null);else{var H;F=u.createElement("style",rt({},(H={},U(H,lf,A),U(H,Eo,k),H),{dangerouslySetInnerHTML:{__html:D}}))}return u.createElement(u.Fragment,null,F,j)}}var Xt=function(){function e(t,n){ar(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return sr(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 aa(e){return e.notSplit=!0,e}aa(["borderTop","borderBottom"]),aa(["borderTop"]),aa(["borderBottom"]),aa(["borderLeft","borderRight"]),aa(["borderLeft"]),aa(["borderRight"]);var GI=B.createContext({});const Ep=GI;function Rb(e){return fb(e)||ib(e)||mp(e)||pb()}function ii(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ib(e,t,n,r){if(!t.length)return n;var i=Rb(t),a=i[0],l=i.slice(1),c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=je(e):c=J({},e),r&&n===void 0&&l.length===1?delete c[a][l[0]]:c[a]=Ib(c[a],l,n,r),c}function ni(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ii(e,t.slice(0,-1))?e:Ib(e,t,n,r)}function KI(e){return Rt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Uv(e){return Array.isArray(e)?[]:{}}var qI=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Uv(t[0]);return t.forEach(function(i){function a(l,c){var d=new Set(c),p=ii(i,l),g=Array.isArray(p);if(g||KI(p)){if(!d.has(p)){d.add(p);var h=ii(r,l);g?r=ni(r,l,[]):(!h||Rt(h)!=="object")&&(r=ni(r,l,Uv(p))),qI(p).forEach(function(v){a([].concat(je(l),[v]),d)})}}else r=ni(r,l,p)}a([])}),r}function Pb(){}let Ii=null;function XI(){Ii=null,K0()}let $p=Pb;process.env.NODE_ENV!=="production"&&($p=(e,t,n)=>{_t(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&XI()});const Tb=u.createContext({}),Yn=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=u.useContext(Tb),n=(r,i,a)=>{if(!r)if(t===!1&&i==="deprecated"){const l=Ii;Ii||(Ii={}),Ii[e]=Ii[e]||[],Ii[e].includes(a||"")||Ii[e].push(a||""),l||console.warn("[antd] There exists deprecated usage in your code:",Ii)}else process.env.NODE_ENV!=="production"&&$p(r,e,a)};return n.deprecated=(r,i,a,l)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${l?` ${l}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Pb,e},Dc=$p,YI=B.createContext(void 0),Nb={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"};var ZI={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const QI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mb=QI,JI={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"]},ZI),timePickerLocale:Object.assign({},Mb)},Gv=JI,Er="${label} is not a valid ${type}",e2={locale:"en",Pagination:Nb,DatePicker:Gv,TimePicker:Mb,Calendar:Gv,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string: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:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},Na=e2;Object.assign({},Na.Modal);let tc=[];const Kv=()=>tc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Na.Modal);function t2(e){if(e){const t=Object.assign({},e);return tc.push(t),Kv(),()=>{tc=tc.filter(n=>n!==t),Kv()}}Object.assign({},Na.Modal)}const n2=B.createContext(void 0),Op=n2,r2=(e,t)=>{const n=u.useContext(Op),r=u.useMemo(()=>{var a;const l=t||Na[e],c=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),c||{})},[e,t,n]),i=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Na.locale:a},[n]);return[r,i]},_p=r2,Ab="internalMark",Db=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=Yn("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===Ab,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}u.useEffect(()=>t2(t&&t.Modal),[t]);const i=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Op.Provider,{value:i},n)};process.env.NODE_ENV!=="production"&&(Db.displayName="LocaleProvider");const i2=Db;function kn(e,t){o2(e)&&(e="100%");var n=a2(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Dl(e){return Math.min(1,Math.max(0,e))}function o2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function a2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Lb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ll(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Co(e){return e.length===1?"0"+e:String(e)}function s2(e,t,n){return{r:kn(e,255)*255,g:kn(t,255)*255,b:kn(n,255)*255}}function qv(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(r+i)/2;if(r===i)l=0,a=0;else{var d=r-i;switch(l=c>.5?d/(2-r-i):d/(r+i),r){case e:a=(t-n)/d+(t<n?6:0);break;case t:a=(n-e)/d+2;break;case n:a=(e-t)/d+4;break}a/=6}return{h:a,s:l,l:c}}function yd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l2(e,t,n){var r,i,a;if(e=kn(e,360),t=kn(t,100),n=kn(n,100),t===0)i=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=yd(c,l,e+1/3),i=yd(c,l,e),a=yd(c,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function vf(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=r,c=r-i,d=r===0?0:c/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:d,v:l}}function c2(e,t,n){e=kn(e,360)*6,t=kn(t,100),n=kn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),c=n*(1-(1-i)*t),d=r%6,p=[n,l,a,a,c,n][d],g=[c,n,n,l,a,a][d],h=[a,a,c,n,n,l][d];return{r:p*255,g:g*255,b:h*255}}function mf(e,t,n,r){var i=[Co(Math.round(e).toString(16)),Co(Math.round(t).toString(16)),Co(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u2(e,t,n,r,i){var a=[Co(Math.round(e).toString(16)),Co(Math.round(t).toString(16)),Co(Math.round(n).toString(16)),Co(d2(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function d2(e){return Math.round(parseFloat(e)*255).toString(16)}function Xv(e){return Or(e)/255}function Or(e){return parseInt(e,16)}function f2(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var bf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ca(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,l=!1,c=!1;return typeof e=="string"&&(e=h2(e)),typeof e=="object"&&($i(e.r)&&$i(e.g)&&$i(e.b)?(t=s2(e.r,e.g,e.b),l=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$i(e.h)&&$i(e.s)&&$i(e.v)?(r=Ll(e.s),i=Ll(e.v),t=c2(e.h,r,i),l=!0,c="hsv"):$i(e.h)&&$i(e.s)&&$i(e.l)&&(r=Ll(e.s),a=Ll(e.l),t=l2(e.h,r,a),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Lb(n),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var p2="[-\\+]?\\d+%?",g2="[-\\+]?\\d*\\.\\d+%?",Yi="(?:".concat(g2,")|(?:").concat(p2,")"),Sd="[\\s|\\(]+(".concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")\\s*\\)?"),Cd="[\\s|\\(]+(".concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")[,|\\s]+(").concat(Yi,")\\s*\\)?"),ti={CSS_UNIT:new RegExp(Yi),rgb:new RegExp("rgb"+Sd),rgba:new RegExp("rgba"+Cd),hsl:new RegExp("hsl"+Sd),hsla:new RegExp("hsla"+Cd),hsv:new RegExp("hsv"+Sd),hsva:new RegExp("hsva"+Cd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(bf[e])e=bf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ti.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ti.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ti.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ti.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ti.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ti.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ti.hex8.exec(e),n?{r:Or(n[1]),g:Or(n[2]),b:Or(n[3]),a:Xv(n[4]),format:t?"name":"hex8"}:(n=ti.hex6.exec(e),n?{r:Or(n[1]),g:Or(n[2]),b:Or(n[3]),format:t?"name":"hex"}:(n=ti.hex4.exec(e),n?{r:Or(n[1]+n[1]),g:Or(n[2]+n[2]),b:Or(n[3]+n[3]),a:Xv(n[4]+n[4]),format:t?"name":"hex8"}:(n=ti.hex3.exec(e),n?{r:Or(n[1]+n[1]),g:Or(n[2]+n[2]),b:Or(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function $i(e){return!!ti.CSS_UNIT.exec(String(e))}var Mn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=f2(t)),this.originalInput=t;var i=Ca(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,l=t.g/255,c=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Lb(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=vf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=vf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qv(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),mf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),u2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(kn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(kn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+mf(this.r,this.g,this.b,!1),n=0,r=Object.entries(bf);n<r.length;n++){var i=r[n],a=i[0],l=i[1];if(t===l)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Dl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Dl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Dl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Dl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,l={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,l=[],c=1/t;t--;)l.push(new e({h:r,s:i,v:a})),a=(a+c)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,l=1;l<t;l++)i.push(new e({h:(r+l*a)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),zl=2,Yv=.16,v2=.05,m2=.05,b2=.15,zb=5,Fb=4,y2=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Zv(e){var t=e.r,n=e.g,r=e.b,i=vf(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function Fl(e){var t=e.r,n=e.g,r=e.b;return"#".concat(mf(t,n,r,!1))}function S2(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function Qv(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-zl*t:Math.round(e.h)+zl*t:r=n?Math.round(e.h)+zl*t:Math.round(e.h)-zl*t,r<0?r+=360:r>=360&&(r-=360),r}function Jv(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Yv*t:t===Fb?r=e.s+Yv:r=e.s+v2*t,r>1&&(r=1),n&&t===zb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function em(e,t,n){var r;return n?r=e.v+m2*t:r=e.v-b2*t,r>1&&(r=1),Number(r.toFixed(2))}function Mi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ca(e),i=zb;i>0;i-=1){var a=Zv(r),l=Fl(Ca({h:Qv(a,i,!0),s:Jv(a,i,!0),v:em(a,i,!0)}));n.push(l)}n.push(Fl(r));for(var c=1;c<=Fb;c+=1){var d=Zv(r),p=Fl(Ca({h:Qv(d,c),s:Jv(d,c),v:em(d,c)}));n.push(p)}return t.theme==="dark"?y2.map(function(g){var h=g.index,v=g.opacity,S=Fl(S2(Ca(t.backgroundColor||"#141414"),Ca(n[h]),v*100));return S}):n}var xd={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"},ms={},wd={};Object.keys(xd).forEach(function(e){ms[e]=Mi(xd[e]),ms[e].primary=ms[e][5],wd[e]=Mi(xd[e],{theme:"dark",backgroundColor:"#141414"}),wd[e].primary=wd[e][5]});var C2=ms.gold,x2=ms.blue;const w2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Bb=w2;function E2(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 Rp={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"},Ma=Object.assign(Object.assign({},Rp),{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});function jb(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:l,colorInfo:c,colorPrimary:d,colorBgBase:p,colorTextBase:g}=e,h=n(d),v=n(i),S=n(a),C=n(l),m=n(c),b=r(p,g),x=e.colorLink||e.colorInfo,w=n(x);return Object.assign(Object.assign({},b),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:S[1],colorWarningBgHover:S[2],colorWarningBorder:S[3],colorWarningBorderHover:S[4],colorWarningHover:S[4],colorWarning:S[6],colorWarningActive:S[7],colorWarningTextHover:S[8],colorWarningText:S[9],colorWarningTextActive:S[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new Mn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const $2=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}},O2=$2;function _2(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},O2(r))}const Oi=(e,t)=>new Mn(e).setAlpha(t).toRgbString(),as=(e,t)=>new Mn(e).darken(t).toHexString(),R2=e=>{const t=Mi(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]}},I2=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Oi(r,.88),colorTextSecondary:Oi(r,.65),colorTextTertiary:Oi(r,.45),colorTextQuaternary:Oi(r,.25),colorFill:Oi(r,.15),colorFillSecondary:Oi(r,.06),colorFillTertiary:Oi(r,.04),colorFillQuaternary:Oi(r,.02),colorBgLayout:as(n,4),colorBgContainer:as(n,0),colorBgElevated:as(n,0),colorBgSpotlight:Oi(r,.85),colorBgBlur:"transparent",colorBorder:as(n,15),colorBorderSecondary:as(n,6)}};function P2(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(2.71828,i/5),l=r>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const T2=e=>{const t=P2(e),n=t.map(i=>i.size),r=t.map(i=>i.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Hb=T2;function Ds(e){const t=Object.keys(Rp).map(n=>{const r=Mi(e[n]);return new Array(10).fill(1).reduce((i,a,l)=>(i[`${n}-${l+1}`]=r[l],i[`${n}${l+1}`]=r[l],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),jb(e,{generateColorPalettes:R2,generateNeutralColorPalettes:I2})),Hb(e.fontSize)),E2(e)),Bb(e)),_2(e))}const kb=xs(Ds),pc={token:Ma,override:{override:Ma},hashed:!0},Vb=B.createContext(pc),Wb="anticon",N2=(e,t)=>t||(e?`ant-${e}`:"ant"),It=u.createContext({getPrefixCls:N2,iconPrefixCls:Wb}),M2=`-ant-${Date.now()}-${Math.random()}`;function A2(e,t){const n={},r=(l,c)=>{let d=l.clone();return d=(c==null?void 0:c(d))||d,d.toRgbString()},i=(l,c)=>{const d=new Mn(l),p=Mi(d.toRgbString());n[`${c}-color`]=r(d),n[`${c}-color-disabled`]=p[1],n[`${c}-color-hover`]=p[4],n[`${c}-color-active`]=p[6],n[`${c}-color-outline`]=d.clone().setAlpha(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=p[0],n[`${c}-color-deprecated-border`]=p[2]};if(t.primaryColor){i(t.primaryColor,"primary");const l=new Mn(t.primaryColor),c=Mi(l.toRgbString());c.forEach((p,g)=>{n[`primary-${g+1}`]=p}),n["primary-color-deprecated-l-35"]=r(l,p=>p.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,p=>p.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,p=>p.tint(20)),n["primary-color-deprecated-t-50"]=r(l,p=>p.tint(50)),n["primary-color-deprecated-f-12"]=r(l,p=>p.setAlpha(p.getAlpha()*.12));const d=new Mn(c[0]);n["primary-color-active-deprecated-f-30"]=r(d,p=>p.setAlpha(p.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(d,p=>p.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
28
- :root {
29
- ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
30
- `)}
31
- }
32
- `.trim()}function D2(e,t){const n=A2(e,t);Hn()?Cs(n,`${M2}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Dc(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const yf=u.createContext(!1),L2=e=>{let{children:t,disabled:n}=e;const r=u.useContext(yf);return u.createElement(yf.Provider,{value:n??r},t)},Ls=yf,Sf=u.createContext(void 0),z2=e=>{let{children:t,size:n}=e;const r=u.useContext(Sf);return u.createElement(Sf.Provider,{value:n||r},t)},Lc=Sf;function F2(){const e=B.useContext(Ls),t=B.useContext(Lc);return{componentDisabled:e,componentSize:t}}const gc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],B2="5.11.0";function Ed(e){return e>=0&&e<=255}function Bl(e,t){const{r:n,g:r,b:i,a}=new Mn(e).toRgb();if(a<1)return e;const{r:l,g:c,b:d}=new Mn(t).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((n-l*(1-p))/p),h=Math.round((r-c*(1-p))/p),v=Math.round((i-d*(1-p))/p);if(Ed(g)&&Ed(h)&&Ed(v))return new Mn({r:g,g:h,b:v,a:Math.round(p*100)/100}).toRgbString()}return new Mn({r:n,g:r,b:i,a:1}).toRgbString()}var j2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ip(e){const{override:t}=e,n=j2(e,["override"]),r=Object.assign({},t);Object.keys(Ma).forEach(v=>{delete r[v]});const i=Object.assign(Object.assign({},n),r),a=480,l=576,c=768,d=992,p=1200,g=1600;if(i.motion===!1){const v="0s";i.motionDurationFast=v,i.motionDurationMid=v,i.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Bl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Bl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Bl(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Bl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
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:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
45
- 0 1px 2px -2px ${new Mn("rgba(0, 0, 0, 0.16)").toRgbString()},
46
- 0 3px 6px 0 ${new Mn("rgba(0, 0, 0, 0.12)").toRgbString()},
47
- 0 5px 12px 4px ${new Mn("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 tm=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ub=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=tm(t,["override"]);let l=Object.assign(Object.assign({},r),{override:i});return l=Ip(l),a&&Object.entries(a).forEach(c=>{let[d,p]=c;const{theme:g}=p,h=tm(p,["theme"]);let v=h;g&&(v=Ub(Object.assign(Object.assign({},l),h),{override:h},g)),l[d]=v}),l};function si(){const{token:e,hashed:t,theme:n,override:r}=B.useContext(Vb),i=`${B2}-${t||""}`,a=n||kb,[l,c]=mI(a,[Ma,e],{salt:i,override:r,getComputedToken:Ub,formatToken:Ip});return[a,l,t?c:""]}function gr(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function _a(e){var t=u.useRef(!1),n=u.useState(e),r=ie(n,2),i=r[0],a=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(c,d){d&&t.current||a(c)}return[i,l]}function $d(e){return e!==void 0}function qn(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,l=n.postState,c=_a(function(){return $d(i)?i:$d(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=ie(c,2),p=d[0],g=d[1],h=i!==void 0?i:p,v=l?l(h):h,S=gr(a),C=_a([h]),m=ie(C,2),b=m[0],x=m[1];uf(function(){var E=b[0];p!==E&&S(p,E)},[b]),uf(function(){$d(i)||g(i)},[i]);var w=gr(function(E,O){g(E,O),x([h],O)});return[v,w]}const Gb=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),H2=(e,t,n,r,i)=>{const a=e/2,l=0,c=a,d=n*1/Math.sqrt(2),p=a-n*(1-1/Math.sqrt(2)),g=a-t*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),v=2*a-g,S=h,C=2*a-d,m=p,b=2*a-l,x=c,w=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),E=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${E}px 100%, 50% ${E}px, ${2*a-E}px 100%, ${E}px 100%)`,`path('M ${l} ${c} A ${n} ${n} 0 0 0 ${d} ${p} L ${g} ${h} A ${t} ${t} 0 0 1 ${v} ${S} L ${C} ${m} A ${n} ${n} 0 0 0 ${b} ${x} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:w,height:w,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},Aa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Pp=()=>({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"}}),zs=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k2=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),V2=(e,t)=>{const{fontFamily:n,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},$s=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zc=e=>({"&:focus-visible":Object.assign({},$s(e))}),Kb=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Cf=!0;function en(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Kb)return Object.assign.apply(Object,[{}].concat(t));Cf=!1;const r={};return t.forEach(i=>{Object.keys(i).forEach(l=>{Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:()=>i[l]})})}),Cf=!0,r}const nm={};function W2(){}function U2(e){let t,n=e,r=W2;return Kb&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(i,a){return Cf&&t.add(a),i[a]}}),r=(i,a)=>{var l;nm[i]={global:Array.from(t),component:Object.assign(Object.assign({},(l=nm[i])===null||l===void 0?void 0:l.component),a)}}),{token:n,keys:t,flush:r}}const G2=(e,t)=>{const[n,r]=si();return hf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Pp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},qb=G2;function Dn(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[a]=i,l=i.join("-");return c=>{const[d,p,g]=si(),{getPrefixCls:h,iconPrefixCls:v,csp:S}=B.useContext(It),C=h(),m={theme:d,token:p,hashId:g,nonce:()=>S==null?void 0:S.nonce,clientOnly:r.clientOnly,order:r.order||-999};return hf(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",C]}),()=>[{"&":k2(p)}]),qb(v,S),[hf(Object.assign(Object.assign({},m),{path:[l,c,v]}),()=>{const{token:b,flush:x}=U2(p),w=Object.assign({},p[a]);if(r.deprecatedTokens){const{deprecatedTokens:P}=r;P.forEach(D=>{let[A,k]=D;var j;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&_t(!(w!=null&&w[A]),`The token '${String(A)}' of ${a} had deprecated, use '${String(k)}' instead.`),(w!=null&&w[A]||w!=null&&w[k])&&((j=w[k])!==null&&j!==void 0||(w[k]=w==null?void 0:w[A]))})}const E=typeof n=="function"?n(en(b,w??{})):n,O=Object.assign(Object.assign({},E),w),I=`.${c}`,R=en(b,{componentCls:I,prefixCls:c,iconCls:`.${v}`,antCls:`.${C}`},O),_=t(R,{hashId:g,prefixCls:c,rootPrefixCls:C,iconPrefixCls:v,overrideComponentToken:w});return x(a,O),[r.resetStyle===!1?null:V2(p,c),_]}),g]}}const K2=(e,t,n,r)=>{const i=Dn(e,t,n,Object.assign({resetStyle:!1,order:-998},r)),a=l=>{let{prefixCls:c}=l;return i(c),null};return process.env.NODE_ENV!=="production"&&(a.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`),a};function q2(e,t){return gc.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],l=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:l,textColor:c}))},{})}function X2(e,t){const n=e||{},r=n.inherit===!1||!t?pc:t;return As(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((l,c)=>{const d=a[c];return!Tc(l,d,!0)}))}var Y2=["children"],Xb=u.createContext({});function Z2(e){var t=e.children,n=Tt(e,Y2);return u.createElement(Xb.Provider,{value:n},t)}var Q2=function(e){eo(n,e);var t=to(n);function n(){return ar(this,n),t.apply(this,arguments)}return sr(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),mo="none",jl="appear",Hl="enter",kl="leave",rm="none",ri="prepare",Ea="start",$a="active",Tp="end",Yb="prepared";function im(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 J2(e,t){var n={animationend:im("Animation","AnimationEnd"),transitionend:im("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var eP=J2(Hn(),typeof window<"u"?window:{}),Zb={};if(Hn()){var tP=document.createElement("div");Zb=tP.style}var Vl={};function Qb(e){if(Vl[e])return Vl[e];var t=eP[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Zb)return Vl[e]=t[a],Vl[e]}return""}var Jb=Qb("animationend"),ey=Qb("transitionend"),ty=!!(Jb&&ey),om=Jb||"animationend",am=ey||"transitionend";function sm(e,t){if(!e)return null;if(Rt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const nP=function(e){var t=B.useRef(),n=B.useRef(e);n.current=e;var r=u.useCallback(function(l){n.current(l)},[]);function i(l){l&&(l.removeEventListener(am,r),l.removeEventListener(om,r))}function a(l){t.current&&t.current!==l&&i(t.current),l&&l!==t.current&&(l.addEventListener(am,r),l.addEventListener(om,r),t.current=l)}return u.useEffect(function(){return function(){i(t.current)}},[]),[a,i]};var ny=Hn()?B.useLayoutEffect:B.useEffect;const rP=function(){var e=u.useRef(null);function t(){Jt.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Jt(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var iP=[ri,Ea,$a,Tp],oP=[ri,Yb],ry=!1,aP=!0;function iy(e){return e===$a||e===Tp}const sP=function(e,t,n){var r=_a(rm),i=ie(r,2),a=i[0],l=i[1],c=rP(),d=ie(c,2),p=d[0],g=d[1];function h(){l(ri,!0)}var v=t?oP:iP;return ny(function(){if(a!==rm&&a!==Tp){var S=v.indexOf(a),C=v[S+1],m=n(a);m===ry?l(C,!0):C&&p(function(b){function x(){b.isCanceled()||l(C,!0)}m===!0?x():Promise.resolve(m).then(x)})}},[e,a]),u.useEffect(function(){return function(){g()}},[]),[h,a]};function lP(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,l=r.motionAppear,c=l===void 0?!0:l,d=r.motionLeave,p=d===void 0?!0:d,g=r.motionDeadline,h=r.motionLeaveImmediately,v=r.onAppearPrepare,S=r.onEnterPrepare,C=r.onLeavePrepare,m=r.onAppearStart,b=r.onEnterStart,x=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,I=r.onAppearEnd,R=r.onEnterEnd,_=r.onLeaveEnd,P=r.onVisibleChanged,D=_a(),A=ie(D,2),k=A[0],j=A[1],F=_a(mo),H=ie(F,2),V=H[0],L=H[1],T=_a(null),N=ie(T,2),W=N[0],K=N[1],X=B.useRef(!1),Y=B.useRef(null);function ne(){return n()}var oe=B.useRef(!1);function re(){L(mo,!0),K(null,!0)}function fe(Ie){var ve=ne();if(!(Ie&&!Ie.deadline&&Ie.target!==ve)){var xe=oe.current,ye;V===jl&&xe?ye=I==null?void 0:I(ve,Ie):V===Hl&&xe?ye=R==null?void 0:R(ve,Ie):V===kl&&xe&&(ye=_==null?void 0:_(ve,Ie)),V!==mo&&xe&&ye!==!1&&re()}}var de=nP(fe),se=ie(de,1),ee=se[0],ae=function(ve){var xe,ye,De;switch(ve){case jl:return xe={},U(xe,ri,v),U(xe,Ea,m),U(xe,$a,w),xe;case Hl:return ye={},U(ye,ri,S),U(ye,Ea,b),U(ye,$a,E),ye;case kl:return De={},U(De,ri,C),U(De,Ea,x),U(De,$a,O),De;default:return{}}},ge=u.useMemo(function(){return ae(V)},[V]),he=sP(V,!e,function(Ie){if(Ie===ri){var ve=ge[ri];return ve?ve(ne()):ry}if($e in ge){var xe;K(((xe=ge[$e])===null||xe===void 0?void 0:xe.call(ge,ne(),null))||null)}return $e===$a&&(ee(ne()),g>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){fe({deadline:!0})},g))),$e===Yb&&re(),aP}),ue=ie(he,2),te=ue[0],$e=ue[1],Oe=iy($e);oe.current=Oe,ny(function(){j(t);var Ie=X.current;X.current=!0;var ve;!Ie&&t&&c&&(ve=jl),Ie&&t&&a&&(ve=Hl),(Ie&&!t&&p||!Ie&&h&&!t&&p)&&(ve=kl);var xe=ae(ve);ve&&(e||xe[ri])?(L(ve),te()):L(mo)},[t]),B.useEffect(function(){(V===jl&&!c||V===Hl&&!a||V===kl&&!p)&&L(mo)},[c,a,p]),B.useEffect(function(){return function(){X.current=!1,clearTimeout(Y.current)}},[]);var _e=u.useRef(!1);B.useEffect(function(){k&&(_e.current=!0),k!==void 0&&V===mo&&((_e.current||k)&&(P==null||P(k)),_e.current=!0)},[k,V]);var Ce=W;return ge[ri]&&$e===Ea&&(Ce=J({transition:"none"},Ce)),[V,$e,Ce,k??t]}function cP(e){var t=e;Rt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=u.forwardRef(function(i,a){var l=i.visible,c=l===void 0?!0:l,d=i.removeOnLeave,p=d===void 0?!0:d,g=i.forceRender,h=i.children,v=i.motionName,S=i.leavedClassName,C=i.eventProps,m=u.useContext(Xb),b=m.motion,x=n(i,b),w=B.useRef(),E=B.useRef();function O(){try{return w.current instanceof HTMLElement?w.current:hs(E.current)}catch{return null}}var I=lP(x,c,O,i),R=ie(I,4),_=R[0],P=R[1],D=R[2],A=R[3],k=u.useRef(A);A&&(k.current=!0);var j=u.useCallback(function(K){w.current=K,vp(a,K)},[a]),F,H=J(J({},C),{},{visible:c});if(!h)F=null;else if(_===mo)A?F=h(J({},H),j):!p&&k.current&&S?F=h(J(J({},H),{},{className:S}),j):g||!p&&!S?F=h(J(J({},H),{},{style:{display:"none"}}),j):F=null;else{var V,L;P===ri?L="prepare":iy(P)?L="active":P===Ea&&(L="start");var T=sm(v,"".concat(_,"-").concat(L));F=h(J(J({},H),{},{className:ce(sm(v,_),(V={},U(V,T,T&&L),U(V,v,typeof v=="string"),V)),style:D}),j)}if(u.isValidElement(F)&&zo(F)){var N=F,W=N.ref;W||(F=u.cloneElement(F,{ref:j}))}return u.createElement(Q2,{ref:E},F)});return r.displayName="CSSMotion",r}const no=cP(ty);var xf="add",wf="keep",Ef="remove",Od="removed";function uP(e){var t;return e&&Rt(e)==="object"&&"key"in e?t=e:t={key:e},J(J({},t),{},{key:String(t.key)})}function $f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(uP)}function dP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=$f(e),l=$f(t);a.forEach(function(p){for(var g=!1,h=r;h<i;h+=1){var v=l[h];if(v.key===p.key){r<h&&(n=n.concat(l.slice(r,h).map(function(S){return J(J({},S),{},{status:xf})})),r=h),n.push(J(J({},v),{},{status:wf})),r+=1,g=!0;break}}g||n.push(J(J({},p),{},{status:Ef}))}),r<i&&(n=n.concat(l.slice(r).map(function(p){return J(J({},p),{},{status:xf})})));var c={};n.forEach(function(p){var g=p.key;c[g]=(c[g]||0)+1});var d=Object.keys(c).filter(function(p){return c[p]>1});return d.forEach(function(p){n=n.filter(function(g){var h=g.key,v=g.status;return h!==p||v!==Ef}),n.forEach(function(g){g.key===p&&(g.status=wf)})}),n}var fP=["component","children","onVisibleChanged","onAllRemoved"],pP=["status"],gP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:no,n=function(r){eo(a,r);var i=to(a);function a(){var l;ar(this,a);for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return l=i.call.apply(i,[this].concat(d)),U(We(l),"state",{keyEntities:[]}),U(We(l),"removeKey",function(g){var h=l.state.keyEntities,v=h.map(function(S){return S.key!==g?S:J(J({},S),{},{status:Od})});return l.setState({keyEntities:v}),v.filter(function(S){var C=S.status;return C!==Od}).length}),l}return sr(a,[{key:"render",value:function(){var c=this,d=this.state.keyEntities,p=this.props,g=p.component,h=p.children,v=p.onVisibleChanged,S=p.onAllRemoved,C=Tt(p,fP),m=g||u.Fragment,b={};return gP.forEach(function(x){b[x]=C[x],delete C[x]}),delete C.keys,u.createElement(m,C,d.map(function(x,w){var E=x.status,O=Tt(x,pP),I=E===xf||E===wf;return u.createElement(t,rt({},b,{key:O.key,visible:I,eventProps:O,onVisibleChanged:function(_){if(v==null||v(_,{key:O.key}),!_){var P=c.removeKey(O.key);P===0&&S&&S()}}}),function(R,_){return h(J(J({},R),{},{index:w}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,d){var p=c.keys,g=d.keyEntities,h=$f(p),v=dP(g,h);return{keyEntities:v.filter(function(S){var C=g.find(function(m){var b=m.key;return S.key===b});return!(C&&C.status===Od&&S.status===Ef)})}}}]),a}(u.Component);return U(n,"defaultProps",{component:"div"}),n}hP(ty);function vP(e){const{children:t}=e,[,n]=si(),{motion:r}=n,i=u.useRef(!1);return i.current=i.current||r===!1,i.current?u.createElement(Z2,{motion:r},t):t}const oy=u.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Yn("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(oy.displayName="PropWarning");const mP=process.env.NODE_ENV!=="production"?oy:()=>null;var bP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let Of=!1;process.env.NODE_ENV;const yP=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],SP="ant";let ay;function CP(){return ay||SP}function xP(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const wP=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(ay=t),r&&xP(r)&&(process.env.NODE_ENV!=="production"&&Dc(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),D2(CP(),r))},EP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:d,direction:p,space:g,virtual:h,dropdownMatchSelectWidth:v,popupMatchSelectWidth:S,popupOverflow:C,legacyLocale:m,parentContext:b,iconPrefixCls:x,theme:w,componentDisabled:E,segmented:O,statistic:I,spin:R,calendar:_,carousel:P,cascader:D,collapse:A,typography:k,checkbox:j,descriptions:F,divider:H,drawer:V,skeleton:L,steps:T,image:N,layout:W,list:K,mentions:X,modal:Y,progress:ne,result:oe,slider:re,breadcrumb:fe,menu:de,pagination:se,input:ee,empty:ae,badge:ge,radio:he,rate:ue,switch:te,transfer:$e,avatar:Oe,message:_e,tag:Ce,table:Ie,card:ve,tabs:xe,timeline:ye,timePicker:De,upload:ht,notification:Qe,tree:Fe,colorPicker:lt,datePicker:Ge,rangePicker:Xe,flex:Ue,wave:Pe,dropdown:vt,warning:it}=e,Bt=u.useCallback((Ke,mt)=>{const{prefixCls:Ae}=e;if(mt)return mt;const ke=Ae||b.getPrefixCls("");return Ke?`${ke}-${Ke}`:ke},[b.getPrefixCls,e.prefixCls]),Ct=x||b.iconPrefixCls||Wb,ft=n||b.csp;qb(Ct,ft);const ot=X2(w,b.theme);process.env.NODE_ENV!=="production"&&(Of=Of||!!ot);const zt={csp:ft,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||m,direction:p,space:g,virtual:h,popupMatchSelectWidth:S??v,popupOverflow:C,getPrefixCls:Bt,iconPrefixCls:Ct,theme:ot,segmented:O,statistic:I,spin:R,calendar:_,carousel:P,cascader:D,collapse:A,typography:k,checkbox:j,descriptions:F,divider:H,drawer:V,skeleton:L,steps:T,image:N,input:ee,layout:W,list:K,mentions:X,modal:Y,progress:ne,result:oe,slider:re,breadcrumb:fe,menu:de,pagination:se,empty:ae,badge:ge,radio:he,rate:ue,switch:te,transfer:$e,avatar:Oe,message:_e,tag:Ce,table:Ie,card:ve,tabs:xe,timeline:ye,timePicker:De,upload:ht,notification:Qe,tree:Fe,colorPicker:lt,datePicker:Ge,rangePicker:Xe,flex:Ue,wave:Pe,dropdown:vt,warning:it},xt=Object.assign({},b);Object.keys(zt).forEach(Ke=>{zt[Ke]!==void 0&&(xt[Ke]=zt[Ke])}),yP.forEach(Ke=>{const mt=e[Ke];mt&&(xt[Ke]=mt)});const Re=As(()=>xt,xt,(Ke,mt)=>{const Ae=Object.keys(Ke),ke=Object.keys(mt);return Ae.length!==ke.length||Ae.some(Ee=>Ke[Ee]!==mt[Ee])}),He=u.useMemo(()=>({prefixCls:Ct,csp:ft}),[Ct,ft]);let Ye=u.createElement(u.Fragment,null,u.createElement(mP,{dropdownMatchSelectWidth:v}),t);const Je=u.useMemo(()=>{var Ke,mt,Ae,ke;return wa(((Ke=Na.Form)===null||Ke===void 0?void 0:Ke.defaultValidateMessages)||{},((Ae=(mt=Re.locale)===null||mt===void 0?void 0:mt.Form)===null||Ae===void 0?void 0:Ae.defaultValidateMessages)||{},((ke=Re.form)===null||ke===void 0?void 0:ke.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[Re,l==null?void 0:l.validateMessages]);Object.keys(Je).length>0&&(Ye=u.createElement(YI.Provider,{value:Je},Ye)),c&&(Ye=u.createElement(i2,{locale:c,_ANT_MARK__:Ab},Ye)),(Ct||ft)&&(Ye=u.createElement(Ep.Provider,{value:He},Ye)),d&&(Ye=u.createElement(z2,{size:d},Ye)),Ye=u.createElement(vP,null,Ye);const at=u.useMemo(()=>{const Ke=ot||{},{algorithm:mt,token:Ae,components:ke}=Ke,Ee=bP(Ke,["algorithm","token","components"]),ze=mt&&(!Array.isArray(mt)||mt.length>0)?xs(mt):kb,Ne={};Object.entries(ke||{}).forEach(bt=>{let[$t,Ut]=bt;const Nt=Object.assign({},Ut);"algorithm"in Nt&&(Nt.algorithm===!0?Nt.theme=ze:(Array.isArray(Nt.algorithm)||typeof Nt.algorithm=="function")&&(Nt.theme=xs(Nt.algorithm)),delete Nt.algorithm),Ne[$t]=Nt});const Be=Object.assign(Object.assign({},Ma),Ae);return Object.assign(Object.assign({},Ee),{theme:ze,token:Be,components:Ne,override:Object.assign({override:Be},Ne)})},[ot]);return w&&(Ye=u.createElement(Vb.Provider,{value:at},Ye)),Re.warning&&(Ye=u.createElement(Tb.Provider,{value:Re.warning},Ye)),E!==void 0&&(Ye=u.createElement(L2,{disabled:E},Ye)),u.createElement(It.Provider,{value:Re},Ye)},Fo=e=>{const t=u.useContext(It),n=u.useContext(Op);return u.createElement(EP,Object.assign({parentContext:t,legacyLocale:n},e))};Fo.ConfigContext=It;Fo.SizeContext=Lc;Fo.config=wP;Fo.useConfig=F2;Object.defineProperty(Fo,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Dc(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Lc)});process.env.NODE_ENV!=="production"&&(Fo.displayName="ConfigProvider");function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yn.apply(this,arguments)}var $P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const OP=$P;function _P(e){if(Array.isArray(e))return e}function RP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,c=[],d=!0,p=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(g){p=!0,i=g}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(p)throw i}}return c}}function lm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IP(e,t){if(e){if(typeof e=="string")return lm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lm(e,t)}}function PP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sy(e,t){return _P(e)||RP(e,t)||IP(e,t)||PP()}function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function TP(e,t){if(Io(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Io(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NP(e){var t=TP(e,"string");return Io(t)==="symbol"?t:String(t)}function _f(e,t,n){return t=NP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ly(e,t){if(e==null)return{};var n=MP(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(r){_f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function DP(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 um="data-rc-order",dm="data-rc-priority",LP="rc-util-key",Rf=new Map;function cy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):LP}function Np(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function zP(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function uy(e){return Array.from((Rf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!AP())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,l=zP(r),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(um,l),c&&a&&d.setAttribute(dm,"".concat(a)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var p=Np(t),g=p.firstChild;if(r){if(c){var h=uy(p).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(um)))return!1;var S=Number(v.getAttribute(dm)||0);return a>=S});if(h.length)return p.insertBefore(d,h[h.length-1].nextSibling),d}p.insertBefore(d,g)}else p.appendChild(d);return d}function FP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Np(t);return uy(n).find(function(r){return r.getAttribute(cy(t))===e})}function BP(e,t){var n=Rf.get(e);if(!n||!DP(document,n)){var r=dy("",t),i=r.parentNode;Rf.set(e,i),e.removeChild(r)}}function jP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Np(n);BP(r,n);var i=FP(t,n);if(i){var a,l;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&i.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=dy(e,n);return d.setAttribute(cy(n),t),d}function fy(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function HP(e){return fy(e)instanceof ShadowRoot}function kP(e){return HP(e)?fy(e):null}var If={},Mp=[],VP=function(t){Mp.push(t)};function WP(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Mp.reduce(function(r,i){return i(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function UP(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Mp.reduce(function(r,i){return i(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function GP(){If={}}function py(e,t,n){!t&&!If[n]&&(e(!1,n),If[n]=!0)}function Fc(e,t){py(WP,e,t)}function KP(e,t){py(UP,e,t)}Fc.preMessage=VP;Fc.resetWarned=GP;Fc.noteOnce=KP;function qP(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function XP(e,t){Fc(e,"[@ant-design/icons] ".concat(t))}function fm(e){return Io(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Io(e.icon)==="object"||typeof e.icon=="function")}function pm(){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[qP(n)]=r}return t},{})}function Pf(e,t,n){return n?B.createElement(e.tag,Zi(Zi({key:t},pm(e.attrs)),n),(e.children||[]).map(function(r,i){return Pf(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):B.createElement(e.tag,Zi({key:t},pm(e.attrs)),(e.children||[]).map(function(r,i){return Pf(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function gy(e){return Mi(e)[0]}function hy(e){return e?Array.isArray(e)?e:[e]:[]}var YP=`
66
- .anticon {
67
- display: inline-block;
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
- `,ZP=function(t){var n=B.useContext(Ep),r=n.csp,i=n.prefixCls,a=YP;i&&(a=a.replace(/anticon/g,i)),B.useEffect(function(){var l=t.current,c=kP(l);jP(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},QP=["icon","className","onClick","style","primaryColor","secondaryColor"],bs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function JP(e){var t=e.primaryColor,n=e.secondaryColor;bs.primaryColor=t,bs.secondaryColor=n||gy(t),bs.calculated=!!n}function eT(){return Zi({},bs)}var Bc=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,l=t.primaryColor,c=t.secondaryColor,d=ly(t,QP),p=u.useRef(),g=bs;if(l&&(g={primaryColor:l,secondaryColor:c||gy(l)}),ZP(p),XP(fm(n),"icon should be icon definiton, but got ".concat(n)),!fm(n))return null;var h=n;return h&&typeof h.icon=="function"&&(h=Zi(Zi({},h),{},{icon:h.icon(g.primaryColor,g.secondaryColor)})),Pf(h.icon,"svg-".concat(h.name),Zi(Zi({className:r,onClick:i,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:p}))};Bc.displayName="IconReact";Bc.getTwoToneColors=eT;Bc.setTwoToneColors=JP;const Ap=Bc;function vy(e){var t=hy(e),n=sy(t,2),r=n[0],i=n[1];return Ap.setTwoToneColors({primaryColor:r,secondaryColor:i})}function tT(){var e=Ap.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var nT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vy(x2.primary);var jc=u.forwardRef(function(e,t){var n,r=e.className,i=e.icon,a=e.spin,l=e.rotate,c=e.tabIndex,d=e.onClick,p=e.twoToneColor,g=ly(e,nT),h=u.useContext(Ep),v=h.prefixCls,S=v===void 0?"anticon":v,C=h.rootClassName,m=ce(C,S,(n={},_f(n,"".concat(S,"-").concat(i.name),!!i.name),_f(n,"".concat(S,"-spin"),!!a||i.name==="loading"),n),r),b=c;b===void 0&&d&&(b=-1);var x=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=hy(p),E=sy(w,2),O=E[0],I=E[1];return u.createElement("span",yn({role:"img","aria-label":i.name},g,{ref:t,tabIndex:b,onClick:d,className:m}),u.createElement(Ap,{icon:i,primaryColor:O,secondaryColor:I,style:x}))});jc.displayName="AntdIcon";jc.getTwoToneColor=tT;jc.setTwoToneColor=vy;const In=jc;var my=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:OP}))};process.env.NODE_ENV!=="production"&&(my.displayName="CheckCircleFilled");const rT=u.forwardRef(my);var iT={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const oT=iT;var by=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:oT}))};process.env.NODE_ENV!=="production"&&(by.displayName="CloseCircleFilled");const Dp=u.forwardRef(by);var aT={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const sT=aT;var yy=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:sT}))};process.env.NODE_ENV!=="production"&&(yy.displayName="CloseOutlined");const Lp=u.forwardRef(yy);var lT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const cT=lT;var Sy=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:cT}))};process.env.NODE_ENV!=="production"&&(Sy.displayName="ExclamationCircleFilled");const uT=u.forwardRef(Sy);var dT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const fT=dT;var Cy=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:fT}))};process.env.NODE_ENV!=="production"&&(Cy.displayName="InfoCircleFilled");const pT=u.forwardRef(Cy);var gT=`accept acceptCharset accessKey action allowFullScreen allowTransparency
120
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
121
- charSet checked classID className colSpan cols content contentEditable contextMenu
122
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
123
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
124
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
125
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
126
- mediaGroup method min minLength multiple muted name noValidate nonce open
127
- optimum pattern placeholder poster preload radioGroup readOnly rel required
128
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
129
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
130
- summary tabIndex target title type useMap value width wmode wrap`,hT=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
131
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
132
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
133
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
134
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
135
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
136
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,vT="".concat(gT," ").concat(hT).split(/[\s\n]+/),mT="aria-",bT="data-";function gm(e,t){return e.indexOf(t)===0}function Po(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=J({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||gm(i,mT))||n.data&&gm(i,bT)||n.attr&&vT.includes(i))&&(r[i]=e[i])}),r}const{isValidElement:Os}=u;function xy(e){return e&&Os(e)&&e.type===u.Fragment}function wy(e,t,n){return Os(e)?u.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function To(e,t){return wy(e,e,t)}const Wl=(e,t,n,r,i)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),yT=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:l,lineHeight:c,borderRadiusLG:d,motionEaseInOutCirc:p,withDescriptionIconSize:g,colorText:h,colorTextHeading:v,withDescriptionPadding:S,defaultPadding:C}=e;return{[t]:Object.assign(Object.assign({},Xn(e)),{position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:c},"&-message":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${p}, opacity ${n} ${p},
137
- padding-top ${n} ${p}, padding-bottom ${n} ${p},
138
- margin-bottom ${n} ${p}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:S,[`${t}-icon`]:{marginInlineEnd:i,fontSize:g,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:v,fontSize:l},[`${t}-description`]:{display:"block",color:h}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},ST=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:l,colorWarningBg:c,colorError:d,colorErrorBorder:p,colorErrorBg:g,colorInfo:h,colorInfoBorder:v,colorInfoBg:S}=e;return{[t]:{"&-success":Wl(i,r,n,e,t),"&-info":Wl(S,v,h,e,t),"&-warning":Wl(c,l,a,e,t),"&-error":Object.assign(Object.assign({},Wl(g,p,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},CT=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:l,colorIconHover:c}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${r}`,"&:hover":{color:c}}},"&-close-text":{color:l,transition:`color ${r}`,"&:hover":{color:c}}}}},xT=e=>[yT(e),ST(e),CT(e)],wT=Dn("Alert",e=>[xT(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var ET=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $T={success:rT,info:pT,error:Dp,warning:uT},OT=e=>{const{icon:t,prefixCls:n,type:r}=e,i=$T[r]||null;return t?wy(t,u.createElement("span",{className:`${n}-icon`},t),()=>({className:ce(`${n}-icon`,{[t.props.className]:t.props.className})})):u.createElement(i,{className:`${n}-icon`})},_T=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i}=e,a=r===!0||r===void 0?u.createElement(Lp,null):r;return t?u.createElement("button",{type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a):null},Ey=e=>{const{description:t,prefixCls:n,message:r,banner:i,className:a,rootClassName:l,style:c,onMouseEnter:d,onMouseLeave:p,onClick:g,afterClose:h,showIcon:v,closable:S,closeText:C,closeIcon:m,action:b}=e,x=ET(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[w,E]=u.useState(!1);process.env.NODE_ENV!=="production"&&Yn("Alert").deprecated(!C,"closeText","closeIcon");const O=u.useRef(null),{getPrefixCls:I,direction:R,alert:_}=u.useContext(It),P=I("alert",n),[D,A]=wT(P),k=T=>{var N;E(!0),(N=e.onClose)===null||N===void 0||N.call(e,T)},j=u.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),F=u.useMemo(()=>C?!0:typeof S=="boolean"?S:m!==!1&&m!==null&&m!==void 0,[C,m,S]),H=i&&v===void 0?!0:v,V=ce(P,`${P}-${j}`,{[`${P}-with-description`]:!!t,[`${P}-no-icon`]:!H,[`${P}-banner`]:!!i,[`${P}-rtl`]:R==="rtl"},_==null?void 0:_.className,a,l,A),L=Po(x,{aria:!0,data:!0});return D(u.createElement(no,{visible:!w,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:T=>({maxHeight:T.offsetHeight}),onLeaveEnd:h},T=>{let{className:N,style:W}=T;return u.createElement("div",Object.assign({ref:O,"data-show":!w,className:ce(V,N),style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),c),W),onMouseEnter:d,onMouseLeave:p,onClick:g,role:"alert"},L),H?u.createElement(OT,{description:t,icon:e.icon,prefixCls:P,type:j}):null,u.createElement("div",{className:`${P}-content`},r?u.createElement("div",{className:`${P}-message`},r):null,t?u.createElement("div",{className:`${P}-description`},t):null),b?u.createElement("div",{className:`${P}-action`},b):null,u.createElement(_T,{isClosable:F,prefixCls:P,closeIcon:C||m,handleClose:k}))}))};process.env.NODE_ENV!=="production"&&(Ey.displayName="Alert");const $y=Ey;let RT=function(e){eo(n,e);var t=to(n);function n(){var r;return ar(this,n),r=t.apply(this,arguments),r.state={error:void 0,info:{componentStack:""}},r}return sr(n,[{key:"componentDidCatch",value:function(i,a){this.setState({error:i,info:a})}},{key:"render",value:function(){const{message:i,description:a,children:l}=this.props,{error:c,info:d}=this.state,p=d&&d.componentStack?d.componentStack:null,g=typeof i>"u"?(c||"").toString():i,h=typeof a>"u"?p:a;return c?u.createElement($y,{type:"error",message:g,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},h)}):l}}]),n}(u.Component);const IT=RT,Oy=$y;Oy.ErrorBoundary=IT;const PT=Oy;var Se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Se.F1&&n<=Se.F12)return!1;switch(n){case Se.ALT:case Se.CAPS_LOCK:case Se.CONTEXT_MENU:case Se.CTRL:case Se.DOWN:case Se.END:case Se.ESC:case Se.HOME:case Se.INSERT:case Se.LEFT:case Se.MAC_FF_META:case Se.META:case Se.NUMLOCK:case Se.NUM_CENTER:case Se.PAGE_DOWN:case Se.PAGE_UP:case Se.PAUSE:case Se.PRINT_SCREEN:case Se.RIGHT:case Se.SHIFT:case Se.UP:case Se.WIN_KEY:case Se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Se.ZERO&&t<=Se.NINE||t>=Se.NUM_ZERO&&t<=Se.NUM_MULTIPLY||t>=Se.A&&t<=Se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Se.SPACE:case Se.QUESTION_MARK:case Se.NUM_PLUS:case Se.NUM_MINUS:case Se.NUM_PERIOD:case Se.NUM_DIVISION:case Se.SEMICOLON:case Se.DASH:case Se.EQUALS:case Se.COMMA:case Se.PERIOD:case Se.SLASH:case Se.APOSTROPHE:case Se.SINGLE_QUOTE:case Se.OPEN_SQUARE_BRACKET:case Se.BACKSLASH:case Se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},TT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const NT=TT;var _y=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:NT}))};process.env.NODE_ENV!=="production"&&(_y.displayName="LoadingOutlined");const Ry=u.forwardRef(_y);function or(){or=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(L,T,N){L[T]=N.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",d=a.toStringTag||"@@toStringTag";function p(L,T,N){return Object.defineProperty(L,T,{value:N,enumerable:!0,configurable:!0,writable:!0}),L[T]}try{p({},"")}catch{p=function(N,W,K){return N[W]=K}}function g(L,T,N,W){var K=T&&T.prototype instanceof x?T:x,X=Object.create(K.prototype),Y=new H(W||[]);return i(X,"_invoke",{value:A(L,N,Y)}),X}function h(L,T,N){try{return{type:"normal",arg:L.call(T,N)}}catch(W){return{type:"throw",arg:W}}}t.wrap=g;var v="suspendedStart",S="suspendedYield",C="executing",m="completed",b={};function x(){}function w(){}function E(){}var O={};p(O,l,function(){return this});var I=Object.getPrototypeOf,R=I&&I(I(V([])));R&&R!==n&&r.call(R,l)&&(O=R);var _=E.prototype=x.prototype=Object.create(O);function P(L){["next","throw","return"].forEach(function(T){p(L,T,function(N){return this._invoke(T,N)})})}function D(L,T){function N(K,X,Y,ne){var oe=h(L[K],L,X);if(oe.type!=="throw"){var re=oe.arg,fe=re.value;return fe&&Rt(fe)=="object"&&r.call(fe,"__await")?T.resolve(fe.__await).then(function(de){N("next",de,Y,ne)},function(de){N("throw",de,Y,ne)}):T.resolve(fe).then(function(de){re.value=de,Y(re)},function(de){return N("throw",de,Y,ne)})}ne(oe.arg)}var W;i(this,"_invoke",{value:function(X,Y){function ne(){return new T(function(oe,re){N(X,Y,oe,re)})}return W=W?W.then(ne,ne):ne()}})}function A(L,T,N){var W=v;return function(K,X){if(W===C)throw new Error("Generator is already running");if(W===m){if(K==="throw")throw X;return{value:e,done:!0}}for(N.method=K,N.arg=X;;){var Y=N.delegate;if(Y){var ne=k(Y,N);if(ne){if(ne===b)continue;return ne}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(W===v)throw W=m,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);W=C;var oe=h(L,T,N);if(oe.type==="normal"){if(W=N.done?m:S,oe.arg===b)continue;return{value:oe.arg,done:N.done}}oe.type==="throw"&&(W=m,N.method="throw",N.arg=oe.arg)}}}function k(L,T){var N=T.method,W=L.iterator[N];if(W===e)return T.delegate=null,N==="throw"&&L.iterator.return&&(T.method="return",T.arg=e,k(L,T),T.method==="throw")||N!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+N+"' method")),b;var K=h(W,L.iterator,T.arg);if(K.type==="throw")return T.method="throw",T.arg=K.arg,T.delegate=null,b;var X=K.arg;return X?X.done?(T[L.resultName]=X.value,T.next=L.nextLoc,T.method!=="return"&&(T.method="next",T.arg=e),T.delegate=null,b):X:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,b)}function j(L){var T={tryLoc:L[0]};1 in L&&(T.catchLoc=L[1]),2 in L&&(T.finallyLoc=L[2],T.afterLoc=L[3]),this.tryEntries.push(T)}function F(L){var T=L.completion||{};T.type="normal",delete T.arg,L.completion=T}function H(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(j,this),this.reset(!0)}function V(L){if(L||L===""){var T=L[l];if(T)return T.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var N=-1,W=function K(){for(;++N<L.length;)if(r.call(L,N))return K.value=L[N],K.done=!1,K;return K.value=e,K.done=!0,K};return W.next=W}}throw new TypeError(Rt(L)+" is not iterable")}return w.prototype=E,i(_,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=p(E,d,"GeneratorFunction"),t.isGeneratorFunction=function(L){var T=typeof L=="function"&&L.constructor;return!!T&&(T===w||(T.displayName||T.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,E):(L.__proto__=E,p(L,d,"GeneratorFunction")),L.prototype=Object.create(_),L},t.awrap=function(L){return{__await:L}},P(D.prototype),p(D.prototype,c,function(){return this}),t.AsyncIterator=D,t.async=function(L,T,N,W,K){K===void 0&&(K=Promise);var X=new D(g(L,T,N,W),K);return t.isGeneratorFunction(T)?X:X.next().then(function(Y){return Y.done?Y.value:X.next()})},P(_),p(_,d,"Generator"),p(_,l,function(){return this}),p(_,"toString",function(){return"[object Generator]"}),t.keys=function(L){var T=Object(L),N=[];for(var W in T)N.push(W);return N.reverse(),function K(){for(;N.length;){var X=N.pop();if(X in T)return K.value=X,K.done=!1,K}return K.done=!0,K}},t.values=V,H.prototype={constructor:H,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!T)for(var N in this)N.charAt(0)==="t"&&r.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=e)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var N=this;function W(re,fe){return Y.type="throw",Y.arg=T,N.next=re,fe&&(N.method="next",N.arg=e),!!fe}for(var K=this.tryEntries.length-1;K>=0;--K){var X=this.tryEntries[K],Y=X.completion;if(X.tryLoc==="root")return W("end");if(X.tryLoc<=this.prev){var ne=r.call(X,"catchLoc"),oe=r.call(X,"finallyLoc");if(ne&&oe){if(this.prev<X.catchLoc)return W(X.catchLoc,!0);if(this.prev<X.finallyLoc)return W(X.finallyLoc)}else if(ne){if(this.prev<X.catchLoc)return W(X.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return W(X.finallyLoc)}}}},abrupt:function(T,N){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc<=this.prev&&r.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var X=K;break}}X&&(T==="break"||T==="continue")&&X.tryLoc<=N&&N<=X.finallyLoc&&(X=null);var Y=X?X.completion:{};return Y.type=T,Y.arg=N,X?(this.method="next",this.next=X.finallyLoc,b):this.complete(Y)},complete:function(T,N){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&N&&(this.next=N),b},finish:function(T){for(var N=this.tryEntries.length-1;N>=0;--N){var W=this.tryEntries[N];if(W.finallyLoc===T)return this.complete(W.completion,W.afterLoc),F(W),b}},catch:function(T){for(var N=this.tryEntries.length-1;N>=0;--N){var W=this.tryEntries[N];if(W.tryLoc===T){var K=W.completion;if(K.type==="throw"){var X=K.arg;F(W)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(T,N,W){return this.delegate={iterator:V(T),resultName:N,nextLoc:W},this.method==="next"&&(this.arg=e),b}},t}function hm(e,t,n,r,i,a,l){try{var c=e[a](l),d=c.value}catch(p){n(p);return}c.done?t(d):Promise.resolve(d).then(r,i)}function Bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function l(d){hm(a,r,i,l,c,"next",d)}function c(d){hm(a,r,i,l,c,"throw",d)}l(void 0)})}}var Fs=J({},nR),MT=Fs.version,AT=Fs.render,DT=Fs.unmountComponentAtNode,Hc;try{var LT=Number((MT||"").split(".")[0]);LT>=18&&(Hc=Fs.createRoot)}catch{}function vm(e){var t=Fs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Rt(t)==="object"&&(t.usingClientEntryPoint=e)}var hc="__rc_react_root__";function zT(e,t){vm(!0);var n=t[hc]||Hc(t);vm(!1),n.render(e),t[hc]=n}function FT(e,t){AT(e,t)}function BT(e,t){if(Hc){zT(e,t);return}FT(e,t)}function jT(e){return Tf.apply(this,arguments)}function Tf(){return Tf=Bo(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[hc])===null||i===void 0||i.unmount(),delete t[hc]}));case 1:case"end":return r.stop()}},e)})),Tf.apply(this,arguments)}function HT(e){DT(e)}function kT(e){return Nf.apply(this,arguments)}function Nf(){return Nf=Bo(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hc===void 0){r.next=2;break}return r.abrupt("return",jT(t));case 2:HT(t);case 3:case"end":return r.stop()}},e)})),Nf.apply(this,arguments)}const zp=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Fp=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 i=e.getBoundingClientRect(),a=i.width,l=i.height;if(a||l)return!0}}return!1},VT=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},WT=Dn("Wave",e=>[VT(e)]);function UT(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function _d(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&UT(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function GT(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return _d(t)?t:_d(n)?n:_d(r)?r:null}const Bp="ant-wave-target";function Rd(e){return Number.isNaN(e)?0:e}const KT=e=>{const{className:t,target:n,component:r}=e,i=u.useRef(null),[a,l]=u.useState(null),[c,d]=u.useState([]),[p,g]=u.useState(0),[h,v]=u.useState(0),[S,C]=u.useState(0),[m,b]=u.useState(0),[x,w]=u.useState(!1),E={left:p,top:h,width:S,height:m,borderRadius:c.map(R=>`${R}px`).join(" ")};a&&(E["--wave-color"]=a);function O(){const R=getComputedStyle(n);l(GT(n));const _=R.position==="static",{borderLeftWidth:P,borderTopWidth:D}=R;g(_?n.offsetLeft:Rd(-parseFloat(P))),v(_?n.offsetTop:Rd(-parseFloat(D))),C(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:k,borderBottomLeftRadius:j,borderBottomRightRadius:F}=R;d([A,k,F,j].map(H=>Rd(parseFloat(H))))}if(u.useEffect(()=>{if(n){const R=Jt(()=>{O(),w(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(O),_.observe(n)),()=>{Jt.cancel(R),_==null||_.disconnect()}}},[]),!x)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Bp));return u.createElement(no,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,_)=>{var P;if(_.deadline||_.propertyName==="opacity"){const D=(P=i.current)===null||P===void 0?void 0:P.parentElement;kT(D).then(()=>{D==null||D.remove()})}return!1}},R=>{let{className:_}=R;return u.createElement("div",{ref:i,className:ce(t,{"wave-quick":I},_),style:E})})},qT=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),BT(u.createElement(KT,Object.assign({},t,{target:e})),i)},XT=qT;function YT(e,t,n){const{wave:r}=u.useContext(It),[,i,a]=si(),l=gr(p=>{const g=e.current;if(r!=null&&r.disabled||!g)return;const h=g.querySelector(`.${Bp}`)||g,{showEffect:v}=r||{};(v||XT)(h,{className:t,token:i,component:n,event:p,hashId:a})}),c=u.useRef();return p=>{Jt.cancel(c.current),c.current=Jt(()=>{l(p)})}}const Iy=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=B.useContext(It),a=B.useRef(null),l=i("wave"),[,c]=WT(l),d=YT(a,ce(l,c),r);if(B.useEffect(()=>{const g=a.current;if(!g||g.nodeType!==1||n)return;const h=v=>{!Fp(v.target)||!g.getAttribute||g.getAttribute("disabled")||g.disabled||g.className.includes("disabled")||g.className.includes("-leave")||d(v)};return g.addEventListener("click",h,!0),()=>{g.removeEventListener("click",h,!0)}},[n]),!B.isValidElement(t))return t??null;const p=zo(t)?pi(t.ref,a):a;return To(t,{ref:p})};process.env.NODE_ENV!=="production"&&(Iy.displayName="Wave");const Py=Iy,ZT=e=>{const t=B.useContext(Lc);return B.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},ro=ZT;globalThis&&globalThis.__rest;const Ty=u.createContext(null),Ny=(e,t)=>{const n=u.useContext(Ty),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:l}=n,c=i==="vertical"?"-vertical-":"-";return ce(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:a,[`${e}-compact${c}last-item`]:l,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},QT=e=>{let{children:t}=e;return u.createElement(Ty.Provider,{value:null},t)};var JT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const My=u.createContext(void 0),eN=e=>{const{getPrefixCls:t,direction:n}=u.useContext(It),{prefixCls:r,size:i,className:a}=e,l=JT(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,d]=si();let p="";switch(i){case"large":p="lg";break;case"small":p="sm";break}if(process.env.NODE_ENV!=="production"){const h=Yn("Button.Group");process.env.NODE_ENV!=="production"&&h(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const g=ce(c,{[`${c}-${p}`]:p,[`${c}-rtl`]:n==="rtl"},a,d);return u.createElement(My.Provider,{value:i},u.createElement("div",Object.assign({},l,{className:g})))},tN=eN,mm=/^[\u4e00-\u9fa5]{2}$/,Mf=mm.test.bind(mm);function bm(e){return typeof e=="string"}function Ul(e){return e==="text"||e==="link"}function nN(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bm(e.type)&&Mf(e.props.children)?To(e,{children:e.props.children.split("").join(n)}):bm(e)?Mf(e)?B.createElement("span",null,e.split("").join(n)):B.createElement("span",null,e):xy(e)?B.createElement("span",null,e):e}function rN(e,t){let n=!1;const r=[];return B.Children.forEach(e,i=>{const a=typeof i,l=a==="string"||a==="number";if(n&&l){const c=r.length-1,d=r[c];r[c]=`${d}${i}`}else r.push(i);n=l}),B.Children.map(r,i=>nN(i,t))}const iN=B.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,l=ce(`${a}-icon`,n);return B.createElement("span",{ref:t,className:l,style:r},i)}),Ay=iN,ym=B.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e;const l=ce(`${n}-loading-icon`,r);return B.createElement(Ay,{prefixCls:n,className:l,style:i,ref:t},B.createElement(Ry,{className:a}))}),Id=()=>({width:0,opacity:0,transform:"scale(0)"}),Pd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),oN=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,l=!!n;return r?B.createElement(ym,{prefixCls:t,className:i,style:a}):B.createElement(no,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:Id,onAppearActive:Pd,onEnterStart:Id,onEnterActive:Pd,onLeaveStart:Pd,onLeaveActive:Id},(c,d)=>{let{className:p,style:g}=c;return B.createElement(ym,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),g),ref:d,iconClassName:p})})},aN=oN,Sm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sN=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,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:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Sm(`${t}-primary`,i),Sm(`${t}-danger`,a)]}},lN=sN,cN=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zc(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Ai=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),uN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),dN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),fN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_s=(e,t,n,r,i,a,l,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},Ai(e,Object.assign({backgroundColor:t},l),Object.assign({backgroundColor:t},c))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),jp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},fN(e))}),Dy=e=>Object.assign({},jp(e)),vc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ly=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dy(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ai(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_s(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Ai(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_s(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),jp(e))}),pN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dy(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Ai(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_s(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Ai(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_s(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jp(e))}),gN=e=>Object.assign(Object.assign({},Ly(e)),{borderStyle:"dashed"}),hN=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ai(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),vc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ai(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),vc(e))}),vN=e=>Object.assign(Object.assign(Object.assign({},Ai(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),vc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vc(e)),Ai(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),mN=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ly(e),[`${t}-primary`]:pN(e),[`${t}-dashed`]:gN(e),[`${t}-link`]:hN(e),[`${t}-text`]:vN(e),[`${t}-ghost`]:_s(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Hp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:c,buttonPaddingHorizontal:d,iconCls:p}=e,g=Math.max(0,(r-i*a)/2-l),h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${g}px ${d}px`,borderRadius:c,[`&${h}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[p]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:uN(e)},{[`${n}${n}-round${t}`]:dN(e)}]},bN=e=>Hp(en(e,{fontSize:e.contentFontSize})),yN=e=>{const t=en(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Hp(t,`${e.componentCls}-sm`)},SN=e=>{const t=en(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Hp(t,`${e.componentCls}-lg`)},CN=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},zy=e=>{const{paddingInline:t,onlyIconSize:n}=e;return en(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},Fy=e=>({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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),xN=Dn("Button",e=>{const t=zy(e);return[cN(t),yN(t),bN(t),SN(t),CN(t),mN(t),lN(t)]},Fy);function wN(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,l=a?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function EN(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function kp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},wN(e,r,t)),EN(n,r,t))}}function $N(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ON(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 _N(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$N(e,t)),ON(e.componentCls,t))}}const RN=K2(["Button","compact"],e=>{const t=zy(e);return[kp(t),_N(t)]},Fy);var IN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function PN(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 TN=(e,t)=>{var n,r;const{loading:i=!1,prefixCls:a,type:l="default",danger:c,shape:d="default",size:p,styles:g,disabled:h,className:v,rootClassName:S,children:C,icon:m,ghost:b=!1,block:x=!1,htmlType:w="button",classNames:E,style:O={}}=e,I=IN(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:R,autoInsertSpaceInButton:_,direction:P,button:D}=B.useContext(It),A=R("btn",a),[k,j]=xN(A),F=B.useContext(Ls),H=h??F,V=B.useContext(My),L=B.useMemo(()=>PN(i),[i]),[T,N]=B.useState(L.loading),[W,K]=B.useState(!1),Y=pi(t,B.createRef()),ne=B.Children.count(C)===1&&!m&&!Ul(l);B.useEffect(()=>{let ve=null;L.delay>0?ve=setTimeout(()=>{ve=null,N(!0)},L.delay):N(L.loading);function xe(){ve&&(clearTimeout(ve),ve=null)}return xe},[L]),B.useEffect(()=>{if(!Y||!Y.current||_===!1)return;const ve=Y.current.textContent;ne&&Mf(ve)?W||K(!0):W&&K(!1)},[Y]);const oe=ve=>{const{onClick:xe}=e;if(T||H){ve.preventDefault();return}xe==null||xe(ve)};if(process.env.NODE_ENV!=="production"){const ve=Yn("Button");process.env.NODE_ENV!=="production"&&ve(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ve(!(b&&Ul(l)),"usage","`link` or `text` button can't be a `ghost` button.")}const re=_!==!1,{compactSize:fe,compactItemClassnames:de}=Ny(A,P),se={large:"lg",small:"sm",middle:void 0},ee=ro(ve=>{var xe,ye;return(ye=(xe=p??fe)!==null&&xe!==void 0?xe:V)!==null&&ye!==void 0?ye:ve}),ae=ee&&se[ee]||"",ge=T?"loading":m,he=mr(I,["navigate"]),ue=ce(A,j,{[`${A}-${d}`]:d!=="default"&&d,[`${A}-${l}`]:l,[`${A}-${ae}`]:ae,[`${A}-icon-only`]:!C&&C!==0&&!!ge,[`${A}-background-ghost`]:b&&!Ul(l),[`${A}-loading`]:T,[`${A}-two-chinese-chars`]:W&&re&&!T,[`${A}-block`]:x,[`${A}-dangerous`]:!!c,[`${A}-rtl`]:P==="rtl"},de,v,S,D==null?void 0:D.className),te=Object.assign(Object.assign({},D==null?void 0:D.style),O),$e=ce(E==null?void 0:E.icon,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.icon),Oe=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),((r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.icon)||{}),_e=m&&!T?B.createElement(Ay,{prefixCls:A,className:$e,style:Oe},m):B.createElement(aN,{existIcon:!!m,prefixCls:A,loading:!!T}),Ce=C||C===0?rN(C,ne&&re):null;if(he.href!==void 0)return k(B.createElement("a",Object.assign({},he,{className:ce(ue,{[`${A}-disabled`]:H}),style:te,onClick:oe,ref:Y}),_e,Ce));let Ie=B.createElement("button",Object.assign({},I,{type:w,className:ue,style:te,onClick:oe,disabled:H,ref:Y}),_e,Ce,de&&B.createElement(RN,{key:"compact",prefixCls:A}));return Ul(l)||(Ie=B.createElement(Py,{component:"Button",disabled:!!T},Ie)),k(Ie)},kc=B.forwardRef(TN);process.env.NODE_ENV!=="production"&&(kc.displayName="Button");kc.Group=tN;kc.__ANT_BUTTON=!0;const NN=kc;var By=u.createContext(null),Cm=[];function MN(e,t){var n=u.useState(function(){if(!Hn())return null;var C=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&C.setAttribute("data-debug",t),C}),r=ie(n,1),i=r[0],a=u.useRef(!1),l=u.useContext(By),c=u.useState(Cm),d=ie(c,2),p=d[0],g=d[1],h=l||(a.current?void 0:function(C){g(function(m){var b=[C].concat(je(m));return b})});function v(){i.parentElement||document.body.appendChild(i),a.current=!0}function S(){var C;(C=i.parentElement)===null||C===void 0||C.removeChild(i),a.current=!1}return nn(function(){return e?l?l(v):v():S(),S},[e]),nn(function(){p.length&&(p.forEach(function(C){return C()}),g(Cm))},[p]),[i,h]}var Td;function AN(e){if(typeof document>"u")return 0;if(e||Td===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),Td=i-a}return Td}function xm(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?AN():n}function DN(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:xm(n),height:xm(r)}}function LN(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var zN="rc-util-locker-".concat(Date.now()),wm=0;function FN(e){var t=!!e,n=u.useState(function(){return wm+=1,"".concat(zN,"_").concat(wm)}),r=ie(n,1),i=r[0];nn(function(){if(t){var a=DN(document.body).width,l=LN();Cs(`
139
- html body {
140
- overflow-y: hidden;
141
- `.concat(l?"width: calc(100% - ".concat(a,"px);"):"",`
142
- }`),i)}else dc(i);return function(){dc(i)}},[t,i])}var Em=!1;function BN(e){return typeof e=="boolean"&&(Em=e),Em}var $m=function(t){return t===!1?!1:!Hn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Vp=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,l=e.autoDestroy,c=l===void 0?!0:l,d=e.children,p=u.useState(n),g=ie(p,2),h=g[0],v=g[1],S=h||n;process.env.NODE_ENV!=="production"&&_t(Hn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),u.useEffect(function(){(c||n)&&v(n)},[n,c]);var C=u.useState(function(){return $m(i)}),m=ie(C,2),b=m[0],x=m[1];u.useEffect(function(){var j=$m(i);x(j??null)});var w=MN(S&&!b,a),E=ie(w,2),O=E[0],I=E[1],R=b??O;FN(r&&n&&Hn()&&(R===O||R===document.body));var _=null;if(d&&zo(d)&&t){var P=d;_=P.ref}var D=Fa(_,t);if(!S||!Hn()||b===void 0)return null;var A=R===!1||BN(),k=d;return t&&(k=u.cloneElement(d,{ref:D})),u.createElement(By.Provider,{value:I},A?k:_o.createPortal(k,R))});process.env.NODE_ENV!=="production"&&(Vp.displayName="Portal");function jN(){var e=J({},u);return e.useId}var Om=0,_m=jN();const HN=_m?function(t){var n=_m();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=u.useState("ssr-id"),r=ie(n,2),i=r[0],a=r[1];return u.useEffect(function(){var l=Om;Om+=1,a("rc_unique_".concat(l))},[]),t||(process.env.NODE_ENV==="test"?"test-id":i)};var jy=function(t){if(Hn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},kN=function(t,n){if(!jy(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function Rm(e,t){return!Array.isArray(e)&&t!==void 0?kN(e,t):jy(e)}const VN=B.createContext(void 0),Hy=VN;var xo="RC_FORM_INTERNAL_HOOKS",rn=function(){_t(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Da=u.createContext({getFieldValue:rn,getFieldsValue:rn,getFieldError:rn,getFieldWarning:rn,getFieldsError:rn,isFieldsTouched:rn,isFieldTouched:rn,isFieldValidating:rn,isFieldsValidating:rn,resetFields:rn,setFields:rn,setFieldValue:rn,setFieldsValue:rn,validateFields:rn,submit:rn,getInternalHooks:function(){return rn(),{dispatch:rn,initEntityValue:rn,registerField:rn,useSubscribe:rn,setInitialValues:rn,destroyForm:rn,setCallbacks:rn,registerWatch:rn,getFields:rn,setValidateMessages:rn,setPreserve:rn,getInitialValue:rn}}}),mc=u.createContext(null);function Af(e){return e==null?[]:Array.isArray(e)?e:[e]}function WN(e){return e&&!!e._init}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(this,arguments)}function UN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rs(e,t)}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rs(e,t)}function GN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nc(e,t,n){return GN()?nc=Reflect.construct.bind():nc=function(i,a,l){var c=[null];c.push.apply(c,a);var d=Function.bind.apply(i,c),p=new d;return l&&Rs(p,l.prototype),p},nc.apply(null,arguments)}function KN(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Lf(e){var t=typeof Map=="function"?new Map:void 0;return Lf=function(r){if(r===null||!KN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return nc(r,arguments,Df(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Rs(i,r)},Lf(e)}var qN=/%[sdj%]/g,ky=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(ky=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 zf(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 _r(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 i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(qN,function(c){if(c==="%%")return"%";if(i>=a)return c;switch(c){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return c}});return l}return e}function XN(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function An(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||XN(t)&&typeof e=="string"&&!e)}function YN(e,t,n){var r=[],i=0,a=e.length;function l(c){r.push.apply(r,c||[]),i++,i===a&&n(r)}e.forEach(function(c){t(c,l)})}function Im(e,t,n){var r=0,i=e.length;function a(l){if(l&&l.length){n(l);return}var c=r;r=r+1,c<i?t(e[c],a):n([])}a([])}function ZN(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Pm=function(e){UN(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(Lf(Error));function QN(e,t,n,r,i){if(t.first){var a=new Promise(function(v,S){var C=function(x){return r(x),x.length?S(new Pm(x,zf(x))):v(i)},m=ZN(e);Im(m,n,C)});return a.catch(function(v){return v}),a}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),d=c.length,p=0,g=[],h=new Promise(function(v,S){var C=function(b){if(g.push.apply(g,b),p++,p===d)return r(g),g.length?S(new Pm(g,zf(g))):v(i)};c.length||(r(g),v(i)),c.forEach(function(m){var b=e[m];l.indexOf(m)!==-1?Im(b,n,C):YN(b,n,C)})});return h.catch(function(v){return v}),h}function JN(e){return!!(e&&e.message!==void 0)}function eM(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Tm(e,t){return function(n){var r;return e.fullFields?r=eM(t,e.fullFields):r=t[n.field||e.fullField],JN(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 Nm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=wo({},e[n],r):e[n]=r}}return e}var Vy=function(t,n,r,i,a,l){t.required&&(!r.hasOwnProperty(t.field)||An(n,l||t.type))&&i.push(_r(a.messages.required,t.fullField))},tM=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(_r(a.messages.whitespace,t.fullField))},Gl,nM=function(){if(Gl)return Gl;var e="[a-fA-F\\d:]",t=function(O){return O&&O.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
143
- (?:
144
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
145
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
146
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
147
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
148
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
149
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
150
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
151
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
152
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
153
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),l=new RegExp("^"+n+"$"),c=new RegExp("^"+i+"$"),d=function(O){return O&&O.exact?a:new RegExp("(?:"+t(O)+n+t(O)+")|(?:"+t(O)+i+t(O)+")","g")};d.v4=function(E){return E&&E.exact?l:new RegExp(""+t(E)+n+t(E),"g")},d.v6=function(E){return E&&E.exact?c:new RegExp(""+t(E)+i+t(E),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,v=d.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:"+p+"|www\\.)"+g+"(?:localhost|"+h+"|"+v+"|"+S+C+m+")"+b+x;return Gl=new RegExp("(?:^"+w+"$)","i"),Gl},Mm={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},ps={integer:function(t){return ps.number(t)&&parseInt(t,10)===t},float:function(t){return ps.number(t)&&!ps.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ps.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Mm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(nM())},hex:function(t){return typeof t=="string"&&!!t.match(Mm.hex)}},rM=function(t,n,r,i,a){if(t.required&&n===void 0){Vy(t,n,r,i,a);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;l.indexOf(c)>-1?ps[c](n)||i.push(_r(a.messages.types[c],t.fullField,t.type)):c&&typeof n!==t.type&&i.push(_r(a.messages.types[c],t.fullField,t.type))},iM=function(t,n,r,i,a){var l=typeof t.len=="number",c=typeof t.min=="number",d=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,v=typeof n=="number",S=typeof n=="string",C=Array.isArray(n);if(v?h="number":S?h="string":C&&(h="array"),!h)return!1;C&&(g=n.length),S&&(g=n.replace(p,"_").length),l?g!==t.len&&i.push(_r(a.messages[h].len,t.fullField,t.len)):c&&!d&&g<t.min?i.push(_r(a.messages[h].min,t.fullField,t.min)):d&&!c&&g>t.max?i.push(_r(a.messages[h].max,t.fullField,t.max)):c&&d&&(g<t.min||g>t.max)&&i.push(_r(a.messages[h].range,t.fullField,t.min,t.max))},sa="enum",oM=function(t,n,r,i,a){t[sa]=Array.isArray(t[sa])?t[sa]:[],t[sa].indexOf(n)===-1&&i.push(_r(a.messages[sa],t.fullField,t[sa].join(", ")))},aM=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||i.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ht={required:Vy,whitespace:tM,type:rM,range:iM,enum:oM,pattern:aM},sM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n,"string")&&!t.required)return r();Ht.required(t,n,i,l,a,"string"),An(n,"string")||(Ht.type(t,n,i,l,a),Ht.range(t,n,i,l,a),Ht.pattern(t,n,i,l,a),t.whitespace===!0&&Ht.whitespace(t,n,i,l,a))}r(l)},lM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&Ht.type(t,n,i,l,a)}r(l)},cM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&(Ht.type(t,n,i,l,a),Ht.range(t,n,i,l,a))}r(l)},uM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&Ht.type(t,n,i,l,a)}r(l)},dM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),An(n)||Ht.type(t,n,i,l,a)}r(l)},fM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&(Ht.type(t,n,i,l,a),Ht.range(t,n,i,l,a))}r(l)},pM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&(Ht.type(t,n,i,l,a),Ht.range(t,n,i,l,a))}r(l)},gM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(n==null&&!t.required)return r();Ht.required(t,n,i,l,a,"array"),n!=null&&(Ht.type(t,n,i,l,a),Ht.range(t,n,i,l,a))}r(l)},hM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&Ht.type(t,n,i,l,a)}r(l)},vM="enum",mM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a),n!==void 0&&Ht[vM](t,n,i,l,a)}r(l)},bM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n,"string")&&!t.required)return r();Ht.required(t,n,i,l,a),An(n,"string")||Ht.pattern(t,n,i,l,a)}r(l)},yM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n,"date")&&!t.required)return r();if(Ht.required(t,n,i,l,a),!An(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Ht.type(t,d,i,l,a),d&&Ht.range(t,d.getTime(),i,l,a)}}r(l)},SM=function(t,n,r,i,a){var l=[],c=Array.isArray(n)?"array":typeof n;Ht.required(t,n,i,l,a,c),r(l)},Nd=function(t,n,r,i,a){var l=t.type,c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(An(n,l)&&!t.required)return r();Ht.required(t,n,i,c,a,l),An(n,l)||Ht.type(t,n,i,c,a)}r(c)},CM=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(An(n)&&!t.required)return r();Ht.required(t,n,i,l,a)}r(l)},ys={string:sM,method:lM,number:cM,boolean:uM,regexp:dM,integer:fM,float:pM,array:gM,object:hM,enum:mM,pattern:bM,date:yM,url:Nd,hex:Nd,email:Nd,required:SM,any:CM};function Ff(){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 Bf=Ff(),Bs=function(){function e(n){this.rules=null,this._messages=Bf,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var l=r[a];i.rules[a]=Array.isArray(l)?l:[l]})},t.messages=function(r){return r&&(this._messages=Nm(Ff(),r)),this._messages},t.validate=function(r,i,a){var l=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var c=r,d=i,p=a;if(typeof d=="function"&&(p=d,d={}),!this.rules||Object.keys(this.rules).length===0)return p&&p(null,c),Promise.resolve(c);function g(m){var b=[],x={};function w(O){if(Array.isArray(O)){var I;b=(I=b).concat.apply(I,O)}else b.push(O)}for(var E=0;E<m.length;E++)w(m[E]);b.length?(x=zf(b),p(b,x)):p(null,c)}if(d.messages){var h=this.messages();h===Bf&&(h=Ff()),Nm(h,d.messages),d.messages=h}else d.messages=this.messages();var v={},S=d.keys||Object.keys(this.rules);S.forEach(function(m){var b=l.rules[m],x=c[m];b.forEach(function(w){var E=w;typeof E.transform=="function"&&(c===r&&(c=wo({},c)),x=c[m]=E.transform(x)),typeof E=="function"?E={validator:E}:E=wo({},E),E.validator=l.getValidationMethod(E),E.validator&&(E.field=m,E.fullField=E.fullField||m,E.type=l.getType(E),v[m]=v[m]||[],v[m].push({rule:E,value:x,source:c,field:m}))})});var C={};return QN(v,d,function(m,b){var x=m.rule,w=(x.type==="object"||x.type==="array")&&(typeof x.fields=="object"||typeof x.defaultField=="object");w=w&&(x.required||!x.required&&m.value),x.field=m.field;function E(R,_){return wo({},_,{fullField:x.fullField+"."+R,fullFields:x.fullFields?[].concat(x.fullFields,[R]):[R]})}function O(R){R===void 0&&(R=[]);var _=Array.isArray(R)?R:[R];!d.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&x.message!==void 0&&(_=[].concat(x.message));var P=_.map(Tm(x,c));if(d.first&&P.length)return C[x.field]=1,b(P);if(!w)b(P);else{if(x.required&&!m.value)return x.message!==void 0?P=[].concat(x.message).map(Tm(x,c)):d.error&&(P=[d.error(x,_r(d.messages.required,x.field))]),b(P);var D={};x.defaultField&&Object.keys(m.value).map(function(j){D[j]=x.defaultField}),D=wo({},D,m.rule.fields);var A={};Object.keys(D).forEach(function(j){var F=D[j],H=Array.isArray(F)?F:[F];A[j]=H.map(E.bind(null,j))});var k=new e(A);k.messages(d.messages),m.rule.options&&(m.rule.options.messages=d.messages,m.rule.options.error=d.error),k.validate(m.value,m.rule.options||d,function(j){var F=[];P&&P.length&&F.push.apply(F,P),j&&j.length&&F.push.apply(F,j),b(F.length?F:null)})}}var I;if(x.asyncValidator)I=x.asyncValidator(x,m.value,O,m.source,d);else if(x.validator){try{I=x.validator(x,m.value,O,m.source,d)}catch(R){console.error==null||console.error(R),d.suppressValidatorError||setTimeout(function(){throw R},0),O(R.message)}I===!0?O():I===!1?O(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||(x.fullField||x.field)+" fails"):I instanceof Array?O(I):I instanceof Error&&O(I.message)}I&&I.then&&I.then(function(){return O()},function(R){return O(R)})},function(m){g(m)},c)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ys.hasOwnProperty(r.type))throw new Error(_r("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?ys.required:ys[this.getType(r)]||void 0},e}();Bs.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ys[t]=n};Bs.warning=ky;Bs.messages=Bf;Bs.validators=ys;var $r="'${name}' is not a valid ${type}",Wy={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:$r,method:$r,array:$r,object:$r,number:$r,date:$r,boolean:$r,integer:$r,float:$r,regexp:$r,email:$r,url:$r,hex:$r},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}"}},Am=Bs;function xM(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Dm="CODE_LOGIC_ERROR";function jf(e,t,n,r,i){return Hf.apply(this,arguments)}function Hf(){return Hf=Bo(or().mark(function e(t,n,r,i,a){var l,c,d,p,g,h,v,S,C;return or().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=J({},r),delete l.ruleIndex,Am.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(Dm)}}),d=null,l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField),p=new Am(U({},t,[l])),g=wa(Wy,i.validateMessages),p.messages(g),h=[],b.prev=10,b.next=13,Promise.resolve(p.validate(U({},t,n),J({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(h=b.t0.errors.map(function(x,w){var E=x.message,O=E===Dm?g.default:E;return u.isValidElement(O)?u.cloneElement(O,{key:"error_".concat(w)}):O}));case 18:if(!(!h.length&&d)){b.next=23;break}return b.next=21,Promise.all(n.map(function(x,w){return jf("".concat(t,".").concat(w),x,d,i,a)}));case 21:return v=b.sent,b.abrupt("return",v.reduce(function(x,w){return[].concat(je(x),je(w))},[]));case 23:return S=J(J({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),C=h.map(function(x){return typeof x=="string"?xM(x,S):x}),b.abrupt("return",C);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Hf.apply(this,arguments)}function wM(e,t,n,r,i,a){var l=e.join("."),c=n.map(function(g,h){var v=g.validator,S=J(J({},g),{},{ruleIndex:h});return v&&(S.validator=function(C,m,b){var x=!1,w=function(){for(var I=arguments.length,R=new Array(I),_=0;_<I;_++)R[_]=arguments[_];Promise.resolve().then(function(){_t(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||b.apply(void 0,R)})},E=v(C,m,w);x=E&&typeof E.then=="function"&&typeof E.catch=="function",_t(x,"`callback` is deprecated. Please return a promise instead."),x&&E.then(function(){b()}).catch(function(O){b(O||" ")})}),S}).sort(function(g,h){var v=g.warningOnly,S=g.ruleIndex,C=h.warningOnly,m=h.ruleIndex;return!!v==!!C?S-m:v?1:-1}),d;if(i===!0)d=new Promise(function(){var g=Bo(or().mark(function h(v,S){var C,m,b;return or().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:C=0;case 1:if(!(C<c.length)){w.next=12;break}return m=c[C],w.next=5,jf(l,t,m,r,a);case 5:if(b=w.sent,!b.length){w.next=9;break}return S([{errors:b,rule:m}]),w.abrupt("return");case 9:C+=1,w.next=1;break;case 12:v([]);case 13:case"end":return w.stop()}},h)}));return function(h,v){return g.apply(this,arguments)}}());else{var p=c.map(function(g){return jf(l,t,g,r,a).then(function(h){return{errors:h,rule:g}})});d=(i?$M(p):EM(p)).then(function(g){return Promise.reject(g)})}return d.catch(function(g){return g}),d}function EM(e){return kf.apply(this,arguments)}function kf(){return kf=Bo(or().mark(function e(t){return or().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,l=(a=[]).concat.apply(a,je(i));return l}));case 1:case"end":return r.stop()}},e)})),kf.apply(this,arguments)}function $M(e){return Vf.apply(this,arguments)}function Vf(){return Vf=Bo(or().mark(function e(t){var n;return or().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(l){l.then(function(c){c.errors.length&&a([c]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Vf.apply(this,arguments)}function $n(e){return Af(e)}function Lm(e,t){var n={};return t.forEach(function(r){var i=ii(e,r);n=ni(n,r,i)}),n}function Ra(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Uy(t,r,n)})}function Uy(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,i){return e[i]===r})}function OM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Rt(e)!=="object"||Rt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return je(i).every(function(a){var l=e[a],c=t[a];return typeof l=="function"&&typeof c=="function"?!0:l===c})}function _M(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Rt(t.target)==="object"&&e in t.target?t.target[e]:t}function zm(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(je(e.slice(0,n)),[i],je(e.slice(n,t)),je(e.slice(t+1,r))):a<0?[].concat(je(e.slice(0,t)),je(e.slice(t+1,n+1)),[i],je(e.slice(n+1,r))):e}var RM=["name"],jr=[];function Fm(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var Wp=function(e){eo(n,e);var t=to(n);function n(r){var i;if(ar(this,n),i=t.call(this,r),U(We(i),"state",{resetCount:0}),U(We(i),"cancelRegisterFunc",null),U(We(i),"mounted",!1),U(We(i),"touched",!1),U(We(i),"dirty",!1),U(We(i),"validatePromise",void 0),U(We(i),"prevValidating",void 0),U(We(i),"errors",jr),U(We(i),"warnings",jr),U(We(i),"cancelRegister",function(){var d=i.props,p=d.preserve,g=d.isListField,h=d.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(g,p,$n(h)),i.cancelRegisterFunc=null}),U(We(i),"getNamePath",function(){var d=i.props,p=d.name,g=d.fieldContext,h=g.prefixName,v=h===void 0?[]:h;return p!==void 0?[].concat(je(v),je(p)):[]}),U(We(i),"getRules",function(){var d=i.props,p=d.rules,g=p===void 0?[]:p,h=d.fieldContext;return g.map(function(v){return typeof v=="function"?v(h):v})}),U(We(i),"refresh",function(){i.mounted&&i.setState(function(d){var p=d.resetCount;return{resetCount:p+1}})}),U(We(i),"metaCache",null),U(We(i),"triggerMetaEvent",function(d){var p=i.props.onMetaChange;if(p){var g=J(J({},i.getMeta()),{},{destroy:d});Tc(i.metaCache,g)||p(g),i.metaCache=g}else i.metaCache=null}),U(We(i),"onStoreChange",function(d,p,g){var h=i.props,v=h.shouldUpdate,S=h.dependencies,C=S===void 0?[]:S,m=h.onReset,b=g.store,x=i.getNamePath(),w=i.getValue(d),E=i.getValue(b),O=p&&Ra(p,x);switch(g.type==="valueUpdate"&&g.source==="external"&&w!==E&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=jr,i.warnings=jr,i.triggerMetaEvent()),g.type){case"reset":if(!p||O){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=jr,i.warnings=jr,i.triggerMetaEvent(),m==null||m(),i.refresh();return}break;case"remove":{if(v){i.reRender();return}break}case"setField":{var I=g.data;if(O){"touched"in I&&(i.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(i.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(i.errors=I.errors||jr),"warnings"in I&&(i.warnings=I.warnings||jr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in I&&Ra(p,x,!0)){i.reRender();return}if(v&&!x.length&&Fm(v,d,b,w,E,g)){i.reRender();return}break}case"dependenciesUpdate":{var R=C.map($n);if(R.some(function(_){return Ra(g.relatedFields,_)})){i.reRender();return}break}default:if(O||(!C.length||x.length||v)&&Fm(v,d,b,w,E,g)){i.reRender();return}break}v===!0&&i.reRender()}),U(We(i),"validateRules",function(d){var p=i.getNamePath(),g=i.getValue(),h=d||{},v=h.triggerName,S=h.validateOnly,C=S===void 0?!1:S,m=Promise.resolve().then(Bo(or().mark(function b(){var x,w,E,O,I,R,_;return or().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(i.mounted){D.next=2;break}return D.abrupt("return",[]);case 2:if(x=i.props,w=x.validateFirst,E=w===void 0?!1:w,O=x.messageVariables,I=x.validateDebounce,R=i.getRules(),v&&(R=R.filter(function(A){return A}).filter(function(A){var k=A.validateTrigger;if(!k)return!0;var j=Af(k);return j.includes(v)})),!(I&&v)){D.next=10;break}return D.next=8,new Promise(function(A){setTimeout(A,I)});case 8:if(i.validatePromise===m){D.next=10;break}return D.abrupt("return",[]);case 10:return _=wM(p,g,R,d,E,O),_.catch(function(A){return A}).then(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jr;if(i.validatePromise===m){var k;i.validatePromise=null;var j=[],F=[];(k=A.forEach)===null||k===void 0||k.call(A,function(H){var V=H.rule.warningOnly,L=H.errors,T=L===void 0?jr:L;V?F.push.apply(F,je(T)):j.push.apply(j,je(T))}),i.errors=j,i.warnings=F,i.triggerMetaEvent(),i.reRender()}}),D.abrupt("return",_);case 13:case"end":return D.stop()}},b)})));return C||(i.validatePromise=m,i.dirty=!0,i.errors=jr,i.warnings=jr,i.triggerMetaEvent(),i.reRender()),m}),U(We(i),"isFieldValidating",function(){return!!i.validatePromise}),U(We(i),"isFieldTouched",function(){return i.touched}),U(We(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var d=i.props.fieldContext,p=d.getInternalHooks(xo),g=p.getInitialValue;return g(i.getNamePath())!==void 0}),U(We(i),"getErrors",function(){return i.errors}),U(We(i),"getWarnings",function(){return i.warnings}),U(We(i),"isListField",function(){return i.props.isListField}),U(We(i),"isList",function(){return i.props.isList}),U(We(i),"isPreserve",function(){return i.props.preserve}),U(We(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var d={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return d}),U(We(i),"getOnlyChild",function(d){if(typeof d=="function"){var p=i.getMeta();return J(J({},i.getOnlyChild(d(i.getControlled(),p,i.props.fieldContext))),{},{isFunction:!0})}var g=Wr(d);return g.length!==1||!u.isValidElement(g[0])?{child:g,isFunction:!1}:{child:g[0],isFunction:!1}}),U(We(i),"getValue",function(d){var p=i.props.fieldContext.getFieldsValue,g=i.getNamePath();return ii(d||p(!0),g)}),U(We(i),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=i.props,g=p.trigger,h=p.validateTrigger,v=p.getValueFromEvent,S=p.normalize,C=p.valuePropName,m=p.getValueProps,b=p.fieldContext,x=h!==void 0?h:b.validateTrigger,w=i.getNamePath(),E=b.getInternalHooks,O=b.getFieldsValue,I=E(xo),R=I.dispatch,_=i.getValue(),P=m||function(j){return U({},C,j)},D=d[g],A=J(J({},d),P(_));A[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,F=arguments.length,H=new Array(F),V=0;V<F;V++)H[V]=arguments[V];v?j=v.apply(void 0,H):j=_M.apply(void 0,[C].concat(H)),S&&(j=S(j,_,O(!0))),R({type:"updateValue",namePath:w,value:j}),D&&D.apply(void 0,H)};var k=Af(x||[]);return k.forEach(function(j){var F=A[j];A[j]=function(){F&&F.apply(void 0,arguments);var H=i.props.rules;H&&H.length&&R({type:"validateField",namePath:w,triggerName:j})}}),A}),r.fieldContext){var a=r.fieldContext.getInternalHooks,l=a(xo),c=l.initEntityValue;c(We(i))}return i}return sr(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,l=i.fieldContext;if(this.mounted=!0,l){var c=l.getInternalHooks,d=c(xo),p=d.registerField;this.cancelRegisterFunc=p(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 i=this.state.resetCount,a=this.props.children,l=this.getOnlyChild(a),c=l.child,d=l.isFunction,p;return d?p=c:u.isValidElement(c)?p=u.cloneElement(c,this.getControlled(c.props)):(_t(!c,"`children` of Field is not validate ReactElement."),p=c),u.createElement(u.Fragment,{key:i},p)}}]),n}(u.Component);U(Wp,"contextType",Da);U(Wp,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Gy(e){var t=e.name,n=Tt(e,RM),r=u.useContext(Da),i=u.useContext(mc),a=t!==void 0?$n(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&a.length<=1&&_t(!1,"`preserve` should not apply on Form.List fields."),u.createElement(Wp,rt({key:l,name:a,isListField:!!i},n,{fieldContext:r}))}function IM(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=u.useContext(Da),d=u.useContext(mc),p=u.useRef({keys:[],id:0}),g=p.current,h=u.useMemo(function(){var m=$n(c.prefixName)||[];return[].concat(je(m),je($n(t)))},[c.prefixName,t]),v=u.useMemo(function(){return J(J({},c),{},{prefixName:h})},[c,h]),S=u.useMemo(function(){return{getKey:function(b){var x=h.length,w=b[x];return[g.keys[w],b.slice(x+1)]}}},[h]);if(typeof r!="function")return _t(!1,"Form.List only accepts function as children."),null;var C=function(b,x,w){var E=w.source;return E==="internal"?!1:b!==x};return u.createElement(mc.Provider,{value:S},u.createElement(Da.Provider,{value:v},u.createElement(Gy,{name:[],shouldUpdate:C,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:l??!!d},function(m,b){var x=m.value,w=x===void 0?[]:x,E=m.onChange,O=c.getFieldValue,I=function(){var D=O(h||[]);return D||[]},R={add:function(D,A){var k=I();A>=0&&A<=k.length?(g.keys=[].concat(je(g.keys.slice(0,A)),[g.id],je(g.keys.slice(A))),E([].concat(je(k.slice(0,A)),[D],je(k.slice(A))))):(process.env.NODE_ENV!=="production"&&(A<0||A>k.length)&&_t(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[].concat(je(g.keys),[g.id]),E([].concat(je(k),[D]))),g.id+=1},remove:function(D){var A=I(),k=new Set(Array.isArray(D)?D:[D]);k.size<=0||(g.keys=g.keys.filter(function(j,F){return!k.has(F)}),E(A.filter(function(j,F){return!k.has(F)})))},move:function(D,A){if(D!==A){var k=I();D<0||D>=k.length||A<0||A>=k.length||(g.keys=zm(g.keys,D,A),E(zm(k,D,A)))}}},_=w||[];return Array.isArray(_)||(_=[],process.env.NODE_ENV!=="production"&&_t(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(_.map(function(P,D){var A=g.keys[D];return A===void 0&&(g.keys[D]=g.id,A=g.keys[D],g.id+=1),{name:D,key:A,isListField:!0}}),R,b)})))}function PM(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(l,c){l.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[c]=d,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Ky="__@field_split__";function Md(e){return e.map(function(t){return"".concat(Rt(t),":").concat(t)}).join(Ky)}var la=function(){function e(){ar(this,e),U(this,"kvs",new Map)}return sr(e,[{key:"set",value:function(n,r){this.kvs.set(Md(n),r)}},{key:"get",value:function(n){return this.kvs.get(Md(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Md(n))}},{key:"map",value:function(n){return je(this.kvs.entries()).map(function(r){var i=ie(r,2),a=i[0],l=i[1],c=a.split(Ky);return n({key:c.map(function(d){var p=d.match(/^([^:]*):(.*)$/),g=ie(p,3),h=g[1],v=g[2];return h==="number"?Number(v):v}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),TM=["name"],NM=sr(function e(t){var n=this;ar(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(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}}),U(this,"getInternalHooks",function(r){return r===xo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(_t(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,l=wa(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(c){var d=c.key;l=ni(l,d,ii(r,d))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),U(this,"destroyForm",function(){var r=new la;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),U(this,"getInitialValue",function(r){var i=ii(n.initialValues,r);return r.length?wa(i):i}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(i,a,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||_t(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),U(this,"updateStore",function(r){n.store=r}),U(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new la;return n.getFieldEntities(r).forEach(function(a){var l=a.getNamePath();i.set(l,a)}),i}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var l=$n(a);return i.get(l)||{INVALIDATE_NAME_PATH:$n(a)}})}),U(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,l,c;if(r===!0||Array.isArray(r)?(a=r,l=i):r&&Rt(r)==="object"&&(c=r.strict,l=r.filter),a===!0&&!l)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),p=[];return d.forEach(function(g){var h,v,S="INVALIDATE_NAME_PATH"in g?g.INVALIDATE_NAME_PATH:g.getNamePath();if(c){var C,m;if((C=(m=g).isList)!==null&&C!==void 0&&C.call(m))return}else if(!a&&(h=(v=g).isListField)!==null&&h!==void 0&&h.call(v))return;if(!l)p.push(S);else{var b="getMeta"in g?g.getMeta():null;l(b)&&p.push(S)}}),Lm(n.store,p.map($n))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var i=$n(r);return ii(n.store,i)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,l){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:$n(r[l]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var i=$n(r),a=n.getFieldsError([i])[0];return a.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var i=$n(r),a=n.getFieldsError([i])[0];return a.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var l=i[0],c=i[1],d,p=!1;i.length===0?d=null:i.length===1?Array.isArray(l)?(d=l.map($n),p=!1):(d=null,p=l):(d=l.map($n),p=c);var g=n.getFieldEntities(!0),h=function(b){return b.isFieldTouched()};if(!d)return p?g.every(h):g.some(h);var v=new la;d.forEach(function(m){v.set(m,[])}),g.forEach(function(m){var b=m.getNamePath();d.forEach(function(x){x.every(function(w,E){return b[E]===w})&&v.update(x,function(w){return[].concat(je(w),[m])})})});var S=function(b){return b.some(h)},C=v.map(function(m){var b=m.value;return b});return p?C.every(S):C.some(S)}),U(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),U(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(l){return l.isFieldValidating()});var a=r.map($n);return i.some(function(l){var c=l.getNamePath();return Ra(a,c)&&l.isFieldValidating()})}),U(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),U(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new la,a=n.getFieldEntities(!0);a.forEach(function(d){var p=d.props.initialValue,g=d.getNamePath();if(p!==void 0){var h=i.get(g)||new Set;h.add({entity:d,value:p}),i.set(g,h)}});var l=function(p){p.forEach(function(g){var h=g.props.initialValue;if(h!==void 0){var v=g.getNamePath(),S=n.getInitialValue(v);if(S!==void 0)_t(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var C=i.get(v);if(C&&C.size>1)_t(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var m=n.getFieldValue(v),b=g.isListField();!b&&(!r.skipExist||m===void 0)&&n.updateStore(ni(n.store,v,je(C)[0].value))}}}})},c;r.entities?c=r.entities:r.namePathList?(c=[],r.namePathList.forEach(function(d){var p=i.get(d);if(p){var g;(g=c).push.apply(g,je(je(p).map(function(h){return h.entity})))}})):c=a,l(c)}),U(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(wa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map($n);a.forEach(function(l){var c=n.getInitialValue(l);n.updateStore(ni(n.store,l,c))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),U(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(l){var c=l.name,d=Tt(l,TM),p=$n(c);a.push(p),"value"in d&&n.updateStore(ni(n.store,p,d.value)),n.notifyObservers(i,[p],{type:"setField",data:l})}),n.notifyWatch(a)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var l=a.getNamePath(),c=a.getMeta(),d=J(J({},c),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return i}),U(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),l=ii(n.store,a);l===void 0&&n.updateStore(ni(n.store,a,i))}}),U(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),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(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(c)&&(!l||d.length>1)){var p=l?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==p&&n.fieldEntities.every(function(h){return!Uy(h.getNamePath(),i)})){var g=n.store;n.updateStore(ni(g,i,p,!0)),n.notifyObservers(g,[i],{type:"remove"}),n.triggerDependenciesUpdate(g,i)}}n.notifyWatch([i])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var l=r.namePath,c=r.triggerName;n.validateFields([l],{triggerName:c});break}}}),U(this,"notifyObservers",function(r,i,a){if(n.subscribable){var l=J(J({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(c){var d=c.onStoreChange;d(r,i,l)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(je(a))}),a}),U(this,"updateValue",function(r,i){var a=$n(r),l=n.store;n.updateStore(ni(n.store,a,i)),n.notifyObservers(l,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var c=n.triggerDependenciesUpdate(l,a),d=n.callbacks.onValuesChange;if(d){var p=Lm(n.store,[a]);d(p,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(je(c)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=wa(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),U(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],l=new la;n.getFieldEntities().forEach(function(d){var p=d.props.dependencies;(p||[]).forEach(function(g){var h=$n(g);l.update(h,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(d),v})})});var c=function d(p){var g=l.get(p)||new Set;g.forEach(function(h){if(!i.has(h)){i.add(h);var v=h.getNamePath();h.isFieldDirty()&&v.length&&(a.push(v),d(v))}})};return c(r),a}),U(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var l=n.getFields();if(i){var c=new la;i.forEach(function(p){var g=p.name,h=p.errors;c.set(g,h)}),l.forEach(function(p){p.errors=c.get(p.name)||p.errors})}var d=l.filter(function(p){var g=p.name;return Ra(r,g)});d.length&&a(d,l)}}),U(this,"validateFields",function(r,i){n.warningUnhooked();var a,l;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,l=i):l=r;var c=!!a,d=c?a.map($n):[],p=[],g=String(Date.now()),h=new Set,v=l||{},S=v.recursive,C=v.dirty;n.getFieldEntities(!0).forEach(function(w){if(c||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(C&&!w.isFieldDirty())){var E=w.getNamePath();if(h.add(E.join(g)),!c||Ra(d,E,S)){var O=w.validateRules(J({validateMessages:J(J({},Wy),n.validateMessages)},l));p.push(O.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(I){var R,_=[],P=[];return(R=I.forEach)===null||R===void 0||R.call(I,function(D){var A=D.rule.warningOnly,k=D.errors;A?P.push.apply(P,je(k)):_.push.apply(_,je(k))}),_.length?Promise.reject({name:E,errors:_,warnings:P}):{name:E,errors:_,warnings:P}}))}}});var m=PM(p);n.lastValidatePromise=m,m.catch(function(w){return w}).then(function(w){var E=w.map(function(O){var I=O.name;return I});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var b=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==m})});b.catch(function(w){return w});var x=d.filter(function(w){return h.has(w.join(g))});return n.triggerOnFieldsChange(x),b}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function qy(e){var t=u.useRef(),n=u.useState({}),r=ie(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},l=new NM(a);t.current=l.getForm()}return[t.current]}var Wf=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),MM=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,l=u.useContext(Wf),c=u.useRef({});return u.createElement(Wf.Provider,{value:J(J({},l),{},{validateMessages:J(J({},l.validateMessages),n),triggerFormChange:function(p,g){r&&r(p,{changedFields:g,forms:c.current}),l.triggerFormChange(p,g)},triggerFormFinish:function(p,g){i&&i(p,{values:g,forms:c.current}),l.triggerFormFinish(p,g)},registerForm:function(p,g){p&&(c.current=J(J({},c.current),{},U({},p,g))),l.registerForm(p,g)},unregisterForm:function(p){var g=J({},c.current);delete g[p],c.current=g,l.unregisterForm(p)}})},a)},AM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],DM=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,l=t.form,c=t.preserve,d=t.children,p=t.component,g=p===void 0?"form":p,h=t.validateMessages,v=t.validateTrigger,S=v===void 0?"onChange":v,C=t.onValuesChange,m=t.onFieldsChange,b=t.onFinish,x=t.onFinishFailed,w=Tt(t,AM),E=u.useContext(Wf),O=qy(l),I=ie(O,1),R=I[0],_=R.getInternalHooks(xo),P=_.useSubscribe,D=_.setInitialValues,A=_.setCallbacks,k=_.setValidateMessages,j=_.setPreserve,F=_.destroyForm;u.useImperativeHandle(n,function(){return R}),u.useEffect(function(){return E.registerForm(r,R),function(){E.unregisterForm(r)}},[E,R,r]),k(J(J({},E.validateMessages),h)),A({onValuesChange:C,onFieldsChange:function(Y){if(E.triggerFormChange(r,Y),m){for(var ne=arguments.length,oe=new Array(ne>1?ne-1:0),re=1;re<ne;re++)oe[re-1]=arguments[re];m.apply(void 0,[Y].concat(oe))}},onFinish:function(Y){E.triggerFormFinish(r,Y),b&&b(Y)},onFinishFailed:x}),j(c);var H=u.useRef(null);D(i,!H.current),H.current||(H.current=!0),u.useEffect(function(){return F},[]);var V,L=typeof d=="function";if(L){var T=R.getFieldsValue(!0);V=d(T,R)}else V=d;P(!L);var N=u.useRef();u.useEffect(function(){OM(N.current||[],a||[])||R.setFields(a||[]),N.current=a},[a,R]);var W=u.useMemo(function(){return J(J({},R),{},{validateTrigger:S})},[R,S]),K=u.createElement(mc.Provider,{value:null},u.createElement(Da.Provider,{value:W},V));return g===!1?K:u.createElement(g,rt({},w,{onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),R.submit()},onReset:function(Y){var ne;Y.preventDefault(),R.resetFields(),(ne=w.onReset)===null||ne===void 0||ne.call(w,Y)}}),K)};function Bm(e){try{return JSON.stringify(e)}catch{return Math.random()}}var LM=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=B.useRef(t);_t(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function zM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=r===void 0?[]:r,a=t[1],l=a===void 0?{}:a,c=WN(l)?{form:l}:l,d=c.form,p=B.useState(),g=ie(p,2),h=g[0],v=g[1],S=B.useMemo(function(){return Bm(h)},[h]),C=B.useRef(S);C.current=S;var m=B.useContext(Da),b=d||m,x=b&&b._init;process.env.NODE_ENV!=="production"&&_t(t.length===2?d?x:!0:x,"useWatch requires a form instance since it can not auto detect from context.");var w=$n(i),E=B.useRef(w);return E.current=w,LM(w),B.useEffect(function(){if(x){var O=b.getFieldsValue,I=b.getInternalHooks,R=I(xo),_=R.registerWatch,P=_(function(A,k){var j=ii(c.preserve?k:A,E.current),F=Bm(j);C.current!==F&&(C.current=F,v(j))}),D=ii(c.preserve?O(!0):O(),E.current);return h!==D&&v(D),P}},[x]),h}var FM=u.forwardRef(DM),js=FM;js.FormProvider=MM;js.Field=Gy;js.List=IM;js.useForm=qy;js.useWatch=zM;const Vc=u.createContext({});process.env.NODE_ENV!=="production"&&(Vc.displayName="FormItemInputContext");const BM=e=>({animationDuration:e,animationFillMode:"both"}),jM=e=>({animationDuration:e,animationFillMode:"both"}),Up=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
154
- ${a}${e}-enter,
155
- ${a}${e}-appear
156
- `]:Object.assign(Object.assign({},BM(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},jM(r)),{animationPlayState:"paused"}),[`
157
- ${a}${e}-enter${e}-enter-active,
158
- ${a}${e}-appear${e}-appear-active
159
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},HM=new Xt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kM=new Xt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),VM=new Xt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),WM=new Xt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),UM=new Xt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),GM=new Xt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),KM=new Xt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qM=new Xt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),XM={"move-up":{inKeyframes:KM,outKeyframes:qM},"move-down":{inKeyframes:HM,outKeyframes:kM},"move-left":{inKeyframes:VM,outKeyframes:WM},"move-right":{inKeyframes:UM,outKeyframes:GM}},jm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=XM[t];return[Up(r,i,a,e.motionDurationMid),{[`
160
- ${r}-enter,
161
- ${r}-appear
162
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xy=new Xt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Yy=new Xt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zy=new Xt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Qy=new Xt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),YM=new Xt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ZM=new Xt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),QM=new Xt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),JM=new Xt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),eA={"slide-up":{inKeyframes:Xy,outKeyframes:Yy},"slide-down":{inKeyframes:Zy,outKeyframes:Qy},"slide-left":{inKeyframes:YM,outKeyframes:ZM},"slide-right":{inKeyframes:QM,outKeyframes:JM}},bc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=eA[t];return[Up(r,i,a,e.motionDurationMid),{[`
163
- ${r}-enter,
164
- ${r}-appear
165
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},tA=new Xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),nA=new Xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hm=new Xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),km=new Xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),rA=new Xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),iA=new Xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),oA=new Xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),aA=new Xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),sA=new Xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),lA=new Xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),cA=new Xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),uA=new Xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),dA={zoom:{inKeyframes:tA,outKeyframes:nA},"zoom-big":{inKeyframes:Hm,outKeyframes:km},"zoom-big-fast":{inKeyframes:Hm,outKeyframes:km},"zoom-left":{inKeyframes:oA,outKeyframes:aA},"zoom-right":{inKeyframes:sA,outKeyframes:lA},"zoom-up":{inKeyframes:rA,outKeyframes:iA},"zoom-down":{inKeyframes:cA,outKeyframes:uA}},fA=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=dA[t];return[Up(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
166
- ${r}-enter,
167
- ${r}-appear
168
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Jy={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},pA={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function gA(e){return e in Jy}function eS(e,t){const[,n]=si(),r=B.useContext(Hy),i=gA(e);let a=r??0;return i?a+=n.zIndexPopupBase+Jy[e]:a+=pA[e],[r===void 0?t:a,a]}function hA(e){return function(n){return u.createElement(Fo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},n)))}}function vA(e,t,n,r){function i(a){const{prefixCls:l,style:c}=a,d=u.useRef(null),[p,g]=u.useState(0),[h,v]=u.useState(0),[S,C]=qn(!1,{value:a.open}),{getPrefixCls:m}=u.useContext(It),b=m(t||"select",l);u.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(O=>{const I=O[0].target;g(I.offsetHeight+8),v(I.offsetWidth)}),E=setInterval(()=>{var O;const I=n?`.${n(b)}`:`.${b}-dropdown`,R=(O=d.current)===null||O===void 0?void 0:O.querySelector(I);R&&(clearInterval(E),w.observe(R))},10);return()=>{clearInterval(E),w.disconnect()}}},[]);let x=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:S,visible:S,getPopupContainer:()=>d.current});return r&&(x=r(x)),u.createElement("div",{ref:d,style:{paddingBottom:p,position:"relative",minWidth:h}},u.createElement(e,Object.assign({},x)))}return hA(i)}const Gp=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 Wc=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.onMouseDown,l=t.onClick,c=t.children,d;return typeof r=="function"?d=r(i):d=r,u.createElement("span",{className:n,onMouseDown:function(g){g.preventDefault(),a&&a(g)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},d!==void 0?d:u.createElement("span",{className:ce(n.split(/\s+/).map(function(p){return"".concat(p,"-icon")}))},c))};function mA(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,d=B.useMemo(function(){if(Rt(r)==="object")return r.clearIcon;if(i)return i},[r,i]),p=B.useMemo(function(){return!!(!a&&r&&(n.length||l)&&!(c==="combobox"&&l===""))},[r,a,n.length,l,c]);return{allowClear:p,clearIcon:B.createElement(Wc,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:d},"×")}}var tS=u.createContext(null);function bA(){return u.useContext(tS)}function yA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=ie(t,2),r=n[0],i=n[1],a=u.useRef(null),l=function(){window.clearTimeout(a.current)};u.useEffect(function(){return l},[]);var c=function(p,g){l(),a.current=window.setTimeout(function(){i(p),g&&g()},e)};return[r,c,l]}function nS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function SA(e,t,n,r){var i=u.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(l){var c;if(!((c=i.current)!==null&&c!==void 0&&c.customizedTrigger)){var d=l.target;d.shadowRoot&&l.composed&&(d=l.composedPath()[0]||d),i.current.open&&e().filter(function(p){return p}).every(function(p){return!p.contains(d)&&p!==d})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}var CA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ca=void 0;function xA(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,d=e.registerSize,p=e.itemKey,g=e.className,h=e.style,v=e.children,S=e.display,C=e.order,m=e.component,b=m===void 0?"div":m,x=Tt(e,CA),w=l&&!S;function E(P){d(p,P)}u.useEffect(function(){return function(){E(null)}},[]);var O=a&&i!==ca?a(i):v,I;r||(I={opacity:w?0:1,height:w?0:ca,overflowY:w?"hidden":ca,order:l?C:ca,pointerEvents:w?"none":ca,position:w?"absolute":ca});var R={};w&&(R["aria-hidden"]=!0);var _=u.createElement(b,rt({className:ce(!r&&n,g),style:J(J({},I),h)},R,x,{ref:t}),O);return l&&(_=u.createElement(Rr,{onResize:function(D){var A=D.offsetWidth;E(A)},disabled:c},_)),_}var Ss=u.forwardRef(xA);Ss.displayName="Item";function wA(e){if(typeof MessageChannel>"u")Jt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function EA(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],wA(function(){_o.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function ss(e,t){var n=u.useState(t),r=ie(n,2),i=r[0],a=r[1],l=gr(function(c){e(function(){a(c)})});return[i,l]}var yc=B.createContext(null),$A=["component"],OA=["className"],_A=["className"],RA=function(t,n){var r=u.useContext(yc);if(!r){var i=t.component,a=i===void 0?"div":i,l=Tt(t,$A);return u.createElement(a,rt({},l,{ref:n}))}var c=r.className,d=Tt(r,OA),p=t.className,g=Tt(t,_A);return u.createElement(yc.Provider,{value:null},u.createElement(Ss,rt({ref:n,className:ce(c,p)},d,g)))},rS=u.forwardRef(RA);rS.displayName="RawItem";var IA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],iS="responsive",oS="invalidate";function PA(e){return"+ ".concat(e.length," ...")}function TA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,l=e.renderItem,c=e.renderRawItem,d=e.itemKey,p=e.itemWidth,g=p===void 0?10:p,h=e.ssr,v=e.style,S=e.className,C=e.maxCount,m=e.renderRest,b=e.renderRawRest,x=e.suffix,w=e.component,E=w===void 0?"div":w,O=e.itemComponent,I=e.onVisibleChange,R=Tt(e,IA),_=h==="full",P=EA(),D=ss(P,null),A=ie(D,2),k=A[0],j=A[1],F=k||0,H=ss(P,new Map),V=ie(H,2),L=V[0],T=V[1],N=ss(P,0),W=ie(N,2),K=W[0],X=W[1],Y=ss(P,0),ne=ie(Y,2),oe=ne[0],re=ne[1],fe=ss(P,0),de=ie(fe,2),se=de[0],ee=de[1],ae=B.useState(null),ge=ie(ae,2),he=ge[0],ue=ge[1],te=B.useState(null),$e=ie(te,2),Oe=$e[0],_e=$e[1],Ce=u.useMemo(function(){return Oe===null&&_?Number.MAX_SAFE_INTEGER:Oe||0},[Oe,k]),Ie=B.useState(!1),ve=ie(Ie,2),xe=ve[0],ye=ve[1],De="".concat(r,"-item"),ht=Math.max(K,oe),Qe=C===iS,Fe=a.length&&Qe,lt=C===oS,Ge=Fe||typeof C=="number"&&a.length>C,Xe=B.useMemo(function(){var Ae=a;return Fe?k===null&&_?Ae=a:Ae=a.slice(0,Math.min(a.length,F/g)):typeof C=="number"&&(Ae=a.slice(0,C)),Ae},[a,g,k,C,Fe]),Ue=B.useMemo(function(){return Fe?a.slice(Ce+1):a.slice(Xe.length)},[a,Xe,Fe,Ce]),Pe=B.useCallback(function(Ae,ke){var Ee;return typeof d=="function"?d(Ae):(Ee=d&&(Ae==null?void 0:Ae[d]))!==null&&Ee!==void 0?Ee:ke},[d]),vt=B.useCallback(l||function(Ae){return Ae},[l]);function it(Ae,ke,Ee){Oe===Ae&&(ke===void 0||ke===he)||(_e(Ae),Ee||(ye(Ae<a.length-1),I==null||I(Ae)),ke!==void 0&&ue(ke))}function Bt(Ae,ke){j(ke.clientWidth)}function Ct(Ae,ke){T(function(Ee){var ze=new Map(Ee);return ke===null?ze.delete(Ae):ze.set(Ae,ke),ze})}function ft(Ae,ke){re(ke),X(oe)}function ot(Ae,ke){ee(ke)}function zt(Ae){return L.get(Pe(Xe[Ae],Ae))}nn(function(){if(F&&typeof ht=="number"&&Xe){var Ae=se,ke=Xe.length,Ee=ke-1;if(!ke){it(0,null);return}for(var ze=0;ze<ke;ze+=1){var Ne=zt(ze);if(_&&(Ne=Ne||0),Ne===void 0){it(ze-1,void 0,!0);break}if(Ae+=Ne,Ee===0&&Ae<=F||ze===Ee-1&&Ae+zt(Ee)<=F){it(Ee,null);break}else if(Ae+ht>F){it(ze-1,Ae-Ne-se+oe);break}}x&&zt(0)+se>F&&ue(null)}},[F,L,oe,se,Pe,Xe]);var xt=xe&&!!Ue.length,Re={};he!==null&&Fe&&(Re={position:"absolute",left:he,top:0});var He={prefixCls:De,responsive:Fe,component:O,invalidate:lt},Ye=c?function(Ae,ke){var Ee=Pe(Ae,ke);return u.createElement(yc.Provider,{key:Ee,value:J(J({},He),{},{order:ke,item:Ae,itemKey:Ee,registerSize:Ct,display:ke<=Ce})},c(Ae,ke))}:function(Ae,ke){var Ee=Pe(Ae,ke);return u.createElement(Ss,rt({},He,{order:ke,key:Ee,item:Ae,renderItem:vt,itemKey:Ee,registerSize:Ct,display:ke<=Ce}))},Je,at={order:xt?Ce:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:ft,display:xt};if(b)b&&(Je=u.createElement(yc.Provider,{value:J(J({},He),at)},b(Ue)));else{var Ke=m||PA;Je=u.createElement(Ss,rt({},He,at),typeof Ke=="function"?Ke(Ue):Ke)}var mt=u.createElement(E,rt({className:ce(!lt&&r,S),style:v,ref:t},R),Xe.map(Ye),Ge?Je:null,x&&u.createElement(Ss,rt({},He,{responsive:Qe,responsiveDisabled:!Fe,order:Ce,className:"".concat(De,"-suffix"),registerSize:ot,display:!0,style:Re}),x));return Qe&&(mt=u.createElement(Rr,{onResize:Bt,disabled:!Fe},mt)),mt}var fi=u.forwardRef(TA);fi.displayName="Overflow";fi.Item=rS;fi.RESPONSIVE=iS;fi.INVALIDATE=oS;var NA=function(t,n){var r,i=t.prefixCls,a=t.id,l=t.inputElement,c=t.disabled,d=t.tabIndex,p=t.autoFocus,g=t.autoComplete,h=t.editable,v=t.activeDescendantId,S=t.value,C=t.maxLength,m=t.onKeyDown,b=t.onMouseDown,x=t.onChange,w=t.onPaste,E=t.onCompositionStart,O=t.onCompositionEnd,I=t.open,R=t.attrs,_=l||u.createElement("input",null),P=_,D=P.ref,A=P.props,k=A.onKeyDown,j=A.onChange,F=A.onMouseDown,H=A.onCompositionStart,V=A.onCompositionEnd,L=A.style;return Ro(!("maxLength"in _.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_=u.cloneElement(_,J(J(J({type:"search"},A),{},{id:a,ref:pi(n,D),disabled:c,tabIndex:d,autoComplete:g||"off",autoFocus:p,className:ce("".concat(i,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":I||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":I?v:void 0},R),{},{value:h?S:"",maxLength:C,readOnly:!h,unselectable:h?null:"on",style:J(J({},L),{},{opacity:h?null:0}),onKeyDown:function(N){m(N),k&&k(N)},onMouseDown:function(N){b(N),F&&F(N)},onChange:function(N){x(N),j&&j(N)},onCompositionStart:function(N){E(N),H&&H(N)},onCompositionEnd:function(N){O(N),V&&V(N)},onPaste:w})),_},Kp=u.forwardRef(NA);Kp.displayName="Input";function qp(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var MA=typeof window<"u"&&window.document&&window.document.documentElement,AA=process.env.NODE_ENV!=="test"&&MA;function DA(e){return e!=null}function LA(e){return!e&&e!==0}function Vm(e){return["string","number"].includes(Rt(e))}function aS(e){var t=void 0;return e&&(Vm(e.title)?t=e.title.toString():Vm(e.label)&&(t=e.label.toString())),t}function zA(e,t){AA?u.useLayoutEffect(e,t):u.useEffect(e,t)}function FA(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Wm=function(t){t.preventDefault(),t.stopPropagation()},BA=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,l=t.searchValue,c=t.autoClearSearchValue,d=t.inputRef,p=t.placeholder,g=t.disabled,h=t.mode,v=t.showSearch,S=t.autoFocus,C=t.autoComplete,m=t.activeDescendantId,b=t.tabIndex,x=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,O=t.maxTagPlaceholder,I=O===void 0?function(ue){return"+ ".concat(ue.length," ...")}:O,R=t.tagRender,_=t.onToggleOpen,P=t.onRemove,D=t.onInputChange,A=t.onInputPaste,k=t.onInputKeyDown,j=t.onInputMouseDown,F=t.onInputCompositionStart,H=t.onInputCompositionEnd,V=u.useRef(null),L=B.useState(0),T=ie(L,2),N=T[0],W=T[1],K=B.useState(!1),X=ie(K,2),Y=X[0],ne=X[1],oe="".concat(r,"-selection"),re=a||h==="multiple"&&c===!1||h==="tags"?l:"",fe=h==="tags"||h==="multiple"&&c===!1||v&&(a||Y);zA(function(){W(V.current.scrollWidth)},[re]);function de(ue,te,$e,Oe,_e){return u.createElement("span",{className:ce("".concat(oe,"-item"),U({},"".concat(oe,"-item-disabled"),$e)),title:aS(ue)},u.createElement("span",{className:"".concat(oe,"-item-content")},te),Oe&&u.createElement(Wc,{className:"".concat(oe,"-item-remove"),onMouseDown:Wm,onClick:_e,customizeIcon:x},"×"))}function se(ue,te,$e,Oe,_e){var Ce=function(ve){Wm(ve),_(!a)};return u.createElement("span",{onMouseDown:Ce},R({label:te,value:ue,disabled:$e,closable:Oe,onClose:_e}))}function ee(ue){var te=ue.disabled,$e=ue.label,Oe=ue.value,_e=!g&&!te,Ce=$e;if(typeof E=="number"&&(typeof $e=="string"||typeof $e=="number")){var Ie=String(Ce);Ie.length>E&&(Ce="".concat(Ie.slice(0,E),"..."))}var ve=function(ye){ye&&ye.stopPropagation(),P(ue)};return typeof R=="function"?se(Oe,Ce,te,_e,ve):de(ue,Ce,te,_e,ve)}function ae(ue){var te=typeof I=="function"?I(ue):I;return de({title:te},te,!1)}var ge=u.createElement("div",{className:"".concat(oe,"-search"),style:{width:N},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},u.createElement(Kp,{ref:d,open:a,prefixCls:r,id:n,inputElement:null,disabled:g,autoFocus:S,autoComplete:C,editable:fe,activeDescendantId:m,value:re,onKeyDown:k,onMouseDown:j,onChange:D,onPaste:A,onCompositionStart:F,onCompositionEnd:H,tabIndex:b,attrs:Po(t,!0)}),u.createElement("span",{ref:V,className:"".concat(oe,"-search-mirror"),"aria-hidden":!0},re," ")),he=u.createElement(fi,{prefixCls:"".concat(oe,"-overflow"),data:i,renderItem:ee,renderRest:ae,suffix:ge,itemKey:FA,maxCount:w});return u.createElement(u.Fragment,null,he,!i.length&&!re&&u.createElement("span",{className:"".concat(oe,"-placeholder")},p))},jA=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,l=t.disabled,c=t.autoFocus,d=t.autoComplete,p=t.activeDescendantId,g=t.mode,h=t.open,v=t.values,S=t.placeholder,C=t.tabIndex,m=t.showSearch,b=t.searchValue,x=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,O=t.onInputMouseDown,I=t.onInputChange,R=t.onInputPaste,_=t.onInputCompositionStart,P=t.onInputCompositionEnd,D=t.title,A=u.useState(!1),k=ie(A,2),j=k[0],F=k[1],H=g==="combobox",V=H||m,L=v[0],T=b||"";H&&x&&!j&&(T=x),u.useEffect(function(){H&&F(!1)},[H,x]);var N=g!=="combobox"&&!h&&!m?!1:!!T,W=D===void 0?aS(L):D,K=function(){if(L)return null;var Y=N?{visibility:"hidden"}:void 0;return u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Y},S)};return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(Kp,{ref:a,prefixCls:r,id:i,open:h,inputElement:n,disabled:l,autoFocus:c,autoComplete:d,editable:V,activeDescendantId:p,value:T,onKeyDown:E,onMouseDown:O,onChange:function(Y){F(!0),I(Y)},onPaste:R,onCompositionStart:_,onCompositionEnd:P,tabIndex:C,attrs:Po(t,!0),maxLength:H?w:void 0})),!H&&L?u.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:N?{visibility:"hidden"}:void 0},L.label):null,K())};function HA(e){return![Se.ESC,Se.SHIFT,Se.BACKSPACE,Se.TAB,Se.WIN_KEY,Se.ALT,Se.META,Se.WIN_KEY_RIGHT,Se.CTRL,Se.SEMICOLON,Se.EQUALS,Se.CAPS_LOCK,Se.CONTEXT_MENU,Se.F1,Se.F2,Se.F3,Se.F4,Se.F5,Se.F6,Se.F7,Se.F8,Se.F9,Se.F10,Se.F11,Se.F12].includes(e)}var kA=function(t,n){var r=B.useRef(null),i=B.useRef(!1),a=t.prefixCls,l=t.open,c=t.mode,d=t.showSearch,p=t.tokenWithEnter,g=t.autoClearSearchValue,h=t.onSearch,v=t.onSearchSubmit,S=t.onToggleOpen,C=t.onInputKeyDown,m=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var b=nS(0),x=ie(b,2),w=x[0],E=x[1],O=function(T){var N=T.which;(N===Se.UP||N===Se.DOWN)&&T.preventDefault(),C&&C(T),N===Se.ENTER&&c==="tags"&&!i.current&&!l&&(v==null||v(T.target.value)),HA(N)&&S(!0)},I=function(){E(!0)},R=B.useRef(null),_=function(T){h(T,!0,i.current)!==!1&&S(!0)},P=function(){i.current=!0},D=function(T){i.current=!1,c!=="combobox"&&_(T.target.value)},A=function(T){var N=T.target.value;if(p&&R.current&&/[\r\n]/.test(R.current)){var W=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");N=N.replace(W,R.current)}R.current=null,_(N)},k=function(T){var N=T.clipboardData,W=N.getData("text");R.current=W},j=function(T){var N=T.target;if(N!==r.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){r.current.focus()}):r.current.focus()}},F=function(T){var N=w();T.target!==r.current&&!N&&c!=="combobox"&&T.preventDefault(),(c!=="combobox"&&(!d||!N)||!l)&&(l&&g!==!1&&h("",!0,!1),S())},H={inputRef:r,onInputKeyDown:O,onInputMouseDown:I,onInputChange:A,onInputPaste:k,onInputCompositionStart:P,onInputCompositionEnd:D},V=c==="multiple"||c==="tags"?u.createElement(BA,rt({},t,H)):u.createElement(jA,rt({},t,H));return u.createElement("div",{ref:m,className:"".concat(a,"-selector"),onClick:j,onMouseDown:F},V)},sS=u.forwardRef(kA);sS.displayName="Selector";function lS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function VA(e){return lS(e)instanceof ShadowRoot}function Uf(e){return VA(e)?lS(e):null}function WA(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},l=a.className,c=a.content,d=i.x,p=d===void 0?0:d,g=i.y,h=g===void 0?0:g,v=u.useRef();if(!n||!n.points)return null;var S={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],m=n.points[1],b=C[0],x=C[1],w=m[0],E=m[1];b===w||!["t","b"].includes(b)?S.top=h:b==="t"?S.top=0:S.bottom=0,x===E||!["l","r"].includes(x)?S.left=p:x==="l"?S.left=0:S.right=0}return u.createElement("div",{ref:v,className:ce("".concat(t,"-arrow"),l),style:S},c)}function UA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?u.createElement(no,rt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var c=l.className;return u.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),c)})}):null}var cS=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(cS.displayName="PopupContent");var uS=u.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,d=e.open,p=e.keepDom,g=e.fresh,h=e.onClick,v=e.mask,S=e.arrow,C=e.arrowPos,m=e.align,b=e.motion,x=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,O=e.autoDestroy,I=e.portal,R=e.zIndex,_=e.onMouseEnter,P=e.onMouseLeave,D=e.onPointerEnter,A=e.ready,k=e.offsetX,j=e.offsetY,F=e.offsetR,H=e.offsetB,V=e.onAlign,L=e.onPrepare,T=e.stretch,N=e.targetWidth,W=e.targetHeight,K=typeof n=="function"?n():n,X=d||p,Y=(E==null?void 0:E.length)>0,ne=u.useState(!E||!Y),oe=ie(ne,2),re=oe[0],fe=oe[1];if(nn(function(){!re&&Y&&l&&fe(!0)},[re,Y,l]),!re)return null;var de="auto",se={left:"-1000vw",top:"-1000vh",right:de,bottom:de};if(A||!d){var ee,ae=m.points,ge=m.dynamicInset||((ee=m._experimental)===null||ee===void 0?void 0:ee.dynamicInset),he=ge&&ae[0][1]==="r",ue=ge&&ae[0][0]==="b";he?(se.right=F,se.left=de):(se.left=k,se.right=de),ue?(se.bottom=H,se.top=de):(se.top=j,se.bottom=de)}var te={};return T&&(T.includes("height")&&W?te.height=W:T.includes("minHeight")&&W&&(te.minHeight=W),T.includes("width")&&N?te.width=N:T.includes("minWidth")&&N&&(te.minWidth=N)),d||(te.pointerEvents="none"),u.createElement(I,{open:w||X,getContainer:E&&function(){return E(l)},autoDestroy:O},u.createElement(UA,{prefixCls:i,open:d,zIndex:R,mask:v,motion:x}),u.createElement(Rr,{onResize:V,disabled:!d},function($e){return u.createElement(no,rt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:L,onEnterPrepare:L,visible:d,onVisibleChanged:function(_e){var Ce;b==null||(Ce=b.onVisibleChanged)===null||Ce===void 0||Ce.call(b,_e),c(_e)}}),function(Oe,_e){var Ce=Oe.className,Ie=Oe.style,ve=ce(i,Ce,r);return u.createElement("div",{ref:pi($e,t,_e),className:ve,style:J(J(J(J({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},se),te),Ie),{},{boxSizing:"border-box",zIndex:R},a),onMouseEnter:_,onMouseLeave:P,onPointerEnter:D,onClick:h},S&&u.createElement(WA,{prefixCls:i,arrow:S,arrowPos:C,align:m}),u.createElement(cS,{cache:!d&&!g},K))})}))});process.env.NODE_ENV!=="production"&&(uS.displayName="Popup");var dS=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=zo(n),a=u.useCallback(function(c){vp(t,r?r(c):c)},[r]),l=Fa(a,n.ref);return i?u.cloneElement(n,{ref:l}):n});process.env.NODE_ENV!=="production"&&(dS.displayName="TriggerWrapper");var Um=u.createContext(null);function Gm(e){return e?Array.isArray(e)?e:[e]:[]}function GA(e,t,n,r){return u.useMemo(function(){var i=Gm(n??t),a=Gm(r??t),l=new Set(i),c=new Set(a);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[l,c]},[e,t,n,r])}function KA(){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 qA(e,t,n,r){for(var i=n.points,a=Object.keys(e),l=0;l<a.length;l+=1){var c,d=a[l];if(KA((c=e[d])===null||c===void 0?void 0:c.points,i,r))return"".concat(t,"-placement-").concat(d)}return""}function Km(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Hs(e){return e.ownerDocument.defaultView}function Gf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Hs(n).getComputedStyle(n),a=i.overflowX,l=i.overflowY,c=i.overflow;[a,l,c].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ls(e){return Is(parseFloat(e),0)}function qm(e,t){var n=J({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Hs(r).getComputedStyle(r),a=i.overflow,l=i.overflowClipMargin,c=i.borderTopWidth,d=i.borderBottomWidth,p=i.borderLeftWidth,g=i.borderRightWidth,h=r.getBoundingClientRect(),v=r.offsetHeight,S=r.clientHeight,C=r.offsetWidth,m=r.clientWidth,b=ls(c),x=ls(d),w=ls(p),E=ls(g),O=Is(Math.round(h.width/C*1e3)/1e3),I=Is(Math.round(h.height/v*1e3)/1e3),R=(C-m-w-E)*O,_=(v-S-b-x)*I,P=b*I,D=x*I,A=w*O,k=E*O,j=0,F=0;if(a==="clip"){var H=ls(l);j=H*O,F=H*I}var V=h.x+A-j,L=h.y+P-F,T=V+h.width+2*j-A-k-R,N=L+h.height+2*F-P-D-_;n.left=Math.max(n.left,V),n.top=Math.max(n.top,L),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,N)}}),n}function Xm(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 Ym(e,t){var n=t||[],r=ie(n,2),i=r[0],a=r[1];return[Xm(e.width,i),Xm(e.height,a)]}function Zm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ua(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function qi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function XA(e,t,n,r,i,a,l){var c=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),d=ie(c,2),p=d[0],g=d[1],h=u.useRef(0),v=u.useMemo(function(){return t?Gf(t):[]},[t]),S=u.useRef({}),C=function(){S.current={}};e||C();var m=gr(function(){if(t&&n&&e){let Wn=function(io,tr){var zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ie,oo=W.x+io,hi=W.y+tr,ao=oo+se,Fi=hi+de,Vo=Math.max(oo,zi.left),ka=Math.max(hi,zi.top),Va=Math.min(ao,zi.right),Wo=Math.min(Fi,zi.bottom);return Math.max(0,(Va-Vo)*(Wo-ka))},Xr=function(){an=W.y+at,At=an+de,Vt=W.x+Je,pt=Vt+se};var w,E,O=t,I=O.ownerDocument,R=Hs(O),_=R.getComputedStyle(O),P=_.width,D=_.height,A=_.position,k=O.style.left,j=O.style.top,F=O.style.right,H=O.style.bottom,V=J(J({},i[r]),a),L=I.createElement("div");(w=O.parentElement)===null||w===void 0||w.appendChild(L),L.style.left="".concat(O.offsetLeft,"px"),L.style.top="".concat(O.offsetTop,"px"),L.style.position=A,L.style.height="".concat(O.offsetHeight,"px"),L.style.width="".concat(O.offsetWidth,"px"),O.style.left="0",O.style.top="0",O.style.right="auto",O.style.bottom="auto";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var N=n.getBoundingClientRect();T={x:N.x,y:N.y,width:N.width,height:N.height}}var W=O.getBoundingClientRect(),K=I.documentElement,X=K.clientWidth,Y=K.clientHeight,ne=K.scrollWidth,oe=K.scrollHeight,re=K.scrollTop,fe=K.scrollLeft,de=W.height,se=W.width,ee=T.height,ae=T.width,ge={left:0,top:0,right:X,bottom:Y},he={left:-fe,top:-re,right:ne-fe,bottom:oe-re},ue=V.htmlRegion,te="visible",$e="visibleFirst";ue!=="scroll"&&ue!==$e&&(ue=te);var Oe=ue===$e,_e=qm(he,v),Ce=qm(ge,v),Ie=ue===te?Ce:_e,ve=Oe?Ce:Ie;O.style.left="auto",O.style.top="auto",O.style.right="0",O.style.bottom="0";var xe=O.getBoundingClientRect();O.style.left=k,O.style.top=j,O.style.right=F,O.style.bottom=H,(E=O.parentElement)===null||E===void 0||E.removeChild(L);var ye=Is(Math.round(se/parseFloat(P)*1e3)/1e3),De=Is(Math.round(de/parseFloat(D)*1e3)/1e3);if(ye===0||De===0||sc(n)&&!Fp(n))return;var ht=V.offset,Qe=V.targetOffset,Fe=Ym(W,ht),lt=ie(Fe,2),Ge=lt[0],Xe=lt[1],Ue=Ym(T,Qe),Pe=ie(Ue,2),vt=Pe[0],it=Pe[1];T.x-=vt,T.y-=it;var Bt=V.points||[],Ct=ie(Bt,2),ft=Ct[0],ot=Ct[1],zt=Zm(ot),xt=Zm(ft),Re=ua(T,zt),He=ua(W,xt),Ye=J({},V),Je=Re.x-He.x+Ge,at=Re.y-He.y+Xe,Ke=Wn(Je,at),mt=Wn(Je,at,Ce),Ae=ua(T,["t","l"]),ke=ua(W,["t","l"]),Ee=ua(T,["b","r"]),ze=ua(W,["b","r"]),Ne=V.overflow||{},Be=Ne.adjustX,bt=Ne.adjustY,$t=Ne.shiftX,Ut=Ne.shiftY,Nt=function(tr){return typeof tr=="boolean"?tr:tr>=0},an,At,Vt,pt;Xr();var ct=Nt(bt),Me=xt[0]===zt[0];if(ct&&xt[0]==="t"&&(At>ve.bottom||S.current.bt)){var Te=at;Me?Te-=de-ee:Te=Ae.y-ze.y-Xe;var et=Wn(Je,Te),Dt=Wn(Je,Te,Ce);et>Ke||et===Ke&&(!Oe||Dt>=mt)?(S.current.bt=!0,at=Te,Xe=-Xe,Ye.points=[qi(xt,0),qi(zt,0)]):S.current.bt=!1}if(ct&&xt[0]==="b"&&(an<ve.top||S.current.tb)){var Gt=at;Me?Gt+=de-ee:Gt=Ee.y-ke.y-Xe;var cn=Wn(Je,Gt),Fn=Wn(Je,Gt,Ce);cn>Ke||cn===Ke&&(!Oe||Fn>=mt)?(S.current.tb=!0,at=Gt,Xe=-Xe,Ye.points=[qi(xt,0),qi(zt,0)]):S.current.tb=!1}var _n=Nt(Be),Zn=xt[1]===zt[1];if(_n&&xt[1]==="l"&&(pt>ve.right||S.current.rl)){var un=Je;Zn?un-=se-ae:un=Ae.x-ze.x-Ge;var Pn=Wn(un,at),Gr=Wn(un,at,Ce);Pn>Ke||Pn===Ke&&(!Oe||Gr>=mt)?(S.current.rl=!0,Je=un,Ge=-Ge,Ye.points=[qi(xt,1),qi(zt,1)]):S.current.rl=!1}if(_n&&xt[1]==="r"&&(Vt<ve.left||S.current.lr)){var lr=Je;Zn?lr+=se-ae:lr=Ee.x-ke.x-Ge;var Tr=Wn(lr,at),Kr=Wn(lr,at,Ce);Tr>Ke||Tr===Ke&&(!Oe||Kr>=mt)?(S.current.lr=!0,Je=lr,Ge=-Ge,Ye.points=[qi(xt,1),qi(zt,1)]):S.current.lr=!1}Xr();var Cn=$t===!0?0:$t;typeof Cn=="number"&&(Vt<Ce.left&&(Je-=Vt-Ce.left-Ge,T.x+ae<Ce.left+Cn&&(Je+=T.x-Ce.left+ae-Cn)),pt>Ce.right&&(Je-=pt-Ce.right-Ge,T.x>Ce.right-Cn&&(Je+=T.x-Ce.right+Cn)));var Qn=Ut===!0?0:Ut;typeof Qn=="number"&&(an<Ce.top&&(at-=an-Ce.top-Xe,T.y+ee<Ce.top+Qn&&(at+=T.y-Ce.top+ee-Qn)),At>Ce.bottom&&(at-=At-Ce.bottom-Xe,T.y>Ce.bottom-Qn&&(at+=T.y-Ce.bottom+Qn)));var qr=W.x+Je,li=qr+se,Jn=W.y+at,er=Jn+de,cr=T.x,gt=cr+ae,nt=T.y,fn=nt+ee,wt=Math.max(qr,cr),tt=Math.min(li,gt),yt=(wt+tt)/2,Kt=yt-qr,sn=Math.max(Jn,nt),vn=Math.min(er,fn),xn=(sn+vn)/2,Vn=xn-Jn;l==null||l(t,Ye);var gi=xe.right-W.x-(Je+W.width),Li=xe.bottom-W.y-(at+W.height);g({ready:!0,offsetX:Je/ye,offsetY:at/De,offsetR:gi/ye,offsetB:Li/De,arrowX:Kt/ye,arrowY:Vn/De,scaleX:ye,scaleY:De,align:Ye})}}),b=function(){h.current+=1;var E=h.current;Promise.resolve().then(function(){h.current===E&&m()})},x=function(){g(function(E){return J(J({},E),{},{ready:!1})})};return nn(x,[r]),nn(function(){e||x()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,b]}function YA(e,t,n,r,i){nn(function(){if(e&&t&&n){let h=function(){r(),i()};var a=t,l=n,c=Gf(a),d=Gf(l),p=Hs(l),g=new Set([p].concat(je(c),je(d)));return g.forEach(function(v){v.addEventListener("scroll",h,{passive:!0})}),p.addEventListener("resize",h,{passive:!0}),r(),function(){g.forEach(function(v){v.removeEventListener("scroll",h),p.removeEventListener("resize",h)})}}},[e,t,n])}function ZA(e,t,n,r,i,a,l,c){var d=u.useRef(e),p=u.useRef(!1);d.current!==e&&(p.current=!0,d.current=e),u.useEffect(function(){var g=Jt(function(){p.current=!1});return function(){Jt.cancel(g)}},[e]),u.useEffect(function(){if(t&&r&&(!i||a)){var g=function(){var A=!1,k=function(H){var V=H.target;A=l(V)},j=function(H){var V=H.target;!p.current&&d.current&&!A&&!l(V)&&c(!1)};return[k,j]},h=g(),v=ie(h,2),S=v[0],C=v[1],m=g(),b=ie(m,2),x=b[0],w=b[1],E=Hs(r);E.addEventListener("mousedown",S,!0),E.addEventListener("click",C,!0),E.addEventListener("contextmenu",C,!0);var O=Uf(n);if(O&&(O.addEventListener("mousedown",x,!0),O.addEventListener("click",w,!0),O.addEventListener("contextmenu",w,!0)),process.env.NODE_ENV!=="production"){var I,R,_=n==null||(I=n.getRootNode)===null||I===void 0?void 0:I.call(n),P=(R=r.getRootNode)===null||R===void 0?void 0:R.call(r);Ro(_===P,"trigger element and popup element should in same shadow root.")}return function(){E.removeEventListener("mousedown",S,!0),E.removeEventListener("click",C,!0),E.removeEventListener("contextmenu",C,!0),O&&(O.removeEventListener("mousedown",x,!0),O.removeEventListener("click",w,!0),O.removeEventListener("contextmenu",w,!0))}}},[t,n,r,i,a])}var QA=["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 JA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vp,t=u.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,l=n.children,c=n.action,d=c===void 0?"hover":c,p=n.showAction,g=n.hideAction,h=n.popupVisible,v=n.defaultPopupVisible,S=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,m=n.mouseEnterDelay,b=n.mouseLeaveDelay,x=b===void 0?.1:b,w=n.focusDelay,E=n.blurDelay,O=n.mask,I=n.maskClosable,R=I===void 0?!0:I,_=n.getPopupContainer,P=n.forceRender,D=n.autoDestroy,A=n.destroyPopupOnHide,k=n.popup,j=n.popupClassName,F=n.popupStyle,H=n.popupPlacement,V=n.builtinPlacements,L=V===void 0?{}:V,T=n.popupAlign,N=n.zIndex,W=n.stretch,K=n.getPopupClassNameFromAlign,X=n.fresh,Y=n.alignPoint,ne=n.onPopupClick,oe=n.onPopupAlign,re=n.arrow,fe=n.popupMotion,de=n.maskMotion,se=n.popupTransitionName,ee=n.popupAnimation,ae=n.maskTransitionName,ge=n.maskAnimation,he=n.className,ue=n.getTriggerDOMNode,te=Tt(n,QA),$e=D||A||!1,Oe=u.useState(!1),_e=ie(Oe,2),Ce=_e[0],Ie=_e[1];nn(function(){Ie(Gp())},[]);var ve=u.useRef({}),xe=u.useContext(Um),ye=u.useMemo(function(){return{registerSubPopup:function(St,pn){ve.current[St]=pn,xe==null||xe.registerSubPopup(St,pn)}}},[xe]),De=HN(),ht=u.useState(null),Qe=ie(ht,2),Fe=Qe[0],lt=Qe[1],Ge=gr(function(qe){sc(qe)&&Fe!==qe&&lt(qe),xe==null||xe.registerSubPopup(De,qe)}),Xe=u.useState(null),Ue=ie(Xe,2),Pe=Ue[0],vt=Ue[1],it=u.useRef(null),Bt=gr(function(qe){sc(qe)&&Pe!==qe&&(vt(qe),it.current=qe)}),Ct=u.Children.only(l),ft=(Ct==null?void 0:Ct.props)||{},ot={},zt=gr(function(qe){var St,pn,mn=Pe;return(mn==null?void 0:mn.contains(qe))||((St=Uf(mn))===null||St===void 0?void 0:St.host)===qe||qe===mn||(Fe==null?void 0:Fe.contains(qe))||((pn=Uf(Fe))===null||pn===void 0?void 0:pn.host)===qe||qe===Fe||Object.values(ve.current).some(function(gn){return(gn==null?void 0:gn.contains(qe))||qe===gn})}),xt=Km(a,fe,ee,se),Re=Km(a,de,ge,ae),He=u.useState(v||!1),Ye=ie(He,2),Je=Ye[0],at=Ye[1],Ke=h??Je,mt=gr(function(qe){h===void 0&&at(qe)});nn(function(){at(h||!1)},[h]);var Ae=u.useRef(Ke);Ae.current=Ke;var ke=u.useRef([]);ke.current=[];var Ee=gr(function(qe){var St;mt(qe),((St=ke.current[ke.current.length-1])!==null&&St!==void 0?St:Ke)!==qe&&(ke.current.push(qe),S==null||S(qe))}),ze=u.useRef(),Ne=function(){clearTimeout(ze.current)},Be=function(St){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),pn===0?Ee(St):ze.current=setTimeout(function(){Ee(St)},pn*1e3)};u.useEffect(function(){return Ne},[]);var bt=u.useState(!1),$t=ie(bt,2),Ut=$t[0],Nt=$t[1];nn(function(qe){(!qe||Ke)&&Nt(!0)},[Ke]);var an=u.useState(null),At=ie(an,2),Vt=At[0],pt=At[1],ct=u.useState([0,0]),Me=ie(ct,2),Te=Me[0],et=Me[1],Dt=function(St){et([St.clientX,St.clientY])},Gt=XA(Ke,Fe,Y?Te:Pe,H,L,T,oe),cn=ie(Gt,11),Fn=cn[0],_n=cn[1],Zn=cn[2],un=cn[3],Pn=cn[4],Gr=cn[5],lr=cn[6],Tr=cn[7],Kr=cn[8],Cn=cn[9],Qn=cn[10],qr=GA(Ce,d,p,g),li=ie(qr,2),Jn=li[0],er=li[1],cr=Jn.has("click"),gt=er.has("click")||er.has("contextMenu"),nt=gr(function(){Ut||Qn()}),fn=function(){Ae.current&&Y&&gt&&Be(!1)};YA(Ke,Pe,Fe,nt,fn),nn(function(){nt()},[Te,H]),nn(function(){Ke&&!(L!=null&&L[H])&&nt()},[JSON.stringify(T)]);var wt=u.useMemo(function(){var qe=qA(L,a,Cn,Y);return ce(qe,K==null?void 0:K(Cn))},[Cn,K,L,a,Y]);u.useImperativeHandle(r,function(){return{nativeElement:it.current,forceAlign:nt}});var tt=u.useState(0),yt=ie(tt,2),Kt=yt[0],sn=yt[1],vn=u.useState(0),xn=ie(vn,2),Vn=xn[0],gi=xn[1],Li=function(){if(W&&Pe){var St=Pe.getBoundingClientRect();sn(St.width),gi(St.height)}},Wn=function(){Li(),nt()},Xr=function(St){Nt(!1),Qn(),C==null||C(St)},io=function(){return new Promise(function(St){Li(),pt(function(){return St})})};nn(function(){Vt&&(Qn(),Vt(),pt(null))},[Vt]);function tr(qe,St,pn,mn){ot[qe]=function(gn){var Uo;mn==null||mn(gn),Be(St,pn);for(var Wa=arguments.length,qs=new Array(Wa>1?Wa-1:0),Go=1;Go<Wa;Go++)qs[Go-1]=arguments[Go];(Uo=ft[qe])===null||Uo===void 0||Uo.call.apply(Uo,[ft,gn].concat(qs))}}(cr||gt)&&(ot.onClick=function(qe){var St;Ae.current&&gt?Be(!1):!Ae.current&&cr&&(Dt(qe),Be(!0));for(var pn=arguments.length,mn=new Array(pn>1?pn-1:0),gn=1;gn<pn;gn++)mn[gn-1]=arguments[gn];(St=ft.onClick)===null||St===void 0||St.call.apply(St,[ft,qe].concat(mn))}),ZA(Ke,gt,Pe,Fe,O,R,zt,Be);var zi=Jn.has("hover"),oo=er.has("hover"),hi,ao;zi&&(tr("onMouseEnter",!0,m,function(qe){Dt(qe)}),tr("onPointerEnter",!0,m,function(qe){Dt(qe)}),hi=function(){(Ke||Ut)&&Be(!0,m)},Y&&(ot.onMouseMove=function(qe){var St;(St=ft.onMouseMove)===null||St===void 0||St.call(ft,qe)})),oo&&(tr("onMouseLeave",!1,x),tr("onPointerLeave",!1,x),ao=function(){Be(!1,x)}),Jn.has("focus")&&tr("onFocus",!0,w),er.has("focus")&&tr("onBlur",!1,E),Jn.has("contextMenu")&&(ot.onContextMenu=function(qe){var St;Ae.current&&er.has("contextMenu")?Be(!1):(Dt(qe),Be(!0)),qe.preventDefault();for(var pn=arguments.length,mn=new Array(pn>1?pn-1:0),gn=1;gn<pn;gn++)mn[gn-1]=arguments[gn];(St=ft.onContextMenu)===null||St===void 0||St.call.apply(St,[ft,qe].concat(mn))}),he&&(ot.className=ce(ft.className,he));var Fi=J(J({},ft),ot),Vo={},ka=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ka.forEach(function(qe){te[qe]&&(Vo[qe]=function(){for(var St,pn=arguments.length,mn=new Array(pn),gn=0;gn<pn;gn++)mn[gn]=arguments[gn];(St=Fi[qe])===null||St===void 0||St.call.apply(St,[Fi].concat(mn)),te[qe].apply(te,mn)})});var Va=u.cloneElement(Ct,J(J({},Fi),Vo)),Wo={x:Gr,y:lr},lu=re?J({},re!==!0?re:{}):null;return u.createElement(u.Fragment,null,u.createElement(Rr,{disabled:!Ke,ref:Bt,onResize:Wn},u.createElement(dS,{getTriggerDOMNode:ue},Va)),u.createElement(Um.Provider,{value:ye},u.createElement(uS,{portal:e,ref:Ge,prefixCls:a,popup:k,className:ce(j,wt),style:F,target:Pe,onMouseEnter:hi,onMouseLeave:ao,onPointerEnter:hi,zIndex:N,open:Ke,keepDom:Ut,fresh:X,onClick:ne,mask:O,motion:xt,maskMotion:Re,onVisibleChanged:Xr,onPrepare:io,forceRender:P,autoDestroy:$e,getPopupContainer:_,align:Cn,arrow:lu,arrowPos:Wo,ready:Fn,offsetX:_n,offsetY:Zn,offsetR:un,offsetB:Pn,onAlign:nt,stretch:W,targetWidth:Kt/Tr,targetHeight:Vn/Kr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Uc=JA(Vp);var eD=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tD=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"}}},nD=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,a=t.children,l=t.popupElement,c=t.animation,d=t.transitionName,p=t.dropdownStyle,g=t.dropdownClassName,h=t.direction,v=h===void 0?"ltr":h,S=t.placement,C=t.builtinPlacements,m=t.dropdownMatchSelectWidth,b=t.dropdownRender,x=t.dropdownAlign,w=t.getPopupContainer,E=t.empty,O=t.getTriggerDOMNode,I=t.onPopupVisibleChange,R=t.onPopupMouseEnter,_=Tt(t,eD),P="".concat(r,"-dropdown"),D=l;b&&(D=b(l));var A=u.useMemo(function(){return C||tD(m)},[C,m]),k=c?"".concat(P,"-").concat(c):d,j=typeof m=="number",F=u.useMemo(function(){return j?null:m===!1?"minWidth":"width"},[m,j]),H=p;j&&(H=J(J({},H),{},{width:m}));var V=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){return V.current}}}),u.createElement(Uc,rt({},_,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:S||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:P,popupTransitionName:k,popup:u.createElement("div",{ref:V,onMouseEnter:R},D),stretch:F,popupAlign:x,popupVisible:i,getPopupContainer:w,popupClassName:ce(g,U({},"".concat(P,"-empty"),E)),popupStyle:H,getTriggerDOMNode:O,onPopupVisibleChange:I}),a)},fS=u.forwardRef(nD);fS.displayName="SelectTrigger";function Qm(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 pS(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,l=n.groupLabel,c=r||(t?"children":"label");return{label:c,value:i||"value",options:a||"options",groupLabel:l||c}}function rD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=pS(n,!1),l=a.label,c=a.value,d=a.options,p=a.groupLabel;function g(h,v){h.forEach(function(S){if(v||!(d in S)){var C=S[c];i.push({key:Qm(S,i.length),groupOption:v,data:S,label:S[l],value:C})}else{var m=S[p];m===void 0&&r&&(m=S.label),i.push({key:Qm(S,i.length),group:!0,data:S,label:m}),g(S[d],!0)}})}return g(e,!1),i}function Kf(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _t(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function iD(e,t){if(!t||!t.length)return null;var n=!1;function r(a,l){var c=Rb(l),d=c[0],p=c.slice(1);if(!d)return[a];var g=a.split(d);return n=n||g.length>1,g.reduce(function(h,v){return[].concat(je(h),je(r(v,p)))},[]).filter(function(h){return h})}var i=r(e,t);return n?i:null}var oD=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],aD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Sc(e){return e==="tags"||e==="multiple"}var gS=u.forwardRef(function(e,t){var n,r,i=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,d=e.tagRender,p=e.direction,g=e.omitDomProps,h=e.displayValues,v=e.onDisplayValuesChange,S=e.emptyOptions,C=e.notFoundContent,m=C===void 0?"Not Found":C,b=e.onClear,x=e.mode,w=e.disabled,E=e.loading,O=e.getInputElement,I=e.getRawInputElement,R=e.open,_=e.defaultOpen,P=e.onDropdownVisibleChange,D=e.activeValue,A=e.onActiveValueChange,k=e.activeDescendantId,j=e.searchValue,F=e.autoClearSearchValue,H=e.onSearch,V=e.onSearchSplit,L=e.tokenSeparators,T=e.allowClear,N=e.suffixIcon,W=e.clearIcon,K=e.OptionList,X=e.animation,Y=e.transitionName,ne=e.dropdownStyle,oe=e.dropdownClassName,re=e.dropdownMatchSelectWidth,fe=e.dropdownRender,de=e.dropdownAlign,se=e.placement,ee=e.builtinPlacements,ae=e.getPopupContainer,ge=e.showAction,he=ge===void 0?[]:ge,ue=e.onFocus,te=e.onBlur,$e=e.onKeyUp,Oe=e.onKeyDown,_e=e.onMouseDown,Ce=Tt(e,oD),Ie=Sc(x),ve=(c!==void 0?c:Ie)||x==="combobox",xe=J({},Ce);aD.forEach(function(gt){delete xe[gt]}),g==null||g.forEach(function(gt){delete xe[gt]});var ye=u.useState(!1),De=ie(ye,2),ht=De[0],Qe=De[1];u.useEffect(function(){Qe(Gp())},[]);var Fe=u.useRef(null),lt=u.useRef(null),Ge=u.useRef(null),Xe=u.useRef(null),Ue=u.useRef(null),Pe=u.useRef(!1),vt=yA(),it=ie(vt,3),Bt=it[0],Ct=it[1],ft=it[2];u.useImperativeHandle(t,function(){var gt,nt;return{focus:(gt=Xe.current)===null||gt===void 0?void 0:gt.focus,blur:(nt=Xe.current)===null||nt===void 0?void 0:nt.blur,scrollTo:function(wt){var tt;return(tt=Ue.current)===null||tt===void 0?void 0:tt.scrollTo(wt)}}});var ot=u.useMemo(function(){var gt;if(x!=="combobox")return j;var nt=(gt=h[0])===null||gt===void 0?void 0:gt.value;return typeof nt=="string"||typeof nt=="number"?String(nt):""},[j,x,h]),zt=x==="combobox"&&typeof O=="function"&&O()||null,xt=typeof I=="function"&&I(),Re=Fa(lt,xt==null||(n=xt.props)===null||n===void 0?void 0:n.ref),He=u.useState(!1),Ye=ie(He,2),Je=Ye[0],at=Ye[1];nn(function(){at(!0)},[]);var Ke=qn(!1,{defaultValue:_,value:R}),mt=ie(Ke,2),Ae=mt[0],ke=mt[1],Ee=Je?Ae:!1,ze=!m&&S;(w||ze&&Ee&&x==="combobox")&&(Ee=!1);var Ne=ze?!1:Ee,Be=u.useCallback(function(gt){var nt=gt!==void 0?gt:!Ee;w||(ke(nt),Ee!==nt&&(P==null||P(nt)))},[w,Ee,ke,P]),bt=u.useMemo(function(){return(L||[]).some(function(gt){return[`
169
- `,`\r
170
- `].includes(gt)})},[L]),$t=function(nt,fn,wt){var tt=!0,yt=nt;A==null||A(null);var Kt=wt?null:iD(nt,L);return x!=="combobox"&&Kt&&(yt="",V==null||V(Kt),Be(!1),tt=!1),H&&ot!==yt&&H(yt,{source:fn?"typing":"effect"}),tt},Ut=function(nt){!nt||!nt.trim()||H(nt,{source:"submit"})};u.useEffect(function(){!Ee&&!Ie&&x!=="combobox"&&$t("",!1,!1)},[Ee]),u.useEffect(function(){Ae&&w&&ke(!1),w&&!Pe.current&&Ct(!1)},[w]);var Nt=nS(),an=ie(Nt,2),At=an[0],Vt=an[1],pt=function(nt){var fn=At(),wt=nt.which;if(wt===Se.ENTER&&(x!=="combobox"&&nt.preventDefault(),Ee||Be(!0)),Vt(!!ot),wt===Se.BACKSPACE&&!fn&&Ie&&!ot&&h.length){for(var tt=je(h),yt=null,Kt=tt.length-1;Kt>=0;Kt-=1){var sn=tt[Kt];if(!sn.disabled){tt.splice(Kt,1),yt=sn;break}}yt&&v(tt,{type:"remove",values:[yt]})}for(var vn=arguments.length,xn=new Array(vn>1?vn-1:0),Vn=1;Vn<vn;Vn++)xn[Vn-1]=arguments[Vn];if(Ee&&Ue.current){var gi;(gi=Ue.current).onKeyDown.apply(gi,[nt].concat(xn))}Oe==null||Oe.apply(void 0,[nt].concat(xn))},ct=function(nt){for(var fn=arguments.length,wt=new Array(fn>1?fn-1:0),tt=1;tt<fn;tt++)wt[tt-1]=arguments[tt];if(Ee&&Ue.current){var yt;(yt=Ue.current).onKeyUp.apply(yt,[nt].concat(wt))}$e==null||$e.apply(void 0,[nt].concat(wt))},Me=function(nt){var fn=h.filter(function(wt){return wt!==nt});v(fn,{type:"remove",values:[nt]})},Te=u.useRef(!1),et=function(){Ct(!0),w||(ue&&!Te.current&&ue.apply(void 0,arguments),he.includes("focus")&&Be(!0)),Te.current=!0},Dt=function(){Pe.current=!0,Ct(!1,function(){Te.current=!1,Pe.current=!1,Be(!1)}),!w&&(ot&&(x==="tags"?H(ot,{source:"submit"}):x==="multiple"&&H("",{source:"blur"})),te&&te.apply(void 0,arguments))},Gt=[];u.useEffect(function(){return function(){Gt.forEach(function(gt){return clearTimeout(gt)}),Gt.splice(0,Gt.length)}},[]);var cn=function(nt){var fn,wt=nt.target,tt=(fn=Ge.current)===null||fn===void 0?void 0:fn.getPopupElement();if(tt&&tt.contains(wt)){var yt=setTimeout(function(){var xn=Gt.indexOf(yt);if(xn!==-1&&Gt.splice(xn,1),ft(),!ht&&!tt.contains(document.activeElement)){var Vn;(Vn=Xe.current)===null||Vn===void 0||Vn.focus()}});Gt.push(yt)}for(var Kt=arguments.length,sn=new Array(Kt>1?Kt-1:0),vn=1;vn<Kt;vn++)sn[vn-1]=arguments[vn];_e==null||_e.apply(void 0,[nt].concat(sn))},Fn=u.useState({}),_n=ie(Fn,2),Zn=_n[1];function un(){Zn({})}var Pn;xt&&(Pn=function(nt){Be(nt)}),SA(function(){var gt;return[Fe.current,(gt=Ge.current)===null||gt===void 0?void 0:gt.getPopupElement()]},Ne,Be,!!xt);var Gr=u.useMemo(function(){return J(J({},e),{},{notFoundContent:m,open:Ee,triggerOpen:Ne,id:i,showSearch:ve,multiple:Ie,toggleOpen:Be})},[e,m,Ne,Ee,i,ve,Ie,Be]),lr=!!N||E,Tr;lr&&(Tr=u.createElement(Wc,{className:ce("".concat(a,"-arrow"),U({},"".concat(a,"-arrow-loading"),E)),customizeIcon:N,customizeIconProps:{loading:E,searchValue:ot,open:Ee,focused:Bt,showSearch:ve}}));var Kr=function(){var nt;b==null||b(),(nt=Xe.current)===null||nt===void 0||nt.focus(),v([],{type:"clear",values:h}),$t("",!1,!1)},Cn=mA(a,Kr,h,T,W,w,ot,x),Qn=Cn.allowClear,qr=Cn.clearIcon,li=u.createElement(K,{ref:Ue}),Jn=ce(a,l,(r={},U(r,"".concat(a,"-focused"),Bt),U(r,"".concat(a,"-multiple"),Ie),U(r,"".concat(a,"-single"),!Ie),U(r,"".concat(a,"-allow-clear"),T),U(r,"".concat(a,"-show-arrow"),lr),U(r,"".concat(a,"-disabled"),w),U(r,"".concat(a,"-loading"),E),U(r,"".concat(a,"-open"),Ee),U(r,"".concat(a,"-customize-input"),zt),U(r,"".concat(a,"-show-search"),ve),r)),er=u.createElement(fS,{ref:Ge,disabled:w,prefixCls:a,visible:Ne,popupElement:li,animation:X,transitionName:Y,dropdownStyle:ne,dropdownClassName:oe,direction:p,dropdownMatchSelectWidth:re,dropdownRender:fe,dropdownAlign:de,placement:se,builtinPlacements:ee,getPopupContainer:ae,empty:S,getTriggerDOMNode:function(){return lt.current},onPopupVisibleChange:Pn,onPopupMouseEnter:un},xt?u.cloneElement(xt,{ref:Re}):u.createElement(sS,rt({},e,{domRef:lt,prefixCls:a,inputElement:zt,ref:Xe,id:i,showSearch:ve,autoClearSearchValue:F,mode:x,activeDescendantId:k,tagRender:d,values:h,open:Ee,onToggleOpen:Be,activeValue:D,searchValue:ot,onSearch:$t,onSearchSubmit:Ut,onRemove:Me,tokenWithEnter:bt}))),cr;return xt?cr=er:cr=u.createElement("div",rt({className:Jn},xe,{ref:Fe,onMouseDown:cn,onKeyDown:pt,onKeyUp:ct,onFocus:et,onBlur:Dt}),Bt&&!Ee&&u.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(h.map(function(gt){var nt=gt.label,fn=gt.value;return["number","string"].includes(Rt(nt))?nt:fn}).join(", "))),er,Tr,Qn&&qr),u.createElement(tS.Provider,{value:Gr},cr)});process.env.NODE_ENV!=="production"&&(gS.displayName="BaseSelect");var Xp=function(){return null};Xp.isSelectOptGroup=!0;var Yp=function(){return null};Yp.isSelectOption=!0;var hS=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,d=e.innerProps,p=e.rtl,g=e.extra,h={},v={display:"flex",flexDirection:"column"};if(r!==void 0){var S;h={height:n,position:"relative",overflow:"hidden"},v=J(J({},v),{},(S={transform:"translateY(".concat(r,"px)")},U(S,p?"marginRight":"marginLeft",-i),U(S,"position","absolute"),U(S,"left",0),U(S,"right",0),U(S,"top",0),S))}return u.createElement("div",{style:h},u.createElement(Rr,{onResize:function(m){var b=m.offsetHeight;b&&c&&c()}},u.createElement("div",rt({style:v,className:ce(U({},"".concat(l,"-holder-inner"),l)),ref:t},d),a,g)))});hS.displayName="Filler";function Jm(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var qf=u.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,d=e.onStopMove,p=e.onScroll,g=e.horizontal,h=e.spinSize,v=e.containerSize,S=e.style,C=e.thumbStyle,m=u.useState(!1),b=ie(m,2),x=b[0],w=b[1],E=u.useState(null),O=ie(E,2),I=O[0],R=O[1],_=u.useState(null),P=ie(_,2),D=P[0],A=P[1],k=!i,j=u.useRef(),F=u.useRef(),H=u.useState(!1),V=ie(H,2),L=V[0],T=V[1],N=u.useRef(),W=function(){clearTimeout(N.current),T(!0),N.current=setTimeout(function(){T(!1)},3e3)},K=l-v||0,X=v-h||0,Y=K>0,ne=u.useMemo(function(){if(a===0||K===0)return 0;var he=a/K;return he*X},[a,K,X]),oe=function(ue){ue.stopPropagation(),ue.preventDefault()},re=u.useRef({top:ne,dragging:x,pageY:I,startTop:D});re.current={top:ne,dragging:x,pageY:I,startTop:D};var fe=function(ue){w(!0),R(Jm(ue,g)),A(re.current.top),c(),ue.stopPropagation(),ue.preventDefault()};u.useEffect(function(){var he=function(Oe){Oe.preventDefault()},ue=j.current,te=F.current;return ue.addEventListener("touchstart",he),te.addEventListener("touchstart",fe),function(){ue.removeEventListener("touchstart",he),te.removeEventListener("touchstart",fe)}},[]);var de=u.useRef();de.current=K;var se=u.useRef();se.current=X,u.useEffect(function(){if(x){var he,ue=function(Oe){var _e=re.current,Ce=_e.dragging,Ie=_e.pageY,ve=_e.startTop;if(Jt.cancel(he),Ce){var xe=Jm(Oe,g)-Ie,ye=ve;!k&&g?ye-=xe:ye+=xe;var De=de.current,ht=se.current,Qe=ht?ye/ht:0,Fe=Math.ceil(Qe*De);Fe=Math.max(Fe,0),Fe=Math.min(Fe,De),he=Jt(function(){p(Fe,g)})}},te=function(){w(!1),d()};return window.addEventListener("mousemove",ue),window.addEventListener("touchmove",ue),window.addEventListener("mouseup",te),window.addEventListener("touchend",te),function(){window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),Jt.cancel(he)}}},[x]),u.useEffect(function(){W()},[a]),u.useImperativeHandle(t,function(){return{delayHidden:W}});var ee="".concat(r,"-scrollbar"),ae={position:"absolute",visibility:L&&Y?null:"hidden"},ge={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(ae.height=8,ae.left=0,ae.right=0,ae.bottom=0,ge.height="100%",ge.width=h,k?ge.left=ne:ge.right=ne):(ae.width=8,ae.top=0,ae.bottom=0,k?ae.right=0:ae.left=0,ge.width="100%",ge.height=h,ge.top=ne),u.createElement("div",{ref:j,className:ce(ee,(n={},U(n,"".concat(ee,"-horizontal"),g),U(n,"".concat(ee,"-vertical"),!g),U(n,"".concat(ee,"-visible"),L),n)),style:J(J({},ae),S),onMouseDown:oe,onMouseMove:W},u.createElement("div",{ref:F,className:ce("".concat(ee,"-thumb"),U({},"".concat(ee,"-thumb-moving"),x)),style:J(J({},ge),C),onMouseDown:fe}))});process.env.NODE_ENV!=="production"&&(qf.displayName="ScrollBar");function sD(e){var t=e.children,n=e.setRef,r=u.useCallback(function(i){n(i)},[]);return u.cloneElement(t,{ref:r})}function lD(e,t,n,r,i,a,l){var c=l.getKey;return e.slice(t,n+1).map(function(d,p){var g=t+p,h=a(d,g,{style:{width:r}}),v=c(d);return u.createElement(sD,{key:v,setRef:function(C){return i(d,C)}},h)})}var cD=function(){function e(){ar(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return sr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function uD(e,t,n){var r=u.useState(0),i=ie(r,2),a=i[0],l=i[1],c=B.useRef(new Map),d=B.useRef(new cD),p=B.useRef();function g(){Jt.cancel(p.current)}function h(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var C=function(){c.current.forEach(function(b,x){if(b&&b.offsetParent){var w=hs(b),E=w.offsetHeight;d.current.get(x)!==E&&d.current.set(x,w.offsetHeight)}}),l(function(b){return b+1})};S?C():p.current=Jt(C)}function v(S,C){var m=e(S),b=c.current.get(m);C?(c.current.set(m,C),h()):c.current.delete(m),!b!=!C&&(C?t==null||t(S):n==null||n(S))}return B.useEffect(function(){return g},[]),[v,h,d.current,a]}var e0=10;function dD(e,t,n,r,i,a,l,c){var d=u.useRef(),p=u.useState(null),g=ie(p,2),h=g[0],v=g[1];return nn(function(){if(h&&h.times<e0){if(!e.current){v(function(W){return J({},W)});return}a();var S=h.targetAlign,C=h.originAlign,m=h.index,b=h.offset,x=e.current.clientHeight,w=!1,E=S,O=null;if(x){for(var I=S||C,R=0,_=0,P=0,D=Math.min(t.length-1,m),A=0;A<=D;A+=1){var k=i(t[A]);_=R;var j=n.get(k);P=_+(j===void 0?r:j),R=P}for(var F=I==="top"?b:x-b,H=D;H>=0;H-=1){var V=i(t[H]),L=n.get(V);if(L===void 0){w=!0;break}if(F-=L,F<=0)break}switch(I){case"top":O=_-b;break;case"bottom":O=P-x+b;break;default:{var T=e.current.scrollTop,N=T+x;_<T?E="top":P>N&&(E="bottom")}}O!==null&&l(O),O!==h.lastTop&&(w=!0)}w&&v(J(J({},h),{},{times:h.times+1,targetAlign:E,lastTop:O}))}else process.env.NODE_ENV!=="production"&&(h==null?void 0:h.times)===e0&&_t(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[h,e.current]),function(S){if(S==null){c();return}if(Jt.cancel(d.current),typeof S=="number")l(S);else if(S&&Rt(S)==="object"){var C,m=S.align;"index"in S?C=S.index:C=t.findIndex(function(w){return i(w)===S.key});var b=S.offset,x=b===void 0?0:b;v({times:0,index:C,offset:x,originAlign:m})}}}function fD(e,t,n){var r=e.length,i=t.length,a,l;if(r===0&&i===0)return null;r<i?(a=e,l=t):(a=t,l=e);var c={__EMPTY_ITEM__:!0};function d(C){return C!==void 0?n(C):c}for(var p=null,g=Math.abs(r-i)!==1,h=0;h<l.length;h+=1){var v=d(a[h]),S=d(l[h]);if(v!==S){p=h,g=g||v!==d(l[h+1]);break}}return p===null?null:{index:p,multiple:g}}function pD(e,t,n){var r=u.useState(e),i=ie(r,2),a=i[0],l=i[1],c=u.useState(null),d=ie(c,2),p=d[0],g=d[1];return u.useEffect(function(){var h=fD(a||[],e||[],t);(h==null?void 0:h.index)!==void 0&&(n==null||n(h.index),g(e[h.index])),l(e)},[e]),[p]}var t0=(typeof navigator>"u"?"undefined":Rt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const vS=function(e,t){var n=B.useRef(!1),r=B.useRef(null);function i(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=B.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=l<0&&a.current.top||l>0&&a.current.bottom;return c&&d?(clearTimeout(r.current),n.current=!1):(!d||n.current)&&i(),!n.current&&d}};function gD(e,t,n,r,i){var a=B.useRef(0),l=B.useRef(null),c=B.useRef(null),d=B.useRef(!1),p=vS(t,n);function g(b,x){Jt.cancel(l.current),a.current+=x,c.current=x,!p(x)&&(t0||b.preventDefault(),l.current=Jt(function(){var w=d.current?10:1;i(a.current*w),a.current=0}))}function h(b,x){i(x,!0),t0||b.preventDefault()}var v=B.useRef(null),S=B.useRef(null);function C(b){if(e){Jt.cancel(S.current),S.current=Jt(function(){v.current=null},2);var x=b.deltaX,w=b.deltaY,E=b.shiftKey,O=x,I=w;(v.current==="sx"||!v.current&&E&&w&&!x)&&(O=w,I=0,v.current="sx");var R=Math.abs(O),_=Math.abs(I);v.current===null&&(v.current=r&&R>_?"x":"y"),v.current==="y"?g(b,I):h(b,O)}}function m(b){e&&(d.current=b.detail===c.current)}return[C,m]}var hD=14/15;function vD(e,t,n){var r=B.useRef(!1),i=B.useRef(0),a=B.useRef(null),l=B.useRef(null),c,d=function(v){if(r.current){var S=Math.ceil(v.touches[0].pageY),C=i.current-S;i.current=S,n(C)&&v.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){C*=hD,(!n(C,!0)||Math.abs(C)<=.1)&&clearInterval(l.current)},16)}},p=function(){r.current=!1,c()},g=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(v.touches[0].pageY),a.current=v.target,a.current.addEventListener("touchmove",d),a.current.addEventListener("touchend",p))};c=function(){a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",p))},nn(function(){return e&&t.current.addEventListener("touchstart",g),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",g),c(),clearInterval(l.current)}},[e])}var mD=20;function n0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,mD),n=Math.min(n,e/2),Math.floor(n)}function bD(e,t,n,r){var i=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ie(i,2),l=a[0],c=a[1],d=function(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,v=l.get(g),S=l.get(h);if(v===void 0||S===void 0)for(var C=e.length,m=c.length;m<C;m+=1){var b,x=e[m],w=t(x);l.set(w,m);var E=(b=n.get(w))!==null&&b!==void 0?b:r;if(c[m]=(c[m-1]||0)+E,w===g&&(v=m),w===h&&(S=m),v!==void 0&&S!==void 0)break}return{top:c[v-1]||0,bottom:c[S]}};return d}var yD=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],SD=[],CD={overflowY:"auto",overflowAnchor:"none"};function xD(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,d=c===void 0?!0:c,p=e.style,g=e.data,h=e.children,v=e.itemKey,S=e.virtual,C=e.direction,m=e.scrollWidth,b=e.component,x=b===void 0?"div":b,w=e.onScroll,E=e.onVirtualScroll,O=e.onVisibleChange,I=e.innerProps,R=e.extraRender,_=e.styles,P=Tt(e,yD),D=!!(S!==!1&&a&&l),A=D&&g&&(l*g.length>a||!!m),k=C==="rtl",j=ce(r,U({},"".concat(r,"-rtl"),k),i),F=g||SD,H=B.useRef(),V=B.useRef(),L=B.useState(0),T=ie(L,2),N=T[0],W=T[1],K=B.useState(0),X=ie(K,2),Y=X[0],ne=X[1],oe=B.useState(!1),re=ie(oe,2),fe=re[0],de=re[1],se=function(){de(!0)},ee=function(){de(!1)},ae=u.useCallback(function(Me){return typeof v=="function"?v(Me):Me==null?void 0:Me[v]},[v]),ge={getKey:ae};function he(Me){W(function(Te){var et;typeof Me=="function"?et=Me(Te):et=Me;var Dt=Re(et);return H.current.scrollTop=Dt,Dt})}var ue=B.useRef({start:0,end:F.length}),te=B.useRef(),$e=pD(F,ae),Oe=ie($e,1),_e=Oe[0];te.current=_e;var Ce=uD(ae,null,null),Ie=ie(Ce,4),ve=Ie[0],xe=Ie[1],ye=Ie[2],De=Ie[3],ht=u.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!A){var Me;return{scrollHeight:((Me=V.current)===null||Me===void 0?void 0:Me.offsetHeight)||0,start:0,end:F.length-1,offset:void 0}}for(var Te=0,et,Dt,Gt,cn=F.length,Fn=0;Fn<cn;Fn+=1){var _n=F[Fn],Zn=ae(_n),un=ye.get(Zn),Pn=Te+(un===void 0?l:un);Pn>=N&&et===void 0&&(et=Fn,Dt=Te),Pn>N+a&&Gt===void 0&&(Gt=Fn),Te=Pn}return et===void 0&&(et=0,Dt=0,Gt=Math.ceil(a/l)),Gt===void 0&&(Gt=F.length-1),Gt=Math.min(Gt+1,F.length-1),{scrollHeight:Te,start:et,end:Gt,offset:Dt}},[A,D,N,F,De,a]),Qe=ht.scrollHeight,Fe=ht.start,lt=ht.end,Ge=ht.offset;ue.current.start=Fe,ue.current.end=lt;var Xe=u.useState({width:0,height:a}),Ue=ie(Xe,2),Pe=Ue[0],vt=Ue[1],it=function(Te){vt({width:Te.width||Te.offsetWidth,height:Te.height||Te.offsetHeight})},Bt=B.useRef(),Ct=B.useRef(),ft=u.useMemo(function(){return n0(Pe.width,m)},[Pe.width,m]),ot=u.useMemo(function(){return n0(Pe.height,Qe)},[Pe.height,Qe]),zt=Qe-a,xt=B.useRef(zt);xt.current=zt;function Re(Me){var Te=Me;return Number.isNaN(xt.current)||(Te=Math.min(Te,xt.current)),Te=Math.max(Te,0),Te}var He=N<=0,Ye=N>=zt,Je=vS(He,Ye),at=function(){return{x:k?-Y:Y,y:N}},Ke=B.useRef(at()),mt=gr(function(){if(E){var Me=at();(Ke.current.x!==Me.x||Ke.current.y!==Me.y)&&(E(Me),Ke.current=Me)}});function Ae(Me,Te){var et=Me;Te?(_o.flushSync(function(){ne(et)}),mt()):he(et)}function ke(Me){var Te=Me.currentTarget.scrollTop;Te!==N&&he(Te),w==null||w(Me),mt()}var Ee=function(Te){var et=Te,Dt=m-Pe.width;return et=Math.max(et,0),et=Math.min(et,Dt),et},ze=gr(function(Me,Te){Te?(_o.flushSync(function(){ne(function(et){var Dt=et+(k?-Me:Me);return Ee(Dt)})}),mt()):he(function(et){var Dt=et+Me;return Dt})}),Ne=gD(D,He,Ye,!!m,ze),Be=ie(Ne,2),bt=Be[0],$t=Be[1];vD(D,H,function(Me,Te){return Je(Me,Te)?!1:(bt({preventDefault:function(){},deltaY:Me}),!0)}),nn(function(){function Me(et){D&&et.preventDefault()}var Te=H.current;return Te.addEventListener("wheel",bt),Te.addEventListener("DOMMouseScroll",$t),Te.addEventListener("MozMousePixelScroll",Me),function(){Te.removeEventListener("wheel",bt),Te.removeEventListener("DOMMouseScroll",$t),Te.removeEventListener("MozMousePixelScroll",Me)}},[D]),nn(function(){m&&ne(function(Me){return Ee(Me)})},[Pe.width,m]);var Ut=function(){var Te,et;(Te=Bt.current)===null||Te===void 0||Te.delayHidden(),(et=Ct.current)===null||et===void 0||et.delayHidden()},Nt=dD(H,F,ye,l,ae,function(){return xe(!0)},he,Ut);u.useImperativeHandle(t,function(){return{getScrollInfo:at,scrollTo:function(Te){function et(Dt){return Dt&&Rt(Dt)==="object"&&("left"in Dt||"top"in Dt)}et(Te)?(Te.left!==void 0&&ne(Ee(Te.left)),Nt(Te.top)):Nt(Te)}}}),nn(function(){if(O){var Me=F.slice(Fe,lt+1);O(Me,F)}},[Fe,lt,F]);var an=bD(F,ae,ye,l),At=R==null?void 0:R({start:Fe,end:lt,virtual:A,offsetX:Y,offsetY:Ge,rtl:k,getSize:an}),Vt=lD(F,Fe,lt,m,ve,h,ge),pt=null;a&&(pt=J(U({},d?"height":"maxHeight",a),CD),D&&(pt.overflowY="hidden",m&&(pt.overflowX="hidden"),fe&&(pt.pointerEvents="none")));var ct={};return k&&(ct.dir="rtl"),u.createElement("div",rt({style:J(J({},p),{},{position:"relative"}),className:j},ct,P),u.createElement(Rr,{onResize:it},u.createElement(x,{className:"".concat(r,"-holder"),style:pt,ref:H,onScroll:ke,onMouseEnter:Ut},u.createElement(hS,{prefixCls:r,height:Qe,offsetX:Y,offsetY:Ge,scrollWidth:m,onInnerResize:xe,ref:V,innerProps:I,rtl:k,extra:At},Vt))),A&&Qe>a&&u.createElement(qf,{ref:Bt,prefixCls:r,scrollOffset:N,scrollRange:Qe,rtl:k,onScroll:Ae,onStartMove:se,onStopMove:ee,spinSize:ot,containerSize:Pe.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb}),A&&m&&u.createElement(qf,{ref:Ct,prefixCls:r,scrollOffset:Y,scrollRange:m,rtl:k,onScroll:Ae,onStartMove:se,onStopMove:ee,spinSize:ft,containerSize:Pe.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb}))}var mS=u.forwardRef(xD);mS.displayName="List";var bS=u.createContext(null);function wD(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ED=["disabled","title","children","style","className"];function r0(e){return typeof e=="string"||typeof e=="number"}var $D=function(t,n){var r=bA(),i=r.prefixCls,a=r.id,l=r.open,c=r.multiple,d=r.mode,p=r.searchValue,g=r.toggleOpen,h=r.notFoundContent,v=r.onPopupScroll,S=u.useContext(bS),C=S.flattenOptions,m=S.onActiveValue,b=S.defaultActiveFirstOption,x=S.onSelect,w=S.menuItemSelectedIcon,E=S.rawValues,O=S.fieldNames,I=S.virtual,R=S.direction,_=S.listHeight,P=S.listItemHeight,D=S.optionRender,A="".concat(i,"-item"),k=As(function(){return C},[l,C],function(se,ee){return ee[0]&&se[1]!==ee[1]}),j=u.useRef(null),F=function(ee){ee.preventDefault()},H=function(ee){j.current&&j.current.scrollTo(typeof ee=="number"?{index:ee}:ee)},V=function(ee){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ge=k.length,he=0;he<ge;he+=1){var ue=(ee+he*ae+ge)%ge,te=k[ue],$e=te.group,Oe=te.data;if(!$e&&!Oe.disabled)return ue}return-1},L=u.useState(function(){return V(0)}),T=ie(L,2),N=T[0],W=T[1],K=function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;W(ee);var ge={source:ae?"keyboard":"mouse"},he=k[ee];if(!he){m(null,-1,ge);return}m(he.value,ee,ge)};B.useEffect(function(){K(b!==!1?V(0):-1)},[k.length,p]);var X=u.useCallback(function(se){return E.has(se)&&d!=="combobox"},[d,je(E).toString(),E.size]);B.useEffect(function(){var se=setTimeout(function(){if(!c&&l&&E.size===1){var ae=Array.from(E)[0],ge=k.findIndex(function(he){var ue=he.data;return ue.value===ae});ge!==-1&&(K(ge),H(ge))}});if(l){var ee;(ee=j.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(se)}},[l,p]);var Y=function(ee){ee!==void 0&&x(ee,{selected:!E.has(ee)}),c||g(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(ee){var ae=ee.which,ge=ee.ctrlKey;switch(ae){case Se.N:case Se.P:case Se.UP:case Se.DOWN:{var he=0;if(ae===Se.UP?he=-1:ae===Se.DOWN?he=1:wD()&&ge&&(ae===Se.N?he=1:ae===Se.P&&(he=-1)),he!==0){var ue=V(N+he,he);H(ue),K(ue,!0)}break}case Se.ENTER:{var te=k[N];te&&!te.data.disabled?Y(te.value):Y(void 0),l&&ee.preventDefault();break}case Se.ESC:g(!1),l&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){H(ee)}}}),k.length===0)return u.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(A,"-empty"),onMouseDown:F},h);var ne=Object.keys(O).map(function(se){return O[se]}),oe=function(ee){return ee.label};function re(se,ee){var ae=se.group;return{role:ae?"presentation":"option",id:"".concat(a,"_list_").concat(ee)}}var fe=function(ee){var ae=k[ee];if(!ae)return null;var ge=ae.data||{},he=ge.value,ue=ae.group,te=Po(ge,!0),$e=oe(ae);return ae?u.createElement("div",rt({"aria-label":typeof $e=="string"&&!ue?$e:null},te,{key:ee},re(ae,ee),{"aria-selected":X(he)}),he):null},de={role:"listbox",id:"".concat(a,"_list")};return u.createElement(u.Fragment,null,I&&u.createElement("div",rt({},de,{style:{height:0,width:0,overflow:"hidden"}}),fe(N-1),fe(N),fe(N+1)),u.createElement(mS,{itemKey:"key",ref:j,data:k,height:_,itemHeight:P,fullHeight:!1,onMouseDown:F,onScroll:v,virtual:I,direction:R,innerProps:I?null:de},function(se,ee){var ae,ge=se.group,he=se.groupOption,ue=se.data,te=se.label,$e=se.value,Oe=ue.key;if(ge){var _e,Ce=(_e=ue.title)!==null&&_e!==void 0?_e:r0(te)?te.toString():void 0;return u.createElement("div",{className:ce(A,"".concat(A,"-group")),title:Ce},te!==void 0?te:Oe)}var Ie=ue.disabled,ve=ue.title;ue.children;var xe=ue.style,ye=ue.className,De=Tt(ue,ED),ht=mr(De,ne),Qe=X($e),Fe="".concat(A,"-option"),lt=ce(A,Fe,ye,(ae={},U(ae,"".concat(Fe,"-grouped"),he),U(ae,"".concat(Fe,"-active"),N===ee&&!Ie),U(ae,"".concat(Fe,"-disabled"),Ie),U(ae,"".concat(Fe,"-selected"),Qe),ae)),Ge=oe(se),Xe=!w||typeof w=="function"||Qe,Ue=typeof Ge=="number"?Ge:Ge||$e,Pe=r0(Ue)?Ue.toString():void 0;return ve!==void 0&&(Pe=ve),u.createElement("div",rt({},Po(ht),I?{}:re(se,ee),{"aria-selected":Qe,className:lt,title:Pe,onMouseMove:function(){N===ee||Ie||K(ee)},onClick:function(){Ie||Y($e)},style:xe}),u.createElement("div",{className:"".concat(Fe,"-content")},typeof D=="function"?D(se,{index:ee}):Ue),u.isValidElement(w)||Qe,Xe&&u.createElement(Wc,{className:"".concat(A,"-option-state"),customizeIcon:w,customizeIconProps:{value:$e,disabled:Ie,isSelected:Qe}},Qe?"✓":null))}))},yS=u.forwardRef($D);yS.displayName="OptionList";const OD=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,l=a.values,c=a.options,d=e.map(function(h){if(h.label===void 0){var v;return J(J({},h),{},{label:(v=l.get(h.value))===null||v===void 0?void 0:v.label})}return h}),p=new Map,g=new Map;return d.forEach(function(h){p.set(h.value,h),g.set(h.value,t.get(h.value)||c.get(h.value))}),n.current.values=p,n.current.options=g,d},[e,t]),i=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function Ad(e,t){return qp(e).join("").toUpperCase().includes(t)}const _D=function(e,t,n,r,i){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,l=t.label,c=t.value,d=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:function(S,C){return i?Ad(C[i],g):C[a]?Ad(C[l!=="children"?l:"label"],g):Ad(C[c],g)},v=p?function(S){return Kf(S)}:function(S){return S};return e.forEach(function(S){if(S[a]){var C=h(n,v(S));if(C)d.push(S);else{var m=S[a].filter(function(b){return h(n,v(b))});m.length&&d.push(J(J({},S),{},U({},a,m)))}return}h(n,v(S))&&d.push(S)}),d},[e,r,i,n,t])};var i0=0,RD=process.env.NODE_ENV!=="test"&&Hn();function ID(){var e;return RD?(e=i0,i0+=1):e="TEST_OR_SSR",e}function PD(e){var t=u.useState(),n=ie(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_select_".concat(ID()))},[]),e||r}var TD=["children","value"],ND=["children"];function MD(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,l=Tt(r,TD);return J({key:n,value:a!==void 0?a:n,children:i},l)}function Zp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Wr(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,l=i.key,c=i.props,d=c.children,p=Tt(c,ND);return t||!a?MD(n):J(J({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},p),{},{options:Zp(d)})}).filter(function(n){return n})}function AD(e,t,n,r,i){return u.useMemo(function(){var a=e,l=!e;l&&(a=Zp(t));var c=new Map,d=new Map,p=function(v,S,C){C&&typeof C=="string"&&v.set(S[C],S)};function g(h){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<h.length;S+=1){var C=h[S];!C[n.options]||v?(c.set(C[n.value],C),p(d,C,n.label),p(d,C,r),p(d,C,i)):g(C[n.options],!0)}}return g(a),{options:a,valueOptions:c,labelOptions:d}},[e,t,n,r,i])}function o0(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function DD(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,a=e.allowClear,l=e.placeholder,c=e.getInputElement,d=e.showSearch,p=e.onSearch,g=e.defaultOpen,h=e.autoFocus,v=e.labelInValue,S=e.value,C=e.inputValue,m=e.optionLabelProp,b=Sc(t),x=d!==void 0?d:b||t==="combobox",w=n||Zp(r);if(_t(t!=="tags"||w.every(function(R){return!R.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var E=w.some(function(R){return R.options?R.options.some(function(_){return typeof("value"in _?_.value:_.key)=="number"}):typeof("value"in R?R.value:R.key)=="number"});_t(!E,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(_t(t!=="combobox"||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),_t(t==="combobox"||!i,"`backfill` only works with `combobox` mode."),_t(t==="combobox"||!c,"`getInputElement` only work with `combobox` mode."),nf(t!=="combobox"||!c||!a||!l,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),p&&!x&&t!=="combobox"&&t!=="tags"&&_t(!1,"`onSearch` should work with `showSearch` instead of use alone."),nf(!g||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),S!=null){var O=qp(S);_t(!v||O.every(function(R){return Rt(R)==="object"&&("key"in R||"value"in R)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),_t(!b||Array.isArray(S),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var I=null;Wr(r).some(function(R){if(!u.isValidElement(R)||!R.type)return!1;var _=R,P=_.type;if(P.isSelectOption)return!1;if(P.isSelectOptGroup){var D=Wr(R.props.children).every(function(A){return!u.isValidElement(A)||!R.type||A.type.isSelectOption?!0:(I=A.type,!1)});return!D}return I=P,!0}),I&&_t(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(I.displayName||I.name||I,"`.")),_t(C===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function LD(e,t){if(e){var n=function r(i){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=0;l<i.length;l++){var c=i[l];if(c[t==null?void 0:t.value]===null)return _t(!1,"`value` in Select options should not be `null`."),!0;if(!a&&Array.isArray(c[t==null?void 0:t.options])&&r(c[t==null?void 0:t.options],!0))break}};n(e)}}var zD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],FD=["inputValue"];function BD(e){return!e||Rt(e)!=="object"}var SS=u.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=i===void 0?"rc-select":i,l=e.backfill,c=e.fieldNames,d=e.inputValue,p=e.searchValue,g=e.onSearch,h=e.autoClearSearchValue,v=h===void 0?!0:h,S=e.onSelect,C=e.onDeselect,m=e.dropdownMatchSelectWidth,b=m===void 0?!0:m,x=e.filterOption,w=e.filterSort,E=e.optionFilterProp,O=e.optionLabelProp,I=e.options,R=e.optionRender,_=e.children,P=e.defaultActiveFirstOption,D=e.menuItemSelectedIcon,A=e.virtual,k=e.direction,j=e.listHeight,F=j===void 0?200:j,H=e.listItemHeight,V=H===void 0?20:H,L=e.value,T=e.defaultValue,N=e.labelInValue,W=e.onChange,K=Tt(e,zD),X=PD(n),Y=Sc(r),ne=!!(!I&&_),oe=u.useMemo(function(){return x===void 0&&r==="combobox"?!1:x},[x,r]),re=u.useMemo(function(){return pS(c,ne)},[JSON.stringify(c),ne]),fe=qn("",{value:p!==void 0?p:d,postState:function(ze){return ze||""}}),de=ie(fe,2),se=de[0],ee=de[1],ae=AD(I,_,re,E,O),ge=ae.valueOptions,he=ae.labelOptions,ue=ae.options,te=u.useCallback(function(Ee){var ze=qp(Ee);return ze.map(function(Ne){var Be,bt,$t,Ut,Nt;if(BD(Ne))Be=Ne;else{var an;$t=Ne.key,bt=Ne.label,Be=(an=Ne.value)!==null&&an!==void 0?an:$t}var At=ge.get(Be);if(At){var Vt;if(bt===void 0&&(bt=At==null?void 0:At[O||re.label]),$t===void 0&&($t=(Vt=At==null?void 0:At.key)!==null&&Vt!==void 0?Vt:Be),Ut=At==null?void 0:At.disabled,Nt=At==null?void 0:At.title,process.env.NODE_ENV!=="production"&&!O){var pt=At==null?void 0:At[re.label];pt!==void 0&&!u.isValidElement(pt)&&!u.isValidElement(bt)&&pt!==bt&&_t(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:bt,value:Be,key:$t,disabled:Ut,title:Nt}})},[re,O,ge]),$e=qn(T,{value:L}),Oe=ie($e,2),_e=Oe[0],Ce=Oe[1],Ie=u.useMemo(function(){var Ee,ze=te(_e);return r==="combobox"&&LA((Ee=ze[0])===null||Ee===void 0?void 0:Ee.value)?[]:ze},[_e,te,r]),ve=OD(Ie,ge),xe=ie(ve,2),ye=xe[0],De=xe[1],ht=u.useMemo(function(){if(!r&&ye.length===1){var Ee=ye[0];if(Ee.value===null&&(Ee.label===null||Ee.label===void 0))return[]}return ye.map(function(ze){var Ne;return J(J({},ze),{},{label:(Ne=ze.label)!==null&&Ne!==void 0?Ne:ze.value})})},[r,ye]),Qe=u.useMemo(function(){return new Set(ye.map(function(Ee){return Ee.value}))},[ye]);u.useEffect(function(){if(r==="combobox"){var Ee,ze=(Ee=ye[0])===null||Ee===void 0?void 0:Ee.value;ee(DA(ze)?String(ze):"")}},[ye]);var Fe=o0(function(Ee,ze){var Ne,Be=ze??Ee;return Ne={},U(Ne,re.value,Ee),U(Ne,re.label,Be),Ne}),lt=u.useMemo(function(){if(r!=="tags")return ue;var Ee=je(ue),ze=function(Be){return ge.has(Be)};return je(ye).sort(function(Ne,Be){return Ne.value<Be.value?-1:1}).forEach(function(Ne){var Be=Ne.value;ze(Be)||Ee.push(Fe(Be,Ne.label))}),Ee},[Fe,ue,ge,ye,r]),Ge=_D(lt,re,se,oe,E),Xe=u.useMemo(function(){return r!=="tags"||!se||Ge.some(function(Ee){return Ee[E||"value"]===se})||Ge.some(function(Ee){return Ee[re.value]===se})?Ge:[Fe(se)].concat(je(Ge))},[Fe,E,r,Ge,se,re]),Ue=u.useMemo(function(){return w?je(Xe).sort(function(Ee,ze){return w(Ee,ze)}):Xe},[Xe,w]),Pe=u.useMemo(function(){return rD(Ue,{fieldNames:re,childrenAsData:ne})},[Ue,re,ne]),vt=function(ze){var Ne=te(ze);if(Ce(Ne),W&&(Ne.length!==ye.length||Ne.some(function($t,Ut){var Nt;return((Nt=ye[Ut])===null||Nt===void 0?void 0:Nt.value)!==($t==null?void 0:$t.value)}))){var Be=N?Ne:Ne.map(function($t){return $t.value}),bt=Ne.map(function($t){return Kf(De($t.value))});W(Y?Be:Be[0],Y?bt:bt[0])}},it=u.useState(null),Bt=ie(it,2),Ct=Bt[0],ft=Bt[1],ot=u.useState(0),zt=ie(ot,2),xt=zt[0],Re=zt[1],He=P!==void 0?P:r!=="combobox",Ye=u.useCallback(function(Ee,ze){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=Ne.source,bt=Be===void 0?"keyboard":Be;Re(ze),l&&r==="combobox"&&Ee!==null&&bt==="keyboard"&&ft(String(Ee))},[l,r]),Je=function(ze,Ne,Be){var bt=function(){var Te,et=De(ze);return[N?{label:et==null?void 0:et[re.label],value:ze,key:(Te=et==null?void 0:et.key)!==null&&Te!==void 0?Te:ze}:ze,Kf(et)]};if(Ne&&S){var $t=bt(),Ut=ie($t,2),Nt=Ut[0],an=Ut[1];S(Nt,an)}else if(!Ne&&C&&Be!=="clear"){var At=bt(),Vt=ie(At,2),pt=Vt[0],ct=Vt[1];C(pt,ct)}},at=o0(function(Ee,ze){var Ne,Be=Y?ze.selected:!0;Be?Ne=Y?[].concat(je(ye),[Ee]):[Ee]:Ne=ye.filter(function(bt){return bt.value!==Ee}),vt(Ne),Je(Ee,Be),r==="combobox"?ft(""):(!Sc||v)&&(ee(""),ft(""))}),Ke=function(ze,Ne){vt(ze);var Be=Ne.type,bt=Ne.values;(Be==="remove"||Be==="clear")&&bt.forEach(function($t){Je($t.value,!1,Be)})},mt=function(ze,Ne){if(ee(ze),ft(null),Ne.source==="submit"){var Be=(ze||"").trim();if(Be){var bt=Array.from(new Set([].concat(je(Qe),[Be])));vt(bt),Je(Be,!0),ee("")}return}Ne.source!=="blur"&&(r==="combobox"&&vt(ze),g==null||g(ze))},Ae=function(ze){var Ne=ze;r!=="tags"&&(Ne=ze.map(function(bt){var $t=he.get(bt);return $t==null?void 0:$t.value}).filter(function(bt){return bt!==void 0}));var Be=Array.from(new Set([].concat(je(Qe),je(Ne))));vt(Be),Be.forEach(function(bt){Je(bt,!0)})},ke=u.useMemo(function(){var Ee=A!==!1&&b!==!1;return J(J({},ae),{},{flattenOptions:Pe,onActiveValue:Ye,defaultActiveFirstOption:He,onSelect:at,menuItemSelectedIcon:D,rawValues:Qe,fieldNames:re,virtual:Ee,direction:k,listHeight:F,listItemHeight:V,childrenAsData:ne,optionRender:R})},[ae,Pe,Ye,He,at,D,Qe,re,A,b,F,V,ne,R]);return process.env.NODE_ENV!=="production"&&(DD(e),LD(ue,re)),u.createElement(bS.Provider,{value:ke},u.createElement(gS,rt({},K,{id:X,prefixCls:a,ref:t,omitDomProps:FD,mode:r,displayValues:ht,onDisplayValuesChange:Ke,direction:k,searchValue:se,onSearch:mt,autoClearSearchValue:v,onSearchSplit:Ae,dropdownMatchSelectWidth:b,OptionList:yS,emptyOptions:!Pe.length,activeValue:Ct,activeDescendantId:"".concat(X,"_list_").concat(xt)})))});process.env.NODE_ENV!=="production"&&(SS.displayName="Select");var Qp=SS;Qp.Option=Yp;Qp.OptGroup=Xp;function Xf(e,t,n){return ce({[`${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 CS=(e,t)=>t||e,xS=()=>{const[,e]=si(),n=new Mn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.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"}),u.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)"}),u.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"}),u.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"})),u.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"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(xS.displayName="EmptyImage");const jD=xS,wS=()=>{const[,e]=si(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=B.useMemo(()=>({borderColor:new Mn(t).onBackground(i).toHexShortString(),shadowColor:new Mn(n).onBackground(i).toHexShortString(),contentColor:new Mn(r).onBackground(i).toHexShortString()}),[t,n,r,i]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:a},u.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"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};process.env.NODE_ENV!=="production"&&(wS.displayName="SimpleImage");const HD=wS,kD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},VD=Dn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=en(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[kD(r)]});var WD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ES=u.createElement(jD,null),$S=u.createElement(HD,null),Gc=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=ES,description:a,children:l,imageStyle:c,style:d}=e,p=WD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:g,direction:h,empty:v}=u.useContext(It),S=g("empty",r),[C,m]=VD(S),[b]=_p("Empty"),x=typeof a<"u"?a:b==null?void 0:b.description,w=typeof x=="string"?x:"empty";let E=null;return typeof i=="string"?E=u.createElement("img",{alt:w,src:i}):E=i,C(u.createElement("div",Object.assign({className:ce(m,S,v==null?void 0:v.className,{[`${S}-normal`]:i===$S,[`${S}-rtl`]:h==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),d)},p),u.createElement("div",{className:`${S}-image`,style:c},E),x&&u.createElement("div",{className:`${S}-description`},x),l&&u.createElement("div",{className:`${S}-footer`},l)))};Gc.PRESENTED_IMAGE_DEFAULT=ES;Gc.PRESENTED_IMAGE_SIMPLE=$S;process.env.NODE_ENV!=="production"&&(Gc.displayName="Empty");const cs=Gc,UD=e=>{const{componentName:t}=e,{getPrefixCls:n}=B.useContext(It),r=n("empty");switch(t){case"Table":case"List":return B.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return B.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return B.createElement(cs,null)}},OS=UD,GD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},KD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Xn(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,[`
171
- ${i}${c}bottomLeft,
172
- ${a}${c}bottomLeft
173
- `]:{animationName:Xy},[`
174
- ${i}${c}topLeft,
175
- ${a}${c}topLeft,
176
- ${i}${c}topRight,
177
- ${a}${c}topRight
178
- `]:{animationName:Zy},[`${l}${c}bottomLeft`]:{animationName:Yy},[`
179
- ${l}${c}topLeft,
180
- ${l}${c}topRight
181
- `]:{animationName:Qy},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},GD(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"},Aa),"&-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.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},bc(e,"slide-up"),bc(e,"slide-down"),jm(e,"move-up"),jm(e,"move-down")]},qD=KD,da=2,_S=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const i=(n-t)/2-r,a=Math.ceil(i/2);return[i,a]};function Dd(e,t){const{componentCls:n,iconCls:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[l]=_S(e),c=t?`${n}-${t}`:"";return{[`${n}-multiple${c}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${l-da}px ${da*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${da}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`
182
- &${n}-show-arrow ${n}-selector,
183
- &${n}-allow-clear ${n}-selector
184
- `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:da,marginBottom:da,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:da*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Pp()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${i}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const XD=e=>{const{componentCls:t}=e,n=en(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=en(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,i]=_S(e);return[Dd(e),Dd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:i}}},Dd(r,"lg")]},YD=XD;function Ld(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.controlHeight-e.lineWidth*2,l=Math.ceil(e.fontSize*1.25),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Xn(e,!0)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
185
- ${n}-selection-item,
186
- ${n}-selection-placeholder
187
- `]:{padding:0,lineHeight:`${a}px`,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"'}}),[`
188
- &${n}-show-arrow ${n}-selection-item,
189
- &${n}-show-arrow ${n}-selection-placeholder
190
- `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function ZD(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Ld(e),Ld(en(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
191
- &${t}-show-arrow ${t}-selection-item,
192
- &${t}-show-arrow ${t}-selection-placeholder
193
- `]:{paddingInlineEnd:e.fontSize*1.5}}}},Ld(en(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const QD=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},zd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:i,antCls:a,borderActiveColor:l,outlineColor:c,controlOutlineWidth:d}=t,p=n?{[`${r}-selector`]:{borderColor:l}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},p),{[`&:hover ${r}-selector`]:{borderColor:i},[`${r}-focused& ${r}-selector`]:{borderColor:l,boxShadow:`0 0 0 ${d}px ${c}`,outline:0}})}}},JD=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},eL=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},Xn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},QD(e)),JD(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Aa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Aa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Pp()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},tL=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},eL(e),ZD(e),YD(e),qD(e),{[`${t}-rtl`]:{direction:"rtl"}},zd(t,en(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),zd(`${t}-status-error`,en(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),zd(`${t}-status-warning`,en(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),kp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},nL=Dn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=en(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tL(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:i,zIndexPopupBase:a,colorText:l,fontWeightStrong:c,controlItemBgActive:d,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:h,controlHeightLG:v,controlHeightSM:S,colorBgContainerDisabled:C,colorTextDisabled:m}=e;return{zIndexPopup:a+50,optionSelectedColor:l,optionSelectedFontWeight:c,optionSelectedBg:d,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${i}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:g,clearBg:g,singleItemHeightLG:v,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightLG:r,multipleSelectorBgDisabled:C,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent"}}),rL=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 iL(e,t){return e||rL(t)}var oL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const aL=oL;var RS=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:aL}))};process.env.NODE_ENV!=="production"&&(RS.displayName="CheckOutlined");const IS=u.forwardRef(RS);var sL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const lL=sL;var PS=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:lL}))};process.env.NODE_ENV!=="production"&&(PS.displayName="DownOutlined");const cL=u.forwardRef(PS);var uL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const dL=uL;var TS=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:dL}))};process.env.NODE_ENV!=="production"&&(TS.displayName="SearchOutlined");const fL=u.forwardRef(TS);function pL(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:d,showSuffixIcon:p,feedbackIcon:g,showArrow:h,componentName:v}=e;process.env.NODE_ENV!=="production"&&Yn(v).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const S=n??u.createElement(Dp,null),C=w=>t===null&&!c&&!h?null:u.createElement(u.Fragment,null,p!==!1&&w,c&&g);let m=null;if(t!==void 0)m=C(t);else if(a)m=C(u.createElement(Ry,{spin:!0}));else{const w=`${d}-suffix`;m=E=>{let{open:O,showSearch:I}=E;return C(O&&I?u.createElement(fL,{className:w}):u.createElement(cL,{className:w}))}}let b=null;r!==void 0?b=r:l?b=u.createElement(IS,null):b=null;let x=null;return i!==void 0?x=i:x=u.createElement(Lp,null),{clearIcon:S,suffixIcon:m,itemIcon:b,removeIcon:x}}function gL(e,t){return t!==void 0?t:e!==null}var hL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const NS="SECRET_COMBOBOX_MODE_DO_NOT_USE",MS=(e,t)=>{var n,r,{prefixCls:i,bordered:a=!0,className:l,rootClassName:c,getPopupContainer:d,popupClassName:p,dropdownClassName:g,listHeight:h=256,placement:v,listItemHeight:S=24,size:C,disabled:m,notFoundContent:b,status:x,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:O,direction:I,style:R,allowClear:_}=e,P=hL(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:D,getPrefixCls:A,renderEmpty:k,direction:j,virtual:F,popupMatchSelectWidth:H,popupOverflow:V,select:L}=u.useContext(It),T=A("select",i),N=A(),W=I??j,{compactSize:K,compactItemClassnames:X}=Ny(T,W),[Y,ne]=nL(T),oe=u.useMemo(()=>{const{mode:Ge}=P;if(Ge!=="combobox")return Ge===NS?"combobox":Ge},[P.mode]),re=oe==="multiple"||oe==="tags",fe=gL(P.suffixIcon,P.showArrow),de=(n=O??E)!==null&&n!==void 0?n:H,{status:se,hasFeedback:ee,isFormItemInput:ae,feedbackIcon:ge}=u.useContext(Vc),he=CS(se,x);let ue;b!==void 0?ue=b:oe==="combobox"?ue=null:ue=(k==null?void 0:k("Select"))||u.createElement(OS,{componentName:"Select"});const{suffixIcon:te,itemIcon:$e,removeIcon:Oe,clearIcon:_e}=pL(Object.assign(Object.assign({},P),{multiple:re,hasFeedback:ee,feedbackIcon:ge,showSuffixIcon:fe,prefixCls:T,showArrow:P.showArrow,componentName:"Select"})),Ce=_===!0?{clearIcon:_e}:_,Ie=mr(P,["suffixIcon","itemIcon"]),ve=ce(p||g,{[`${T}-dropdown-${W}`]:W==="rtl"},c,ne),xe=ro(Ge=>{var Xe;return(Xe=C??K)!==null&&Xe!==void 0?Xe:Ge}),ye=u.useContext(Ls),De=m??ye,ht=ce({[`${T}-lg`]:xe==="large",[`${T}-sm`]:xe==="small",[`${T}-rtl`]:W==="rtl",[`${T}-borderless`]:!a,[`${T}-in-form-item`]:ae},Xf(T,he,ee),X,L==null?void 0:L.className,l,c,ne),Qe=u.useMemo(()=>v!==void 0?v:W==="rtl"?"bottomRight":"bottomLeft",[v,W]),Fe=iL(w,V);if(process.env.NODE_ENV!=="production"){const Ge=Yn("Select");Ge.deprecated(!g,"dropdownClassName","popupClassName"),Ge.deprecated(E===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ge(!("showArrow"in P),"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.")}const[lt]=eS("SelectLike",(r=P.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return Y(u.createElement(Qp,Object.assign({ref:t,virtual:F,showSearch:L==null?void 0:L.showSearch},Ie,{style:Object.assign(Object.assign({},L==null?void 0:L.style),R),dropdownMatchSelectWidth:de,builtinPlacements:Fe,transitionName:zp(N,"slide-up",P.transitionName),listHeight:h,listItemHeight:S,mode:oe,prefixCls:T,placement:Qe,direction:W,suffixIcon:te,menuItemSelectedIcon:$e,removeIcon:Oe,allowClear:Ce,notFoundContent:ue,className:ht,getPopupContainer:d||D,dropdownClassName:ve,disabled:De,dropdownStyle:Object.assign(Object.assign({},P==null?void 0:P.dropdownStyle),{zIndex:lt})})))};process.env.NODE_ENV!=="production"&&(MS.displayName="Select");const jo=u.forwardRef(MS),vL=vA(jo);jo.SECRET_COMBOBOX_MODE_DO_NOT_USE=NS;jo.Option=Yp;jo.OptGroup=Xp;jo._InternalPanelDoNotUseOrYouWillBeFired=vL;process.env.NODE_ENV!=="production"&&(jo.displayName="Select");const Kc=jo,No=["xxl","xl","lg","md","sm","xs"],mL=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)`}),bL=e=>{const t=e,n=[].concat(No).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),l=`screen${a}Min`,c=`screen${a}`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);if(i<n.length-1){const d=`screen${a}Max`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);const g=`screen${n[i+1].toUpperCase()}Min`;if(!(t[d]<=t[g]))throw new Error(`${d}<=${g} fails : !(${t[d]}<=${t[g]})`)}}),e};function AS(){const[,e]=si(),t=mL(bL(e));return B.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(l=>l(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const l=t[a],c=this.matchHandlers[l];c==null||c.mql.removeListener(c==null?void 0:c.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const l=t[a],c=p=>{let{matches:g}=p;this.dispatch(Object.assign(Object.assign({},i),{[a]:g}))},d=window.matchMedia(l);d.addListener(c),this.matchHandlers[l]={mql:d,listener:c},c(d)})},responsiveMap:t}},[e])}function yL(){const[,e]=u.useReducer(t=>t+1,0);return e}function DS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=B.useRef({}),n=yL(),r=AS();return nn(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}function LS(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return u.createElement("div",{className:ce("".concat(n,"-content"),a),style:l},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var fa={shiftX:64,adjustY:1},pa={adjustX:1,shiftY:!0},Hr=[0,0],SL={left:{points:["cr","cl"],overflow:pa,offset:[-4,0],targetOffset:Hr},right:{points:["cl","cr"],overflow:pa,offset:[4,0],targetOffset:Hr},top:{points:["bc","tc"],overflow:fa,offset:[0,-4],targetOffset:Hr},bottom:{points:["tc","bc"],overflow:fa,offset:[0,4],targetOffset:Hr},topLeft:{points:["bl","tl"],overflow:fa,offset:[0,-4],targetOffset:Hr},leftTop:{points:["tr","tl"],overflow:pa,offset:[-4,0],targetOffset:Hr},topRight:{points:["br","tr"],overflow:fa,offset:[0,-4],targetOffset:Hr},rightTop:{points:["tl","tr"],overflow:pa,offset:[4,0],targetOffset:Hr},bottomRight:{points:["tr","br"],overflow:fa,offset:[0,4],targetOffset:Hr},rightBottom:{points:["bl","br"],overflow:pa,offset:[4,0],targetOffset:Hr},bottomLeft:{points:["tl","bl"],overflow:fa,offset:[0,4],targetOffset:Hr},leftBottom:{points:["br","bl"],overflow:pa,offset:[-4,0],targetOffset:Hr}},CL=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],xL=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,l=t.mouseEnterDelay,c=l===void 0?0:l,d=t.mouseLeaveDelay,p=d===void 0?.1:d,g=t.overlayStyle,h=t.prefixCls,v=h===void 0?"rc-tooltip":h,S=t.children,C=t.onVisibleChange,m=t.afterVisibleChange,b=t.transitionName,x=t.animation,w=t.motion,E=t.placement,O=E===void 0?"right":E,I=t.align,R=I===void 0?{}:I,_=t.destroyTooltipOnHide,P=_===void 0?!1:_,D=t.defaultVisible,A=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,F=t.id,H=t.showArrow,V=H===void 0?!0:H,L=Tt(t,CL),T=B.useRef(null);B.useImperativeHandle(n,function(){return T.current});var N=J({},L);"visible"in t&&(N.popupVisible=t.visible);var W=function(){return u.createElement(LS,{key:"content",prefixCls:v,id:F,overlayInnerStyle:k},j)};return u.createElement(Uc,rt({popupClassName:r,prefixCls:v,popup:W,action:a,builtinPlacements:SL,popupPlacement:O,ref:T,popupAlign:R,getPopupContainer:A,onPopupVisibleChange:C,afterPopupVisibleChange:m,popupTransitionName:b,popupAnimation:x,popupMotion:w,defaultPopupVisible:D,autoDestroy:P,mouseLeaveDelay:p,popupStyle:g,mouseEnterDelay:c,arrow:V},N),S)};const wL=B.forwardRef(xL),zS=8;function FS(e){const t=zS,{contentRadius:n,limitVerticalRadius:r}=e,i=n>12?n+2:12;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:r?t:i}}function Kl(e,t){return e?t:{}}function EL(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:i,borderRadiusOuter:a,boxShadowPopoverArrow:l}=e,{colorBg:c,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:p,arrowDistance:g=0,arrowPlacement:h={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:v,dropdownArrowOffset:S}=FS({contentRadius:d,limitVerticalRadius:p});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},H2(r,i,a,c,l)),{"&:before":{background:c}})]},Kl(!!h.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:S}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),Kl(!!h.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:S}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),Kl(!!h.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:v},[`&-placement-leftBottom ${n}-arrow`]:{bottom:v}})),Kl(!!h.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:v},[`&-placement-rightBottom ${n}-arrow`]:{bottom:v}}))}}function $L(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const l=Object.assign(Object.assign({},a),i);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const a0={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"]}},OL={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"]}},_L=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function RL(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:l}=e,c=t/2,d={};return Object.keys(a0).forEach(p=>{const g=r&&OL[p]||a0[p],h=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[p]=h,_L.has(p)&&(h.autoArrow=!1),p){case"top":case"topLeft":case"topRight":h.offset[1]=-c-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=c+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-c-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=c+i;break}const v=FS({contentRadius:a,limitVerticalRadius:!0});if(r)switch(p){case"topLeft":case"bottomLeft":h.offset[0]=-v.dropdownArrowOffset-c;break;case"topRight":case"bottomRight":h.offset[0]=v.dropdownArrowOffset+c;break;case"leftTop":case"rightTop":h.offset[1]=-v.dropdownArrowOffset-c;break;case"leftBottom":case"rightBottom":h.offset[1]=v.dropdownArrowOffset+c;break}h.overflow=$L(p,v,t,n),l&&(h.htmlRegion="visibleFirst")}),d}const IL=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:d,paddingSM:p,paddingXS:g,tooltipRadiusOuter:h}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xn(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:c,minHeight:c,padding:`${p/2}px ${g}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,zS)}},[`${t}-content`]:{position:"relative"}}),q2(e,(v,S)=>{let{darkColor:C}=S;return{[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:C},[`${t}-arrow`]:{"--antd-arrow-background-color":C}}}})),{"&-rtl":{direction:"rtl"}})},EL(en(e,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},BS=(e,t)=>Dn("Tooltip",r=>{if(t===!1)return[];const{borderRadius:i,colorTextLightSolid:a,colorBgDefault:l,borderRadiusOuter:c}=r,d=en(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:l,tooltipRadiusOuter:c>4?4:c});return[IL(d),fA(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:a}=r;return{zIndexPopup:i+70,colorBgDefault:a}},{resetStyle:!1})(e),PL=gc.map(e=>`${e}-inverse`);function TL(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(je(PL),je(gc)).includes(e):gc.includes(e)}function jS(e,t){const n=TL(t),r=ce({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const NL=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=u.useContext(It),d=c("tooltip",t),[p,g]=BS(d,!0),h=jS(d,a),v=h.arrowStyle,S=Object.assign(Object.assign({},l),h.overlayStyle),C=ce(g,d,`${d}-pure`,`${d}-placement-${r}`,n,h.className);return p(u.createElement("div",{className:C,style:v},u.createElement("div",{className:`${d}-arrow`}),u.createElement(LS,Object.assign({},e,{className:g,prefixCls:d,overlayInnerStyle:S}),i)))},ML=NL;var AL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jp=u.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:d,overlayInnerStyle:p,children:g,afterOpenChange:h,afterVisibleChange:v,destroyTooltipOnHide:S,arrow:C=!0,title:m,overlay:b,builtinPlacements:x,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0}=e,O=!!C,[,I]=si(),{getPopupContainer:R,getPrefixCls:_,direction:P}=u.useContext(It),D=Yn("Tooltip"),A=u.useRef(null),k=()=>{var ye;(ye=A.current)===null||ye===void 0||ye.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:k,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),k()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ye=>{let[De,ht]=ye;D.deprecated(!(De in e),De,ht)}),process.env.NODE_ENV!=="production"&&D(!S||typeof S=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&D(!C||typeof C=="boolean"||!("arrowPointAtCenter"in C),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,F]=qn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),H=!m&&!b&&m!==0,V=ye=>{var De,ht;F(H?!1:ye),H||((De=e.onOpenChange)===null||De===void 0||De.call(e,ye),(ht=e.onVisibleChange)===null||ht===void 0||ht.call(e,ye))},L=u.useMemo(()=>{var ye,De;let ht=w;return typeof C=="object"&&(ht=(De=(ye=C.pointAtCenter)!==null&&ye!==void 0?ye:C.arrowPointAtCenter)!==null&&De!==void 0?De:w),x||RL({arrowPointAtCenter:ht,autoAdjustOverflow:E,arrowWidth:O?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[w,C,x,I]),T=u.useMemo(()=>m===0?m:b||m||"",[b,m]),N=u.createElement(QT,null,typeof T=="function"?T():T),{getPopupContainer:W,placement:K="top",mouseEnterDelay:X=.1,mouseLeaveDelay:Y=.1,overlayStyle:ne,rootClassName:oe}=e,re=AL(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),fe=_("tooltip",i),de=_(),se=e["data-popover-inject"];let ee=j;!("open"in e)&&!("visible"in e)&&H&&(ee=!1);const ae=Os(g)&&!xy(g)?g:u.createElement("span",null,g),ge=ae.props,he=!ge.className||typeof ge.className=="string"?ce(ge.className,a||`${fe}-open`):ge.className,[ue,te]=BS(fe,!se),$e=jS(fe,d),Oe=$e.arrowStyle,_e=Object.assign(Object.assign({},p),$e.overlayStyle),Ce=ce(c,{[`${fe}-rtl`]:P==="rtl"},$e.className,oe,te),[Ie,ve]=eS("Tooltip",re.zIndex),xe=u.createElement(wL,Object.assign({},re,{zIndex:se?re.zIndex:Ie,showArrow:O,placement:K,mouseEnterDelay:X,mouseLeaveDelay:Y,prefixCls:fe,overlayClassName:Ce,overlayStyle:Object.assign(Object.assign({},Oe),ne),getTooltipContainer:W||l||R,ref:A,builtinPlacements:L,overlay:N,visible:ee,onVisibleChange:V,afterVisibleChange:h??v,overlayInnerStyle:_e,arrowContent:u.createElement("span",{className:`${fe}-arrow-content`}),motion:{motionName:zp(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!S}),ee?To(ae,{className:he}):ae);return ue(u.createElement(Hy.Provider,{value:ve},xe))});process.env.NODE_ENV!=="production"&&(Jp.displayName="Tooltip");Jp._InternalPanelDoNotUseOrYouWillBeFired=ML;const Yf=Jp;var DL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const LL=DL;var HS=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:LL}))};process.env.NODE_ENV!=="production"&&(HS.displayName="RightOutlined");const Cc=u.forwardRef(HS);var zL=Se.ESC,FL=Se.TAB;function BL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=u.useRef(!1),c=function(){if(t){var h,v;(h=n.current)===null||h===void 0||(v=h.focus)===null||v===void 0||v.call(h),r==null||r(!1)}},d=function(){var h;return(h=a.current)!==null&&h!==void 0&&h.focus?(a.current.focus(),l.current=!0,!0):!1},p=function(h){switch(h.keyCode){case zL:c();break;case FL:{var v=!1;l.current||(v=d()),v?h.preventDefault():c();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",p),i&&Jt(d,3),function(){window.removeEventListener("keydown",p),l.current=!1}):function(){l.current=!1}},[t])}var jL=B.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=B.useMemo(function(){var c;return typeof n=="function"?c=n():c=n,c},[n]),l=pi(t,a==null?void 0:a.ref);return B.createElement(B.Fragment,null,r&&B.createElement("div",{className:"".concat(i,"-arrow")}),B.cloneElement(a,{ref:zo(a)?l:void 0}))}),ga={adjustX:1,adjustY:1},ha=[0,0],HL={topLeft:{points:["bl","tl"],overflow:ga,offset:[0,-4],targetOffset:ha},top:{points:["bc","tc"],overflow:ga,offset:[0,-4],targetOffset:ha},topRight:{points:["br","tr"],overflow:ga,offset:[0,-4],targetOffset:ha},bottomLeft:{points:["tl","bl"],overflow:ga,offset:[0,4],targetOffset:ha},bottom:{points:["tc","bc"],overflow:ga,offset:[0,4],targetOffset:ha},bottomRight:{points:["tr","br"],overflow:ga,offset:[0,4],targetOffset:ha}},kL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function VL(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,l=a===void 0?"rc-dropdown":a,c=e.transitionName,d=e.animation,p=e.align,g=e.placement,h=g===void 0?"bottomLeft":g,v=e.placements,S=v===void 0?HL:v,C=e.getPopupContainer,m=e.showAction,b=e.hideAction,x=e.overlayClassName,w=e.overlayStyle,E=e.visible,O=e.trigger,I=O===void 0?["hover"]:O,R=e.autoFocus,_=e.overlay,P=e.children,D=e.onVisibleChange,A=Tt(e,kL),k=B.useState(),j=ie(k,2),F=j[0],H=j[1],V="visible"in e?E:F,L=B.useRef(null),T=B.useRef(null),N=B.useRef(null);B.useImperativeHandle(t,function(){return L.current});var W=function(se){H(se),D==null||D(se)};BL({visible:V,triggerRef:N,onVisibleChange:W,autoFocus:R,overlayRef:T});var K=function(se){var ee=e.onOverlayClick;H(!1),ee&&ee(se)},X=function(){return B.createElement(jL,{ref:T,overlay:_,prefixCls:l,arrow:i})},Y=function(){return typeof _=="function"?X:X()},ne=function(){var se=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?se:!ee},oe=function(){var se=e.openClassName;return se!==void 0?se:"".concat(l,"-open")},re=B.cloneElement(P,{className:ce((n=P.props)===null||n===void 0?void 0:n.className,V&&oe()),ref:zo(P)?pi(N,P.ref):void 0}),fe=b;return!fe&&I.indexOf("contextMenu")!==-1&&(fe=["click"]),B.createElement(Uc,rt({builtinPlacements:S},A,{prefixCls:l,ref:L,popupClassName:ce(x,U({},"".concat(l,"-show-arrow"),i)),popupStyle:w,action:I,showAction:m,hideAction:fe,popupPlacement:h,popupAlign:p,popupTransitionName:c,popupAnimation:d,popupVisible:V,stretch:ne()?"minWidth":"",popup:Y(),onPopupVisibleChange:W,onPopupClick:K,getPopupContainer:C}),re)}const WL=B.forwardRef(VL);var kS=u.createContext(null);function eg(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function VS(e){var t=u.useContext(kS);return eg(t,e)}var UL=["children","locked"],ai=u.createContext(null);function GL(e,t){var n=J({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Ps(e){var t=e.children,n=e.locked,r=Tt(e,UL),i=u.useContext(ai),a=As(function(){return GL(i,r)},[i,r],function(l,c){return!n&&(l[0]!==c[0]||!Tc(l[1],c[1],!0))});return u.createElement(ai.Provider,{value:a},t)}var KL=[],WS=u.createContext(null);function qc(){return u.useContext(WS)}var US=u.createContext(KL);function ks(e){var t=u.useContext(US);return u.useMemo(function(){return e!==void 0?[].concat(je(t),[e]):t},[t,e])}var GS=u.createContext(null),tg=u.createContext({});function s0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Fp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),l=null;return i&&!Number.isNaN(a)?l=a:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function qL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=je(e.querySelectorAll("*")).filter(function(r){return s0(r,t)});return s0(e,t)&&n.unshift(e),n}var Zf=Se.LEFT,Qf=Se.RIGHT,Jf=Se.UP,rc=Se.DOWN,ic=Se.ENTER,KS=Se.ESC,us=Se.HOME,ds=Se.END,l0=[Jf,rc,Zf,Qf];function XL(e,t,n,r){var i,a,l,c,d="prev",p="next",g="children",h="parent";if(e==="inline"&&r===ic)return{inlineTrigger:!0};var v=(i={},U(i,Jf,d),U(i,rc,p),i),S=(a={},U(a,Zf,n?p:d),U(a,Qf,n?d:p),U(a,rc,g),U(a,ic,g),a),C=(l={},U(l,Jf,d),U(l,rc,p),U(l,ic,g),U(l,KS,h),U(l,Zf,n?g:h),U(l,Qf,n?h:g),l),m={inline:v,horizontal:S,vertical:C,inlineSub:v,horizontalSub:C,verticalSub:C},b=(c=m["".concat(e).concat(t?"":"Sub")])===null||c===void 0?void 0:c[r];switch(b){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case h:return{offset:-1,sibling:!1};case g:return{offset:1,sibling:!1};default:return null}}function YL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ZL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function qS(e,t){var n=qL(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 i=qS(e,t),a=i.length,l=i.findIndex(function(c){return n===c});return r<0?l===-1?l=a-1:l-=1:r>0&&(l+=1),l=(l+a)%a,i[l]}function QL(e,t,n,r,i,a,l,c,d,p){var g=u.useRef(),h=u.useRef();h.current=t;var v=function(){Jt.cancel(g.current)};return u.useEffect(function(){return function(){v()}},[]),function(S){var C=S.which;if([].concat(l0,[ic,KS,us,ds]).includes(C)){var m,b,x,w=function(){m=new Set,b=new Map,x=new Map;var V=a();return V.forEach(function(L){var T=document.querySelector("[data-menu-id='".concat(eg(r,L),"']"));T&&(m.add(T),x.set(T,L),b.set(L,T))}),m};w();var E=b.get(t),O=ZL(E,m),I=x.get(O),R=XL(e,l(I,!0).length===1,n,C);if(!R&&C!==us&&C!==ds)return;(l0.includes(C)||[us,ds].includes(C))&&S.preventDefault();var _=function(V){if(V){var L=V,T=V.querySelector("a");T!=null&&T.getAttribute("href")&&(L=T);var N=x.get(V);c(N),v(),g.current=Jt(function(){h.current===N&&L.focus()})}};if([us,ds].includes(C)||R.sibling||!O){var P;!O||e==="inline"?P=i.current:P=YL(O);var D,A=qS(P,m);C===us?D=A[0]:C===ds?D=A[A.length-1]:D=c0(P,m,O,R.offset),_(D)}else if(R.inlineTrigger)d(I);else if(R.offset>0)d(I,!0),v(),g.current=Jt(function(){w();var H=O.getAttribute("aria-controls"),V=document.getElementById(H),L=c0(V,m);_(L)},5);else if(R.offset<0){var k=l(I,!0),j=k[k.length-2],F=b.get(j);d(j,!1),_(F)}}p==null||p(S)}}function JL(e){Promise.resolve().then(e)}var ng="__RC_UTIL_PATH_SPLIT__",u0=function(t){return t.join(ng)},ez=function(t){return t.split(ng)},ep="rc-menu-more";function tz(){var e=u.useState({}),t=ie(e,2),n=t[1],r=B.useRef(new Map),i=B.useRef(new Map),a=u.useState([]),l=ie(a,2),c=l[0],d=l[1],p=B.useRef(0),g=B.useRef(!1),h=function(){g.current||n({})},v=B.useCallback(function(E,O){process.env.NODE_ENV!=="production"&&_t(!r.current.has(E),"Duplicated key '".concat(E,"' used in Menu by path [").concat(O.join(" > "),"]"));var I=u0(O);i.current.set(I,E),r.current.set(E,I),p.current+=1;var R=p.current;JL(function(){R===p.current&&h()})},[]),S=B.useCallback(function(E,O){var I=u0(O);i.current.delete(I),r.current.delete(E)},[]),C=B.useCallback(function(E){d(E)},[]),m=B.useCallback(function(E,O){var I=r.current.get(E)||"",R=ez(I);return O&&c.includes(R[0])&&R.unshift(ep),R},[c]),b=B.useCallback(function(E,O){return E.some(function(I){var R=m(I,!0);return R.includes(O)})},[m]),x=function(){var O=je(r.current.keys());return c.length&&O.push(ep),O},w=B.useCallback(function(E){var O="".concat(r.current.get(E)).concat(ng),I=new Set;return je(i.current.keys()).forEach(function(R){R.startsWith(O)&&I.add(i.current.get(R))}),I},[]);return u.useEffect(function(){return function(){g.current=!0}},[]),{registerPath:v,unregisterPath:S,refreshOverflowKeys:C,isSubPathKey:b,getKeyPath:m,getKeys:x,getSubPathKeys:w}}function gs(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var nz=Math.random().toFixed(5).toString().slice(2),d0=0;function rz(e){var t=qn(e,{value:e}),n=ie(t,2),r=n[0],i=n[1];return u.useEffect(function(){d0+=1;var a=process.env.NODE_ENV==="test"?"test":"".concat(nz,"-").concat(d0);i("rc-menu-uuid-".concat(a))},[]),r}function XS(e,t,n,r){var i=u.useContext(ai),a=i.activeKey,l=i.onActive,c=i.onInactive,d={active:a===e};return t||(d.onMouseEnter=function(p){n==null||n({key:e,domEvent:p}),l(e)},d.onMouseLeave=function(p){r==null||r({key:e,domEvent:p}),c(e)}),d}function YS(e){var t=u.useContext(ai),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*i}:{paddingLeft:a*i}}function ZS(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=u.createElement(t,J({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var iz=["item"];function xc(e){var t=e.item,n=Tt(e,iz);return Object.defineProperty(n,"item",{get:function(){return _t(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var oz=["title","attribute","elementRef"],az=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],sz=["active"],lz=function(e){eo(n,e);var t=to(n);function n(){return ar(this,n),t.apply(this,arguments)}return sr(n,[{key:"render",value:function(){var i=this.props,a=i.title,l=i.attribute,c=i.elementRef,d=Tt(i,oz),p=mr(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return _t(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(fi.Item,rt({},l,{title:typeof a=="string"?a:void 0},p,{ref:c}))}}]),n}(u.Component),cz=u.forwardRef(function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,d=e.itemIcon,p=e.children,g=e.role,h=e.onMouseEnter,v=e.onMouseLeave,S=e.onClick,C=e.onKeyDown,m=e.onFocus,b=Tt(e,az),x=VS(a),w=u.useContext(ai),E=w.prefixCls,O=w.onItemClick,I=w.disabled,R=w.overflowDisabled,_=w.itemIcon,P=w.selectedKeys,D=w.onActive,A=u.useContext(tg),k=A._internalRenderMenuItem,j="".concat(E,"-item"),F=u.useRef(),H=u.useRef(),V=I||c,L=Fa(t,H),T=ks(a);process.env.NODE_ENV!=="production"&&l&&_t(!1,"MenuItem should not leave undefined `key`.");var N=function(ge){return{key:a,keyPath:je(T).reverse(),item:F.current,domEvent:ge}},W=d||_,K=XS(a,V,h,v),X=K.active,Y=Tt(K,sz),ne=P.includes(a),oe=YS(T.length),re=function(ge){if(!V){var he=N(ge);S==null||S(xc(he)),O(he)}},fe=function(ge){if(C==null||C(ge),ge.which===Se.ENTER){var he=N(ge);S==null||S(xc(he)),O(he)}},de=function(ge){D(a),m==null||m(ge)},se={};e.role==="option"&&(se["aria-selected"]=ne);var ee=u.createElement(lz,rt({ref:F,elementRef:L,role:g===null?"none":g||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&x?null:x},b,Y,se,{component:"li","aria-disabled":c,style:J(J({},oe),r),className:ce(j,(n={},U(n,"".concat(j,"-active"),X),U(n,"".concat(j,"-selected"),ne),U(n,"".concat(j,"-disabled"),V),n),i),onClick:re,onKeyDown:fe,onFocus:de}),p,u.createElement(ZS,{props:J(J({},e),{},{isSelected:ne}),icon:W}));return k&&(ee=k(ee,e,{selected:ne})),ee});function uz(e,t){var n=e.eventKey,r=qc(),i=ks(n);return u.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:u.createElement(cz,rt({},e,{ref:t}))}const Xc=u.forwardRef(uz);var dz=["className","children"],fz=function(t,n){var r=t.className,i=t.children,a=Tt(t,dz),l=u.useContext(ai),c=l.prefixCls,d=l.mode,p=l.rtl;return u.createElement("ul",rt({className:ce(c,p&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),i)},rg=u.forwardRef(fz);rg.displayName="SubMenuList";function ig(e,t){return Wr(e).map(function(n,r){if(u.isValidElement(n)){var i,a,l=n.key,c=(i=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&i!==void 0?i:l,d=c==null;d&&(c="tmp_key-".concat([].concat(je(t),[r]).join("-")));var p={key:c,eventKey:c};return process.env.NODE_ENV!=="production"&&d&&(p.warnKey=!0),u.cloneElement(n,p)}return n})}var Kn={adjustX:1,adjustY:1},pz={topLeft:{points:["bl","tl"],overflow:Kn},topRight:{points:["br","tr"],overflow:Kn},bottomLeft:{points:["tl","bl"],overflow:Kn},bottomRight:{points:["tr","br"],overflow:Kn},leftTop:{points:["tr","tl"],overflow:Kn},leftBottom:{points:["br","bl"],overflow:Kn},rightTop:{points:["tl","tr"],overflow:Kn},rightBottom:{points:["bl","br"],overflow:Kn}},gz={topLeft:{points:["bl","tl"],overflow:Kn},topRight:{points:["br","tr"],overflow:Kn},bottomLeft:{points:["tl","bl"],overflow:Kn},bottomRight:{points:["tr","br"],overflow:Kn},rightTop:{points:["tr","tl"],overflow:Kn},rightBottom:{points:["br","bl"],overflow:Kn},leftTop:{points:["tl","tr"],overflow:Kn},leftBottom:{points:["bl","br"],overflow:Kn}};function QS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var hz={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vz(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,d=e.disabled,p=e.mode,g=e.onVisibleChange,h=u.useContext(ai),v=h.getPopupContainer,S=h.rtl,C=h.subMenuOpenDelay,m=h.subMenuCloseDelay,b=h.builtinPlacements,x=h.triggerSubMenuAction,w=h.forceSubMenuRender,E=h.rootClassName,O=h.motion,I=h.defaultMotions,R=u.useState(!1),_=ie(R,2),P=_[0],D=_[1],A=J(S?J({},gz):J({},pz),b),k=hz[p],j=QS(p,O,I),F=u.useRef(j);p!=="inline"&&(F.current=j);var H=J(J({},F.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=u.useRef();return u.useEffect(function(){return V.current=Jt(function(){D(n)}),function(){Jt.cancel(V.current)}},[n]),u.createElement(Uc,{prefixCls:t,popupClassName:ce("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),S),l,E),stretch:p==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:A,popupPlacement:k,popupVisible:P,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:C,mouseLeaveDelay:m,onPopupVisibleChange:g,forceRender:w,popupMotion:H,fresh:!0},r)}function mz(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",l=u.useContext(ai),c=l.prefixCls,d=l.forceSubMenuRender,p=l.motion,g=l.defaultMotions,h=l.mode,v=u.useRef(!1);v.current=h===a;var S=u.useState(!v.current),C=ie(S,2),m=C[0],b=C[1],x=v.current?n:!1;u.useEffect(function(){v.current&&b(!1)},[h]);var w=J({},QS(a,p,g));r.length>1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(O){return!v.current&&!O&&b(!0),E==null?void 0:E(O)},m?null:u.createElement(Ps,{mode:a,locked:!v.current},u.createElement(no,rt({visible:x},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(O){var I=O.className,R=O.style;return u.createElement(rg,{id:t,className:I,style:R},i)}))}var bz=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yz=["active"],Sz=function(t){var n,r=t.style,i=t.className,a=t.title,l=t.eventKey,c=t.warnKey,d=t.disabled,p=t.internalPopupClose,g=t.children,h=t.itemIcon,v=t.expandIcon,S=t.popupClassName,C=t.popupOffset,m=t.popupStyle,b=t.onClick,x=t.onMouseEnter,w=t.onMouseLeave,E=t.onTitleClick,O=t.onTitleMouseEnter,I=t.onTitleMouseLeave,R=Tt(t,bz),_=VS(l),P=u.useContext(ai),D=P.prefixCls,A=P.mode,k=P.openKeys,j=P.disabled,F=P.overflowDisabled,H=P.activeKey,V=P.selectedKeys,L=P.itemIcon,T=P.expandIcon,N=P.onItemClick,W=P.onOpenChange,K=P.onActive,X=u.useContext(tg),Y=X._internalRenderSubMenuItem,ne=u.useContext(GS),oe=ne.isSubPathKey,re=ks(),fe="".concat(D,"-submenu"),de=j||d,se=u.useRef(),ee=u.useRef();process.env.NODE_ENV!=="production"&&c&&_t(!1,"SubMenu should not leave undefined `key`.");var ae=h??L,ge=v??T,he=k.includes(l),ue=!F&&he,te=oe(V,l),$e=XS(l,de,O,I),Oe=$e.active,_e=Tt($e,yz),Ce=u.useState(!1),Ie=ie(Ce,2),ve=Ie[0],xe=Ie[1],ye=function(ot){de||xe(ot)},De=function(ot){ye(!0),x==null||x({key:l,domEvent:ot})},ht=function(ot){ye(!1),w==null||w({key:l,domEvent:ot})},Qe=u.useMemo(function(){return Oe||(A!=="inline"?ve||oe([H],l):!1)},[A,Oe,H,ve,l,oe]),Fe=YS(re.length),lt=function(ot){de||(E==null||E({key:l,domEvent:ot}),A==="inline"&&W(l,!he))},Ge=gs(function(ft){b==null||b(xc(ft)),N(ft)}),Xe=function(ot){A!=="inline"&&W(l,ot)},Ue=function(){K(l)},Pe=_&&"".concat(_,"-popup"),vt=u.createElement("div",rt({role:"menuitem",style:Fe,className:"".concat(fe,"-title"),tabIndex:de?null:-1,ref:se,title:typeof a=="string"?a:null,"data-menu-id":F&&_?null:_,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Pe,"aria-disabled":de,onClick:lt,onFocus:Ue},_e),a,u.createElement(ZS,{icon:A!=="horizontal"?ge:void 0,props:J(J({},t),{},{isOpen:ue,isSubMenu:!0})},u.createElement("i",{className:"".concat(fe,"-arrow")}))),it=u.useRef(A);if(A!=="inline"&&re.length>1?it.current="vertical":it.current=A,!F){var Bt=it.current;vt=u.createElement(vz,{mode:Bt,prefixCls:fe,visible:!p&&ue&&A!=="inline",popupClassName:S,popupOffset:C,popupStyle:m,popup:u.createElement(Ps,{mode:Bt==="horizontal"?"vertical":Bt},u.createElement(rg,{id:Pe,ref:ee},g)),disabled:de,onVisibleChange:Xe},vt)}var Ct=u.createElement(fi.Item,rt({role:"none"},R,{component:"li",style:r,className:ce(fe,"".concat(fe,"-").concat(A),i,(n={},U(n,"".concat(fe,"-open"),ue),U(n,"".concat(fe,"-active"),Qe),U(n,"".concat(fe,"-selected"),te),U(n,"".concat(fe,"-disabled"),de),n)),onMouseEnter:De,onMouseLeave:ht}),vt,!F&&u.createElement(mz,{id:Pe,open:ue,keyPath:re},g));return Y&&(Ct=Y(Ct,t,{selected:te,active:Qe,open:ue,disabled:de})),u.createElement(Ps,{onItemClick:Ge,mode:A==="horizontal"?"vertical":A,itemIcon:ae,expandIcon:ge},Ct)};function og(e){var t=e.eventKey,n=e.children,r=ks(t),i=ig(n,r),a=qc();u.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var l;return a?l=i:l=u.createElement(Sz,e,i),u.createElement(US.Provider,{value:r},l)}var Cz=["className","title","eventKey","children"],xz=["children"],wz=function(t){var n=t.className,r=t.title;t.eventKey;var i=t.children,a=Tt(t,Cz),l=u.useContext(ai),c=l.prefixCls,d="".concat(c,"-item-group");return u.createElement("li",rt({role:"presentation"},a,{onClick:function(g){return g.stopPropagation()},className:ce(d,n)}),u.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(d,"-list")},i))};function JS(e){var t=e.children,n=Tt(e,xz),r=ks(n.eventKey),i=ig(t,r),a=qc();return a?i:u.createElement(wz,mr(n,["warnKey"]),i)}function e1(e){var t=e.className,n=e.style,r=u.useContext(ai),i=r.prefixCls,a=qc();return a?null:u.createElement("li",{role:"separator",className:ce("".concat(i,"-item-divider"),t),style:n})}var Ez=["label","children","key","type"];function tp(e){return(e||[]).map(function(t,n){if(t&&Rt(t)==="object"){var r=t,i=r.label,a=r.children,l=r.key,c=r.type,d=Tt(r,Ez),p=l??"tmp-".concat(n);return a||c==="group"?c==="group"?u.createElement(JS,rt({key:p},d,{title:i}),tp(a)):u.createElement(og,rt({key:p},d,{title:i}),tp(a)):c==="divider"?u.createElement(e1,rt({key:p},d)):u.createElement(Xc,rt({key:p},d),i)}return null}).filter(function(t){return t})}function $z(e,t,n){var r=e;return t&&(r=tp(t)),ig(r,n)}var Oz=["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"],va=[],_z=u.forwardRef(function(e,t){var n,r,i=e,a=i.prefixCls,l=a===void 0?"rc-menu":a,c=i.rootClassName,d=i.style,p=i.className,g=i.tabIndex,h=g===void 0?0:g,v=i.items,S=i.children,C=i.direction,m=i.id,b=i.mode,x=b===void 0?"vertical":b,w=i.inlineCollapsed,E=i.disabled,O=i.disabledOverflow,I=i.subMenuOpenDelay,R=I===void 0?.1:I,_=i.subMenuCloseDelay,P=_===void 0?.1:_,D=i.forceSubMenuRender,A=i.defaultOpenKeys,k=i.openKeys,j=i.activeKey,F=i.defaultActiveFirst,H=i.selectable,V=H===void 0?!0:H,L=i.multiple,T=L===void 0?!1:L,N=i.defaultSelectedKeys,W=i.selectedKeys,K=i.onSelect,X=i.onDeselect,Y=i.inlineIndent,ne=Y===void 0?24:Y,oe=i.motion,re=i.defaultMotions,fe=i.triggerSubMenuAction,de=fe===void 0?"hover":fe,se=i.builtinPlacements,ee=i.itemIcon,ae=i.expandIcon,ge=i.overflowedIndicator,he=ge===void 0?"...":ge,ue=i.overflowedIndicatorPopupClassName,te=i.getPopupContainer,$e=i.onClick,Oe=i.onOpenChange,_e=i.onKeyDown,Ce=i.openAnimation,Ie=i.openTransitionName,ve=i._internalRenderMenuItem,xe=i._internalRenderSubMenuItem,ye=Tt(i,Oz),De=u.useMemo(function(){return $z(S,v,va)},[S,v]),ht=u.useState(!1),Qe=ie(ht,2),Fe=Qe[0],lt=Qe[1],Ge=u.useRef(),Xe=rz(m),Ue=C==="rtl";process.env.NODE_ENV!=="production"&&_t(!Ce&&!Ie,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Pe=qn(A,{value:k,postState:function(tt){return tt||va}}),vt=ie(Pe,2),it=vt[0],Bt=vt[1],Ct=function(tt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Kt(){Bt(tt),Oe==null||Oe(tt)}yt?_o.flushSync(Kt):Kt()},ft=u.useState(it),ot=ie(ft,2),zt=ot[0],xt=ot[1],Re=u.useRef(!1),He=u.useMemo(function(){return(x==="inline"||x==="vertical")&&w?["vertical",w]:[x,!1]},[x,w]),Ye=ie(He,2),Je=Ye[0],at=Ye[1],Ke=Je==="inline",mt=u.useState(Je),Ae=ie(mt,2),ke=Ae[0],Ee=Ae[1],ze=u.useState(at),Ne=ie(ze,2),Be=Ne[0],bt=Ne[1];u.useEffect(function(){Ee(Je),bt(at),Re.current&&(Ke?Bt(zt):Ct(va))},[Je,at]);var $t=u.useState(0),Ut=ie($t,2),Nt=Ut[0],an=Ut[1],At=Nt>=De.length-1||ke!=="horizontal"||O;u.useEffect(function(){Ke&&xt(it)},[it]),u.useEffect(function(){return Re.current=!0,function(){Re.current=!1}},[]);var Vt=tz(),pt=Vt.registerPath,ct=Vt.unregisterPath,Me=Vt.refreshOverflowKeys,Te=Vt.isSubPathKey,et=Vt.getKeyPath,Dt=Vt.getKeys,Gt=Vt.getSubPathKeys,cn=u.useMemo(function(){return{registerPath:pt,unregisterPath:ct}},[pt,ct]),Fn=u.useMemo(function(){return{isSubPathKey:Te}},[Te]);u.useEffect(function(){Me(At?va:De.slice(Nt+1).map(function(wt){return wt.key}))},[Nt,At]);var _n=qn(j||F&&((n=De[0])===null||n===void 0?void 0:n.key),{value:j}),Zn=ie(_n,2),un=Zn[0],Pn=Zn[1],Gr=gs(function(wt){Pn(wt)}),lr=gs(function(){Pn(void 0)});B.useImperativeHandle(t,function(){return{list:Ge.current,focus:function(tt){var yt,Kt=un??((yt=De.find(function(Vn){return!Vn.props.disabled}))===null||yt===void 0?void 0:yt.key);if(Kt){var sn,vn,xn;(sn=Ge.current)===null||sn===void 0||(vn=sn.querySelector("li[data-menu-id='".concat(eg(Xe,Kt),"']")))===null||vn===void 0||(xn=vn.focus)===null||xn===void 0||xn.call(vn,tt)}}}});var Tr=qn(N||[],{value:W,postState:function(tt){return Array.isArray(tt)?tt:tt==null?va:[tt]}}),Kr=ie(Tr,2),Cn=Kr[0],Qn=Kr[1],qr=function(tt){if(V){var yt=tt.key,Kt=Cn.includes(yt),sn;T?Kt?sn=Cn.filter(function(xn){return xn!==yt}):sn=[].concat(je(Cn),[yt]):sn=[yt],Qn(sn);var vn=J(J({},tt),{},{selectedKeys:sn});Kt?X==null||X(vn):K==null||K(vn)}!T&&it.length&&ke!=="inline"&&Ct(va)},li=gs(function(wt){$e==null||$e(xc(wt)),qr(wt)}),Jn=gs(function(wt,tt){var yt=it.filter(function(sn){return sn!==wt});if(tt)yt.push(wt);else if(ke!=="inline"){var Kt=Gt(wt);yt=yt.filter(function(sn){return!Kt.has(sn)})}Tc(it,yt,!0)||Ct(yt,!0)}),er=function(tt,yt){var Kt=yt??!it.includes(tt);Jn(tt,Kt)},cr=QL(ke,un,Ue,Xe,Ge,Dt,et,Pn,er,_e);u.useEffect(function(){lt(!0)},[]);var gt=u.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:xe}},[ve,xe]),nt=ke!=="horizontal"||O?De:De.map(function(wt,tt){return u.createElement(Ps,{key:wt.key,overflowDisabled:tt>Nt},wt)}),fn=u.createElement(fi,rt({id:m,ref:Ge,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Xc,className:ce(l,"".concat(l,"-root"),"".concat(l,"-").concat(ke),p,(r={},U(r,"".concat(l,"-inline-collapsed"),Be),U(r,"".concat(l,"-rtl"),Ue),r),c),dir:C,style:d,role:"menu",tabIndex:h,data:nt,renderRawItem:function(tt){return tt},renderRawRest:function(tt){var yt=tt.length,Kt=yt?De.slice(-yt):null;return u.createElement(og,{eventKey:ep,title:he,disabled:At,internalPopupClose:yt===0,popupClassName:ue},Kt)},maxCount:ke!=="horizontal"||O?fi.INVALIDATE:fi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(tt){an(tt)},onKeyDown:cr},ye));return u.createElement(tg.Provider,{value:gt},u.createElement(kS.Provider,{value:Xe},u.createElement(Ps,{prefixCls:l,rootClassName:c,mode:ke,openKeys:it,rtl:Ue,disabled:E,motion:Fe?oe:null,defaultMotions:Fe?re:null,activeKey:un,onActive:Gr,onInactive:lr,selectedKeys:Cn,inlineIndent:ne,subMenuOpenDelay:R,subMenuCloseDelay:P,forceSubMenuRender:D,builtinPlacements:se,triggerSubMenuAction:de,getPopupContainer:te,itemIcon:ee,expandIcon:ae,onItemClick:li,onOpenChange:Jn},u.createElement(GS.Provider,{value:Fn},fn),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(WS.Provider,{value:cn},De)))))}),Vs=_z;Vs.Item=Xc;Vs.SubMenu=og;Vs.ItemGroup=JS;Vs.Divider=e1;var Rz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Iz=Rz;var t1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:Iz}))};process.env.NODE_ENV!=="production"&&(t1.displayName="BarsOutlined");const Pz=u.forwardRef(t1);var Tz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Nz=Tz;var n1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:Nz}))};process.env.NODE_ENV!=="production"&&(n1.displayName="LeftOutlined");const wc=u.forwardRef(n1),Mz=e=>!isNaN(parseFloat(e))&&isFinite(e),Az=Mz,r1=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Dz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const f0={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Lz=u.createContext({}),zz=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),i1=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:c="dark",style:d={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:v=80,zeroWidthTriggerStyle:S,breakpoint:C,onCollapse:m,onBreakpoint:b}=e,x=Dz(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=B.useContext(r1),[E,O]=B.useState("collapsed"in e?e.collapsed:l),[I,R]=B.useState(!1);B.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const _=(F,H)=>{"collapsed"in e||O(F),m==null||m(F,H)},P=B.useRef();P.current=F=>{R(F.matches),b==null||b(F.matches),E!==F.matches&&_(F.matches,"responsive")},B.useEffect(()=>{function F(V){return P.current(V)}let H;if(typeof window<"u"){const{matchMedia:V}=window;if(V&&C&&C in f0){H=V(`(max-width: ${f0[C]})`);try{H.addEventListener("change",F)}catch{H.addListener(F)}F(H)}}return()=>{try{H==null||H.removeEventListener("change",F)}catch{H==null||H.removeListener(F)}}},[C]),B.useEffect(()=>{const F=zz("ant-sider-");return w.addSider(F),()=>w.removeSider(F)},[]);const D=()=>{_(!E,"clickTrigger")},{getPrefixCls:A}=B.useContext(It),k=()=>{const F=A("layout-sider",n),H=mr(x,["collapsed"]),V=E?v:h,L=Az(V)?`${V}px`:String(V),T=parseFloat(String(v||0))===0?u.createElement("span",{onClick:D,className:ce(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${g?"right":"left"}`),style:S},i||u.createElement(Pz,null)):null,K={expanded:g?u.createElement(Cc,null):u.createElement(wc,null),collapsed:g?u.createElement(wc,null):u.createElement(Cc,null)}[E?"collapsed":"expanded"],X=i!==null?T||u.createElement("div",{className:`${F}-trigger`,onClick:D,style:{width:L}},i||K):null,Y=Object.assign(Object.assign({},d),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),ne=ce(F,`${F}-${c}`,{[`${F}-collapsed`]:!!E,[`${F}-has-trigger`]:p&&i!==null&&!T,[`${F}-below`]:!!I,[`${F}-zero-width`]:parseFloat(L)===0},r);return u.createElement("aside",Object.assign({className:ne},H,{style:Y,ref:t}),u.createElement("div",{className:`${F}-children`},a),p||I&&T?X:null)},j=u.useMemo(()=>({siderCollapsed:E}),[E]);return u.createElement(Lz.Provider,{value:j},k())});process.env.NODE_ENV!=="production"&&(i1.displayName="Sider");const o1=i1;var Fz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const Bz=Fz;var a1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:Bz}))};process.env.NODE_ENV!=="production"&&(a1.displayName="EllipsisOutlined");const jz=u.forwardRef(a1);var s1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",l="second",c="minute",d="hour",p="day",g="week",h="month",v="quarter",S="year",C="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,w={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(H){var V=["th","st","nd","rd"],L=H%100;return"["+H+(V[(L-20)%10]||V[L]||V[0])+"]"}},E=function(H,V,L){var T=String(H);return!T||T.length>=V?H:""+Array(V+1-T.length).join(L)+H},O={s:E,z:function(H){var V=-H.utcOffset(),L=Math.abs(V),T=Math.floor(L/60),N=L%60;return(V<=0?"+":"-")+E(T,2,"0")+":"+E(N,2,"0")},m:function H(V,L){if(V.date()<L.date())return-H(L,V);var T=12*(L.year()-V.year())+(L.month()-V.month()),N=V.clone().add(T,h),W=L-N<0,K=V.clone().add(T+(W?-1:1),h);return+(-(T+(L-N)/(W?N-K:K-N))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:S,w:g,d:p,D:C,h:d,m:c,s:l,ms:a,Q:v}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},I="en",R={};R[I]=w;var _="$isDayjsObject",P=function(H){return H instanceof j||!(!H||!H[_])},D=function H(V,L,T){var N;if(!V)return I;if(typeof V=="string"){var W=V.toLowerCase();R[W]&&(N=W),L&&(R[W]=L,N=W);var K=V.split("-");if(!N&&K.length>1)return H(K[0])}else{var X=V.name;R[X]=V,N=X}return!T&&N&&(I=N),N||!T&&I},A=function(H,V){if(P(H))return H.clone();var L=typeof V=="object"?V:{};return L.date=H,L.args=arguments,new j(L)},k=O;k.l=D,k.i=P,k.w=function(H,V){return A(H,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var j=function(){function H(L){this.$L=D(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[_]=!0}var V=H.prototype;return V.parse=function(L){this.$d=function(T){var N=T.date,W=T.utc;if(N===null)return new Date(NaN);if(k.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var K=N.match(b);if(K){var X=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return W?new Date(Date.UTC(K[1],X,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],X,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(N)}(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return k},V.isValid=function(){return this.$d.toString()!==m},V.isSame=function(L,T){var N=A(L);return this.startOf(T)<=N&&N<=this.endOf(T)},V.isAfter=function(L,T){return A(L)<this.startOf(T)},V.isBefore=function(L,T){return this.endOf(T)<A(L)},V.$g=function(L,T,N){return k.u(L)?this[T]:this.set(N,L)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(L,T){var N=this,W=!!k.u(T)||T,K=k.p(L),X=function(ee,ae){var ge=k.w(N.$u?Date.UTC(N.$y,ae,ee):new Date(N.$y,ae,ee),N);return W?ge:ge.endOf(p)},Y=function(ee,ae){return k.w(N.toDate()[ee].apply(N.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ae)),N)},ne=this.$W,oe=this.$M,re=this.$D,fe="set"+(this.$u?"UTC":"");switch(K){case S:return W?X(1,0):X(31,11);case h:return W?X(1,oe):X(0,oe+1);case g:var de=this.$locale().weekStart||0,se=(ne<de?ne+7:ne)-de;return X(W?re-se:re+(6-se),oe);case p:case C:return Y(fe+"Hours",0);case d:return Y(fe+"Minutes",1);case c:return Y(fe+"Seconds",2);case l:return Y(fe+"Milliseconds",3);default:return this.clone()}},V.endOf=function(L){return this.startOf(L,!1)},V.$set=function(L,T){var N,W=k.p(L),K="set"+(this.$u?"UTC":""),X=(N={},N[p]=K+"Date",N[C]=K+"Date",N[h]=K+"Month",N[S]=K+"FullYear",N[d]=K+"Hours",N[c]=K+"Minutes",N[l]=K+"Seconds",N[a]=K+"Milliseconds",N)[W],Y=W===p?this.$D+(T-this.$W):T;if(W===h||W===S){var ne=this.clone().set(C,1);ne.$d[X](Y),ne.init(),this.$d=ne.set(C,Math.min(this.$D,ne.daysInMonth())).$d}else X&&this.$d[X](Y);return this.init(),this},V.set=function(L,T){return this.clone().$set(L,T)},V.get=function(L){return this[k.p(L)]()},V.add=function(L,T){var N,W=this;L=Number(L);var K=k.p(T),X=function(oe){var re=A(W);return k.w(re.date(re.date()+Math.round(oe*L)),W)};if(K===h)return this.set(h,this.$M+L);if(K===S)return this.set(S,this.$y+L);if(K===p)return X(1);if(K===g)return X(7);var Y=(N={},N[c]=r,N[d]=i,N[l]=n,N)[K]||1,ne=this.$d.getTime()+L*Y;return k.w(ne,this)},V.subtract=function(L,T){return this.add(-1*L,T)},V.format=function(L){var T=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var W=L||"YYYY-MM-DDTHH:mm:ssZ",K=k.z(this),X=this.$H,Y=this.$m,ne=this.$M,oe=N.weekdays,re=N.months,fe=N.meridiem,de=function(ae,ge,he,ue){return ae&&(ae[ge]||ae(T,W))||he[ge].slice(0,ue)},se=function(ae){return k.s(X%12||12,ae,"0")},ee=fe||function(ae,ge,he){var ue=ae<12?"AM":"PM";return he?ue.toLowerCase():ue};return W.replace(x,function(ae,ge){return ge||function(he){switch(he){case"YY":return String(T.$y).slice(-2);case"YYYY":return k.s(T.$y,4,"0");case"M":return ne+1;case"MM":return k.s(ne+1,2,"0");case"MMM":return de(N.monthsShort,ne,re,3);case"MMMM":return de(re,ne);case"D":return T.$D;case"DD":return k.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return de(N.weekdaysMin,T.$W,oe,2);case"ddd":return de(N.weekdaysShort,T.$W,oe,3);case"dddd":return oe[T.$W];case"H":return String(X);case"HH":return k.s(X,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return ee(X,Y,!0);case"A":return ee(X,Y,!1);case"m":return String(Y);case"mm":return k.s(Y,2,"0");case"s":return String(T.$s);case"ss":return k.s(T.$s,2,"0");case"SSS":return k.s(T.$ms,3,"0");case"Z":return K}return null}(ae)||K.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(L,T,N){var W,K=this,X=k.p(T),Y=A(L),ne=(Y.utcOffset()-this.utcOffset())*r,oe=this-Y,re=function(){return k.m(K,Y)};switch(X){case S:W=re()/12;break;case h:W=re();break;case v:W=re()/3;break;case g:W=(oe-ne)/6048e5;break;case p:W=(oe-ne)/864e5;break;case d:W=oe/i;break;case c:W=oe/r;break;case l:W=oe/n;break;default:W=oe}return N?W:k.a(W)},V.daysInMonth=function(){return this.endOf(h).$D},V.$locale=function(){return R[this.$L]},V.locale=function(L,T){if(!L)return this.$L;var N=this.clone(),W=D(L,T,!0);return W&&(N.$L=W),N},V.clone=function(){return k.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},H}(),F=j.prototype;return A.prototype=F,[["$ms",a],["$s",l],["$m",c],["$H",d],["$W",p],["$M",h],["$y",S],["$D",C]].forEach(function(H){F[H[1]]=function(V){return this.$g(V,H[0],H[1])}}),A.extend=function(H,V){return H.$i||(H(V,j,A),H.$i=!0),A},A.locale=D,A.isDayjs=P,A.unix=function(H){return A(1e3*H)},A.en=R[I],A.Ls=R,A.p={},A})})(s1);var Hz=s1.exports;const ja=Di(Hz);var l1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){return function(n,r){r.prototype.weekday=function(i){var a=this.$locale().weekStart||0,l=this.$W,c=(l<a?l+7:l)-a;return this.$utils().u(i)?c:this.subtract(c,"day").add(i,"day")}}})})(l1);var kz=l1.exports;const Vz=Di(kz);var c1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){return function(n,r,i){var a=r.prototype,l=function(h){return h&&(h.indexOf?h:h.s)},c=function(h,v,S,C,m){var b=h.name?h:h.$locale(),x=l(b[v]),w=l(b[S]),E=x||w.map(function(I){return I.slice(0,C)});if(!m)return E;var O=b.weekStart;return E.map(function(I,R){return E[(R+(O||0))%7]})},d=function(){return i.Ls[i.locale()]},p=function(h,v){return h.formats[v]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,m,b){return m||b.slice(1)})}(h.formats[v.toUpperCase()])},g=function(){var h=this;return{months:function(v){return v?v.format("MMMM"):c(h,"months")},monthsShort:function(v){return v?v.format("MMM"):c(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):c(h,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):c(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):c(h,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return p(h.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=d();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(v){return p(h,v)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return c(d(),"months")},i.monthsShort=function(){return c(d(),"monthsShort","months",3)},i.weekdays=function(h){return c(d(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return c(d(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return c(d(),"weekdaysMin","weekdays",2,h)}}})})(c1);var Wz=c1.exports;const Uz=Di(Wz);var u1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){var n="week",r="year";return function(i,a,l){var c=a.prototype;c.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=l(this).startOf(r).add(1,r).date(p),h=l(this).endOf(n);if(g.isBefore(h))return 1}var v=l(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),S=this.diff(v,n,!0);return S<0?l(this).startOf("week").week():Math.ceil(S)},c.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}})})(u1);var Gz=u1.exports;const Kz=Di(Gz);var d1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),l=this.year();return a===1&&i===11?l+1:i===0&&a>=52?l-1:l}}})})(d1);var qz=d1.exports;const Xz=Di(qz);var f1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(l){var c=this,d=this.$locale();if(!this.isValid())return a.bind(this)(l);var p=this.$utils(),g=(l||"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(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return a.bind(this)(g)}}})})(f1);var Yz=f1.exports;const Zz=Di(Yz);var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Vr,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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},d=function(m){return(m=+m)+(m>68?1900:2e3)},p=function(m){return function(b){this[m]=+b}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var x=b.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(m)}],h=function(m){var b=c[m];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(m,b){var x,w=c.meridiem;if(w){for(var E=1;E<=24;E+=1)if(m.indexOf(w(E,0,b))>-1){x=E>12;break}}else x=m===(b?"pm":"PM");return x},S={A:[l,function(m){this.afternoon=v(m,!1)}],a:[l,function(m){this.afternoon=v(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[i,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,p("seconds")],ss:[a,p("seconds")],m:[a,p("minutes")],mm:[a,p("minutes")],H:[a,p("hours")],h:[a,p("hours")],HH:[a,p("hours")],hh:[a,p("hours")],D:[a,p("day")],DD:[i,p("day")],Do:[l,function(m){var b=c.ordinal,x=m.match(/\d+/);if(this.day=x[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],M:[a,p("month")],MM:[i,p("month")],MMM:[l,function(m){var b=h("months"),x=(h("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(m){var b=h("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,p("year")],YY:[i,function(m){this.year=d(m)}],YYYY:[/\d{4}/,p("year")],Z:g,ZZ:g};function C(m){var b,x;b=m,x=c&&c.formats;for(var w=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,A,k){var j=k&&k.toUpperCase();return A||x[k]||n[k]||x[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,H,V){return H||V.slice(1)})})).match(r),E=w.length,O=0;O<E;O+=1){var I=w[O],R=S[I],_=R&&R[0],P=R&&R[1];w[O]=P?{regex:_,parser:P}:I.replace(/^\[|\]$/g,"")}return function(D){for(var A={},k=0,j=0;k<E;k+=1){var F=w[k];if(typeof F=="string")j+=F.length;else{var H=F.regex,V=F.parser,L=D.slice(j),T=H.exec(L)[0];V.call(A,T),D=D.replace(T,"")}}return function(N){var W=N.afternoon;if(W!==void 0){var K=N.hours;W?K<12&&(N.hours+=12):K===12&&(N.hours=0),delete N.afternoon}}(A),A}}return function(m,b,x){x.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(d=m.parseTwoDigitYear);var w=b.prototype,E=w.parse;w.parse=function(O){var I=O.date,R=O.utc,_=O.args;this.$u=R;var P=_[1];if(typeof P=="string"){var D=_[2]===!0,A=_[3]===!0,k=D||A,j=_[2];A&&(j=_[2]),c=this.$locale(),!D&&j&&(c=x.Ls[j]),this.$d=function(L,T,N){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*L);var W=C(T)(L),K=W.year,X=W.month,Y=W.day,ne=W.hours,oe=W.minutes,re=W.seconds,fe=W.milliseconds,de=W.zone,se=new Date,ee=Y||(K||X?1:se.getDate()),ae=K||se.getFullYear(),ge=0;K&&!X||(ge=X>0?X-1:se.getMonth());var he=ne||0,ue=oe||0,te=re||0,$e=fe||0;return de?new Date(Date.UTC(ae,ge,ee,he,ue,te,$e+60*de.offset*1e3)):N?new Date(Date.UTC(ae,ge,ee,he,ue,te,$e)):new Date(ae,ge,ee,he,ue,te,$e)}catch{return new Date("")}}(I,P,R),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),k&&I!=this.format(P)&&(this.$d=new Date("")),c={}}else if(P instanceof Array)for(var F=P.length,H=1;H<=F;H+=1){_[1]=P[H-1];var V=x.apply(this,_);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}H===F&&(this.$d=new Date(""))}else E.call(this,O)}}})})(p1);var Qz=p1.exports;const Jz=Di(Qz),g1=u.createContext(null),e4=g1.Provider,h1=u.createContext(null),t4=h1.Provider;var n4=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],r4=B.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-checkbox":r,a=e.className,l=e.style,c=e.checked,d=e.disabled,p=e.defaultChecked,g=p===void 0?!1:p,h=e.type,v=h===void 0?"checkbox":h,S=e.title,C=e.onChange,m=Tt(e,n4),b=B.useRef(null),x=qn(g,{value:c}),w=ie(x,2),E=w[0],O=w[1];B.useImperativeHandle(t,function(){return{focus:function(){var P;(P=b.current)===null||P===void 0||P.focus()},blur:function(){var P;(P=b.current)===null||P===void 0||P.blur()},input:b.current}});var I=ce(i,a,(n={},U(n,"".concat(i,"-checked"),E),U(n,"".concat(i,"-disabled"),d),n)),R=function(P){d||("checked"in e||O(P.target.checked),C==null||C({target:J(J({},e),{},{type:v,checked:P.target.checked}),stopPropagation:function(){P.stopPropagation()},preventDefault:function(){P.preventDefault()},nativeEvent:P.nativeEvent}))};return u.createElement("span",{className:I,title:S,style:l},u.createElement("input",rt({},m,{className:"".concat(i,"-input"),ref:b,onChange:R,disabled:d,checked:!!E,type:v})),u.createElement("span",{className:"".concat(i,"-inner")}))});const i4=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Xn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},o4=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:c,colorBgContainer:d,colorBorder:p,lineWidth:g,dotSize:h,colorBgContainerDisabled:v,colorTextDisabled:S,paddingXS:C,dotColorDisabled:m,lineType:b,radioDotDisabledSize:x,wireframe:w,colorWhite:E}=e,O=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Xn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Xn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
194
- &:hover ${O}`]:{borderColor:r},[`${t}-input:focus-visible + ${O}`]:Object.assign({},$s(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:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:w?r:E,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${a} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:d,borderColor:p,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[O]:{borderColor:r,backgroundColor:w?d:r,"&::after":{transform:`scale(${h/i})`,opacity:1,transition:`all ${a} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[O]:{backgroundColor:v,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:S,cursor:"not-allowed"},[`&${t}-checked`]:{[O]:{"&::after":{transform:`scale(${x/i})`}}}},[`span${t} + *`]:{paddingInlineStart:C,paddingInlineEnd:C}})}},a4=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:l,motionDurationSlow:c,motionDurationMid:d,buttonPaddingInline:p,fontSize:g,buttonBg:h,fontSizeLG:v,controlHeightLG:S,controlHeightSM:C,paddingXS:m,borderRadius:b,borderRadiusSM:x,borderRadiusLG:w,buttonCheckedBg:E,buttonSolidCheckedColor:O,colorTextDisabled:I,colorBgContainerDisabled:R,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:P,colorPrimary:D,colorPrimaryHover:A,colorPrimaryActive:k,buttonSolidCheckedBg:j,buttonSolidCheckedHoverBg:F,buttonSolidCheckedActiveBg:H}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:p,paddingBlock:0,color:t,fontSize:g,lineHeight:`${n-i*2}px`,background:h,border:`${i}px ${a} ${l}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${d}`,`background ${d}`,`box-shadow ${d}`].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:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:l,transition:`background-color ${c}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${a} ${l}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:S,fontSize:v,lineHeight:`${S-i*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:C,paddingInline:m-i,paddingBlock:0,lineHeight:`${C-i*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},"&:hover":{position:"relative",color:D},"&:has(:focus-visible)":Object.assign({},$s(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:D,background:E,borderColor:D,"&::before":{backgroundColor:D},"&:first-child":{borderColor:D},"&:hover":{color:A,borderColor:A,"&::before":{backgroundColor:A}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:O,background:j,borderColor:j,"&:hover":{color:O,background:F,borderColor:F},"&:active":{color:O,background:H,borderColor:H}},"&-disabled":{color:I,backgroundColor:R,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:R,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:_,borderColor:l,boxShadow:"none"}}}},p0=e=>e-4*2,v1=Dn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,i=`0 0 0 ${n}px ${t}`,a=i,l=p0(r),c=en(e,{radioDotDisabledSize:l,radioFocusShadow:i,radioButtonFocusShadow:a});return[i4(c),o4(c),a4(c)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:l,colorBgContainer:c,colorTextDisabled:d,controlItemBgActiveDisabled:p,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:v,colorPrimaryActive:S}=e,C=4,m=a,b=t?p0(m):m-(C+i)*2;return{radioSize:m,dotSize:b,dotColorDisabled:d,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:S,buttonBg:c,buttonCheckedBg:c,buttonColor:l,buttonCheckedBgDisabled:p,buttonCheckedColorDisabled:d,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r}});var s4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const l4=(e,t)=>{var n,r;const i=u.useContext(g1),a=u.useContext(h1),{getPrefixCls:l,direction:c,radio:d}=u.useContext(It),p=u.useRef(null),g=pi(t,p),{isFormItemInput:h}=u.useContext(Vc);if(process.env.NODE_ENV!=="production"){const k=Yn("Radio");process.env.NODE_ENV!=="production"&&k(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=k=>{var j,F;(j=e.onChange)===null||j===void 0||j.call(e,k),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,k)},{prefixCls:S,className:C,rootClassName:m,children:b,style:x}=e,w=s4(e,["prefixCls","className","rootClassName","children","style"]),E=l("radio",S),O=((i==null?void 0:i.optionType)||a)==="button",I=O?`${E}-button`:E,[R,_]=v1(E),P=Object.assign({},w),D=u.useContext(Ls);i&&(P.name=i.name,P.onChange=v,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:D;const A=ce(`${I}-wrapper`,{[`${I}-wrapper-checked`]:P.checked,[`${I}-wrapper-disabled`]:P.disabled,[`${I}-wrapper-rtl`]:c==="rtl",[`${I}-wrapper-in-form-item`]:h},d==null?void 0:d.className,C,m,_);return R(u.createElement(Py,{component:"Radio",disabled:P.disabled},u.createElement("label",{className:A,style:Object.assign(Object.assign({},d==null?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},u.createElement(r4,Object.assign({},P,{className:ce(P.className,!O&&Bp),type:"radio",prefixCls:I,ref:g})),b!==void 0?u.createElement("span",null,b):null)))},m1=u.forwardRef(l4);process.env.NODE_ENV!=="production"&&(m1.displayName="Radio");const Ec=m1,c4=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(It),[i,a]=qn(e.defaultValue,{value:e.value}),l=j=>{const F=i,H=j.target.value;"value"in e||a(H);const{onChange:V}=e;V&&H!==F&&V(j)},{prefixCls:c,className:d,rootClassName:p,options:g,buttonStyle:h="outline",disabled:v,children:S,size:C,style:m,id:b,onMouseEnter:x,onMouseLeave:w,onFocus:E,onBlur:O}=e,I=n("radio",c),R=`${I}-group`,[_,P]=v1(I);let D=S;g&&g.length>0&&(D=g.map(j=>typeof j=="string"||typeof j=="number"?u.createElement(Ec,{key:j.toString(),prefixCls:I,disabled:v,value:j,checked:i===j},j):u.createElement(Ec,{key:`radio-group-value-options-${j.value}`,prefixCls:I,disabled:j.disabled||v,value:j.value,checked:i===j.value,title:j.title,style:j.style,id:j.id},j.label)));const A=ro(C),k=ce(R,`${R}-${h}`,{[`${R}-${A}`]:A,[`${R}-rtl`]:r==="rtl"},d,p,P);return _(u.createElement("div",Object.assign({},Po(e,{aria:!0,data:!0}),{className:k,style:m,onMouseEnter:x,onMouseLeave:w,onFocus:E,onBlur:O,id:b,ref:t}),u.createElement(e4,{value:{onChange:l,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},D)))}),u4=u.memo(c4);var d4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const f4=(e,t)=>{const{getPrefixCls:n}=u.useContext(It),{prefixCls:r}=e,i=d4(e,["prefixCls"]),a=n("radio",r);return u.createElement(t4,{value:"button"},u.createElement(Ec,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},p4=u.forwardRef(f4),Yc=Ec;Yc.Button=p4;Yc.Group=u4;Yc.__ANT_RADIO=!0;const b1=Yc,g4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),y1=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),np=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),S1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},y1(en(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),C1=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,paddingInlineLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:i}},ag=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),x1=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:i,errorActiveShadow:a,warningActiveShadow:l,colorErrorBorderHover:c,colorWarningBorderHover:d}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:c},"&:focus, &:focus-within":Object.assign({},np(en(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:d},"&:focus, &:focus-within":Object.assign({},np(en(e,{activeBorderColor:i,activeShadow:l}))),[`${n}-prefix, ${n}-suffix`]:{color:i}}}},sg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},g4(e.colorTextPlaceholder)),{"&:hover":Object.assign({},y1(e)),"&:focus, &:focus-within":Object.assign({},np(e)),"&-disabled, &[disabled]":Object.assign({},S1(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},C1(e)),"&-sm":Object.assign({},ag(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),h4=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({},C1(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ag(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 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},zs()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
195
- & > ${t}-affix-wrapper,
196
- & > ${t}-number-affix-wrapper,
197
- & > ${n}-picker-range
198
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
199
- & > ${n}-select-auto-complete ${t},
200
- & > ${n}-cascader-picker ${t},
201
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
202
- & > ${n}-select:first-child > ${n}-select-selector,
203
- & > ${n}-select-auto-complete:first-child ${t},
204
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
205
- & > ${n}-select:last-child > ${n}-select-selector,
206
- & > ${n}-cascader-picker:last-child ${t},
207
- & > ${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.lineWidth,[`${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}}}})}},v4=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,i=16,a=(n-r*2-i)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xn(e)),sg(e)),x1(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},m4=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},b4=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:l,iconCls:c}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sg(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),m4(e)),{[`${c}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:l}}}),x1(e,`${t}-affix-wrapper`))}},y4=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Xn(e)),h4(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},S1(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}}}})}},S4=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
208
- > ${t},
209
- ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},C4=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},x4=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function w1(e){return en(e,{inputAffixPadding:e.paddingXXS})}const E1=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:l,fontSizeLG:c,lineHeightLG:d,paddingSM:p,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:v,colorPrimaryHover:S,colorPrimary:C,controlOutlineWidth:m,controlOutline:b,colorErrorOutline:x,colorWarningOutline:w}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((l-c*d)/2*10)/10-i,paddingInline:p-i,paddingInlineSM:g-i,paddingInlineLG:h-i,addonBg:v,activeBorderColor:C,hoverBorderColor:S,activeShadow:`0 0 0 ${m}px ${b}`,errorActiveShadow:`0 0 0 ${m}px ${x}`,warningActiveShadow:`0 0 0 ${m}px ${w}`,hoverBg:"",activeBg:""}},w4=Dn("Input",e=>{const t=en(e,w1(e));return[v4(t),C4(t),b4(t),y4(t),S4(t),x4(t),kp(t)]},E1),E4=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,l=ce({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),c=ce({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),d=u.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement("span",{className:ce(t,l,c,n),style:Object.assign(Object.assign({},d),r)})},Zc=E4,$4=new Xt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Qc=e=>({height:e,lineHeight:`${e}px`}),Ia=e=>Object.assign({width:e},Qc(e)),O4=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$4,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Fd=e=>Object.assign({width:e*5,minWidth:e*5},Qc(e)),_4=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ia(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ia(i)),[`${t}${t}-sm`]:Object.assign({},Ia(a))}},R4=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},Fd(t)),[`${r}-lg`]:Object.assign({},Fd(i)),[`${r}-sm`]:Object.assign({},Fd(a))}},g0=e=>Object.assign({width:e},Qc(e)),I4=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},g0(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},g0(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Bd=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},jd=e=>Object.assign({width:e*2,minWidth:e*2},Qc(e)),P4=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:r*2,minWidth:r*2},jd(r))},Bd(e,r,n)),{[`${n}-lg`]:Object.assign({},jd(i))}),Bd(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},jd(a))}),Bd(e,a,`${n}-sm`))},T4=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:l,skeletonImageCls:c,controlHeight:d,controlHeightLG:p,controlHeightSM:g,gradientFromColor:h,padding:v,marginSM:S,borderRadius:C,titleHeight:m,blockRadius:b,paragraphLiHeight:x,controlHeightXS:w,paragraphMarginTop:E}=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:h},Ia(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ia(p)),[`${n}-sm`]:Object.assign({},Ia(g))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:h,borderRadius:b,[`+ ${i}`]:{marginBlockStart:g}},[`${i}`]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:h,borderRadius:b,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:S,[`+ ${i}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},P4(e)),_4(e)),R4(e)),I4(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
210
- ${r},
211
- ${i} > li,
212
- ${n},
213
- ${a},
214
- ${l},
215
- ${c}
216
- `]:Object.assign({},O4(e))}}},Ha=Dn("Skeleton",e=>{const{componentCls:t}=e,n=en(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[T4(n)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),N4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=u.useContext(It),d=c("skeleton",t),[p,g]=Ha(d),h=mr(e,["prefixCls","className"]),v=ce(d,`${d}-element`,{[`${d}-active`]:i},n,r,g);return p(u.createElement("div",{className:v},u.createElement(Zc,Object.assign({prefixCls:`${d}-avatar`,shape:a,size:l},h))))},M4=N4,A4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=u.useContext(It),d=c("skeleton",t),[p,g]=Ha(d),h=mr(e,["prefixCls"]),v=ce(d,`${d}-element`,{[`${d}-active`]:i,[`${d}-block`]:a},n,r,g);return p(u.createElement("div",{className:v},u.createElement(Zc,Object.assign({prefixCls:`${d}-button`,size:l},h))))},D4=A4,L4="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",z4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:l}=u.useContext(It),c=l("skeleton",t),[d,p]=Ha(c),g=ce(c,`${c}-element`,{[`${c}-active`]:a},n,r,p);return d(u.createElement("div",{className:g},u.createElement("div",{className:ce(`${c}-image`,n),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},u.createElement("path",{d:L4,className:`${c}-image-path`})))))},F4=z4,B4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=u.useContext(It),d=c("skeleton",t),[p,g]=Ha(d),h=mr(e,["prefixCls"]),v=ce(d,`${d}-element`,{[`${d}-active`]:i,[`${d}-block`]:a},n,r,g);return p(u.createElement("div",{className:v},u.createElement(Zc,Object.assign({prefixCls:`${d}-input`,size:l},h))))},j4=B4;var H4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const k4=H4;var $1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:k4}))};process.env.NODE_ENV!=="production"&&($1.displayName="DotChartOutlined");const V4=u.forwardRef($1),W4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:l}=e,{getPrefixCls:c}=u.useContext(It),d=c("skeleton",t),[p,g]=Ha(d),h=ce(d,`${d}-element`,{[`${d}-active`]:a},g,n,r),v=l??u.createElement(V4,null);return p(u.createElement("div",{className:h},u.createElement("div",{className:ce(`${d}-image`,n),style:i},v)))},U4=W4,G4=e=>{const t=c=>{const{width:d,rows:p=2}=e;if(Array.isArray(d))return d[c];if(p-1===c)return d},{prefixCls:n,className:r,style:i,rows:a}=e,l=je(Array(a)).map((c,d)=>u.createElement("li",{key:d,style:{width:t(d)}}));return u.createElement("ul",{className:ce(n,r),style:i},l)},K4=G4,q4=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return u.createElement("h3",{className:ce(t,n),style:Object.assign({width:r},i)})},X4=q4;function Hd(e){return e&&typeof e=="object"?e:{}}function Y4(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Z4(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Q4(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ho=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:l,avatar:c=!1,title:d=!0,paragraph:p=!0,active:g,round:h}=e,{getPrefixCls:v,direction:S,skeleton:C}=u.useContext(It),m=v("skeleton",t),[b,x]=Ha(m);if(n||!("loading"in e)){const w=!!c,E=!!d,O=!!p;let I;if(w){const P=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Y4(E,O)),Hd(c));I=u.createElement("div",{className:`${m}-header`},u.createElement(Zc,Object.assign({},P)))}let R;if(E||O){let P;if(E){const A=Object.assign(Object.assign({prefixCls:`${m}-title`},Z4(w,O)),Hd(d));P=u.createElement(X4,Object.assign({},A))}let D;if(O){const A=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},Q4(w,E)),Hd(p));D=u.createElement(K4,Object.assign({},A))}R=u.createElement("div",{className:`${m}-content`},P,D)}const _=ce(m,{[`${m}-with-avatar`]:w,[`${m}-active`]:g,[`${m}-rtl`]:S==="rtl",[`${m}-round`]:h},C==null?void 0:C.className,r,i,x);return b(u.createElement("div",{className:_,style:Object.assign(Object.assign({},C==null?void 0:C.style),a)},I,R))}return typeof l<"u"?l:null};Ho.Button=D4;Ho.Avatar=M4;Ho.Input=j4;Ho.Image=F4;Ho.Node=U4;process.env.NODE_ENV!=="production"&&(Ho.displayName="Skeleton");const J4=Ho;var e5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const t5=e5;var O1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:t5}))};process.env.NODE_ENV!=="production"&&(O1.displayName="PlusOutlined");const n5=u.forwardRef(O1),Jc=B.createContext(null);var lg=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,d=e.children;return u.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:ce(n,l&&"".concat(n,"-active"),r),ref:t},d)});process.env.NODE_ENV!=="production"&&(lg.displayName="TabPane");var r5=["key","forceRender","style","className","destroyInactiveTabPane"];function i5(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=u.useContext(Jc),c=l.prefixCls,d=l.tabs,p=r.tabPane,g="".concat(c,"-tabpane");return u.createElement("div",{className:ce("".concat(c,"-content-holder"))},u.createElement("div",{className:ce("".concat(c,"-content"),"".concat(c,"-content-").concat(i),U({},"".concat(c,"-content-animated"),p))},d.map(function(h){var v=h.key,S=h.forceRender,C=h.style,m=h.className,b=h.destroyInactiveTabPane,x=Tt(h,r5),w=v===n;return u.createElement(no,rt({key:v,visible:w,forceRender:S,removeOnLeave:!!(a||b),leavedClassName:"".concat(g,"-hidden")},r.tabPaneMotion),function(E,O){var I=E.style,R=E.className;return u.createElement(lg,rt({},x,{prefixCls:g,id:t,tabKey:v,animated:p,active:w,style:J(J({},C),I),className:ce(m,R),ref:O}))})})))}var o5=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicatorSize,l=B.useState(),c=ie(l,2),d=c[0],p=c[1],g=B.useRef(),h=function(C){return typeof a=="function"?a(C):typeof a=="number"?a:C};function v(){Jt.cancel(g.current)}return B.useEffect(function(){var S={};return n&&(r?(i?(S.right=n.right+n.width/2,S.transform="translateX(50%)"):(S.left=n.left+n.width/2,S.transform="translateX(-50%)"),S.width=h(n.width)):(S.top=n.top+n.height/2,S.transform="translateY(-50%)",S.height=h(n.height))),v(),g.current=Jt(function(){p(S)}),v},[n,r,i,a]),{style:d}},h0={width:0,height:0,left:0,top:0};function a5(e,t,n){return B.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||h0,l=a.left+a.width,c=0;c<e.length;c+=1){var d=e[c].key,p=t.get(d);if(!p){var g;p=t.get((g=e[c-1])===null||g===void 0?void 0:g.key)||h0}var h=i.get(d)||J({},p);h.right=l-h.left-h.width,i.set(d,h)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function v0(e,t){var n=u.useRef(e),r=u.useState({}),i=ie(r,2),a=i[1];function l(c){var d=typeof c=="function"?c(n.current):c;d!==n.current&&t(d,n.current),n.current=d,a({})}return[n.current,l]}var s5=.1,m0=.01,oc=20,b0=Math.pow(.995,oc);function l5(e,t){var n=B.useState(),r=ie(n,2),i=r[0],a=r[1],l=B.useState(0),c=ie(l,2),d=c[0],p=c[1],g=B.useState(0),h=ie(g,2),v=h[0],S=h[1],C=B.useState(),m=ie(C,2),b=m[0],x=m[1],w=B.useRef();function E(D){var A=D.touches[0],k=A.screenX,j=A.screenY;a({x:k,y:j}),window.clearInterval(w.current)}function O(D){if(i){D.preventDefault();var A=D.touches[0],k=A.screenX,j=A.screenY;a({x:k,y:j});var F=k-i.x,H=j-i.y;t(F,H);var V=Date.now();p(V),S(V-d),x({x:F,y:H})}}function I(){if(i&&(a(null),x(null),b)){var D=b.x/v,A=b.y/v,k=Math.abs(D),j=Math.abs(A);if(Math.max(k,j)<s5)return;var F=D,H=A;w.current=window.setInterval(function(){if(Math.abs(F)<m0&&Math.abs(H)<m0){window.clearInterval(w.current);return}F*=b0,H*=b0,t(F*oc,H*oc)},oc)}}var R=B.useRef();function _(D){var A=D.deltaX,k=D.deltaY,j=0,F=Math.abs(A),H=Math.abs(k);F===H?j=R.current==="x"?A:k:F>H?(j=A,R.current="x"):(j=k,R.current="y"),t(-j,-j)&&D.preventDefault()}var P=B.useRef(null);P.current={onTouchStart:E,onTouchMove:O,onTouchEnd:I,onWheel:_},u.useEffect(function(){function D(F){P.current.onTouchStart(F)}function A(F){P.current.onTouchMove(F)}function k(F){P.current.onTouchEnd(F)}function j(F){P.current.onWheel(F)}return document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",k,{passive:!1}),e.current.addEventListener("touchstart",D,{passive:!1}),e.current.addEventListener("wheel",j),function(){document.removeEventListener("touchmove",A),document.removeEventListener("touchend",k)}},[])}function _1(e){var t=B.useState(0),n=ie(t,2),r=n[0],i=n[1],a=B.useRef(0),l=B.useRef();return l.current=e,uf(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function c5(e){var t=B.useRef([]),n=B.useState({}),r=ie(n,2),i=r[1],a=B.useRef(typeof e=="function"?e():e),l=_1(function(){var d=a.current;t.current.forEach(function(p){d=p(d)}),t.current=[],a.current=d,i({})});function c(d){t.current.push(d),l()}return[a.current,c]}var y0={width:0,height:0,left:0,top:0,right:0};function u5(e,t,n,r,i,a,l){var c=l.tabs,d=l.tabPosition,p=l.rtl,g,h,v;return["top","bottom"].includes(d)?(g="width",h=p?"right":"left",v=Math.abs(n)):(g="height",h="top",v=-n),B.useMemo(function(){if(!c.length)return[0,0];for(var S=c.length,C=S,m=0;m<S;m+=1){var b=e.get(c[m].key)||y0;if(b[h]+b[g]>v+t){C=m-1;break}}for(var x=0,w=S-1;w>=0;w-=1){var E=e.get(c[w].key)||y0;if(E[h]<v){x=w+1;break}}return x>=C?[0,0]:[x,C]},[e,t,r,i,a,v,d,c.map(function(S){return S.key}).join("_"),p])}function S0(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var d5="TABS_DQ";function R1(e){return String(e).replace(/"/g,d5)}function I1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function f5(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(c){r.onEdit("add",{event:c})}},r.addIcon||"+")}const P1=u.forwardRef(f5);var rp=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,l={};return Rt(i)==="object"&&!u.isValidElement(i)?l=i:l.right=i,n==="right"&&(a=l.right),n==="left"&&(a=l.left),a?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});process.env.NODE_ENV!=="production"&&(rp.displayName="ExtraContent");function p5(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.moreIcon,d=c===void 0?"More":c,p=e.moreTransitionName,g=e.style,h=e.className,v=e.editable,S=e.tabBarGutter,C=e.rtl,m=e.removeAriaLabel,b=e.onTabClick,x=e.getPopupContainer,w=e.popupClassName,E=B.useState(!1),O=ie(E,2),I=O[0],R=O[1],_=B.useState(null),P=ie(_,2),D=P[0],A=P[1],k="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),F=D!==null?"".concat(k,"-").concat(D):null,H=a==null?void 0:a.dropdownAriaLabel;function V(Y,ne){Y.preventDefault(),Y.stopPropagation(),v.onEdit("remove",{key:ne,event:Y})}var L=u.createElement(Vs,{onClick:function(ne){var oe=ne.key,re=ne.domEvent;b(oe,re),R(!1)},prefixCls:"".concat(j,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[D],"aria-label":H!==void 0?H:"expanded dropdown"},i.map(function(Y){var ne=Y.closable,oe=Y.disabled,re=Y.closeIcon,fe=Y.key,de=Y.label,se=I1(ne,re,v,oe);return u.createElement(Xc,{key:fe,id:"".concat(k,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:oe},u.createElement("span",null,de),se&&u.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(ae){ae.stopPropagation(),V(ae,fe)}},re||v.removeIcon||"×"))}));function T(Y){for(var ne=i.filter(function(se){return!se.disabled}),oe=ne.findIndex(function(se){return se.key===D})||0,re=ne.length,fe=0;fe<re;fe+=1){oe=(oe+Y+re)%re;var de=ne[oe];if(!de.disabled){A(de.key);return}}}function N(Y){var ne=Y.which;if(!I){[Se.DOWN,Se.SPACE,Se.ENTER].includes(ne)&&(R(!0),Y.preventDefault());return}switch(ne){case Se.UP:T(-1),Y.preventDefault();break;case Se.DOWN:T(1),Y.preventDefault();break;case Se.ESC:R(!1);break;case Se.SPACE:case Se.ENTER:D!==null&&b(D,Y);break}}B.useEffect(function(){var Y=document.getElementById(F);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[D]),B.useEffect(function(){I||A(null)},[I]);var W=U({},C?"marginRight":"marginLeft",S);i.length||(W.visibility="hidden",W.order=1);var K=ce(U({},"".concat(j,"-rtl"),C)),X=l?null:u.createElement(WL,{prefixCls:j,overlay:L,trigger:["hover"],visible:i.length?I:!1,transitionName:p,onVisibleChange:R,overlayClassName:ce(K,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(r,"-more"),"aria-expanded":I,onKeyDown:N},d));return u.createElement("div",{className:ce("".concat(n,"-nav-operations"),h),style:g,ref:t},X,u.createElement(P1,{prefixCls:n,locale:a,editable:v}))}const g5=u.memo(u.forwardRef(p5),function(e,t){return t.tabMoving});function h5(e){var t,n=e.prefixCls,r=e.id,i=e.active,a=e.tab,l=a.key,c=a.label,d=a.disabled,p=a.closeIcon,g=e.closable,h=e.renderWrapper,v=e.removeAriaLabel,S=e.editable,C=e.onClick,m=e.onFocus,b=e.style,x="".concat(n,"-tab"),w=I1(g,p,S,d);function E(R){d||C(R)}function O(R){R.preventDefault(),R.stopPropagation(),S.onEdit("remove",{key:l,event:R})}var I=u.createElement("div",{key:l,"data-node-key":R1(l),className:ce(x,(t={},U(t,"".concat(x,"-with-remove"),w),U(t,"".concat(x,"-active"),i),U(t,"".concat(x,"-disabled"),d),t)),style:b,onClick:E},u.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(x,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":d,tabIndex:d?null:0,onClick:function(_){_.stopPropagation(),E(_)},onKeyDown:function(_){[Se.SPACE,Se.ENTER].includes(_.which)&&(_.preventDefault(),E(_))},onFocus:m},c),w&&u.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(x,"-remove"),onClick:function(_){_.stopPropagation(),O(_)}},p||S.removeIcon||"×"));return h?h(I):I}var v5=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,a=t.offsetTop,l=t.offsetLeft,c=t.getBoundingClientRect(),d=c.width,p=c.height,g=c.x,h=c.y;return Math.abs(d-r)<1?[d,p,g-n.x,h-n.y]:[r,i,l,a]},ma=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,a=n.offsetHeight,l=a===void 0?0:a;if(t.current){var c=t.current.getBoundingClientRect(),d=c.width,p=c.height;if(Math.abs(d-i)<1)return[d,p]}return[i,l]},ql=function(t,n){return t[n?0:1]};function m5(e,t){var n,r=u.useContext(Jc),i=r.prefixCls,a=r.tabs,l=e.className,c=e.style,d=e.id,p=e.animated,g=e.activeKey,h=e.rtl,v=e.extra,S=e.editable,C=e.locale,m=e.tabPosition,b=e.tabBarGutter,x=e.children,w=e.onTabClick,E=e.onTabScroll,O=e.indicatorSize,I=B.useRef(),R=B.useRef(),_=B.useRef(),P=B.useRef(),D=B.useRef(),A=B.useRef(),k=B.useRef(),j=m==="top"||m==="bottom",F=v0(0,function(pt,ct){j&&E&&E({direction:pt>ct?"left":"right"})}),H=ie(F,2),V=H[0],L=H[1],T=v0(0,function(pt,ct){!j&&E&&E({direction:pt>ct?"top":"bottom"})}),N=ie(T,2),W=N[0],K=N[1],X=B.useState([0,0]),Y=ie(X,2),ne=Y[0],oe=Y[1],re=B.useState([0,0]),fe=ie(re,2),de=fe[0],se=fe[1],ee=B.useState([0,0]),ae=ie(ee,2),ge=ae[0],he=ae[1],ue=B.useState([0,0]),te=ie(ue,2),$e=te[0],Oe=te[1],_e=c5(new Map),Ce=ie(_e,2),Ie=Ce[0],ve=Ce[1],xe=a5(a,Ie,de[0]),ye=ql(ne,j),De=ql(de,j),ht=ql(ge,j),Qe=ql($e,j),Fe=ye<De+ht,lt=Fe?ye-Qe:ye-ht,Ge="".concat(i,"-nav-operations-hidden"),Xe=0,Ue=0;j&&h?(Xe=0,Ue=Math.max(0,De-lt)):(Xe=Math.min(0,lt-De),Ue=0);function Pe(pt){return pt<Xe?Xe:pt>Ue?Ue:pt}var vt=B.useRef(),it=B.useState(),Bt=ie(it,2),Ct=Bt[0],ft=Bt[1];function ot(){ft(Date.now())}function zt(){window.clearTimeout(vt.current)}l5(P,function(pt,ct){function Me(Te,et){Te(function(Dt){var Gt=Pe(Dt+et);return Gt})}return Fe?(j?Me(L,pt):Me(K,ct),zt(),ot(),!0):!1}),B.useEffect(function(){return zt(),Ct&&(vt.current=window.setTimeout(function(){ft(0)},100)),zt},[Ct]);var xt=u5(xe,lt,j?V:W,De,ht,Qe,J(J({},e),{},{tabs:a})),Re=ie(xt,2),He=Re[0],Ye=Re[1],Je=gr(function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,ct=xe.get(pt)||{width:0,height:0,left:0,right:0,top:0};if(j){var Me=V;h?ct.right<V?Me=ct.right:ct.right+ct.width>V+lt&&(Me=ct.right+ct.width-lt):ct.left<-V?Me=-ct.left:ct.left+ct.width>-V+lt&&(Me=-(ct.left+ct.width-lt)),K(0),L(Pe(Me))}else{var Te=W;ct.top<-W?Te=-ct.top:ct.top+ct.height>-W+lt&&(Te=-(ct.top+ct.height-lt)),L(0),K(Pe(Te))}}),at={};m==="top"||m==="bottom"?at[h?"marginRight":"marginLeft"]=b:at.marginTop=b;var Ke=a.map(function(pt,ct){var Me=pt.key;return u.createElement(h5,{id:d,prefixCls:i,key:Me,tab:pt,style:ct===0?void 0:at,closable:pt.closable,editable:S,active:Me===g,renderWrapper:x,removeAriaLabel:C==null?void 0:C.removeAriaLabel,onClick:function(et){w(Me,et)},onFocus:function(){Je(Me),ot(),P.current&&(h||(P.current.scrollLeft=0),P.current.scrollTop=0)}})}),mt=function(){return ve(function(){var ct,Me=new Map,Te=(ct=D.current)===null||ct===void 0?void 0:ct.getBoundingClientRect();return a.forEach(function(et){var Dt,Gt=et.key,cn=(Dt=D.current)===null||Dt===void 0?void 0:Dt.querySelector('[data-node-key="'.concat(R1(Gt),'"]'));if(cn){var Fn=v5(cn,Te),_n=ie(Fn,4),Zn=_n[0],un=_n[1],Pn=_n[2],Gr=_n[3];Me.set(Gt,{width:Zn,height:un,left:Pn,top:Gr})}}),Me})};B.useEffect(function(){mt()},[a.map(function(pt){return pt.key}).join("_")]);var Ae=_1(function(){var pt=ma(I),ct=ma(R),Me=ma(_);oe([pt[0]-ct[0]-Me[0],pt[1]-ct[1]-Me[1]]);var Te=ma(k);he(Te);var et=ma(A);Oe(et);var Dt=ma(D);se([Dt[0]-Te[0],Dt[1]-Te[1]]),mt()}),ke=a.slice(0,He),Ee=a.slice(Ye+1),ze=[].concat(je(ke),je(Ee)),Ne=xe.get(g),Be=o5({activeTabOffset:Ne,horizontal:j,rtl:h,indicatorSize:O}),bt=Be.style;B.useEffect(function(){Je()},[g,Xe,Ue,S0(Ne),S0(xe),j]),B.useEffect(function(){Ae()},[h]);var $t=!!ze.length,Ut="".concat(i,"-nav-wrap"),Nt,an,At,Vt;return j?h?(an=V>0,Nt=V!==Ue):(Nt=V<0,an=V!==Xe):(At=W<0,Vt=W!==Xe),u.createElement(Rr,{onResize:Ae},u.createElement("div",{ref:Fa(t,I),role:"tablist",className:ce("".concat(i,"-nav"),l),style:c,onKeyDown:function(){ot()}},u.createElement(rp,{ref:R,position:"left",extra:v,prefixCls:i}),u.createElement(Rr,{onResize:Ae},u.createElement("div",{className:ce(Ut,(n={},U(n,"".concat(Ut,"-ping-left"),Nt),U(n,"".concat(Ut,"-ping-right"),an),U(n,"".concat(Ut,"-ping-top"),At),U(n,"".concat(Ut,"-ping-bottom"),Vt),n)),ref:P},u.createElement(Rr,{onResize:Ae},u.createElement("div",{ref:D,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(W,"px)"),transition:Ct?"none":void 0}},Ke,u.createElement(P1,{ref:k,prefixCls:i,locale:C,editable:S,style:J(J({},Ke.length===0?void 0:at),{},{visibility:$t?"hidden":null})}),u.createElement("div",{className:ce("".concat(i,"-ink-bar"),U({},"".concat(i,"-ink-bar-animated"),p.inkBar)),style:bt}))))),u.createElement(g5,rt({},e,{removeAriaLabel:C==null?void 0:C.removeAriaLabel,ref:A,prefixCls:i,tabs:ze,className:!$t&&Ge,tabMoving:!!Ct})),u.createElement(rp,{ref:_,position:"right",extra:v,prefixCls:i})))}const C0=u.forwardRef(m5);var b5=["renderTabBar"],y5=["label","key"];function S5(e){var t=e.renderTabBar,n=Tt(e,b5),r=u.useContext(Jc),i=r.tabs;if(t){var a=J(J({},n),{},{panes:i.map(function(l){var c=l.label,d=l.key,p=Tt(l,y5);return u.createElement(lg,rt({tab:c,key:d,tabKey:d},p))})});return t(a,C0)}return u.createElement(C0,n)}function C5(){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=J({inkBar:!0},Rt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&_t(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var x5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],x0=0;function w5(e,t){var n,r=e.id,i=e.prefixCls,a=i===void 0?"rc-tabs":i,l=e.className,c=e.items,d=e.direction,p=e.activeKey,g=e.defaultActiveKey,h=e.editable,v=e.animated,S=e.tabPosition,C=S===void 0?"top":S,m=e.tabBarGutter,b=e.tabBarStyle,x=e.tabBarExtraContent,w=e.locale,E=e.moreIcon,O=e.moreTransitionName,I=e.destroyInactiveTabPane,R=e.renderTabBar,_=e.onChange,P=e.onTabClick,D=e.onTabScroll,A=e.getPopupContainer,k=e.popupClassName,j=e.indicatorSize,F=Tt(e,x5),H=u.useMemo(function(){return(c||[]).filter(function(Oe){return Oe&&Rt(Oe)==="object"&&"key"in Oe})},[c]),V=d==="rtl",L=C5(v),T=B.useState(!1),N=ie(T,2),W=N[0],K=N[1];B.useEffect(function(){K(Gp())},[]);var X=qn(function(){var Oe;return(Oe=H[0])===null||Oe===void 0?void 0:Oe.key},{value:p,defaultValue:g}),Y=ie(X,2),ne=Y[0],oe=Y[1],re=B.useState(function(){return H.findIndex(function(Oe){return Oe.key===ne})}),fe=ie(re,2),de=fe[0],se=fe[1];B.useEffect(function(){var Oe=H.findIndex(function(Ce){return Ce.key===ne});if(Oe===-1){var _e;Oe=Math.max(0,Math.min(de,H.length-1)),oe((_e=H[Oe])===null||_e===void 0?void 0:_e.key)}se(Oe)},[H.map(function(Oe){return Oe.key}).join("_"),ne,de]);var ee=qn(null,{value:r}),ae=ie(ee,2),ge=ae[0],he=ae[1];B.useEffect(function(){r||(he("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":x0)),x0+=1)},[]);function ue(Oe,_e){P==null||P(Oe,_e);var Ce=Oe!==ne;oe(Oe),Ce&&(_==null||_(Oe))}var te={id:ge,activeKey:ne,animated:L,tabPosition:C,rtl:V,mobile:W},$e=J(J({},te),{},{editable:h,locale:w,moreIcon:E,moreTransitionName:O,tabBarGutter:m,onTabClick:ue,onTabScroll:D,extra:x,style:b,panes:null,getPopupContainer:A,popupClassName:k,indicatorSize:j});return u.createElement(Jc.Provider,{value:{tabs:H,prefixCls:a}},u.createElement("div",rt({ref:t,id:r,className:ce(a,"".concat(a,"-").concat(C),(n={},U(n,"".concat(a,"-mobile"),W),U(n,"".concat(a,"-editable"),h),U(n,"".concat(a,"-rtl"),V),n),l)},F),u.createElement(S5,rt({},$e,{renderTabBar:R})),u.createElement(i5,rt({destroyInactiveTabPane:I},te,{animated:L}))))}var T1=u.forwardRef(w5);process.env.NODE_ENV!=="production"&&(T1.displayName="Tabs");const E5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function $5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},E5),{motionName:zp(e,"switch")})),n}var O5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _5(e){return e.filter(t=>t)}function R5(e,t){if(process.env.NODE_ENV!=="production"&&Yn("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=Wr(t).map(r=>{if(u.isValidElement(r)){const{key:i,props:a}=r,l=a||{},{tab:c}=l,d=O5(l,["tab"]);return Object.assign(Object.assign({key:String(i)},d),{label:c})}return null});return _5(n)}const I5=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}`}}}}},[bc(e,"slide-up"),bc(e,"slide-down")]]},P5=I5,T5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},N5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Xn(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:`${r}px 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({},Aa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},M5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
217
- 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,
218
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},A5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},D5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:c,itemColor:d}=e,p=`${t}-tab`;return{[p]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zc(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${p}-active ${p}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:a}}}},L5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},z5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xn(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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${c}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l}},zc(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),D5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},F5=Dn("Tabs",e=>{const t=en(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[A5(t),L5(t),M5(t),N5(t),T5(t),z5(t),P5(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}}),N1=()=>null;process.env.NODE_ENV!=="production"&&(N1.displayName="DeprecatedTabPane");const B5=N1;var j5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cg=e=>{const{type:t,className:n,rootClassName:r,size:i,onEdit:a,hideAdd:l,centered:c,addIcon:d,popupClassName:p,children:g,items:h,animated:v,style:S,indicatorSize:C}=e,m=j5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:b,moreIcon:x=u.createElement(jz,null)}=m,{direction:w,tabs:E,getPrefixCls:O,getPopupContainer:I}=u.useContext(It),R=O("tabs",b),[_,P]=F5(R);let D;t==="editable-card"&&(D={onEdit:(V,L)=>{let{key:T,event:N}=L;a==null||a(V==="add"?N:T,V)},removeIcon:u.createElement(Lp,null),addIcon:d||u.createElement(n5,null),showAdd:l!==!0});const A=O();if(process.env.NODE_ENV!=="production"){const V=Yn("Tabs");process.env.NODE_ENV!=="production"&&V(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.")}const k=R5(h,g),j=$5(R,v),F=ro(i),H=Object.assign(Object.assign({},E==null?void 0:E.style),S);return _(u.createElement(T1,Object.assign({direction:w,getPopupContainer:I,moreTransitionName:`${A}-slide-up`},m,{items:k,className:ce({[`${R}-${F}`]:F,[`${R}-card`]:["card","editable-card"].includes(t),[`${R}-editable-card`]:t==="editable-card",[`${R}-centered`]:c},E==null?void 0:E.className,n,r,P),popupClassName:ce(p,P),style:H,editable:D,moreIcon:x,prefixCls:R,animated:j,indicatorSize:C??(E==null?void 0:E.indicatorSize)})))};cg.TabPane=B5;process.env.NODE_ENV!=="production"&&(cg.displayName="Tabs");const H5=cg;var k5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const V5=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=k5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=u.useContext(It),l=a("card",t),c=ce(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},i,{className:c}))},M1=V5,W5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},zs()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Aa),{[`
219
- > ${n}-typography,
220
- > ${n}-typography-edit-content
221
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},U5=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
222
- ${i}px 0 0 0 ${n},
223
- 0 ${i}px 0 0 ${n},
224
- ${i}px ${i}px 0 0 ${n},
225
- ${i}px 0 0 0 ${n} inset,
226
- 0 ${i}px 0 0 ${n} inset;
227
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},G5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},zs()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,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.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:`${i*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},K5=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},zs()),{"&-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},Aa),"&-description":{color:e.colorTextDescription}}),q5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},X5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Y5=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:a,boxShadowTertiary:l,cardPaddingBase:c,extraColor:d}=e;return{[n]:Object.assign(Object.assign({},Xn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:l},[`${n}-head`]:W5(e),[`${n}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:c,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},zs()),[`${n}-grid`]:U5(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${n}-actions`]:G5(e),[`${n}-meta`]:K5(e)}),[`${n}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${a}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:q5(e),[`${n}-loading`]:X5(e),[`${n}-rtl`]:{direction:"rtl"}}},Z5=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Q5=Dn("Card",e=>{const t=en(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Y5(t),Z5(t)]},e=>({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}));var w0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function J5(e){return e.map((t,n)=>u.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${n}`},u.createElement("span",null,t)))}const e6=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:d={},title:p,loading:g,bordered:h=!0,size:v,type:S,cover:C,actions:m,tabList:b,children:x,activeTabKey:w,defaultActiveTabKey:E,tabBarExtraContent:O,hoverable:I,tabProps:R={}}=e,_=w0(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:P,direction:D,card:A}=u.useContext(It),k=ee=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,ee)},j=u.useMemo(()=>{let ee=!1;return u.Children.forEach(x,ae=>{ae&&ae.type&&ae.type===M1&&(ee=!0)}),ee},[x]),F=P("card",n),[H,V]=Q5(F),L=u.createElement(J4,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),T=w!==void 0,N=Object.assign(Object.assign({},R),{[T?"activeKey":"defaultActiveKey"]:T?w:E,tabBarExtraContent:O});let W;const K=ro(v),X=!K||K==="default"?"large":K,Y=b?u.createElement(H5,Object.assign({size:X},N,{className:`${F}-head-tabs`,onChange:k,items:b.map(ee=>{var{tab:ae}=ee,ge=w0(ee,["tab"]);return Object.assign({label:ae},ge)})})):null;(p||l||Y)&&(W=u.createElement("div",{className:`${F}-head`,style:c},u.createElement("div",{className:`${F}-head-wrapper`},p&&u.createElement("div",{className:`${F}-head-title`},p),l&&u.createElement("div",{className:`${F}-extra`},l)),Y));const ne=C?u.createElement("div",{className:`${F}-cover`},C):null,oe=u.createElement("div",{className:`${F}-body`,style:d},g?L:x),re=m&&m.length?u.createElement("ul",{className:`${F}-actions`},J5(m)):null,fe=mr(_,["onTabChange"]),de=ce(F,A==null?void 0:A.className,{[`${F}-loading`]:g,[`${F}-bordered`]:h,[`${F}-hoverable`]:I,[`${F}-contain-grid`]:j,[`${F}-contain-tabs`]:b&&b.length,[`${F}-${K}`]:K,[`${F}-type-${S}`]:!!S,[`${F}-rtl`]:D==="rtl"},r,i,V),se=Object.assign(Object.assign({},A==null?void 0:A.style),a);return H(u.createElement("div",Object.assign({ref:t},fe,{className:de,style:se}),W,ne,oe,re))}),t6=e6;var n6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const r6=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,l=n6(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=u.useContext(It),d=c("card",t),p=ce(`${d}-meta`,n),g=r?u.createElement("div",{className:`${d}-meta-avatar`},r):null,h=i?u.createElement("div",{className:`${d}-meta-title`},i):null,v=a?u.createElement("div",{className:`${d}-meta-description`},a):null,S=h||v?u.createElement("div",{className:`${d}-meta-detail`},h,v):null;return u.createElement("div",Object.assign({},l,{className:p}),g,S)},i6=r6,eu=t6;eu.Grid=M1;eu.Meta=i6;process.env.NODE_ENV!=="production"&&(eu.displayName="Card");const o6=eu;function a6(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,l=r.noLeading,c=l===void 0?!1:l,d=r.debounceMode,p=d===void 0?void 0:d,g,h=!1,v=0;function S(){g&&clearTimeout(g)}function C(b){var x=b||{},w=x.upcomingOnly,E=w===void 0?!1:w;S(),h=!E}function m(){for(var b=arguments.length,x=new Array(b),w=0;w<b;w++)x[w]=arguments[w];var E=this,O=Date.now()-v;if(h)return;function I(){v=Date.now(),t.apply(E,x)}function R(){g=void 0}!c&&p&&!g&&I(),S(),p===void 0&&O>e?c?(v=Date.now(),a||(g=setTimeout(p?R:I,e))):I():a!==!0&&(g=setTimeout(p?R:I,p===void 0?e-O:e))}return m.cancel=C,m}function s6(e,t,n){var r=n||{},i=r.atBegin,a=i===void 0?!1:i;return a6(e,t,{debounceMode:a!==!1})}const l6=B.createContext({}),A1=l6,c6=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"}}}},u6=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},d6=(e,t)=>{const{componentCls:n,gridColumns:r}=e,i={};for(let a=r;a>=0;a--)a===0?(i[`${n}${t}-${a}`]={display:"none"},i[`${n}-push-${a}`]={insetInlineStart:"auto"},i[`${n}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${a}`]={marginInlineStart:0},i[`${n}${t}-order-${a}`]={order:0}):(i[`${n}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`}],i[`${n}${t}-push-${a}`]={insetInlineStart:`${a/r*100}%`},i[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},i[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},i[`${n}${t}-order-${a}`]={order:a});return i},ip=(e,t)=>d6(e,t),f6=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},ip(e,n))}),p6=Dn("Grid",e=>[c6(e)]),g6=Dn("Grid",e=>{const t=en(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[u6(t),ip(t,""),ip(t,"-xs"),Object.keys(n).map(r=>f6(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]});var h6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function v6(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const m6=["xs","sm","md","lg","xl","xxl"],D1=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(It),{gutter:i,wrap:a}=u.useContext(A1),{prefixCls:l,span:c,order:d,offset:p,push:g,pull:h,className:v,children:S,flex:C,style:m}=e,b=h6(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",l),[w,E]=g6(x);let O={};m6.forEach(_=>{let P={};const D=e[_];typeof D=="number"?P.span=D:typeof D=="object"&&(P=D||{}),delete b[_],O=Object.assign(Object.assign({},O),{[`${x}-${_}-${P.span}`]:P.span!==void 0,[`${x}-${_}-order-${P.order}`]:P.order||P.order===0,[`${x}-${_}-offset-${P.offset}`]:P.offset||P.offset===0,[`${x}-${_}-push-${P.push}`]:P.push||P.push===0,[`${x}-${_}-pull-${P.pull}`]:P.pull||P.pull===0,[`${x}-${_}-flex-${P.flex}`]:P.flex||P.flex==="auto",[`${x}-rtl`]:r==="rtl"})});const I=ce(x,{[`${x}-${c}`]:c!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${p}`]:p,[`${x}-push-${g}`]:g,[`${x}-pull-${h}`]:h},v,O,E),R={};if(i&&i[0]>0){const _=i[0]/2;R.paddingLeft=_,R.paddingRight=_}return C&&(R.flex=v6(C),a===!1&&!R.minWidth&&(R.minWidth=0)),w(u.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},R),m),className:I,ref:t}),S))});process.env.NODE_ENV!=="production"&&(D1.displayName="Col");const b6=D1;var y6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function E0(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<No.length;a++){const l=No[a];if(!t[l])continue;const c=e[l];if(c!==void 0){r(c);return}}};return u.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const L1=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:l,children:c,gutter:d=0,wrap:p}=e,g=y6(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:v}=u.useContext(It),[S,C]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,b]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=E0(i,m),w=E0(r,m),E=u.useRef(d),O=AS();u.useEffect(()=>{const L=O.subscribe(T=>{b(T);const N=E.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&C(T)});return()=>O.unsubscribe(L)},[]);const I=()=>{const L=[void 0,void 0];return(Array.isArray(d)?d:[d,void 0]).forEach((N,W)=>{if(typeof N=="object")for(let K=0;K<No.length;K++){const X=No[K];if(S[X]&&N[X]!==void 0){L[W]=N[X];break}}else L[W]=N}),L},R=h("row",n),[_,P]=p6(R),D=I(),A=ce(R,{[`${R}-no-wrap`]:p===!1,[`${R}-${w}`]:w,[`${R}-${x}`]:x,[`${R}-rtl`]:v==="rtl"},a,P),k={},j=D[0]!=null&&D[0]>0?D[0]/-2:void 0;j&&(k.marginLeft=j,k.marginRight=j),[,k.rowGap]=D;const[F,H]=D,V=u.useMemo(()=>({gutter:[F,H],wrap:p}),[F,H,p]);return _(u.createElement(A1.Provider,{value:V},u.createElement("div",Object.assign({},g,{className:A,style:Object.assign(Object.assign({},k),l),ref:t}),c)))});process.env.NODE_ENV!=="production"&&(L1.displayName="Row");const S6=L1;function ba(e){return!!(e.addonBefore||e.addonAfter)}function kd(e){return!!(e.prefix||e.suffix||e.allowClear)}function $0(e,t,n,r){if(n){var i=t;if(t.type==="click"){var a=e.cloneNode(!0);i=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(i);return}if(r!==void 0){i=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(i);return}n(i)}}var C6=function(t){var n,r,i=t.inputElement,a=t.prefixCls,l=t.prefix,c=t.suffix,d=t.addonBefore,p=t.addonAfter,g=t.className,h=t.style,v=t.disabled,S=t.readOnly,C=t.focused,m=t.triggerFocus,b=t.allowClear,x=t.value,w=t.handleReset,E=t.hidden,O=t.classes,I=t.classNames,R=t.dataAttrs,_=t.styles,P=t.components,D=(P==null?void 0:P.affixWrapper)||"span",A=(P==null?void 0:P.groupWrapper)||"span",k=(P==null?void 0:P.wrapper)||"span",j=(P==null?void 0:P.groupAddon)||"span",F=B.useRef(null),H=function(fe){var de;(de=F.current)!==null&&de!==void 0&&de.contains(fe.target)&&(m==null||m())},V=function(){var fe;if(!b)return null;var de=!v&&!S&&x,se="".concat(a,"-clear-icon"),ee=Rt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";return B.createElement("span",{onClick:w,onMouseDown:function(ge){return ge.preventDefault()},className:ce(se,(fe={},U(fe,"".concat(se,"-hidden"),!de),U(fe,"".concat(se,"-has-suffix"),!!c),fe)),role:"button",tabIndex:-1},ee)},L=B.cloneElement(i,{value:x,hidden:E,className:ce((n=i.props)===null||n===void 0?void 0:n.className,!kd(t)&&!ba(t)&&g)||null,style:J(J({},(r=i.props)===null||r===void 0?void 0:r.style),!kd(t)&&!ba(t)?h:{})});if(kd(t)){var T,N="".concat(a,"-affix-wrapper"),W=ce(N,(T={},U(T,"".concat(N,"-disabled"),v),U(T,"".concat(N,"-focused"),C),U(T,"".concat(N,"-readonly"),S),U(T,"".concat(N,"-input-with-clear-btn"),c&&b&&x),T),!ba(t)&&g,O==null?void 0:O.affixWrapper,I==null?void 0:I.affixWrapper),K=(c||b)&&B.createElement("span",{className:ce("".concat(a,"-suffix"),I==null?void 0:I.suffix),style:_==null?void 0:_.suffix},V(),c);L=B.createElement(D,rt({className:W,style:J(J({},ba(t)?void 0:h),_==null?void 0:_.affixWrapper),hidden:!ba(t)&&E,onClick:H},R==null?void 0:R.affixWrapper,{ref:F}),l&&B.createElement("span",{className:ce("".concat(a,"-prefix"),I==null?void 0:I.prefix),style:_==null?void 0:_.prefix},l),B.cloneElement(i,{value:x,hidden:null}),K)}if(ba(t)){var X="".concat(a,"-group"),Y="".concat(X,"-addon"),ne=ce("".concat(a,"-wrapper"),X,O==null?void 0:O.wrapper),oe=ce("".concat(a,"-group-wrapper"),g,O==null?void 0:O.group);return B.createElement(A,{className:oe,style:h,hidden:E},B.createElement(k,{className:ne},d&&B.createElement(j,{className:Y},d),B.cloneElement(L,{hidden:null}),p&&B.createElement(j,{className:Y},p)))}return L},x6=["show"];function w6(e,t){return u.useMemo(function(){var n={};t&&(n.show=Rt(t)==="object"&&t.formatter?t.formatter:!!t),n=J(J({},n),e);var r=n,i=r.show,a=Tt(r,x6);return J(J({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(l){return l.length}})},[e,t])}globalThis&&globalThis.__rest;function E6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}var $6=`
228
- min-height:0 !important;
229
- max-height:none !important;
230
- height:0 !important;
231
- visibility:hidden !important;
232
- overflow:hidden !important;
233
- position:absolute !important;
234
- z-index:-1000 !important;
235
- top:0 !important;
236
- right:0 !important;
237
- pointer-events: none !important;
238
- `,O6=["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"],Vd={},kr;function _6(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&&Vd[n])return Vd[n];var r=window.getComputedStyle(e),i=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")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=O6.map(function(p){return"".concat(p,":").concat(r.getPropertyValue(p))}).join(";"),d={sizingStyle:c,paddingSize:a,borderSize:l,boxSizing:i};return t&&n&&(Vd[n]=d),d}function R6(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;kr||(kr=document.createElement("textarea"),kr.setAttribute("tab-index","-1"),kr.setAttribute("aria-hidden","true"),document.body.appendChild(kr)),e.getAttribute("wrap")?kr.setAttribute("wrap",e.getAttribute("wrap")):kr.removeAttribute("wrap");var i=_6(e,t),a=i.paddingSize,l=i.borderSize,c=i.boxSizing,d=i.sizingStyle;kr.setAttribute("style","".concat(d,";").concat($6)),kr.value=e.value||e.placeholder||"";var p=void 0,g=void 0,h,v=kr.scrollHeight;if(c==="border-box"?v+=l:c==="content-box"&&(v-=a),n!==null||r!==null){kr.value=" ";var S=kr.scrollHeight-a;n!==null&&(p=S*n,c==="border-box"&&(p=p+a+l),v=Math.max(p,v)),r!==null&&(g=S*r,c==="border-box"&&(g=g+a+l),h=v>g?"":"hidden",v=Math.min(g,v))}var C={height:v,overflowY:h,resize:"none"};return p&&(C.minHeight=p),g&&(C.maxHeight=g),C}var I6=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Wd=0,Ud=1,Gd=2,P6=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,d=n.className,p=n.style,g=n.disabled,h=n.onChange,v=n.onInternalAutoSize,S=Tt(n,I6),C=qn(i,{value:a,postState:function(re){return re??""}}),m=ie(C,2),b=m[0],x=m[1],w=function(re){x(re.target.value),h==null||h(re)},E=u.useRef();u.useImperativeHandle(t,function(){return{textArea:E.current}});var O=u.useMemo(function(){return l&&Rt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),I=ie(O,2),R=I[0],_=I[1],P=!!l,D=function(){try{if(document.activeElement===E.current){var re=E.current,fe=re.selectionStart,de=re.selectionEnd,se=re.scrollTop;E.current.setSelectionRange(fe,de),E.current.scrollTop=se}}catch{}},A=u.useState(Gd),k=ie(A,2),j=k[0],F=k[1],H=u.useState(),V=ie(H,2),L=V[0],T=V[1],N=function(){F(Wd),process.env.NODE_ENV==="test"&&(v==null||v())};nn(function(){P&&N()},[a,R,_,P]),nn(function(){if(j===Wd)F(Ud);else if(j===Ud){var oe=R6(E.current,!1,R,_);F(Gd),T(oe)}else D()},[j]);var W=u.useRef(),K=function(){Jt.cancel(W.current)},X=function(re){j===Gd&&(c==null||c(re),l&&(K(),W.current=Jt(function(){N()})))};u.useEffect(function(){return K},[]);var Y=P?L:null,ne=J(J({},p),Y);return(j===Wd||j===Ud)&&(ne.overflowY="hidden",ne.overflowX="hidden"),u.createElement(Rr,{onResize:X,disabled:!(l||c)},u.createElement("textarea",rt({},S,{ref:E,style:ne,className:ce(r,d,U({},"".concat(r,"-disabled"),g)),disabled:g,value:b,onChange:w})))}),T6=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],N6=B.forwardRef(function(e,t){var n,r,i=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,d=e.onChange,p=e.allowClear,g=e.maxLength,h=e.onCompositionStart,v=e.onCompositionEnd,S=e.suffix,C=e.prefixCls,m=C===void 0?"rc-textarea":C,b=e.classes,x=e.showCount,w=e.count,E=e.className,O=e.style,I=e.disabled,R=e.hidden,_=e.classNames,P=e.styles,D=e.onResize,A=Tt(e,T6),k=qn(i,{value:a,defaultValue:i}),j=ie(k,2),F=j[0],H=j[1],V=F==null?"":String(F),L=B.useState(!1),T=ie(L,2),N=T[0],W=T[1],K=B.useRef(!1),X=B.useState(null),Y=ie(X,2),ne=Y[0],oe=Y[1],re=B.useRef(null),fe=function(){var Pe;return(Pe=re.current)===null||Pe===void 0?void 0:Pe.textArea},de=function(){fe().focus()};B.useImperativeHandle(t,function(){return{resizableTextArea:re.current,focus:de,blur:function(){fe().blur()}}}),B.useEffect(function(){W(function(Ue){return!I&&Ue})},[I]);var se=B.useState(null),ee=ie(se,2),ae=ee[0],ge=ee[1];B.useEffect(function(){if(ae){var Ue;(Ue=fe()).setSelectionRange.apply(Ue,je(ae))}},[ae]);var he=w6(w,x),ue=(n=he.max)!==null&&n!==void 0?n:g,te=Number(ue)>0,$e=he.strategy(V),Oe=!!ue&&$e>ue,_e=function(Pe,vt){var it=vt;!K.current&&he.exceedFormatter&&he.max&&he.strategy(vt)>he.max&&(it=he.exceedFormatter(vt,{max:he.max}),vt!==it&&ge([fe().selectionStart||0,fe().selectionEnd||0])),H(it),$0(Pe.currentTarget,Pe,d,it)},Ce=function(Pe){K.current=!0,h==null||h(Pe)},Ie=function(Pe){K.current=!1,_e(Pe,Pe.currentTarget.value),v==null||v(Pe)},ve=function(Pe){_e(Pe,Pe.target.value)},xe=function(Pe){var vt=A.onPressEnter,it=A.onKeyDown;Pe.key==="Enter"&&vt&&vt(Pe),it==null||it(Pe)},ye=function(Pe){W(!0),l==null||l(Pe)},De=function(Pe){W(!1),c==null||c(Pe)},ht=function(Pe){H(""),de(),$0(fe(),Pe,d)},Qe=S,Fe;he.show&&(he.showFormatter?Fe=he.showFormatter({value:V,count:$e,maxLength:ue}):Fe="".concat($e).concat(te?" / ".concat(ue):""),Qe=B.createElement(B.Fragment,null,Qe,B.createElement("span",{className:ce("".concat(m,"-data-count"),_==null?void 0:_.count),style:P==null?void 0:P.count},Fe)));var lt=function(Pe){var vt;D==null||D(Pe),(vt=fe())!==null&&vt!==void 0&&vt.style.height&&oe(!0)},Ge=!A.autoSize&&!x&&!p,Xe=B.createElement(C6,{value:V,allowClear:p,handleReset:ht,suffix:Qe,prefixCls:m,classes:{affixWrapper:ce(b==null?void 0:b.affixWrapper,(r={},U(r,"".concat(m,"-show-count"),x),U(r,"".concat(m,"-textarea-allow-clear"),p),r))},disabled:I,focused:N,className:ce(E,Oe&&"".concat(m,"-out-of-range")),style:J(J({},O),ne&&!Ge?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fe=="string"?Fe:void 0}},hidden:R,inputElement:B.createElement(P6,rt({},A,{onKeyDown:xe,onChange:ve,onFocus:ye,onBlur:De,onCompositionStart:Ce,onCompositionEnd:Ie,className:ce(_==null?void 0:_.textarea),style:J(J({},P==null?void 0:P.textarea),{},{resize:O==null?void 0:O.resize}),disabled:I,prefixCls:m,onResize:lt,ref:re}))});return Xe}),M6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const A6=B.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:a,disabled:l,status:c,allowClear:d,classNames:p,rootClassName:g,className:h}=e,v=M6(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:S,direction:C}=u.useContext(It),m=ro(a),b=u.useContext(Ls),x=l??b,{status:w,hasFeedback:E,feedbackIcon:O}=u.useContext(Vc),I=CS(w,c),R=u.useRef(null);u.useImperativeHandle(t,()=>{var k;return{resizableTextArea:(k=R.current)===null||k===void 0?void 0:k.resizableTextArea,focus:j=>{var F,H;E6((H=(F=R.current)===null||F===void 0?void 0:F.resizableTextArea)===null||H===void 0?void 0:H.textArea,j)},blur:()=>{var j;return(j=R.current)===null||j===void 0?void 0:j.blur()}}});const _=S("input",r);let P;typeof d=="object"&&(d!=null&&d.clearIcon)?P=d:d&&(P={clearIcon:u.createElement(Dp,null)});const[D,A]=w4(_);return D(u.createElement(N6,Object.assign({},v,{disabled:x,allowClear:P,className:ce(h,g),classes:{affixWrapper:ce(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:C==="rtl",[`${_}-affix-wrapper-borderless`]:!i,[`${_}-affix-wrapper-sm`]:m==="small",[`${_}-affix-wrapper-lg`]:m==="large",[`${_}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Xf(`${_}-affix-wrapper`,I),A)},classNames:Object.assign(Object.assign({},p),{textarea:ce({[`${_}-borderless`]:!i,[`${_}-sm`]:m==="small",[`${_}-lg`]:m==="large"},Xf(_,I),A,p==null?void 0:p.textarea)}),prefixCls:_,suffix:E&&u.createElement("span",{className:`${_}-textarea-suffix`},O),ref:R})))}),D6=A6;function L6(e,t,n){return typeof n=="boolean"?n:e.length?!0:Wr(t).some(i=>i.type===o1)}const z6=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:i},[`${t}-sider-zero-width-trigger`]:{color:a,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},F6=z6,B6=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:a,triggerBg:l,headerHeight:c,headerPadding:d,headerColor:p,footerPadding:g,triggerHeight:h,zeroTriggerHeight:v,zeroTriggerWidth:S,motionDurationMid:C,motionDurationSlow:m,fontSize:b,borderRadius:x,bodyBg:w,headerBg:E,siderBg:O}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:w,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:O,transition:`all ${C}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:h},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:h,color:i,lineHeight:`${h}px`,textAlign:"center",background:l,cursor:"pointer",transition:`all ${C}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-S,zIndex:1,width:S,height:v,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:O,borderStartStartRadius:0,borderStartEndRadius:x,borderEndEndRadius:x,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-S,borderStartStartRadius:x,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x}}}}},F6(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:c,padding:d,color:p,lineHeight:`${c}px`,background:E,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:g,color:r,fontSize:b,background:a},[`${n}-content`]:{flex:"auto",minHeight:0}}},z1=Dn("Layout",e=>[B6(e)],e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:l,colorTextLightSolid:c,colorBgContainer:d}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${a}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:c,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:i}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var F1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function tu(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>{const a=u.forwardRef((l,c)=>u.createElement(i,Object.assign({ref:c,suffixCls:t,tagName:n},l)));return process.env.NODE_ENV!=="production"&&(a.displayName=r),a}}const ug=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,l=F1(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=u.useContext(It),d=c("layout",n),[p,g]=z1(d),h=r?`${d}-${r}`:d;return p(u.createElement(a,Object.assign({className:ce(n||h,i,g),ref:t},l)))}),j6=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(It),[r,i]=u.useState([]),{prefixCls:a,className:l,rootClassName:c,children:d,hasSider:p,tagName:g,style:h}=e,v=F1(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),S=mr(v,["suffixCls"]),{getPrefixCls:C,layout:m}=u.useContext(It),b=C("layout",a),x=L6(r,d,p),[w,E]=z1(b),O=ce(b,{[`${b}-has-sider`]:x,[`${b}-rtl`]:n==="rtl"},m==null?void 0:m.className,l,c,E),I=u.useMemo(()=>({siderHook:{addSider:R=>{i(_=>[].concat(je(_),[R]))},removeSider:R=>{i(_=>_.filter(P=>P!==R))}}}),[]);return w(u.createElement(r1.Provider,{value:I},u.createElement(g,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},m==null?void 0:m.style),h)},S),d)))}),H6=tu({tagName:"div",displayName:"Layout"})(j6),k6=tu({suffixCls:"header",tagName:"header",displayName:"Header"})(ug),V6=tu({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ug),W6=tu({suffixCls:"content",tagName:"main",displayName:"Content"})(ug),U6=H6,Ws=U6;Ws.Header=k6;Ws.Footer=V6;Ws.Content=W6;Ws.Sider=o1;const Us=Ws;function G6(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e}var K6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const q6=K6;var B1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:q6}))};process.env.NODE_ENV!=="production"&&(B1.displayName="DoubleLeftOutlined");const O0=u.forwardRef(B1);var X6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Y6=X6;var j1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:Y6}))};process.env.NODE_ENV!=="production"&&(j1.displayName="DoubleRightOutlined");const _0=u.forwardRef(j1);var bo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const Z6={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:"页码"};var op=function(e){eo(n,e);var t=to(n);function n(){var r;ar(this,n);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=t.call.apply(t,[this].concat(a)),U(We(r),"state",{goInputText:""}),U(We(r),"getValidValue",function(){var c=r.state.goInputText;return!c||Number.isNaN(c)?void 0:Number(c)}),U(We(r),"buildOptionText",function(c){return"".concat(c," ").concat(r.props.locale.items_per_page)}),U(We(r),"changeSize",function(c){r.props.changeSize(Number(c))}),U(We(r),"handleChange",function(c){r.setState({goInputText:c.target.value})}),U(We(r),"handleBlur",function(c){var d=r.props,p=d.goButton,g=d.quickGo,h=d.rootPrefixCls,v=r.state.goInputText;p||v===""||(r.setState({goInputText:""}),!(c.relatedTarget&&(c.relatedTarget.className.indexOf("".concat(h,"-item-link"))>=0||c.relatedTarget.className.indexOf("".concat(h,"-item"))>=0))&&g(r.getValidValue()))}),U(We(r),"go",function(c){var d=r.state.goInputText;d!==""&&(c.keyCode===bo.ENTER||c.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))}),r}return sr(n,[{key:"getPageSizeOptions",value:function(){var i=this.props,a=i.pageSize,l=i.pageSizeOptions;return l.some(function(c){return c.toString()===a.toString()})?l:l.concat([a.toString()]).sort(function(c,d){var p=Number.isNaN(Number(c))?0:Number(c),g=Number.isNaN(Number(d))?0:Number(d);return p-g})}},{key:"render",value:function(){var i=this,a=this.props,l=a.pageSize,c=a.locale,d=a.rootPrefixCls,p=a.changeSize,g=a.quickGo,h=a.goButton,v=a.selectComponentClass,S=a.buildOptionText,C=a.selectPrefixCls,m=a.disabled,b=this.state.goInputText,x="".concat(d,"-options"),w=v,E=null,O=null,I=null;if(!p&&!g)return null;var R=this.getPageSizeOptions();if(p&&w){var _=R.map(function(P,D){return B.createElement(w.Option,{key:D,value:P.toString()},(S||i.buildOptionText)(P))});E=B.createElement(w,{disabled:m,prefixCls:C,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(l||R[0]).toString(),onChange:this.changeSize,getPopupContainer:function(D){return D.parentNode},"aria-label":c.page_size,defaultOpen:!1},_)}return g&&(h&&(I=typeof h=="boolean"?B.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(x,"-quick-jumper-button")},c.jump_to_confirm):B.createElement("span",{onClick:this.go,onKeyUp:this.go},h)),O=B.createElement("div",{className:"".concat(x,"-quick-jumper")},c.jump_to,B.createElement("input",{disabled:m,type:"text",value:b,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":c.page}),c.page,I)),B.createElement("li",{className:"".concat(x)},E,O)}}]),n}(B.Component);U(op,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var fs=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,l=t.className,c=t.showTitle,d=t.onClick,p=t.onKeyPress,g=t.itemRender,h="".concat(r,"-item"),v=ce(h,"".concat(h,"-").concat(i),(n={},U(n,"".concat(h,"-active"),a),U(n,"".concat(h,"-disabled"),!i),U(n,t.className,l),n)),S=function(){d(i)},C=function(x){p(x,d,i)},m=g(i,"page",B.createElement("a",{rel:"nofollow"},i));return m?B.createElement("li",{title:c?i.toString():null,className:v,onClick:S,onKeyPress:C,tabIndex:0},m):null};function ap(){}function R0(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var Q6=function(t,n,r){return r};function Xi(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var H1=function(e){eo(n,e);var t=to(n);function n(r){var i;ar(this,n),i=t.call(this,r),U(We(i),"paginationNode",B.createRef()),U(We(i),"getJumpPrevPage",function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))}),U(We(i),"getJumpNextPage",function(){return Math.min(Xi(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))}),U(We(i),"getItemIcon",function(p,g){var h=i.props.prefixCls,v=p||B.createElement("button",{type:"button","aria-label":g,className:"".concat(h,"-item-link")});return typeof p=="function"&&(v=B.createElement(p,J({},i.props))),v}),U(We(i),"isValid",function(p){var g=i.props.total;return R0(p)&&p!==i.state.current&&R0(g)&&g>0}),U(We(i),"shouldDisplayQuickJumper",function(){var p=i.props,g=p.showQuickJumper,h=p.total,v=i.state.pageSize;return h<=v?!1:g}),U(We(i),"handleKeyDown",function(p){(p.keyCode===bo.ARROW_UP||p.keyCode===bo.ARROW_DOWN)&&p.preventDefault()}),U(We(i),"handleKeyUp",function(p){var g=i.getValidValue(p),h=i.state.currentInputValue;g!==h&&i.setState({currentInputValue:g}),p.keyCode===bo.ENTER?i.handleChange(g):p.keyCode===bo.ARROW_UP?i.handleChange(g-1):p.keyCode===bo.ARROW_DOWN&&i.handleChange(g+1)}),U(We(i),"handleBlur",function(p){var g=i.getValidValue(p);i.handleChange(g)}),U(We(i),"changePageSize",function(p){var g=i.state.current,h=Xi(p,i.state,i.props);g=g>h?h:g,h===0&&(g=i.state.current),typeof p=="number"&&("pageSize"in i.props||i.setState({pageSize:p}),"current"in i.props||i.setState({current:g,currentInputValue:g})),i.props.onShowSizeChange(g,p),"onChange"in i.props&&i.props.onChange&&i.props.onChange(g,p)}),U(We(i),"handleChange",function(p){var g=i.props,h=g.disabled,v=g.onChange,S=i.state,C=S.pageSize,m=S.current,b=S.currentInputValue;if(i.isValid(p)&&!h){var x=Xi(void 0,i.state,i.props),w=p;return p>x?w=x:p<1&&(w=1),"current"in i.props||i.setState({current:w}),w!==b&&i.setState({currentInputValue:w}),v(w,C),w}return m}),U(We(i),"prev",function(){i.hasPrev()&&i.handleChange(i.state.current-1)}),U(We(i),"next",function(){i.hasNext()&&i.handleChange(i.state.current+1)}),U(We(i),"jumpPrev",function(){i.handleChange(i.getJumpPrevPage())}),U(We(i),"jumpNext",function(){i.handleChange(i.getJumpNextPage())}),U(We(i),"hasPrev",function(){return i.state.current>1}),U(We(i),"hasNext",function(){return i.state.current<Xi(void 0,i.state,i.props)}),U(We(i),"runIfEnter",function(p,g){if(p.key==="Enter"||p.charCode===13){for(var h=arguments.length,v=new Array(h>2?h-2:0),S=2;S<h;S++)v[S-2]=arguments[S];g.apply(void 0,v)}}),U(We(i),"runIfEnterPrev",function(p){i.runIfEnter(p,i.prev)}),U(We(i),"runIfEnterNext",function(p){i.runIfEnter(p,i.next)}),U(We(i),"runIfEnterJumpPrev",function(p){i.runIfEnter(p,i.jumpPrev)}),U(We(i),"runIfEnterJumpNext",function(p){i.runIfEnter(p,i.jumpNext)}),U(We(i),"handleGoTO",function(p){(p.keyCode===bo.ENTER||p.type==="click")&&i.handleChange(i.state.currentInputValue)}),U(We(i),"renderPrev",function(p){var g=i.props,h=g.prevIcon,v=g.itemRender,S=v(p,"prev",i.getItemIcon(h,"prev page")),C=!i.hasPrev();return B.isValidElement(S)?B.cloneElement(S,{disabled:C}):S}),U(We(i),"renderNext",function(p){var g=i.props,h=g.nextIcon,v=g.itemRender,S=v(p,"next",i.getItemIcon(h,"next page")),C=!i.hasNext();return B.isValidElement(S)?B.cloneElement(S,{disabled:C}):S});var a=r.onChange!==ap,l="current"in r;l&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var c=r.defaultCurrent;"current"in r&&(c=r.current);var d=r.defaultPageSize;return"pageSize"in r&&(d=r.pageSize),c=Math.min(c,Xi(d,void 0,r)),i.state={current:c,currentInputValue:c,pageSize:d},i}return sr(n,[{key:"componentDidUpdate",value:function(i,a){var l=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var c=this.paginationNode.current.querySelector(".".concat(l,"-item-").concat(a.current));if(c&&document.activeElement===c){var d;c==null||(d=c.blur)===null||d===void 0||d.call(c)}}}},{key:"getValidValue",value:function(i){var a=i.target.value,l=Xi(void 0,this.state,this.props),c=this.state.currentInputValue,d;return a===""?d=a:Number.isNaN(Number(a))?d=c:a>=l?d=l:d=Number(a),d}},{key:"getShowSizeChanger",value:function(){var i=this.props,a=i.showSizeChanger,l=i.total,c=i.totalBoundaryShowSizeChanger;return typeof a<"u"?a:l>c}},{key:"render",value:function(){var i=this.props,a=i.prefixCls,l=i.className,c=i.style,d=i.disabled,p=i.hideOnSinglePage,g=i.total,h=i.locale,v=i.showQuickJumper,S=i.showLessItems,C=i.showTitle,m=i.showTotal,b=i.simple,x=i.itemRender,w=i.showPrevNextJumpers,E=i.jumpPrevIcon,O=i.jumpNextIcon,I=i.selectComponentClass,R=i.selectPrefixCls,_=i.pageSizeOptions,P=this.state,D=P.current,A=P.pageSize,k=P.currentInputValue;if(p===!0&&g<=A)return null;var j=Xi(void 0,this.state,this.props),F=[],H=null,V=null,L=null,T=null,N=null,W=v&&v.goButton,K=S?1:2,X=D-1>0?D-1:0,Y=D+1<j?D+1:j,ne=Po(this.props,{aria:!0,data:!0}),oe=m&&B.createElement("li",{className:"".concat(a,"-total-text")},m(g,[g===0?0:(D-1)*A+1,D*A>g?g:D*A]));if(b){W&&(typeof W=="boolean"?N=B.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},h.jump_to_confirm):N=B.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W),N=B.createElement("li",{title:C?"".concat(h.jump_to).concat(D,"/").concat(j):null,className:"".concat(a,"-simple-pager")},N));var re=this.renderPrev(X);return B.createElement("ul",rt({className:ce(a,"".concat(a,"-simple"),U({},"".concat(a,"-disabled"),d),l),style:c,ref:this.paginationNode},ne),oe,re?B.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ce("".concat(a,"-prev"),U({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},re):null,B.createElement("li",{title:C?"".concat(D,"/").concat(j):null,className:"".concat(a,"-simple-pager")},B.createElement("input",{type:"text",value:k,disabled:d,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),B.createElement("span",{className:"".concat(a,"-slash")},"/"),j),B.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ce("".concat(a,"-next"),U({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Y)),B.createElement(op,{disabled:d,locale:h,rootPrefixCls:a,selectComponentClass:I,selectPrefixCls:R,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:D,pageSize:A,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:N}))}if(j<=3+K*2){var fe={locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:C,itemRender:x};j||F.push(B.createElement(fs,rt({},fe,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var de=1;de<=j;de+=1){var se=D===de;F.push(B.createElement(fs,rt({},fe,{key:de,page:de,active:se})))}}else{var ee=S?h.prev_3:h.prev_5,ae=S?h.next_3:h.next_5,ge=x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(E,"prev page")),he=x(this.getJumpNextPage(),"jump-next",this.getItemIcon(O,"next page"));w&&(H=ge?B.createElement("li",{title:C?ee:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ce("".concat(a,"-jump-prev"),U({},"".concat(a,"-jump-prev-custom-icon"),!!E))},ge):null,V=he?B.createElement("li",{title:C?ae:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ce("".concat(a,"-jump-next"),U({},"".concat(a,"-jump-next-custom-icon"),!!O))},he):null),T=B.createElement(fs,{locale:h,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:j,page:j,active:!1,showTitle:C,itemRender:x}),L=B.createElement(fs,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:C,itemRender:x});var ue=Math.max(1,D-K),te=Math.min(D+K,j);D-1<=K&&(te=1+K*2),j-D<=K&&(ue=j-K*2);for(var $e=ue;$e<=te;$e+=1){var Oe=D===$e;F.push(B.createElement(fs,{locale:h,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$e,page:$e,active:Oe,showTitle:C,itemRender:x}))}D-1>=K*2&&D!==1+2&&(F[0]=B.cloneElement(F[0],{className:"".concat(a,"-item-after-jump-prev")}),F.unshift(H)),j-D>=K*2&&D!==j-2&&(F[F.length-1]=B.cloneElement(F[F.length-1],{className:"".concat(a,"-item-before-jump-next")}),F.push(V)),ue!==1&&F.unshift(L),te!==j&&F.push(T)}var _e=!this.hasPrev()||!j,Ce=!this.hasNext()||!j,Ie=this.renderPrev(X),ve=this.renderNext(Y);return B.createElement("ul",rt({className:ce(a,l,U({},"".concat(a,"-disabled"),d)),style:c,ref:this.paginationNode},ne),oe,Ie?B.createElement("li",{title:C?h.prev_page:null,onClick:this.prev,tabIndex:_e?null:0,onKeyPress:this.runIfEnterPrev,className:ce("".concat(a,"-prev"),U({},"".concat(a,"-disabled"),_e)),"aria-disabled":_e},Ie):null,F,ve?B.createElement("li",{title:C?h.next_page:null,onClick:this.next,tabIndex:Ce?null:0,onKeyPress:this.runIfEnterNext,className:ce("".concat(a,"-next"),U({},"".concat(a,"-disabled"),Ce)),"aria-disabled":Ce},ve):null,B.createElement(op,{disabled:d,locale:h,rootPrefixCls:a,selectComponentClass:I,selectPrefixCls:R,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:D,pageSize:A,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W}))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var l={};if("current"in i&&(l.current=i.current,i.current!==a.current&&(l.currentInputValue=l.current)),"pageSize"in i&&i.pageSize!==a.pageSize){var c=a.current,d=Xi(i.pageSize,a,i);c=c>d?d:c,"current"in i||(l.current=c,l.currentInputValue=c),l.pageSize=i.pageSize}return l}}]),n}(B.Component);U(H1,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:ap,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ap,locale:Z6,style:{},itemRender:Q6,totalBoundaryShowSizeChanger:50});const k1=e=>u.createElement(Kc,Object.assign({},e,{showSearch:!0,size:"small"})),V1=e=>u.createElement(Kc,Object.assign({},e,{showSearch:!0,size:"middle"}));k1.Option=Kc.Option;V1.Option=Kc.Option;const J6=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},e3=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${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"}}},[`
239
- &${t}-mini ${t}-prev ${t}-item-link,
240
- &${t}-mini ${t}-next ${t}-item-link
241
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},ag(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},t3=e=>{const{componentCls:t}=e;return{[`
242
- &${t}-simple ${t}-prev,
243
- &${t}-simple ${t}-next
244
- `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,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:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},n3=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
245
- ${t}-prev,
246
- ${t}-jump-prev,
247
- ${t}-jump-next
248
- `]:{marginInlineEnd:e.marginXS},[`
249
- ${t}-prev,
250
- ${t}-next,
251
- ${t}-jump-prev,
252
- ${t}-jump-next
253
- `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},sg(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},r3=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,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}}}}},i3=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xn(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),r3(e)),n3(e)),t3(e)),e3(e)),J6(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"}}},o3=e=>{const{componentCls:t}=e;return{[`${t}${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}: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:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},a3=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zc(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},$s(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},$s(e))}}}},s3=Dn("Pagination",e=>{const t=en(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},w1(e),E1(e));return[i3(t),a3(t),e.wireframe&&o3(t)]},e=>({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}));var l3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const W1=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:l,locale:c,selectComponentClass:d,responsive:p,showSizeChanger:g}=e,h=l3(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=DS(p),{getPrefixCls:S,direction:C,pagination:m={}}=u.useContext(It),b=S("pagination",t),[x,w]=s3(b),E=g??m.showSizeChanger,O=u.useMemo(()=>{const j=u.createElement("span",{className:`${b}-item-ellipsis`},"•••"),F=u.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?u.createElement(Cc,null):u.createElement(wc,null)),H=u.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?u.createElement(wc,null):u.createElement(Cc,null)),V=u.createElement("a",{className:`${b}-item-link`},u.createElement("div",{className:`${b}-item-container`},C==="rtl"?u.createElement(_0,{className:`${b}-item-link-icon`}):u.createElement(O0,{className:`${b}-item-link-icon`}),j)),L=u.createElement("a",{className:`${b}-item-link`},u.createElement("div",{className:`${b}-item-container`},C==="rtl"?u.createElement(O0,{className:`${b}-item-link-icon`}):u.createElement(_0,{className:`${b}-item-link-icon`}),j));return{prevIcon:F,nextIcon:H,jumpPrevIcon:V,jumpNextIcon:L}},[C,b]),[I]=_p("Pagination",Nb),R=Object.assign(Object.assign({},I),c),_=ro(l),P=_==="small"||!!(v&&!_&&p),D=S("select",n),A=ce({[`${b}-mini`]:P,[`${b}-rtl`]:C==="rtl"},m==null?void 0:m.className,r,i,w),k=Object.assign(Object.assign({},m==null?void 0:m.style),a);return x(u.createElement(H1,Object.assign({},O,h,{style:k,prefixCls:b,selectPrefixCls:D,className:A,selectComponentClass:d||(P?k1:V1),locale:R,showSizeChanger:E})))};process.env.NODE_ENV!=="production"&&(W1.displayName="Pagination");const c3=W1,u3=new Xt("antSpinMove",{to:{opacity:1}}),d3=new Xt("antRotate",{to:{transform:"rotate(405deg)"}}),f3=e=>(e.dotSize-e.fontSize)/2+2,p3=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},Xn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${e.componentCls}-text`]:{fontSize:e.fontSize,paddingTop:f3(e)},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",pointerEvents:"none",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${e.componentCls}-dot ${e.componentCls}-dot-item`]:{backgroundColor:e.colorWhite},[`${e.componentCls}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.dotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.dotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.dotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.dotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.dotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.dotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.dotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.dotSizeLG/2)-10}}},[`${e.componentCls}-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"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.dotSize-e.marginXXS/2)/2,height:(e.dotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:u3,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:d3,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.dotSizeSM,i:{width:(e.dotSizeSM-e.marginXXS/2)/2,height:(e.dotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.dotSizeLG,i:{width:(e.dotSizeLG-e.marginXXS)/2,height:(e.dotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),g3=Dn("Spin",e=>{const t=en(e,{spinDotDefault:e.colorTextDescription});return[p3(t)]},e=>({contentHeight:400,dotSize:e.controlHeightLG/2,dotSizeSM:e.controlHeightLG*.35,dotSizeLG:e.controlHeight}));var h3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let ac=null;function v3(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:Os(n)?To(n,{className:ce(n.props.className,r)}):Os(ac)?To(ac,{className:ce(ac.props.className,r)}):u.createElement("span",{className:ce(r,`${e}-dot-spin`)},u.createElement("i",{className:`${e}-dot-item`,key:1}),u.createElement("i",{className:`${e}-dot-item`,key:2}),u.createElement("i",{className:`${e}-dot-item`,key:3}),u.createElement("i",{className:`${e}-dot-item`,key:4}))}function m3(e,t){return!!e&&!!t&&!isNaN(Number(t))}const b3=e=>{const{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:d,style:p,children:g,hashId:h,fullscreen:v}=e,S=h3(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId","fullscreen"]),[C,m]=u.useState(()=>n&&!m3(n,r));u.useEffect(()=>{if(n){const P=s6(r,()=>{m(!0)});return P(),()=>{var D;(D=P==null?void 0:P.cancel)===null||D===void 0||D.call(P)}}m(!1)},[r,n]);const b=u.useMemo(()=>typeof g<"u"&&!v,[g,v]);if(process.env.NODE_ENV!=="production"){const P=Yn("Spin");process.env.NODE_ENV!=="production"&&P(!c||b,"usage","`tip` only work in nest pattern.")}const{direction:x,spin:w}=u.useContext(It),E=ce(t,w==null?void 0:w.className,{[`${t}-sm`]:l==="small",[`${t}-lg`]:l==="large",[`${t}-spinning`]:C,[`${t}-show-text`]:!!c,[`${t}-fullscreen`]:v,[`${t}-fullscreen-show`]:v&&C,[`${t}-rtl`]:x==="rtl"},i,a,h),O=ce(`${t}-container`,{[`${t}-blur`]:C}),I=mr(S,["indicator","prefixCls"]),R=Object.assign(Object.assign({},w==null?void 0:w.style),p),_=u.createElement("div",Object.assign({},I,{style:R,className:E,"aria-live":"polite","aria-busy":C}),v3(t,e),c&&(b||v)?u.createElement("div",{className:`${t}-text`},c):null);return b?u.createElement("div",Object.assign({},I,{className:ce(`${t}-nested-loading`,d,h)}),C&&u.createElement("div",{key:"loading"},_),u.createElement("div",{className:O,key:"container"},g)):_},dg=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=u.useContext(It),r=n("spin",t),[i,a]=g3(r),l=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:a});return i(u.createElement(b3,Object.assign({},l)))};dg.setDefaultIndicator=e=>{ac=e};process.env.NODE_ENV!=="production"&&(dg.displayName="Spin");const U1=dg,fg=B.createContext({});fg.Consumer;var G1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const y3=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,l=G1(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=B.useContext(It),d=c("list",t),p=ce(`${d}-item-meta`,n),g=B.createElement("div",{className:`${d}-item-meta-content`},i&&B.createElement("h4",{className:`${d}-item-meta-title`},i),a&&B.createElement("div",{className:`${d}-item-meta-description`},a));return B.createElement("div",Object.assign({},l,{className:p}),r&&B.createElement("div",{className:`${d}-item-meta-avatar`},r),(i||a)&&g)},S3=(e,t)=>{var{prefixCls:n,children:r,actions:i,extra:a,className:l,colStyle:c}=e,d=G1(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:p,itemLayout:g}=B.useContext(fg),{getPrefixCls:h}=B.useContext(It),v=()=>{let w;return B.Children.forEach(r,E=>{typeof E=="string"&&(w=!0)}),w&&B.Children.count(r)>1},S=()=>g==="vertical"?!!a:!v(),C=h("list",n),m=i&&i.length>0&&B.createElement("ul",{className:`${C}-item-action`,key:"actions"},i.map((w,E)=>B.createElement("li",{key:`${C}-item-action-${E}`},w,E!==i.length-1&&B.createElement("em",{className:`${C}-item-action-split`})))),b=p?"div":"li",x=B.createElement(b,Object.assign({},d,p?{}:{ref:t},{className:ce(`${C}-item`,{[`${C}-item-no-flex`]:!S()},l)}),g==="vertical"&&a?[B.createElement("div",{className:`${C}-item-main`,key:"content"},r,m),B.createElement("div",{className:`${C}-item-extra`,key:"extra"},a)]:[r,m,To(a,{key:"extra"})]);return p?B.createElement(b6,{ref:t,flex:1,style:c},x):x},K1=B.forwardRef(S3);K1.Meta=y3;const C3=K1,x3=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:l,marginLG:c,borderRadiusLG:d}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${i}px ${c}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}}}},w3=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:l}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n})`]:{[`${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 ${l}px`}}}}}},E3=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:l,padding:c,itemPadding:d,colorPrimary:p,itemPaddingSM:g,itemPaddingLG:h,paddingXS:v,margin:S,colorText:C,colorTextDescription:m,motionDurationSlow:b,lineWidth:x,headerBg:w,footerBg:E,emptyTextPadding:O,metaMarginBottom:I,avatarMarginRight:R,titleMarginBottom:_,descriptionFontSize:P}=e,D={};return["start","center","end"].forEach(A=>{D[`&-align-${A}`]={textAlign:A}}),{[`${t}`]:Object.assign(Object.assign({},Xn(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:E},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:l},D),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:C,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:C},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,transition:`all ${b}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:m,fontSize:P,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 ${v}px`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:x,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${c}px 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:O,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:S,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:I,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:_,color:C,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:c,marginInlineStart:"auto","> li":{padding:`0 ${c}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${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:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:g},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},$3=Dn("List",e=>{const t=en(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[E3(t),x3(t),w3(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var O3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function nu(e){var t,{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:l,rootClassName:c,style:d,children:p,itemLayout:g,loadMore:h,grid:v,dataSource:S=[],size:C,header:m,footer:b,loading:x=!1,rowKey:w,renderItem:E,locale:O}=e,I=O3(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const R=n&&typeof n=="object"?n:{},[_,P]=u.useState(R.defaultCurrent||1),[D,A]=u.useState(R.defaultPageSize||10),{getPrefixCls:k,renderEmpty:j,direction:F,list:H}=u.useContext(It),V={current:1,total:0},L=ve=>(xe,ye)=>{var De;P(xe),A(ye),n&&n[ve]&&((De=n==null?void 0:n[ve])===null||De===void 0||De.call(n,xe,ye))},T=L("onChange"),N=L("onShowSizeChange"),W=(ve,xe)=>{if(!E)return null;let ye;return typeof w=="function"?ye=w(ve):w?ye=ve[w]:ye=ve.key,ye||(ye=`list-item-${xe}`),u.createElement(u.Fragment,{key:ye},E(ve,xe))},K=()=>!!(h||n||b),X=k("list",r),[Y,ne]=$3(X);let oe=x;typeof oe=="boolean"&&(oe={spinning:oe});const re=oe&&oe.spinning,fe=ro(C);let de="";switch(fe){case"large":de="lg";break;case"small":de="sm";break}const se=ce(X,{[`${X}-vertical`]:g==="vertical",[`${X}-${de}`]:de,[`${X}-split`]:a,[`${X}-bordered`]:i,[`${X}-loading`]:re,[`${X}-grid`]:!!v,[`${X}-something-after-last-item`]:K(),[`${X}-rtl`]:F==="rtl"},H==null?void 0:H.className,l,c,ne),ee=G6(V,{total:S.length,current:_,pageSize:D},n||{}),ae=Math.ceil(ee.total/ee.pageSize);ee.current>ae&&(ee.current=ae);const ge=n?u.createElement("div",{className:ce(`${X}-pagination`,`${X}-pagination-align-${(t=ee==null?void 0:ee.align)!==null&&t!==void 0?t:"end"}`)},u.createElement(c3,Object.assign({},ee,{onChange:T,onShowSizeChange:N}))):null;let he=je(S);n&&S.length>(ee.current-1)*ee.pageSize&&(he=je(S).splice((ee.current-1)*ee.pageSize,ee.pageSize));const ue=Object.keys(v||{}).some(ve=>["xs","sm","md","lg","xl","xxl"].includes(ve)),te=DS(ue),$e=u.useMemo(()=>{for(let ve=0;ve<No.length;ve+=1){const xe=No[ve];if(te[xe])return xe}},[te]),Oe=u.useMemo(()=>{if(!v)return;const ve=$e&&v[$e]?v[$e]:v.column;if(ve)return{width:`${100/ve}%`,maxWidth:`${100/ve}%`}},[v==null?void 0:v.column,$e]);let _e=re&&u.createElement("div",{style:{minHeight:53}});if(he.length>0){const ve=he.map((xe,ye)=>W(xe,ye));_e=v?u.createElement(S6,{gutter:v.gutter},u.Children.map(ve,xe=>u.createElement("div",{key:xe==null?void 0:xe.key,style:Oe},xe))):u.createElement("ul",{className:`${X}-items`},ve)}else!p&&!re&&(_e=u.createElement("div",{className:`${X}-empty-text`},O&&O.emptyText||(j==null?void 0:j("List"))||u.createElement(OS,{componentName:"List"})));const Ce=ee.position||"bottom",Ie=u.useMemo(()=>({grid:v,itemLayout:g}),[JSON.stringify(v),g]);return Y(u.createElement(fg.Provider,{value:Ie},u.createElement("div",Object.assign({style:Object.assign(Object.assign({},H==null?void 0:H.style),d),className:se},I),(Ce==="top"||Ce==="both")&&ge,m&&u.createElement("div",{className:`${X}-header`},m),u.createElement(U1,Object.assign({},oe),_e,p),b&&u.createElement("div",{className:`${X}-footer`},b),h||(Ce==="bottom"||Ce==="both")&&ge)))}process.env.NODE_ENV!=="production"&&(nu.displayName="List");nu.Item=C3;const _3=e=>{const t=e!=null&&e.algorithm?xs(e.algorithm):xs(Ds),n=Object.assign(Object.assign({},Ma),e==null?void 0:e.token);return mb(n,{override:e==null?void 0:e.token},t,Ip)},R3=_3;function I3(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const P3=(e,t)=>{const n=t??Ds(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),I3(t??e)),Hb(r)),{controlHeight:i}),Bb(Object.assign(Object.assign({},n),{controlHeight:i})))},T3=P3,_i=(e,t)=>new Mn(e).setAlpha(t).toRgbString(),ya=(e,t)=>new Mn(e).lighten(t).toHexString(),N3=e=>{const t=Mi(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},M3=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:_i(r,.85),colorTextSecondary:_i(r,.65),colorTextTertiary:_i(r,.45),colorTextQuaternary:_i(r,.25),colorFill:_i(r,.18),colorFillSecondary:_i(r,.12),colorFillTertiary:_i(r,.08),colorFillQuaternary:_i(r,.04),colorBgElevated:ya(n,12),colorBgContainer:ya(n,8),colorBgLayout:ya(n,0),colorBgSpotlight:ya(n,26),colorBgBlur:_i(r,.04),colorBorder:ya(n,26),colorBorderSecondary:ya(n,19)}},A3=(e,t)=>{const n=Object.keys(Rp).map(i=>{const a=Mi(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((l,c,d)=>(l[`${i}-${d+1}`]=a[d],l[`${i}${d+1}`]=a[d],l),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??Ds(e);return Object.assign(Object.assign(Object.assign({},r),n),jb(e,{generateColorPalettes:N3,generateNeutralColorPalettes:M3}))},D3=A3;function L3(){const[e,t,n]=si();return{theme:e,token:t,hashId:n}}const I0={defaultConfig:pc,defaultSeed:pc.token,useToken:L3,defaultAlgorithm:Ds,darkAlgorithm:D3,compactAlgorithm:T3,getDesignToken:R3};var z3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const F3={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},B3=u.forwardRef((e,t)=>{const n=p=>{const{keyCode:g}=p;g===Se.ENTER&&p.preventDefault()},r=p=>{const{keyCode:g}=p,{onClick:h}=e;g===Se.ENTER&&h&&h()},{style:i,noStyle:a,disabled:l}=e,c=z3(e,["style","noStyle","disabled"]);let d={};return a||(d=Object.assign({},F3)),l&&(d.pointerEvents="none"),d=Object.assign(Object.assign({},d),i),u.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},c,{onKeyDown:n,onKeyUp:r,style:d}))}),P0=B3;var j3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const H3=j3;var q1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:H3}))};process.env.NODE_ENV!=="production"&&(q1.displayName="CopyOutlined");const k3=u.forwardRef(q1);var V3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const W3=V3;var X1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:W3}))};process.env.NODE_ENV!=="production"&&(X1.displayName="EditOutlined");const U3=u.forwardRef(X1);var G3=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(i){e.addRange(i)}),t&&t.focus()}},K3=G3,T0={"text/plain":"Text","text/html":"Url",default:"Text"},q3="Copy to clipboard: #{key}, Enter";function X3(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Y3(e,t){var n,r,i,a,l,c,d=!1;t||(t={}),n=t.debug||!1;try{i=K3(),a=document.createRange(),l=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(g){if(g.stopPropagation(),t.format)if(g.preventDefault(),typeof g.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=T0[t.format]||T0.default;window.clipboardData.setData(h,e)}else g.clipboardData.clearData(),g.clipboardData.setData(t.format,e);t.onCopy&&(g.preventDefault(),t.onCopy(g.clipboardData))}),document.body.appendChild(c),a.selectNodeContents(c),l.addRange(a);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");d=!0}catch(g){n&&console.error("unable to copy using execCommand: ",g),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=X3("message"in t?t.message:q3),window.prompt(r,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(a):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return d}var Z3=Y3;const Q3=Di(Z3);var J3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const eF=J3;var Y1=function(t,n){return u.createElement(In,yn({},t,{ref:n,icon:eF}))};process.env.NODE_ENV!=="production"&&(Y1.displayName="EnterOutlined");const tF=u.forwardRef(Y1),nF=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},rF=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
254
- h${r}&,
255
- div&-h${r},
256
- div&-h${r} > textarea,
257
- h${r}
258
- `]=nF(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},iF=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Gb(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},oF=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:C2[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}}),aF=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sF=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),lF=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),cF=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rF(e)),{[`
259
- & + h1${t},
260
- & + h2${t},
261
- & + h3${t},
262
- & + h4${t},
263
- & + h5${t}
264
- `]:{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}}}),oF(e)),iF(e)),{[`
265
- ${t}-expand,
266
- ${t}-edit,
267
- ${t}-copy
268
- `]:Object.assign(Object.assign({},Gb(e)),{marginInlineStart:e.marginXXS})}),aF(e)),sF(e)),lF()),{"&-rtl":{direction:"rtl"}})}},Z1=Dn("Typography",e=>[cF(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),uF=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:l,autoSize:c=!0,value:d,onSave:p,onCancel:g,onEnd:h,component:v,enterIcon:S=u.createElement(tF,null)}=e,C=u.useRef(null),m=u.useRef(!1),b=u.useRef(),[x,w]=u.useState(d);u.useEffect(()=>{w(d)},[d]),u.useEffect(()=>{if(C.current&&C.current.resizableTextArea){const{textArea:H}=C.current.resizableTextArea;H.focus();const{length:V}=H.value;H.setSelectionRange(V,V)}},[]);const E=H=>{let{target:V}=H;w(V.value.replace(/[\n\r]/g,""))},O=()=>{m.current=!0},I=()=>{m.current=!1},R=H=>{let{keyCode:V}=H;m.current||(b.current=V)},_=()=>{p(x.trim())},P=H=>{let{keyCode:V,ctrlKey:L,altKey:T,metaKey:N,shiftKey:W}=H;b.current===V&&!m.current&&!L&&!T&&!N&&!W&&(V===Se.ENTER?(_(),h==null||h()):V===Se.ESC&&g())},D=()=>{_()},A=v?`${t}-${v}`:"",[k,j]=Z1(t),F=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl"},r,A,j);return k(u.createElement("div",{className:F,style:i},u.createElement(D6,{ref:C,maxLength:l,value:x,onChange:E,onKeyDown:R,onKeyUp:P,onCompositionStart:O,onCompositionEnd:I,onBlur:D,"aria-label":n,rows:1,autoSize:c}),S!==null?To(S,{className:`${t}-edit-content-confirm`}):null))},dF=uF;var fF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Q1=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:d,style:p}=e,g=fF(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:h,direction:v,typography:S}=u.useContext(It),C=d??v;let m=t;l&&(m=pi(t,l)),process.env.NODE_ENV!=="production"&&Yn("Typography").deprecated(!l,"setContentRef","ref");const b=h("typography",n),[x,w]=Z1(b),E=ce(b,S==null?void 0:S.className,{[`${b}-rtl`]:C==="rtl"},i,a,w),O=Object.assign(Object.assign({},S==null?void 0:S.style),p);return x(u.createElement(r,Object.assign({className:E,style:O,ref:m},g),c))});process.env.NODE_ENV!=="production"&&(Q1.displayName="Typography");const J1=Q1;function Kd(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const pF=(e,t)=>{const n=u.useRef(!1);u.useEffect(()=>{n.current?e():n.current=!0},t)},gF=pF;function eC(e){const t=typeof e;return t==="string"||t==="number"}function hF(e){let t=0;return e.forEach(n=>{eC(n)?t+=String(n).length:t+=1}),t}function qd(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const a=e[i],c=eC(a)?String(a).length:1,d=n+c;if(d>t){const p=t-n;return r.push(String(a).slice(0,p)),r}r.push(a),n=d}return e}const vF=0,Xl=1,N0=2,Xd=3,Yd=4,tC=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:a,rows:l,onEllipsis:c}=e;const[[d,p,g],h]=u.useState([0,0,0]),[v,S]=u.useState(0),[C,m]=u.useState(vF),[b,x]=u.useState(0),w=u.useRef(null),E=u.useRef(null),O=u.useMemo(()=>Wr(r),[r]),I=u.useMemo(()=>hF(O),[O]),R=u.useMemo(()=>!t||C!==Xd?v&&C!==Yd&&t?n(qd(O,v),v<I):n(O,!1):n(qd(O,p),p<I),[t,C,n,O,p,I]);nn(()=>{t&&i&&a&&I&&(m(Xl),h([0,Math.ceil(I/2),I]))},[t,i,a,r,I,l]),nn(()=>{var A;C===Xl&&x(((A=w.current)===null||A===void 0?void 0:A.offsetHeight)||0)},[C]),nn(()=>{var A,k;if(b){if(C===Xl){const j=((A=E.current)===null||A===void 0?void 0:A.offsetHeight)||0,F=l*b;j<=F?(m(Yd),c(!1)):m(N0)}else if(C===N0)if(d!==g){const j=((k=E.current)===null||k===void 0?void 0:k.offsetHeight)||0,F=l*b;let H=d,V=g;d===g-1?V=d:j<=F?H=p:V=p;const L=Math.ceil((H+V)/2);h([H,L,V])}else m(Xd),S(p),c(!0)}},[C,d,g,l,b]);const _={width:i,whiteSpace:"normal",margin:0,padding:0},P=(A,k,j)=>u.createElement("span",{"aria-hidden":!0,ref:k,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(a/2)*2},j)},A),D=(A,k)=>{const j=qd(O,A);return P(n(j,!0),k,_)};return u.createElement(u.Fragment,null,R,t&&C!==Xd&&C!==Yd&&u.createElement(u.Fragment,null,P("lg",w,{wordBreak:"keep-all",whiteSpace:"nowrap"}),C===Xl?P(n(O,!1),E,_):D(p,E)))};process.env.NODE_ENV!=="production"&&(tC.displayName="Ellipsis");const mF=tC,nC=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:u.createElement(Yf,Object.assign({open:n?void 0:!1},i),r)};process.env.NODE_ENV!=="production"&&(nC.displayName="EllipsisTooltip");const bF=nC;var yF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function SF(e,t){let{mark:n,code:r,underline:i,delete:a,strong:l,keyboard:c,italic:d}=e,p=t;function g(h,v){v&&(p=u.createElement(h,{},p))}return g("strong",l),g("u",i),g("del",a),g("code",r),g("mark",n),g("kbd",c),g("i",d),p}function Yl(e,t,n){return e===!0||e===void 0?t:e||n&&t}function M0(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const CF="...",xF=u.forwardRef((e,t)=>{var n,r,i;const{prefixCls:a,className:l,style:c,type:d,disabled:p,children:g,ellipsis:h,editable:v,copyable:S,component:C,title:m}=e,b=yF(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:w}=u.useContext(It),[E]=_p("Text"),O=u.useRef(null),I=u.useRef(null),R=x("typography",a),_=mr(b,["mark","code","delete","underline","strong","keyboard","italic"]),[P,D]=Kd(v),[A,k]=qn(!1,{value:D.editing}),{triggerType:j=["icon"]}=D,F=Re=>{var He;Re&&((He=D.onStart)===null||He===void 0||He.call(D)),k(Re)};gF(()=>{var Re;A||(Re=I.current)===null||Re===void 0||Re.focus()},[A]);const H=Re=>{Re==null||Re.preventDefault(),F(!0)},V=Re=>{var He;(He=D.onChange)===null||He===void 0||He.call(D,Re),F(!1)},L=()=>{var Re;(Re=D.onCancel)===null||Re===void 0||Re.call(D),F(!1)},[T,N]=Kd(S),[W,K]=u.useState(!1),X=u.useRef(null),Y={};N.format&&(Y.format=N.format);const ne=()=>{X.current&&clearTimeout(X.current)},oe=Re=>{var He;Re==null||Re.preventDefault(),Re==null||Re.stopPropagation(),Q3(N.text||String(g)||"",Y),K(!0),ne(),X.current=setTimeout(()=>{K(!1)},3e3),(He=N.onCopy)===null||He===void 0||He.call(N,Re)};u.useEffect(()=>ne,[]);const[re,fe]=u.useState(!1),[de,se]=u.useState(!1),[ee,ae]=u.useState(!1),[ge,he]=u.useState(!1),[ue,te]=u.useState(!1),[$e,Oe]=u.useState(!0),[_e,Ce]=Kd(h,{expandable:!1}),Ie=_e&&!ee,{rows:ve=1}=Ce,xe=u.useMemo(()=>!Ie||Ce.suffix!==void 0||Ce.onEllipsis||Ce.expandable||P||T,[Ie,Ce,P,T]);nn(()=>{_e&&!xe&&(fe(Rm("webkitLineClamp")),se(Rm("textOverflow")))},[xe,_e]);const ye=u.useMemo(()=>xe?!1:ve===1?de:re,[xe,de,re]),De=Ie&&(ye?ue:ge),ht=Ie&&ve===1&&ye,Qe=Ie&&ve>1&&ye,Fe=Re=>{var He;ae(!0),(He=Ce.onExpand)===null||He===void 0||He.call(Ce,Re)},[lt,Ge]=u.useState(0),[Xe,Ue]=u.useState(0),Pe=(Re,He)=>{let{offsetWidth:Ye}=Re;var Je;Ge(Ye),Ue(parseInt((Je=window.getComputedStyle)===null||Je===void 0?void 0:Je.call(window,He).fontSize,10)||0)},vt=Re=>{var He;he(Re),ge!==Re&&((He=Ce.onEllipsis)===null||He===void 0||He.call(Ce,Re))};u.useEffect(()=>{const Re=O.current;if(_e&&ye&&Re){const He=Qe?Re.offsetHeight<Re.scrollHeight:Re.offsetWidth<Re.scrollWidth;ue!==He&&te(He)}},[_e,ye,g,Qe,$e]),u.useEffect(()=>{const Re=O.current;if(typeof IntersectionObserver>"u"||!Re||!ye||!Ie)return;const He=new IntersectionObserver(()=>{Oe(!!Re.offsetParent)});return He.observe(Re),()=>{He.disconnect()}},[ye,Ie]);let it={};Ce.tooltip===!0?it={title:(n=D.text)!==null&&n!==void 0?n:g}:u.isValidElement(Ce.tooltip)?it={title:Ce.tooltip}:typeof Ce.tooltip=="object"?it=Object.assign({title:(r=D.text)!==null&&r!==void 0?r:g},Ce.tooltip):it={title:Ce.tooltip};const Bt=u.useMemo(()=>{const Re=He=>["string","number"].includes(typeof He);if(!(!_e||ye)){if(Re(D.text))return D.text;if(Re(g))return g;if(Re(m))return m;if(Re(it.title))return it.title}},[_e,ye,m,it.title,De]);if(A)return u.createElement(dF,{value:(i=D.text)!==null&&i!==void 0?i:typeof g=="string"?g:"",onSave:V,onCancel:L,onEnd:D.onEnd,prefixCls:R,className:l,style:c,direction:w,component:C,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});const Ct=()=>{const{expandable:Re,symbol:He}=Ce;if(!Re)return null;let Ye;return He?Ye=He:Ye=E==null?void 0:E.expand,u.createElement("a",{key:"expand",className:`${R}-expand`,onClick:Fe,"aria-label":E==null?void 0:E.expand},Ye)},ft=()=>{if(!P)return;const{icon:Re,tooltip:He}=D,Ye=Wr(He)[0]||(E==null?void 0:E.edit),Je=typeof Ye=="string"?Ye:"";return j.includes("icon")?u.createElement(Yf,{key:"edit",title:He===!1?"":Ye},u.createElement(P0,{ref:I,className:`${R}-edit`,onClick:H,"aria-label":Je},Re||u.createElement(U3,{role:"button"}))):null},ot=()=>{if(!T)return;const{tooltips:Re,icon:He}=N,Ye=M0(Re),Je=M0(He),at=W?Yl(Ye[1],E==null?void 0:E.copied):Yl(Ye[0],E==null?void 0:E.copy),Ke=W?E==null?void 0:E.copied:E==null?void 0:E.copy,mt=typeof at=="string"?at:Ke;return u.createElement(Yf,{key:"copy",title:at},u.createElement(P0,{className:ce(`${R}-copy`,W&&`${R}-copy-success`),onClick:oe,"aria-label":mt},W?Yl(Je[1],u.createElement(IS,null),!0):Yl(Je[0],u.createElement(k3,null),!0)))},zt=Re=>[Re&&Ct(),ft(),ot()],xt=Re=>[Re&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},CF),Ce.suffix,zt(Re)];return u.createElement(Rr,{onResize:Pe,disabled:!Ie||ye},Re=>u.createElement(bF,{tooltipProps:it,enabledEllipsis:Ie,isEllipsis:De},u.createElement(J1,Object.assign({className:ce({[`${R}-${d}`]:d,[`${R}-disabled`]:p,[`${R}-ellipsis`]:_e,[`${R}-single-line`]:Ie&&ve===1,[`${R}-ellipsis-single-line`]:ht,[`${R}-ellipsis-multiple-line`]:Qe},l),prefixCls:a,style:Object.assign(Object.assign({},c),{WebkitLineClamp:Qe?ve:void 0}),component:C,ref:pi(Re,O,t),direction:w,onClick:j.includes("text")?H:void 0,"aria-label":Bt==null?void 0:Bt.toString(),title:m},_),u.createElement(mF,{enabledMeasure:Ie&&!ye,text:g,rows:ve,width:lt,fontSize:Xe,onEllipsis:vt},(He,Ye)=>{let Je=He;return He.length&&Ye&&Bt&&(Je=u.createElement("span",{key:"show-content","aria-hidden":!0},Je)),SF(e,u.createElement(u.Fragment,null,Je,xt(Ye)))}))))}),ru=xF;var wF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EF=u.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=wF(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const l=Yn("Typography.Link");process.env.NODE_ENV!=="production"&&l(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,u.createElement(ru,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),$F=EF,OF=u.forwardRef((e,t)=>u.createElement(ru,Object.assign({ref:t},e,{component:"div"}))),_F=OF;var RF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const IF=(e,t)=>{var{ellipsis:n}=e,r=RF(e,["ellipsis"]);const i=u.useMemo(()=>n&&typeof n=="object"?mr(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const a=Yn("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 u.createElement(ru,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},PF=u.forwardRef(IF);var TF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const A0=[1,2,3,4,5],NF=u.forwardRef((e,t)=>{const{level:n=1}=e,r=TF(e,["level"]);let i;if(process.env.NODE_ENV!=="production"){const a=Yn("Typography.Title");process.env.NODE_ENV!=="production"&&a(A0.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return A0.includes(n)?i=`h${n}`:i="h1",u.createElement(ru,Object.assign({ref:t},r,{component:i}))}),MF=NF,Gs=J1;Gs.Text=PF;Gs.Link=$F;Gs.Title=MF;Gs.Paragraph=_F;const AF=Gs,DF=({...e})=>On.jsx(PT,{...e});const LF=({children:e,...t})=>On.jsx(NN,{...t,children:e}),zF={50:"#ffffff",75:"#fbfcfd",100:"#f5f5f5",150:"#f1f3f9",200:"#e5e5e5",250:"#d6e1e3",300:"#d4d4d4",350:"#c8daec",375:"#bfbfbf",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},FF={50:"#677084",100:"#5c6880",150:"#58669a",200:"#515c7c",300:"#465178",350:"#43464f",375:"#3f4b5c",400:"#3d4561",450:"#333b57",475:"#2b344c",500:"#293245",550:"#262e47",600:"#232b3b",700:"#1d2331",800:"#171d27",900:"#11171e",950:"#0c111a"},BF={100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#788195",600:"#525252",700:"#404040",800:"#262626",900:"#3b404c",925:"#36373b",950:"#171717"},jF={50:"#fffaf5",100:"#fcf3eb",200:"#fce0cf",300:"#fac7b1",400:"#f58d7a",500:"#ef4444",600:"#d93636",700:"#b32525",800:"#8f1818",900:"#6b0e0e",950:"#450606"},HF={50:"#fafcf2",100:"#f5fae6",200:"#e5f5c1",300:"#d2ed9d",400:"#a9e05c",500:"#7ed321",600:"#6abf1b",700:"#529e13",800:"#3d800d",900:"#275e07",950:"#163d03"},kF={50:"#fbf7fc",100:"#f5eff8",200:"#ebdef0",300:"#dbc4e3",400:"#c7a1d1",500:"#ad7abb",600:"#915c9d",700:"#72467b",800:"#633e6a",900:"#543659",950:"#341b37"},VF={50:"#eef5ff",100:"#d9e8ff",200:"#bcd8ff",300:"#8ec0ff",400:"#599cff",500:"#4482ff",600:"#1b55f5",750:"#1890ff",700:"#1440e1",800:"#1734b6",900:"#19318f",950:"#142057"},WF={50:"#fffcf2",100:"#fff8e6",200:"#ffebbf",300:"#fcd997",400:"#fcb44e",500:"#f98003",600:"#e06e02",700:"#ba5202",800:"#963d02",900:"#702900",950:"#471700"},UF={50:"#fcf2f7",100:"#fae6ef",200:"#f5c4d7",300:"#eda1b9",400:"#de5f77",500:"#d2282e",600:"#bd2025",700:"#9c161a",800:"#7d0e11",900:"#5e080a",950:"#3d0405"},ei=16,Wt={akinon:UF,azure:VF,orange:WF,red:jF,green:HF,purple:kF,gray:BF,ebonyClay:FF,neutral:zF};I0.darkAlgorithm,Wt.neutral[100],Wt.neutral[100],Wt.gray[500],Wt.gray[500],Wt.azure[500],Wt.red[500],Wt.ebonyClay[500],Wt.ebonyClay[600],Wt.ebonyClay[400],Wt.ebonyClay[200],Wt.ebonyClay[300],Wt.ebonyClay[300],Wt.ebonyClay[600],Wt.ebonyClay[700],""+I0.getDesignToken().fontFamily,ei*.875,Wt.ebonyClay[500],Wt.ebonyClay[500],Wt.neutral[100],Wt.ebonyClay[500],Wt.ebonyClay[600],Wt.ebonyClay[700],Wt.gray[500],ei*3.25,ei*.625,Wt.azure[500],Wt.ebonyClay[450],Wt.neutral[100],ei*1.25,ei*.875,ei*1.65,Wt.ebonyClay[350],Wt.gray[925],Wt.ebonyClay[475],ei*.875,Wt.ebonyClay[550],Wt.ebonyClay[475],ei*.875,Wt.ebonyClay[550],Wt.ebonyClay[475],ei*.875,Wt.ebonyClay[550];const GF=e=>On.jsx(AF.Text,{...e});o6.Meta;var rC=Symbol.for("immer-nothing"),D0=Symbol.for("immer-draftable"),Ir=Symbol.for("immer-state"),KF=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function vr(e,...t){if(process.env.NODE_ENV!=="production"){const n=KF[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var La=Object.getPrototypeOf;function za(e){return!!e&&!!e[Ir]}function Mo(e){var t;return e?iC(e)||Array.isArray(e)||!!e[D0]||!!((t=e.constructor)!=null&&t[D0])||ou(e)||au(e):!1}var qF=Object.prototype.constructor.toString();function iC(e){if(!e||typeof e!="object")return!1;const t=La(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===qF}function Ts(e,t){iu(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function iu(e){const t=e[Ir];return t?t.type_:Array.isArray(e)?1:ou(e)?2:au(e)?3:0}function sp(e,t){return iu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oC(e,t,n){const r=iu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function XF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ou(e){return e instanceof Map}function au(e){return e instanceof Set}function yo(e){return e.copy_||e.base_}function lp(e,t){if(ou(e))return new Map(e);if(au(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&iC(e))return La(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ir];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const a=r[i],l=n[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(La(e),n)}function pg(e,t=!1){return su(e)||za(e)||!Mo(e)||(iu(e)>1&&(e.set=e.add=e.clear=e.delete=YF),Object.freeze(e),t&&Ts(e,(n,r)=>pg(r,!0))),e}function YF(){vr(2)}function su(e){return Object.isFrozen(e)}var ZF={};function Ao(e){const t=ZF[e];return t||vr(0,e),t}var Ns;function aC(){return Ns}function QF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L0(e,t){t&&(Ao("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cp(e){up(e),e.drafts_.forEach(JF),e.drafts_=null}function up(e){e===Ns&&(Ns=e.parent_)}function z0(e){return Ns=QF(Ns,e)}function JF(e){const t=e[Ir];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function F0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ir].modified_&&(cp(t),vr(4)),Mo(e)&&(e=$c(t,e),t.parent_||Oc(t,e)),t.patches_&&Ao("Patches").generateReplacementPatches_(n[Ir].base_,e,t.patches_,t.inversePatches_)):e=$c(t,n,[]),cp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rC?e:void 0}function $c(e,t,n){if(su(t))return t;const r=t[Ir];if(!r)return Ts(t,(i,a)=>B0(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Oc(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,l=!1;r.type_===3&&(a=new Set(i),i.clear(),l=!0),Ts(a,(c,d)=>B0(e,r,i,c,d,n,l)),Oc(e,i,!1),n&&e.patches_&&Ao("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function B0(e,t,n,r,i,a,l){if(process.env.NODE_ENV!=="production"&&i===n&&vr(5),za(i)){const c=a&&t&&t.type_!==3&&!sp(t.assigned_,r)?a.concat(r):void 0,d=$c(e,i,c);if(oC(n,r,d),za(d))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Mo(i)&&!su(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$c(e,i),(!t||!t.scope_.parent_)&&Oc(e,i)}}function Oc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pg(t,n)}function eB(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:aC(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=gg;n&&(i=[r],a=Ms);const{revoke:l,proxy:c}=Proxy.revocable(i,a);return r.draft_=c,r.revoke_=l,c}var gg={get(e,t){if(t===Ir)return e;const n=yo(e);if(!sp(n,t))return tB(e,n,t);const r=n[t];return e.finalized_||!Mo(r)?r:r===Zd(e.base_,t)?(Qd(e),e.copy_[t]=fp(r,e)):r},has(e,t){return t in yo(e)},ownKeys(e){return Reflect.ownKeys(yo(e))},set(e,t,n){const r=sC(yo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Zd(yo(e),t),a=i==null?void 0:i[Ir];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(XF(n,i)&&(n!==void 0||sp(e.base_,t)))return!0;Qd(e),dp(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Zd(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Qd(e),dp(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=yo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return La(e.base_)},setPrototypeOf(){vr(12)}},Ms={};Ts(gg,(e,t)=>{Ms[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ms.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&vr(13),Ms.set.call(this,e,t,void 0)};Ms.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&vr(14),gg.set.call(this,e[0],t,n,e[0])};function Zd(e,t){const n=e[Ir];return(n?yo(n):e)[t]}function tB(e,t,n){var i;const r=sC(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function sC(e,t){if(!(t in e))return;let n=La(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=La(n)}}function dp(e){e.modified_||(e.modified_=!0,e.parent_&&dp(e.parent_))}function Qd(e){e.copy_||(e.copy_=lp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const l=this;return function(d=a,...p){return l.produce(d,g=>n.call(this,g,...p))}}typeof n!="function"&&vr(6),r!==void 0&&typeof r!="function"&&vr(7);let i;if(Mo(t)){const a=z0(this),l=fp(t,void 0);let c=!0;try{i=n(l),c=!1}finally{c?cp(a):up(a)}return L0(a,r),F0(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===rC&&(i=void 0),this.autoFreeze_&&pg(i,!0),r){const a=[],l=[];Ao("Patches").generateReplacementPatches_(t,i,a,l),r(a,l)}return i}else vr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...c)=>this.produceWithPatches(l,d=>t(d,...c));let r,i;return[this.produce(t,n,(l,c)=>{r=l,i=c}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Mo(e)||vr(8),za(e)&&(e=rB(e));const t=z0(this),n=fp(e,void 0);return n[Ir].isManual_=!0,up(t),n}finishDraft(e,t){const n=e&&e[Ir];(!n||!n.isManual_)&&vr(9);const{scope_:r}=n;return L0(r,t),F0(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ao("Patches").applyPatches_;return za(e)?r(e,t):this.produce(e,i=>r(i,t))}};function fp(e,t){const n=ou(e)?Ao("MapSet").proxyMap_(e,t):au(e)?Ao("MapSet").proxySet_(e,t):eB(e,t);return(t?t.scope_:aC()).drafts_.push(n),n}function rB(e){return za(e)||vr(10,e),lC(e)}function lC(e){if(!Mo(e)||su(e))return e;const t=e[Ir];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=lp(e,t.scope_.immer_.useStrictShallowCopy_)}else n=lp(e,!0);return Ts(n,(r,i)=>{oC(n,r,lC(i))}),t&&(t.finalized_=!1),n}var Pr=new nB,iB=Pr.produce;Pr.produceWithPatches.bind(Pr);Pr.setAutoFreeze.bind(Pr);Pr.setUseStrictShallowCopy.bind(Pr);Pr.applyPatches.bind(Pr);Pr.createDraft.bind(Pr);Pr.finishDraft.bind(Pr);function oB(e,t,n){var r=B.useMemo(function(){return iB(e)},[e]);return B.useReducer(r,t,n)}B.createContext(void 0);var _c={exports:{}};/**
269
- * @license
270
- * Lodash <https://lodash.com/>
271
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
272
- * Released under MIT license <https://lodash.com/license>
273
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
274
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
275
- */_c.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,g="__lodash_placeholder__",h=1,v=2,S=4,C=1,m=2,b=1,x=2,w=4,E=8,O=16,I=32,R=64,_=128,P=256,D=512,A=30,k="...",j=800,F=16,H=1,V=2,L=3,T=1/0,N=9007199254740991,W=17976931348623157e292,K=0/0,X=4294967295,Y=X-1,ne=X>>>1,oe=[["ary",_],["bind",b],["bindKey",x],["curry",E],["curryRight",O],["flip",D],["partial",I],["partialRight",R],["rearg",P]],re="[object Arguments]",fe="[object Array]",de="[object AsyncFunction]",se="[object Boolean]",ee="[object Date]",ae="[object DOMException]",ge="[object Error]",he="[object Function]",ue="[object GeneratorFunction]",te="[object Map]",$e="[object Number]",Oe="[object Null]",_e="[object Object]",Ce="[object Promise]",Ie="[object Proxy]",ve="[object RegExp]",xe="[object Set]",ye="[object String]",De="[object Symbol]",ht="[object Undefined]",Qe="[object WeakMap]",Fe="[object WeakSet]",lt="[object ArrayBuffer]",Ge="[object DataView]",Xe="[object Float32Array]",Ue="[object Float64Array]",Pe="[object Int8Array]",vt="[object Int16Array]",it="[object Int32Array]",Bt="[object Uint8Array]",Ct="[object Uint8ClampedArray]",ft="[object Uint16Array]",ot="[object Uint32Array]",zt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Re=/(__e\(.*?\)|\b__t\)) \+\n'';/g,He=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,Je=RegExp(He.source),at=RegExp(Ye.source),Ke=/<%-([\s\S]+?)%>/g,mt=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Ne.source),bt=/^\s+/,$t=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,At=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Me=/\w*$/,Te=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,Dt=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,cn=/^(?:0|[1-9]\d*)$/,Fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,Zn=/['\n\r\u2028\u2029\\]/g,un="\\ud800-\\udfff",Pn="\\u0300-\\u036f",Gr="\\ufe20-\\ufe2f",lr="\\u20d0-\\u20ff",Tr=Pn+Gr+lr,Kr="\\u2700-\\u27bf",Cn="a-z\\xdf-\\xf6\\xf8-\\xff",Qn="\\xac\\xb1\\xd7\\xf7",qr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",li="\\u2000-\\u206f",Jn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",er="A-Z\\xc0-\\xd6\\xd8-\\xde",cr="\\ufe0e\\ufe0f",gt=Qn+qr+li+Jn,nt="['’]",fn="["+un+"]",wt="["+gt+"]",tt="["+Tr+"]",yt="\\d+",Kt="["+Kr+"]",sn="["+Cn+"]",vn="[^"+un+gt+yt+Kr+Cn+er+"]",xn="\\ud83c[\\udffb-\\udfff]",Vn="(?:"+tt+"|"+xn+")",gi="[^"+un+"]",Li="(?:\\ud83c[\\udde6-\\uddff]){2}",Wn="[\\ud800-\\udbff][\\udc00-\\udfff]",Xr="["+er+"]",io="\\u200d",tr="(?:"+sn+"|"+vn+")",zi="(?:"+Xr+"|"+vn+")",oo="(?:"+nt+"(?:d|ll|m|re|s|t|ve))?",hi="(?:"+nt+"(?:D|LL|M|RE|S|T|VE))?",ao=Vn+"?",Fi="["+cr+"]?",Vo="(?:"+io+"(?:"+[gi,Li,Wn].join("|")+")"+Fi+ao+")*",ka="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Va="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wo=Fi+ao+Vo,lu="(?:"+[Kt,Li,Wn].join("|")+")"+Wo,qe="(?:"+[gi+tt+"?",tt,Li,Wn,fn].join("|")+")",St=RegExp(nt,"g"),pn=RegExp(tt,"g"),mn=RegExp(xn+"(?="+xn+")|"+qe+Wo,"g"),gn=RegExp([Xr+"?"+sn+"+"+oo+"(?="+[wt,Xr,"$"].join("|")+")",zi+"+"+hi+"(?="+[wt,Xr+tr,"$"].join("|")+")",Xr+"?"+tr+"+"+oo,Xr+"+"+hi,Va,ka,yt,lu].join("|"),"g"),Uo=RegExp("["+io+un+Tr+cr+"]"),Wa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Go=-1,dn={};dn[Xe]=dn[Ue]=dn[Pe]=dn[vt]=dn[it]=dn[Bt]=dn[Ct]=dn[ft]=dn[ot]=!0,dn[re]=dn[fe]=dn[lt]=dn[se]=dn[Ge]=dn[ee]=dn[ge]=dn[he]=dn[te]=dn[$e]=dn[_e]=dn[ve]=dn[xe]=dn[ye]=dn[Qe]=!1;var ln={};ln[re]=ln[fe]=ln[lt]=ln[Ge]=ln[se]=ln[ee]=ln[Xe]=ln[Ue]=ln[Pe]=ln[vt]=ln[it]=ln[te]=ln[$e]=ln[_e]=ln[ve]=ln[xe]=ln[ye]=ln[De]=ln[Bt]=ln[Ct]=ln[ft]=ln[ot]=!0,ln[ge]=ln[he]=ln[Qe]=!1;var bC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},CC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xC=parseFloat,wC=parseInt,yg=typeof Vr=="object"&&Vr&&Vr.Object===Object&&Vr,EC=typeof self=="object"&&self&&self.Object===Object&&self,Bn=yg||EC||Function("return this")(),cu=t&&!t.nodeType&&t,so=cu&&!0&&e&&!e.nodeType&&e,Sg=so&&so.exports===cu,uu=Sg&&yg.process,Nr=function(){try{var Z=so&&so.require&&so.require("util").types;return Z||uu&&uu.binding&&uu.binding("util")}catch{}}(),Cg=Nr&&Nr.isArrayBuffer,xg=Nr&&Nr.isDate,wg=Nr&&Nr.isMap,Eg=Nr&&Nr.isRegExp,$g=Nr&&Nr.isSet,Og=Nr&&Nr.isTypedArray;function br(Z,pe,le){switch(le.length){case 0:return Z.call(pe);case 1:return Z.call(pe,le[0]);case 2:return Z.call(pe,le[0],le[1]);case 3:return Z.call(pe,le[0],le[1],le[2])}return Z.apply(pe,le)}function $C(Z,pe,le,Ve){for(var Et=-1,qt=Z==null?0:Z.length;++Et<qt;){var Tn=Z[Et];pe(Ve,Tn,le(Tn),Z)}return Ve}function Mr(Z,pe){for(var le=-1,Ve=Z==null?0:Z.length;++le<Ve&&pe(Z[le],le,Z)!==!1;);return Z}function OC(Z,pe){for(var le=Z==null?0:Z.length;le--&&pe(Z[le],le,Z)!==!1;);return Z}function _g(Z,pe){for(var le=-1,Ve=Z==null?0:Z.length;++le<Ve;)if(!pe(Z[le],le,Z))return!1;return!0}function Bi(Z,pe){for(var le=-1,Ve=Z==null?0:Z.length,Et=0,qt=[];++le<Ve;){var Tn=Z[le];pe(Tn,le,Z)&&(qt[Et++]=Tn)}return qt}function Xs(Z,pe){var le=Z==null?0:Z.length;return!!le&&Ko(Z,pe,0)>-1}function du(Z,pe,le){for(var Ve=-1,Et=Z==null?0:Z.length;++Ve<Et;)if(le(pe,Z[Ve]))return!0;return!1}function hn(Z,pe){for(var le=-1,Ve=Z==null?0:Z.length,Et=Array(Ve);++le<Ve;)Et[le]=pe(Z[le],le,Z);return Et}function ji(Z,pe){for(var le=-1,Ve=pe.length,Et=Z.length;++le<Ve;)Z[Et+le]=pe[le];return Z}function fu(Z,pe,le,Ve){var Et=-1,qt=Z==null?0:Z.length;for(Ve&&qt&&(le=Z[++Et]);++Et<qt;)le=pe(le,Z[Et],Et,Z);return le}function _C(Z,pe,le,Ve){var Et=Z==null?0:Z.length;for(Ve&&Et&&(le=Z[--Et]);Et--;)le=pe(le,Z[Et],Et,Z);return le}function pu(Z,pe){for(var le=-1,Ve=Z==null?0:Z.length;++le<Ve;)if(pe(Z[le],le,Z))return!0;return!1}var RC=gu("length");function IC(Z){return Z.split("")}function PC(Z){return Z.match(At)||[]}function Rg(Z,pe,le){var Ve;return le(Z,function(Et,qt,Tn){if(pe(Et,qt,Tn))return Ve=qt,!1}),Ve}function Ys(Z,pe,le,Ve){for(var Et=Z.length,qt=le+(Ve?1:-1);Ve?qt--:++qt<Et;)if(pe(Z[qt],qt,Z))return qt;return-1}function Ko(Z,pe,le){return pe===pe?kC(Z,pe,le):Ys(Z,Ig,le)}function TC(Z,pe,le,Ve){for(var Et=le-1,qt=Z.length;++Et<qt;)if(Ve(Z[Et],pe))return Et;return-1}function Ig(Z){return Z!==Z}function Pg(Z,pe){var le=Z==null?0:Z.length;return le?vu(Z,pe)/le:K}function gu(Z){return function(pe){return pe==null?n:pe[Z]}}function hu(Z){return function(pe){return Z==null?n:Z[pe]}}function Tg(Z,pe,le,Ve,Et){return Et(Z,function(qt,Tn,on){le=Ve?(Ve=!1,qt):pe(le,qt,Tn,on)}),le}function NC(Z,pe){var le=Z.length;for(Z.sort(pe);le--;)Z[le]=Z[le].value;return Z}function vu(Z,pe){for(var le,Ve=-1,Et=Z.length;++Ve<Et;){var qt=pe(Z[Ve]);qt!==n&&(le=le===n?qt:le+qt)}return le}function mu(Z,pe){for(var le=-1,Ve=Array(Z);++le<Z;)Ve[le]=pe(le);return Ve}function MC(Z,pe){return hn(pe,function(le){return[le,Z[le]]})}function Ng(Z){return Z&&Z.slice(0,Lg(Z)+1).replace(bt,"")}function yr(Z){return function(pe){return Z(pe)}}function bu(Z,pe){return hn(pe,function(le){return Z[le]})}function Ua(Z,pe){return Z.has(pe)}function Mg(Z,pe){for(var le=-1,Ve=Z.length;++le<Ve&&Ko(pe,Z[le],0)>-1;);return le}function Ag(Z,pe){for(var le=Z.length;le--&&Ko(pe,Z[le],0)>-1;);return le}function AC(Z,pe){for(var le=Z.length,Ve=0;le--;)Z[le]===pe&&++Ve;return Ve}var DC=hu(bC),LC=hu(yC);function zC(Z){return"\\"+CC[Z]}function FC(Z,pe){return Z==null?n:Z[pe]}function qo(Z){return Uo.test(Z)}function BC(Z){return Wa.test(Z)}function jC(Z){for(var pe,le=[];!(pe=Z.next()).done;)le.push(pe.value);return le}function yu(Z){var pe=-1,le=Array(Z.size);return Z.forEach(function(Ve,Et){le[++pe]=[Et,Ve]}),le}function Dg(Z,pe){return function(le){return Z(pe(le))}}function Hi(Z,pe){for(var le=-1,Ve=Z.length,Et=0,qt=[];++le<Ve;){var Tn=Z[le];(Tn===pe||Tn===g)&&(Z[le]=g,qt[Et++]=le)}return qt}function Zs(Z){var pe=-1,le=Array(Z.size);return Z.forEach(function(Ve){le[++pe]=Ve}),le}function HC(Z){var pe=-1,le=Array(Z.size);return Z.forEach(function(Ve){le[++pe]=[Ve,Ve]}),le}function kC(Z,pe,le){for(var Ve=le-1,Et=Z.length;++Ve<Et;)if(Z[Ve]===pe)return Ve;return-1}function VC(Z,pe,le){for(var Ve=le+1;Ve--;)if(Z[Ve]===pe)return Ve;return Ve}function Xo(Z){return qo(Z)?UC(Z):RC(Z)}function Yr(Z){return qo(Z)?GC(Z):IC(Z)}function Lg(Z){for(var pe=Z.length;pe--&&$t.test(Z.charAt(pe)););return pe}var WC=hu(SC);function UC(Z){for(var pe=mn.lastIndex=0;mn.test(Z);)++pe;return pe}function GC(Z){return Z.match(mn)||[]}function KC(Z){return Z.match(gn)||[]}var qC=function Z(pe){pe=pe==null?Bn:Yo.defaults(Bn.Object(),pe,Yo.pick(Bn,qs));var le=pe.Array,Ve=pe.Date,Et=pe.Error,qt=pe.Function,Tn=pe.Math,on=pe.Object,Su=pe.RegExp,XC=pe.String,Ar=pe.TypeError,Qs=le.prototype,YC=qt.prototype,Zo=on.prototype,Js=pe["__core-js_shared__"],el=YC.toString,tn=Zo.hasOwnProperty,ZC=0,zg=function(){var o=/[^.]+$/.exec(Js&&Js.keys&&Js.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),tl=Zo.toString,QC=el.call(on),JC=Bn._,ex=Su("^"+el.call(tn).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nl=Sg?pe.Buffer:n,ki=pe.Symbol,rl=pe.Uint8Array,Fg=nl?nl.allocUnsafe:n,il=Dg(on.getPrototypeOf,on),Bg=on.create,jg=Zo.propertyIsEnumerable,ol=Qs.splice,Hg=ki?ki.isConcatSpreadable:n,Ga=ki?ki.iterator:n,lo=ki?ki.toStringTag:n,al=function(){try{var o=go(on,"defineProperty");return o({},"",{}),o}catch{}}(),tx=pe.clearTimeout!==Bn.clearTimeout&&pe.clearTimeout,nx=Ve&&Ve.now!==Bn.Date.now&&Ve.now,rx=pe.setTimeout!==Bn.setTimeout&&pe.setTimeout,sl=Tn.ceil,ll=Tn.floor,Cu=on.getOwnPropertySymbols,ix=nl?nl.isBuffer:n,kg=pe.isFinite,ox=Qs.join,ax=Dg(on.keys,on),Nn=Tn.max,Un=Tn.min,sx=Ve.now,lx=pe.parseInt,Vg=Tn.random,cx=Qs.reverse,xu=go(pe,"DataView"),Ka=go(pe,"Map"),wu=go(pe,"Promise"),Qo=go(pe,"Set"),qa=go(pe,"WeakMap"),Xa=go(on,"create"),cl=qa&&new qa,Jo={},ux=ho(xu),dx=ho(Ka),fx=ho(wu),px=ho(Qo),gx=ho(qa),ul=ki?ki.prototype:n,Ya=ul?ul.valueOf:n,Wg=ul?ul.toString:n;function M(o){if(Sn(o)&&!Ot(o)&&!(o instanceof jt)){if(o instanceof Dr)return o;if(tn.call(o,"__wrapped__"))return Uh(o)}return new Dr(o)}var ea=function(){function o(){}return function(s){if(!bn(s))return{};if(Bg)return Bg(s);o.prototype=s;var f=new o;return o.prototype=n,f}}();function dl(){}function Dr(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}M.templateSettings={escape:Ke,evaluate:mt,interpolate:Ae,variable:"",imports:{_:M}},M.prototype=dl.prototype,M.prototype.constructor=M,Dr.prototype=ea(dl.prototype),Dr.prototype.constructor=Dr;function jt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function hx(){var o=new jt(this.__wrapped__);return o.__actions__=ur(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ur(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ur(this.__views__),o}function vx(){if(this.__filtered__){var o=new jt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function mx(){var o=this.__wrapped__.value(),s=this.__dir__,f=Ot(o),y=s<0,$=f?o.length:0,z=Iw(0,$,this.__views__),G=z.start,q=z.end,Q=q-G,me=y?q:G-1,be=this.__iteratees__,we=be.length,Le=0,Ze=Un(Q,this.__takeCount__);if(!f||!y&&$==Q&&Ze==Q)return gh(o,this.__actions__);var ut=[];e:for(;Q--&&Le<Ze;){me+=s;for(var Mt=-1,dt=o[me];++Mt<we;){var Ft=be[Mt],kt=Ft.iteratee,xr=Ft.type,ir=kt(dt);if(xr==V)dt=ir;else if(!ir){if(xr==H)continue e;break e}}ut[Le++]=dt}return ut}jt.prototype=ea(dl.prototype),jt.prototype.constructor=jt;function co(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var y=o[s];this.set(y[0],y[1])}}function bx(){this.__data__=Xa?Xa(null):{},this.size=0}function yx(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function Sx(o){var s=this.__data__;if(Xa){var f=s[o];return f===d?n:f}return tn.call(s,o)?s[o]:n}function Cx(o){var s=this.__data__;return Xa?s[o]!==n:tn.call(s,o)}function xx(o,s){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=Xa&&s===n?d:s,this}co.prototype.clear=bx,co.prototype.delete=yx,co.prototype.get=Sx,co.prototype.has=Cx,co.prototype.set=xx;function vi(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var y=o[s];this.set(y[0],y[1])}}function wx(){this.__data__=[],this.size=0}function Ex(o){var s=this.__data__,f=fl(s,o);if(f<0)return!1;var y=s.length-1;return f==y?s.pop():ol.call(s,f,1),--this.size,!0}function $x(o){var s=this.__data__,f=fl(s,o);return f<0?n:s[f][1]}function Ox(o){return fl(this.__data__,o)>-1}function _x(o,s){var f=this.__data__,y=fl(f,o);return y<0?(++this.size,f.push([o,s])):f[y][1]=s,this}vi.prototype.clear=wx,vi.prototype.delete=Ex,vi.prototype.get=$x,vi.prototype.has=Ox,vi.prototype.set=_x;function mi(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var y=o[s];this.set(y[0],y[1])}}function Rx(){this.size=0,this.__data__={hash:new co,map:new(Ka||vi),string:new co}}function Ix(o){var s=El(this,o).delete(o);return this.size-=s?1:0,s}function Px(o){return El(this,o).get(o)}function Tx(o){return El(this,o).has(o)}function Nx(o,s){var f=El(this,o),y=f.size;return f.set(o,s),this.size+=f.size==y?0:1,this}mi.prototype.clear=Rx,mi.prototype.delete=Ix,mi.prototype.get=Px,mi.prototype.has=Tx,mi.prototype.set=Nx;function uo(o){var s=-1,f=o==null?0:o.length;for(this.__data__=new mi;++s<f;)this.add(o[s])}function Mx(o){return this.__data__.set(o,d),this}function Ax(o){return this.__data__.has(o)}uo.prototype.add=uo.prototype.push=Mx,uo.prototype.has=Ax;function Zr(o){var s=this.__data__=new vi(o);this.size=s.size}function Dx(){this.__data__=new vi,this.size=0}function Lx(o){var s=this.__data__,f=s.delete(o);return this.size=s.size,f}function zx(o){return this.__data__.get(o)}function Fx(o){return this.__data__.has(o)}function Bx(o,s){var f=this.__data__;if(f instanceof vi){var y=f.__data__;if(!Ka||y.length<i-1)return y.push([o,s]),this.size=++f.size,this;f=this.__data__=new mi(y)}return f.set(o,s),this.size=f.size,this}Zr.prototype.clear=Dx,Zr.prototype.delete=Lx,Zr.prototype.get=zx,Zr.prototype.has=Fx,Zr.prototype.set=Bx;function Ug(o,s){var f=Ot(o),y=!f&&vo(o),$=!f&&!y&&Ki(o),z=!f&&!y&&!$&&ia(o),G=f||y||$||z,q=G?mu(o.length,XC):[],Q=q.length;for(var me in o)(s||tn.call(o,me))&&!(G&&(me=="length"||$&&(me=="offset"||me=="parent")||z&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Ci(me,Q)))&&q.push(me);return q}function Gg(o){var s=o.length;return s?o[Au(0,s-1)]:n}function jx(o,s){return $l(ur(o),fo(s,0,o.length))}function Hx(o){return $l(ur(o))}function Eu(o,s,f){(f!==n&&!Qr(o[s],f)||f===n&&!(s in o))&&bi(o,s,f)}function Za(o,s,f){var y=o[s];(!(tn.call(o,s)&&Qr(y,f))||f===n&&!(s in o))&&bi(o,s,f)}function fl(o,s){for(var f=o.length;f--;)if(Qr(o[f][0],s))return f;return-1}function kx(o,s,f,y){return Vi(o,function($,z,G){s(y,$,f($),G)}),y}function Kg(o,s){return o&&ui(s,Ln(s),o)}function Vx(o,s){return o&&ui(s,fr(s),o)}function bi(o,s,f){s=="__proto__"&&al?al(o,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[s]=f}function $u(o,s){for(var f=-1,y=s.length,$=le(y),z=o==null;++f<y;)$[f]=z?n:od(o,s[f]);return $}function fo(o,s,f){return o===o&&(f!==n&&(o=o<=f?o:f),s!==n&&(o=o>=s?o:s)),o}function Lr(o,s,f,y,$,z){var G,q=s&h,Q=s&v,me=s&S;if(f&&(G=$?f(o,y,$,z):f(o)),G!==n)return G;if(!bn(o))return o;var be=Ot(o);if(be){if(G=Tw(o),!q)return ur(o,G)}else{var we=Gn(o),Le=we==he||we==ue;if(Ki(o))return mh(o,q);if(we==_e||we==re||Le&&!$){if(G=Q||Le?{}:Lh(o),!q)return Q?Sw(o,Vx(G,o)):yw(o,Kg(G,o))}else{if(!ln[we])return $?o:{};G=Nw(o,we,q)}}z||(z=new Zr);var Ze=z.get(o);if(Ze)return Ze;z.set(o,G),dv(o)?o.forEach(function(dt){G.add(Lr(dt,s,f,dt,o,z))}):cv(o)&&o.forEach(function(dt,Ft){G.set(Ft,Lr(dt,s,f,Ft,o,z))});var ut=me?Q?Uu:Wu:Q?fr:Ln,Mt=be?n:ut(o);return Mr(Mt||o,function(dt,Ft){Mt&&(Ft=dt,dt=o[Ft]),Za(G,Ft,Lr(dt,s,f,Ft,o,z))}),G}function Wx(o){var s=Ln(o);return function(f){return qg(f,o,s)}}function qg(o,s,f){var y=f.length;if(o==null)return!y;for(o=on(o);y--;){var $=f[y],z=s[$],G=o[$];if(G===n&&!($ in o)||!z(G))return!1}return!0}function Xg(o,s,f){if(typeof o!="function")throw new Ar(l);return is(function(){o.apply(n,f)},s)}function Qa(o,s,f,y){var $=-1,z=Xs,G=!0,q=o.length,Q=[],me=s.length;if(!q)return Q;f&&(s=hn(s,yr(f))),y?(z=du,G=!1):s.length>=i&&(z=Ua,G=!1,s=new uo(s));e:for(;++$<q;){var be=o[$],we=f==null?be:f(be);if(be=y||be!==0?be:0,G&&we===we){for(var Le=me;Le--;)if(s[Le]===we)continue e;Q.push(be)}else z(s,we,y)||Q.push(be)}return Q}var Vi=xh(ci),Yg=xh(_u,!0);function Ux(o,s){var f=!0;return Vi(o,function(y,$,z){return f=!!s(y,$,z),f}),f}function pl(o,s,f){for(var y=-1,$=o.length;++y<$;){var z=o[y],G=s(z);if(G!=null&&(q===n?G===G&&!Cr(G):f(G,q)))var q=G,Q=z}return Q}function Gx(o,s,f,y){var $=o.length;for(f=Pt(f),f<0&&(f=-f>$?0:$+f),y=y===n||y>$?$:Pt(y),y<0&&(y+=$),y=f>y?0:pv(y);f<y;)o[f++]=s;return o}function Zg(o,s){var f=[];return Vi(o,function(y,$,z){s(y,$,z)&&f.push(y)}),f}function jn(o,s,f,y,$){var z=-1,G=o.length;for(f||(f=Aw),$||($=[]);++z<G;){var q=o[z];s>0&&f(q)?s>1?jn(q,s-1,f,y,$):ji($,q):y||($[$.length]=q)}return $}var Ou=wh(),Qg=wh(!0);function ci(o,s){return o&&Ou(o,s,Ln)}function _u(o,s){return o&&Qg(o,s,Ln)}function gl(o,s){return Bi(s,function(f){return xi(o[f])})}function po(o,s){s=Ui(s,o);for(var f=0,y=s.length;o!=null&&f<y;)o=o[di(s[f++])];return f&&f==y?o:n}function Jg(o,s,f){var y=s(o);return Ot(o)?y:ji(y,f(o))}function nr(o){return o==null?o===n?ht:Oe:lo&&lo in on(o)?Rw(o):Hw(o)}function Ru(o,s){return o>s}function Kx(o,s){return o!=null&&tn.call(o,s)}function qx(o,s){return o!=null&&s in on(o)}function Xx(o,s,f){return o>=Un(s,f)&&o<Nn(s,f)}function Iu(o,s,f){for(var y=f?du:Xs,$=o[0].length,z=o.length,G=z,q=le(z),Q=1/0,me=[];G--;){var be=o[G];G&&s&&(be=hn(be,yr(s))),Q=Un(be.length,Q),q[G]=!f&&(s||$>=120&&be.length>=120)?new uo(G&&be):n}be=o[0];var we=-1,Le=q[0];e:for(;++we<$&&me.length<Q;){var Ze=be[we],ut=s?s(Ze):Ze;if(Ze=f||Ze!==0?Ze:0,!(Le?Ua(Le,ut):y(me,ut,f))){for(G=z;--G;){var Mt=q[G];if(!(Mt?Ua(Mt,ut):y(o[G],ut,f)))continue e}Le&&Le.push(ut),me.push(Ze)}}return me}function Yx(o,s,f,y){return ci(o,function($,z,G){s(y,f($),z,G)}),y}function Ja(o,s,f){s=Ui(s,o),o=jh(o,s);var y=o==null?o:o[di(Fr(s))];return y==null?n:br(y,o,f)}function eh(o){return Sn(o)&&nr(o)==re}function Zx(o){return Sn(o)&&nr(o)==lt}function Qx(o){return Sn(o)&&nr(o)==ee}function es(o,s,f,y,$){return o===s?!0:o==null||s==null||!Sn(o)&&!Sn(s)?o!==o&&s!==s:Jx(o,s,f,y,es,$)}function Jx(o,s,f,y,$,z){var G=Ot(o),q=Ot(s),Q=G?fe:Gn(o),me=q?fe:Gn(s);Q=Q==re?_e:Q,me=me==re?_e:me;var be=Q==_e,we=me==_e,Le=Q==me;if(Le&&Ki(o)){if(!Ki(s))return!1;G=!0,be=!1}if(Le&&!be)return z||(z=new Zr),G||ia(o)?Mh(o,s,f,y,$,z):Ow(o,s,Q,f,y,$,z);if(!(f&C)){var Ze=be&&tn.call(o,"__wrapped__"),ut=we&&tn.call(s,"__wrapped__");if(Ze||ut){var Mt=Ze?o.value():o,dt=ut?s.value():s;return z||(z=new Zr),$(Mt,dt,f,y,z)}}return Le?(z||(z=new Zr),_w(o,s,f,y,$,z)):!1}function ew(o){return Sn(o)&&Gn(o)==te}function Pu(o,s,f,y){var $=f.length,z=$,G=!y;if(o==null)return!z;for(o=on(o);$--;){var q=f[$];if(G&&q[2]?q[1]!==o[q[0]]:!(q[0]in o))return!1}for(;++$<z;){q=f[$];var Q=q[0],me=o[Q],be=q[1];if(G&&q[2]){if(me===n&&!(Q in o))return!1}else{var we=new Zr;if(y)var Le=y(me,be,Q,o,s,we);if(!(Le===n?es(be,me,C|m,y,we):Le))return!1}}return!0}function th(o){if(!bn(o)||Lw(o))return!1;var s=xi(o)?ex:Dt;return s.test(ho(o))}function tw(o){return Sn(o)&&nr(o)==ve}function nw(o){return Sn(o)&&Gn(o)==xe}function rw(o){return Sn(o)&&Tl(o.length)&&!!dn[nr(o)]}function nh(o){return typeof o=="function"?o:o==null?pr:typeof o=="object"?Ot(o)?oh(o[0],o[1]):ih(o):Ev(o)}function Tu(o){if(!rs(o))return ax(o);var s=[];for(var f in on(o))tn.call(o,f)&&f!="constructor"&&s.push(f);return s}function iw(o){if(!bn(o))return jw(o);var s=rs(o),f=[];for(var y in o)y=="constructor"&&(s||!tn.call(o,y))||f.push(y);return f}function Nu(o,s){return o<s}function rh(o,s){var f=-1,y=dr(o)?le(o.length):[];return Vi(o,function($,z,G){y[++f]=s($,z,G)}),y}function ih(o){var s=Ku(o);return s.length==1&&s[0][2]?Fh(s[0][0],s[0][1]):function(f){return f===o||Pu(f,o,s)}}function oh(o,s){return Xu(o)&&zh(s)?Fh(di(o),s):function(f){var y=od(f,o);return y===n&&y===s?ad(f,o):es(s,y,C|m)}}function hl(o,s,f,y,$){o!==s&&Ou(s,function(z,G){if($||($=new Zr),bn(z))ow(o,s,G,f,hl,y,$);else{var q=y?y(Zu(o,G),z,G+"",o,s,$):n;q===n&&(q=z),Eu(o,G,q)}},fr)}function ow(o,s,f,y,$,z,G){var q=Zu(o,f),Q=Zu(s,f),me=G.get(Q);if(me){Eu(o,f,me);return}var be=z?z(q,Q,f+"",o,s,G):n,we=be===n;if(we){var Le=Ot(Q),Ze=!Le&&Ki(Q),ut=!Le&&!Ze&&ia(Q);be=Q,Le||Ze||ut?Ot(q)?be=q:wn(q)?be=ur(q):Ze?(we=!1,be=mh(Q,!0)):ut?(we=!1,be=bh(Q,!0)):be=[]:os(Q)||vo(Q)?(be=q,vo(q)?be=gv(q):(!bn(q)||xi(q))&&(be=Lh(Q))):we=!1}we&&(G.set(Q,be),$(be,Q,y,z,G),G.delete(Q)),Eu(o,f,be)}function ah(o,s){var f=o.length;if(f)return s+=s<0?f:0,Ci(s,f)?o[s]:n}function sh(o,s,f){s.length?s=hn(s,function(z){return Ot(z)?function(G){return po(G,z.length===1?z[0]:z)}:z}):s=[pr];var y=-1;s=hn(s,yr(st()));var $=rh(o,function(z,G,q){var Q=hn(s,function(me){return me(z)});return{criteria:Q,index:++y,value:z}});return NC($,function(z,G){return bw(z,G,f)})}function aw(o,s){return lh(o,s,function(f,y){return ad(o,y)})}function lh(o,s,f){for(var y=-1,$=s.length,z={};++y<$;){var G=s[y],q=po(o,G);f(q,G)&&ts(z,Ui(G,o),q)}return z}function sw(o){return function(s){return po(s,o)}}function Mu(o,s,f,y){var $=y?TC:Ko,z=-1,G=s.length,q=o;for(o===s&&(s=ur(s)),f&&(q=hn(o,yr(f)));++z<G;)for(var Q=0,me=s[z],be=f?f(me):me;(Q=$(q,be,Q,y))>-1;)q!==o&&ol.call(q,Q,1),ol.call(o,Q,1);return o}function ch(o,s){for(var f=o?s.length:0,y=f-1;f--;){var $=s[f];if(f==y||$!==z){var z=$;Ci($)?ol.call(o,$,1):zu(o,$)}}return o}function Au(o,s){return o+ll(Vg()*(s-o+1))}function lw(o,s,f,y){for(var $=-1,z=Nn(sl((s-o)/(f||1)),0),G=le(z);z--;)G[y?z:++$]=o,o+=f;return G}function Du(o,s){var f="";if(!o||s<1||s>N)return f;do s%2&&(f+=o),s=ll(s/2),s&&(o+=o);while(s);return f}function Lt(o,s){return Qu(Bh(o,s,pr),o+"")}function cw(o){return Gg(oa(o))}function uw(o,s){var f=oa(o);return $l(f,fo(s,0,f.length))}function ts(o,s,f,y){if(!bn(o))return o;s=Ui(s,o);for(var $=-1,z=s.length,G=z-1,q=o;q!=null&&++$<z;){var Q=di(s[$]),me=f;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return o;if($!=G){var be=q[Q];me=y?y(be,Q,q):n,me===n&&(me=bn(be)?be:Ci(s[$+1])?[]:{})}Za(q,Q,me),q=q[Q]}return o}var uh=cl?function(o,s){return cl.set(o,s),o}:pr,dw=al?function(o,s){return al(o,"toString",{configurable:!0,enumerable:!1,value:ld(s),writable:!0})}:pr;function fw(o){return $l(oa(o))}function zr(o,s,f){var y=-1,$=o.length;s<0&&(s=-s>$?0:$+s),f=f>$?$:f,f<0&&(f+=$),$=s>f?0:f-s>>>0,s>>>=0;for(var z=le($);++y<$;)z[y]=o[y+s];return z}function pw(o,s){var f;return Vi(o,function(y,$,z){return f=s(y,$,z),!f}),!!f}function vl(o,s,f){var y=0,$=o==null?y:o.length;if(typeof s=="number"&&s===s&&$<=ne){for(;y<$;){var z=y+$>>>1,G=o[z];G!==null&&!Cr(G)&&(f?G<=s:G<s)?y=z+1:$=z}return $}return Lu(o,s,pr,f)}function Lu(o,s,f,y){var $=0,z=o==null?0:o.length;if(z===0)return 0;s=f(s);for(var G=s!==s,q=s===null,Q=Cr(s),me=s===n;$<z;){var be=ll(($+z)/2),we=f(o[be]),Le=we!==n,Ze=we===null,ut=we===we,Mt=Cr(we);if(G)var dt=y||ut;else me?dt=ut&&(y||Le):q?dt=ut&&Le&&(y||!Ze):Q?dt=ut&&Le&&!Ze&&(y||!Mt):Ze||Mt?dt=!1:dt=y?we<=s:we<s;dt?$=be+1:z=be}return Un(z,Y)}function dh(o,s){for(var f=-1,y=o.length,$=0,z=[];++f<y;){var G=o[f],q=s?s(G):G;if(!f||!Qr(q,Q)){var Q=q;z[$++]=G===0?0:G}}return z}function fh(o){return typeof o=="number"?o:Cr(o)?K:+o}function Sr(o){if(typeof o=="string")return o;if(Ot(o))return hn(o,Sr)+"";if(Cr(o))return Wg?Wg.call(o):"";var s=o+"";return s=="0"&&1/o==-T?"-0":s}function Wi(o,s,f){var y=-1,$=Xs,z=o.length,G=!0,q=[],Q=q;if(f)G=!1,$=du;else if(z>=i){var me=s?null:Ew(o);if(me)return Zs(me);G=!1,$=Ua,Q=new uo}else Q=s?[]:q;e:for(;++y<z;){var be=o[y],we=s?s(be):be;if(be=f||be!==0?be:0,G&&we===we){for(var Le=Q.length;Le--;)if(Q[Le]===we)continue e;s&&Q.push(we),q.push(be)}else $(Q,we,f)||(Q!==q&&Q.push(we),q.push(be))}return q}function zu(o,s){return s=Ui(s,o),o=jh(o,s),o==null||delete o[di(Fr(s))]}function ph(o,s,f,y){return ts(o,s,f(po(o,s)),y)}function ml(o,s,f,y){for(var $=o.length,z=y?$:-1;(y?z--:++z<$)&&s(o[z],z,o););return f?zr(o,y?0:z,y?z+1:$):zr(o,y?z+1:0,y?$:z)}function gh(o,s){var f=o;return f instanceof jt&&(f=f.value()),fu(s,function(y,$){return $.func.apply($.thisArg,ji([y],$.args))},f)}function Fu(o,s,f){var y=o.length;if(y<2)return y?Wi(o[0]):[];for(var $=-1,z=le(y);++$<y;)for(var G=o[$],q=-1;++q<y;)q!=$&&(z[$]=Qa(z[$]||G,o[q],s,f));return Wi(jn(z,1),s,f)}function hh(o,s,f){for(var y=-1,$=o.length,z=s.length,G={};++y<$;){var q=y<z?s[y]:n;f(G,o[y],q)}return G}function Bu(o){return wn(o)?o:[]}function ju(o){return typeof o=="function"?o:pr}function Ui(o,s){return Ot(o)?o:Xu(o,s)?[o]:Wh(Yt(o))}var gw=Lt;function Gi(o,s,f){var y=o.length;return f=f===n?y:f,!s&&f>=y?o:zr(o,s,f)}var vh=tx||function(o){return Bn.clearTimeout(o)};function mh(o,s){if(s)return o.slice();var f=o.length,y=Fg?Fg(f):new o.constructor(f);return o.copy(y),y}function Hu(o){var s=new o.constructor(o.byteLength);return new rl(s).set(new rl(o)),s}function hw(o,s){var f=s?Hu(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function vw(o){var s=new o.constructor(o.source,Me.exec(o));return s.lastIndex=o.lastIndex,s}function mw(o){return Ya?on(Ya.call(o)):{}}function bh(o,s){var f=s?Hu(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function yh(o,s){if(o!==s){var f=o!==n,y=o===null,$=o===o,z=Cr(o),G=s!==n,q=s===null,Q=s===s,me=Cr(s);if(!q&&!me&&!z&&o>s||z&&G&&Q&&!q&&!me||y&&G&&Q||!f&&Q||!$)return 1;if(!y&&!z&&!me&&o<s||me&&f&&$&&!y&&!z||q&&f&&$||!G&&$||!Q)return-1}return 0}function bw(o,s,f){for(var y=-1,$=o.criteria,z=s.criteria,G=$.length,q=f.length;++y<G;){var Q=yh($[y],z[y]);if(Q){if(y>=q)return Q;var me=f[y];return Q*(me=="desc"?-1:1)}}return o.index-s.index}function Sh(o,s,f,y){for(var $=-1,z=o.length,G=f.length,q=-1,Q=s.length,me=Nn(z-G,0),be=le(Q+me),we=!y;++q<Q;)be[q]=s[q];for(;++$<G;)(we||$<z)&&(be[f[$]]=o[$]);for(;me--;)be[q++]=o[$++];return be}function Ch(o,s,f,y){for(var $=-1,z=o.length,G=-1,q=f.length,Q=-1,me=s.length,be=Nn(z-q,0),we=le(be+me),Le=!y;++$<be;)we[$]=o[$];for(var Ze=$;++Q<me;)we[Ze+Q]=s[Q];for(;++G<q;)(Le||$<z)&&(we[Ze+f[G]]=o[$++]);return we}function ur(o,s){var f=-1,y=o.length;for(s||(s=le(y));++f<y;)s[f]=o[f];return s}function ui(o,s,f,y){var $=!f;f||(f={});for(var z=-1,G=s.length;++z<G;){var q=s[z],Q=y?y(f[q],o[q],q,f,o):n;Q===n&&(Q=o[q]),$?bi(f,q,Q):Za(f,q,Q)}return f}function yw(o,s){return ui(o,qu(o),s)}function Sw(o,s){return ui(o,Ah(o),s)}function bl(o,s){return function(f,y){var $=Ot(f)?$C:kx,z=s?s():{};return $(f,o,st(y,2),z)}}function ta(o){return Lt(function(s,f){var y=-1,$=f.length,z=$>1?f[$-1]:n,G=$>2?f[2]:n;for(z=o.length>3&&typeof z=="function"?($--,z):n,G&&rr(f[0],f[1],G)&&(z=$<3?n:z,$=1),s=on(s);++y<$;){var q=f[y];q&&o(s,q,y,z)}return s})}function xh(o,s){return function(f,y){if(f==null)return f;if(!dr(f))return o(f,y);for(var $=f.length,z=s?$:-1,G=on(f);(s?z--:++z<$)&&y(G[z],z,G)!==!1;);return f}}function wh(o){return function(s,f,y){for(var $=-1,z=on(s),G=y(s),q=G.length;q--;){var Q=G[o?q:++$];if(f(z[Q],Q,z)===!1)break}return s}}function Cw(o,s,f){var y=s&b,$=ns(o);function z(){var G=this&&this!==Bn&&this instanceof z?$:o;return G.apply(y?f:this,arguments)}return z}function Eh(o){return function(s){s=Yt(s);var f=qo(s)?Yr(s):n,y=f?f[0]:s.charAt(0),$=f?Gi(f,1).join(""):s.slice(1);return y[o]()+$}}function na(o){return function(s){return fu(xv(Cv(s).replace(St,"")),o,"")}}function ns(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=ea(o.prototype),y=o.apply(f,s);return bn(y)?y:f}}function xw(o,s,f){var y=ns(o);function $(){for(var z=arguments.length,G=le(z),q=z,Q=ra($);q--;)G[q]=arguments[q];var me=z<3&&G[0]!==Q&&G[z-1]!==Q?[]:Hi(G,Q);if(z-=me.length,z<f)return Ih(o,s,yl,$.placeholder,n,G,me,n,n,f-z);var be=this&&this!==Bn&&this instanceof $?y:o;return br(be,this,G)}return $}function $h(o){return function(s,f,y){var $=on(s);if(!dr(s)){var z=st(f,3);s=Ln(s),f=function(q){return z($[q],q,$)}}var G=o(s,f,y);return G>-1?$[z?s[G]:G]:n}}function Oh(o){return Si(function(s){var f=s.length,y=f,$=Dr.prototype.thru;for(o&&s.reverse();y--;){var z=s[y];if(typeof z!="function")throw new Ar(l);if($&&!G&&wl(z)=="wrapper")var G=new Dr([],!0)}for(y=G?y:f;++y<f;){z=s[y];var q=wl(z),Q=q=="wrapper"?Gu(z):n;Q&&Yu(Q[0])&&Q[1]==(_|E|I|P)&&!Q[4].length&&Q[9]==1?G=G[wl(Q[0])].apply(G,Q[3]):G=z.length==1&&Yu(z)?G[q]():G.thru(z)}return function(){var me=arguments,be=me[0];if(G&&me.length==1&&Ot(be))return G.plant(be).value();for(var we=0,Le=f?s[we].apply(this,me):be;++we<f;)Le=s[we].call(this,Le);return Le}})}function yl(o,s,f,y,$,z,G,q,Q,me){var be=s&_,we=s&b,Le=s&x,Ze=s&(E|O),ut=s&D,Mt=Le?n:ns(o);function dt(){for(var Ft=arguments.length,kt=le(Ft),xr=Ft;xr--;)kt[xr]=arguments[xr];if(Ze)var ir=ra(dt),wr=AC(kt,ir);if(y&&(kt=Sh(kt,y,$,Ze)),z&&(kt=Ch(kt,z,G,Ze)),Ft-=wr,Ze&&Ft<me){var En=Hi(kt,ir);return Ih(o,s,yl,dt.placeholder,f,kt,En,q,Q,me-Ft)}var Jr=we?f:this,Ei=Le?Jr[o]:o;return Ft=kt.length,q?kt=kw(kt,q):ut&&Ft>1&&kt.reverse(),be&&Q<Ft&&(kt.length=Q),this&&this!==Bn&&this instanceof dt&&(Ei=Mt||ns(Ei)),Ei.apply(Jr,kt)}return dt}function _h(o,s){return function(f,y){return Yx(f,o,s(y),{})}}function Sl(o,s){return function(f,y){var $;if(f===n&&y===n)return s;if(f!==n&&($=f),y!==n){if($===n)return y;typeof f=="string"||typeof y=="string"?(f=Sr(f),y=Sr(y)):(f=fh(f),y=fh(y)),$=o(f,y)}return $}}function ku(o){return Si(function(s){return s=hn(s,yr(st())),Lt(function(f){var y=this;return o(s,function($){return br($,y,f)})})})}function Cl(o,s){s=s===n?" ":Sr(s);var f=s.length;if(f<2)return f?Du(s,o):s;var y=Du(s,sl(o/Xo(s)));return qo(s)?Gi(Yr(y),0,o).join(""):y.slice(0,o)}function ww(o,s,f,y){var $=s&b,z=ns(o);function G(){for(var q=-1,Q=arguments.length,me=-1,be=y.length,we=le(be+Q),Le=this&&this!==Bn&&this instanceof G?z:o;++me<be;)we[me]=y[me];for(;Q--;)we[me++]=arguments[++q];return br(Le,$?f:this,we)}return G}function Rh(o){return function(s,f,y){return y&&typeof y!="number"&&rr(s,f,y)&&(f=y=n),s=wi(s),f===n?(f=s,s=0):f=wi(f),y=y===n?s<f?1:-1:wi(y),lw(s,f,y,o)}}function xl(o){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=Br(s),f=Br(f)),o(s,f)}}function Ih(o,s,f,y,$,z,G,q,Q,me){var be=s&E,we=be?G:n,Le=be?n:G,Ze=be?z:n,ut=be?n:z;s|=be?I:R,s&=~(be?R:I),s&w||(s&=~(b|x));var Mt=[o,s,$,Ze,we,ut,Le,q,Q,me],dt=f.apply(n,Mt);return Yu(o)&&Hh(dt,Mt),dt.placeholder=y,kh(dt,o,s)}function Vu(o){var s=Tn[o];return function(f,y){if(f=Br(f),y=y==null?0:Un(Pt(y),292),y&&kg(f)){var $=(Yt(f)+"e").split("e"),z=s($[0]+"e"+(+$[1]+y));return $=(Yt(z)+"e").split("e"),+($[0]+"e"+(+$[1]-y))}return s(f)}}var Ew=Qo&&1/Zs(new Qo([,-0]))[1]==T?function(o){return new Qo(o)}:dd;function Ph(o){return function(s){var f=Gn(s);return f==te?yu(s):f==xe?HC(s):MC(s,o(s))}}function yi(o,s,f,y,$,z,G,q){var Q=s&x;if(!Q&&typeof o!="function")throw new Ar(l);var me=y?y.length:0;if(me||(s&=~(I|R),y=$=n),G=G===n?G:Nn(Pt(G),0),q=q===n?q:Pt(q),me-=$?$.length:0,s&R){var be=y,we=$;y=$=n}var Le=Q?n:Gu(o),Ze=[o,s,f,y,$,be,we,z,G,q];if(Le&&Bw(Ze,Le),o=Ze[0],s=Ze[1],f=Ze[2],y=Ze[3],$=Ze[4],q=Ze[9]=Ze[9]===n?Q?0:o.length:Nn(Ze[9]-me,0),!q&&s&(E|O)&&(s&=~(E|O)),!s||s==b)var ut=Cw(o,s,f);else s==E||s==O?ut=xw(o,s,q):(s==I||s==(b|I))&&!$.length?ut=ww(o,s,f,y):ut=yl.apply(n,Ze);var Mt=Le?uh:Hh;return kh(Mt(ut,Ze),o,s)}function Th(o,s,f,y){return o===n||Qr(o,Zo[f])&&!tn.call(y,f)?s:o}function Nh(o,s,f,y,$,z){return bn(o)&&bn(s)&&(z.set(s,o),hl(o,s,n,Nh,z),z.delete(s)),o}function $w(o){return os(o)?n:o}function Mh(o,s,f,y,$,z){var G=f&C,q=o.length,Q=s.length;if(q!=Q&&!(G&&Q>q))return!1;var me=z.get(o),be=z.get(s);if(me&&be)return me==s&&be==o;var we=-1,Le=!0,Ze=f&m?new uo:n;for(z.set(o,s),z.set(s,o);++we<q;){var ut=o[we],Mt=s[we];if(y)var dt=G?y(Mt,ut,we,s,o,z):y(ut,Mt,we,o,s,z);if(dt!==n){if(dt)continue;Le=!1;break}if(Ze){if(!pu(s,function(Ft,kt){if(!Ua(Ze,kt)&&(ut===Ft||$(ut,Ft,f,y,z)))return Ze.push(kt)})){Le=!1;break}}else if(!(ut===Mt||$(ut,Mt,f,y,z))){Le=!1;break}}return z.delete(o),z.delete(s),Le}function Ow(o,s,f,y,$,z,G){switch(f){case Ge:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case lt:return!(o.byteLength!=s.byteLength||!z(new rl(o),new rl(s)));case se:case ee:case $e:return Qr(+o,+s);case ge:return o.name==s.name&&o.message==s.message;case ve:case ye:return o==s+"";case te:var q=yu;case xe:var Q=y&C;if(q||(q=Zs),o.size!=s.size&&!Q)return!1;var me=G.get(o);if(me)return me==s;y|=m,G.set(o,s);var be=Mh(q(o),q(s),y,$,z,G);return G.delete(o),be;case De:if(Ya)return Ya.call(o)==Ya.call(s)}return!1}function _w(o,s,f,y,$,z){var G=f&C,q=Wu(o),Q=q.length,me=Wu(s),be=me.length;if(Q!=be&&!G)return!1;for(var we=Q;we--;){var Le=q[we];if(!(G?Le in s:tn.call(s,Le)))return!1}var Ze=z.get(o),ut=z.get(s);if(Ze&&ut)return Ze==s&&ut==o;var Mt=!0;z.set(o,s),z.set(s,o);for(var dt=G;++we<Q;){Le=q[we];var Ft=o[Le],kt=s[Le];if(y)var xr=G?y(kt,Ft,Le,s,o,z):y(Ft,kt,Le,o,s,z);if(!(xr===n?Ft===kt||$(Ft,kt,f,y,z):xr)){Mt=!1;break}dt||(dt=Le=="constructor")}if(Mt&&!dt){var ir=o.constructor,wr=s.constructor;ir!=wr&&"constructor"in o&&"constructor"in s&&!(typeof ir=="function"&&ir instanceof ir&&typeof wr=="function"&&wr instanceof wr)&&(Mt=!1)}return z.delete(o),z.delete(s),Mt}function Si(o){return Qu(Bh(o,n,qh),o+"")}function Wu(o){return Jg(o,Ln,qu)}function Uu(o){return Jg(o,fr,Ah)}var Gu=cl?function(o){return cl.get(o)}:dd;function wl(o){for(var s=o.name+"",f=Jo[s],y=tn.call(Jo,s)?f.length:0;y--;){var $=f[y],z=$.func;if(z==null||z==o)return $.name}return s}function ra(o){var s=tn.call(M,"placeholder")?M:o;return s.placeholder}function st(){var o=M.iteratee||cd;return o=o===cd?nh:o,arguments.length?o(arguments[0],arguments[1]):o}function El(o,s){var f=o.__data__;return Dw(s)?f[typeof s=="string"?"string":"hash"]:f.map}function Ku(o){for(var s=Ln(o),f=s.length;f--;){var y=s[f],$=o[y];s[f]=[y,$,zh($)]}return s}function go(o,s){var f=FC(o,s);return th(f)?f:n}function Rw(o){var s=tn.call(o,lo),f=o[lo];try{o[lo]=n;var y=!0}catch{}var $=tl.call(o);return y&&(s?o[lo]=f:delete o[lo]),$}var qu=Cu?function(o){return o==null?[]:(o=on(o),Bi(Cu(o),function(s){return jg.call(o,s)}))}:fd,Ah=Cu?function(o){for(var s=[];o;)ji(s,qu(o)),o=il(o);return s}:fd,Gn=nr;(xu&&Gn(new xu(new ArrayBuffer(1)))!=Ge||Ka&&Gn(new Ka)!=te||wu&&Gn(wu.resolve())!=Ce||Qo&&Gn(new Qo)!=xe||qa&&Gn(new qa)!=Qe)&&(Gn=function(o){var s=nr(o),f=s==_e?o.constructor:n,y=f?ho(f):"";if(y)switch(y){case ux:return Ge;case dx:return te;case fx:return Ce;case px:return xe;case gx:return Qe}return s});function Iw(o,s,f){for(var y=-1,$=f.length;++y<$;){var z=f[y],G=z.size;switch(z.type){case"drop":o+=G;break;case"dropRight":s-=G;break;case"take":s=Un(s,o+G);break;case"takeRight":o=Nn(o,s-G);break}}return{start:o,end:s}}function Pw(o){var s=o.match(Nt);return s?s[1].split(an):[]}function Dh(o,s,f){s=Ui(s,o);for(var y=-1,$=s.length,z=!1;++y<$;){var G=di(s[y]);if(!(z=o!=null&&f(o,G)))break;o=o[G]}return z||++y!=$?z:($=o==null?0:o.length,!!$&&Tl($)&&Ci(G,$)&&(Ot(o)||vo(o)))}function Tw(o){var s=o.length,f=new o.constructor(s);return s&&typeof o[0]=="string"&&tn.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function Lh(o){return typeof o.constructor=="function"&&!rs(o)?ea(il(o)):{}}function Nw(o,s,f){var y=o.constructor;switch(s){case lt:return Hu(o);case se:case ee:return new y(+o);case Ge:return hw(o,f);case Xe:case Ue:case Pe:case vt:case it:case Bt:case Ct:case ft:case ot:return bh(o,f);case te:return new y;case $e:case ye:return new y(o);case ve:return vw(o);case xe:return new y;case De:return mw(o)}}function Mw(o,s){var f=s.length;if(!f)return o;var y=f-1;return s[y]=(f>1?"& ":"")+s[y],s=s.join(f>2?", ":" "),o.replace(Ut,`{
276
- /* [wrapped with `+s+`] */
277
- `)}function Aw(o){return Ot(o)||vo(o)||!!(Hg&&o&&o[Hg])}function Ci(o,s){var f=typeof o;return s=s??N,!!s&&(f=="number"||f!="symbol"&&cn.test(o))&&o>-1&&o%1==0&&o<s}function rr(o,s,f){if(!bn(f))return!1;var y=typeof s;return(y=="number"?dr(f)&&Ci(s,f.length):y=="string"&&s in f)?Qr(f[s],o):!1}function Xu(o,s){if(Ot(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||Cr(o)?!0:Ee.test(o)||!ke.test(o)||s!=null&&o in on(s)}function Dw(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Yu(o){var s=wl(o),f=M[s];if(typeof f!="function"||!(s in jt.prototype))return!1;if(o===f)return!0;var y=Gu(f);return!!y&&o===y[0]}function Lw(o){return!!zg&&zg in o}var zw=Js?xi:pd;function rs(o){var s=o&&o.constructor,f=typeof s=="function"&&s.prototype||Zo;return o===f}function zh(o){return o===o&&!bn(o)}function Fh(o,s){return function(f){return f==null?!1:f[o]===s&&(s!==n||o in on(f))}}function Fw(o){var s=Il(o,function(y){return f.size===p&&f.clear(),y}),f=s.cache;return s}function Bw(o,s){var f=o[1],y=s[1],$=f|y,z=$<(b|x|_),G=y==_&&f==E||y==_&&f==P&&o[7].length<=s[8]||y==(_|P)&&s[7].length<=s[8]&&f==E;if(!(z||G))return o;y&b&&(o[2]=s[2],$|=f&b?0:w);var q=s[3];if(q){var Q=o[3];o[3]=Q?Sh(Q,q,s[4]):q,o[4]=Q?Hi(o[3],g):s[4]}return q=s[5],q&&(Q=o[5],o[5]=Q?Ch(Q,q,s[6]):q,o[6]=Q?Hi(o[5],g):s[6]),q=s[7],q&&(o[7]=q),y&_&&(o[8]=o[8]==null?s[8]:Un(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=$,o}function jw(o){var s=[];if(o!=null)for(var f in on(o))s.push(f);return s}function Hw(o){return tl.call(o)}function Bh(o,s,f){return s=Nn(s===n?o.length-1:s,0),function(){for(var y=arguments,$=-1,z=Nn(y.length-s,0),G=le(z);++$<z;)G[$]=y[s+$];$=-1;for(var q=le(s+1);++$<s;)q[$]=y[$];return q[s]=f(G),br(o,this,q)}}function jh(o,s){return s.length<2?o:po(o,zr(s,0,-1))}function kw(o,s){for(var f=o.length,y=Un(s.length,f),$=ur(o);y--;){var z=s[y];o[y]=Ci(z,f)?$[z]:n}return o}function Zu(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var Hh=Vh(uh),is=rx||function(o,s){return Bn.setTimeout(o,s)},Qu=Vh(dw);function kh(o,s,f){var y=s+"";return Qu(o,Mw(y,Vw(Pw(y),f)))}function Vh(o){var s=0,f=0;return function(){var y=sx(),$=F-(y-f);if(f=y,$>0){if(++s>=j)return arguments[0]}else s=0;return o.apply(n,arguments)}}function $l(o,s){var f=-1,y=o.length,$=y-1;for(s=s===n?y:s;++f<s;){var z=Au(f,$),G=o[z];o[z]=o[f],o[f]=G}return o.length=s,o}var Wh=Fw(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(ze,function(f,y,$,z){s.push($?z.replace(pt,"$1"):y||f)}),s});function di(o){if(typeof o=="string"||Cr(o))return o;var s=o+"";return s=="0"&&1/o==-T?"-0":s}function ho(o){if(o!=null){try{return el.call(o)}catch{}try{return o+""}catch{}}return""}function Vw(o,s){return Mr(oe,function(f){var y="_."+f[0];s&f[1]&&!Xs(o,y)&&o.push(y)}),o.sort()}function Uh(o){if(o instanceof jt)return o.clone();var s=new Dr(o.__wrapped__,o.__chain__);return s.__actions__=ur(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function Ww(o,s,f){(f?rr(o,s,f):s===n)?s=1:s=Nn(Pt(s),0);var y=o==null?0:o.length;if(!y||s<1)return[];for(var $=0,z=0,G=le(sl(y/s));$<y;)G[z++]=zr(o,$,$+=s);return G}function Uw(o){for(var s=-1,f=o==null?0:o.length,y=0,$=[];++s<f;){var z=o[s];z&&($[y++]=z)}return $}function Gw(){var o=arguments.length;if(!o)return[];for(var s=le(o-1),f=arguments[0],y=o;y--;)s[y-1]=arguments[y];return ji(Ot(f)?ur(f):[f],jn(s,1))}var Kw=Lt(function(o,s){return wn(o)?Qa(o,jn(s,1,wn,!0)):[]}),qw=Lt(function(o,s){var f=Fr(s);return wn(f)&&(f=n),wn(o)?Qa(o,jn(s,1,wn,!0),st(f,2)):[]}),Xw=Lt(function(o,s){var f=Fr(s);return wn(f)&&(f=n),wn(o)?Qa(o,jn(s,1,wn,!0),n,f):[]});function Yw(o,s,f){var y=o==null?0:o.length;return y?(s=f||s===n?1:Pt(s),zr(o,s<0?0:s,y)):[]}function Zw(o,s,f){var y=o==null?0:o.length;return y?(s=f||s===n?1:Pt(s),s=y-s,zr(o,0,s<0?0:s)):[]}function Qw(o,s){return o&&o.length?ml(o,st(s,3),!0,!0):[]}function Jw(o,s){return o&&o.length?ml(o,st(s,3),!0):[]}function eE(o,s,f,y){var $=o==null?0:o.length;return $?(f&&typeof f!="number"&&rr(o,s,f)&&(f=0,y=$),Gx(o,s,f,y)):[]}function Gh(o,s,f){var y=o==null?0:o.length;if(!y)return-1;var $=f==null?0:Pt(f);return $<0&&($=Nn(y+$,0)),Ys(o,st(s,3),$)}function Kh(o,s,f){var y=o==null?0:o.length;if(!y)return-1;var $=y-1;return f!==n&&($=Pt(f),$=f<0?Nn(y+$,0):Un($,y-1)),Ys(o,st(s,3),$,!0)}function qh(o){var s=o==null?0:o.length;return s?jn(o,1):[]}function tE(o){var s=o==null?0:o.length;return s?jn(o,T):[]}function nE(o,s){var f=o==null?0:o.length;return f?(s=s===n?1:Pt(s),jn(o,s)):[]}function rE(o){for(var s=-1,f=o==null?0:o.length,y={};++s<f;){var $=o[s];y[$[0]]=$[1]}return y}function Xh(o){return o&&o.length?o[0]:n}function iE(o,s,f){var y=o==null?0:o.length;if(!y)return-1;var $=f==null?0:Pt(f);return $<0&&($=Nn(y+$,0)),Ko(o,s,$)}function oE(o){var s=o==null?0:o.length;return s?zr(o,0,-1):[]}var aE=Lt(function(o){var s=hn(o,Bu);return s.length&&s[0]===o[0]?Iu(s):[]}),sE=Lt(function(o){var s=Fr(o),f=hn(o,Bu);return s===Fr(f)?s=n:f.pop(),f.length&&f[0]===o[0]?Iu(f,st(s,2)):[]}),lE=Lt(function(o){var s=Fr(o),f=hn(o,Bu);return s=typeof s=="function"?s:n,s&&f.pop(),f.length&&f[0]===o[0]?Iu(f,n,s):[]});function cE(o,s){return o==null?"":ox.call(o,s)}function Fr(o){var s=o==null?0:o.length;return s?o[s-1]:n}function uE(o,s,f){var y=o==null?0:o.length;if(!y)return-1;var $=y;return f!==n&&($=Pt(f),$=$<0?Nn(y+$,0):Un($,y-1)),s===s?VC(o,s,$):Ys(o,Ig,$,!0)}function dE(o,s){return o&&o.length?ah(o,Pt(s)):n}var fE=Lt(Yh);function Yh(o,s){return o&&o.length&&s&&s.length?Mu(o,s):o}function pE(o,s,f){return o&&o.length&&s&&s.length?Mu(o,s,st(f,2)):o}function gE(o,s,f){return o&&o.length&&s&&s.length?Mu(o,s,n,f):o}var hE=Si(function(o,s){var f=o==null?0:o.length,y=$u(o,s);return ch(o,hn(s,function($){return Ci($,f)?+$:$}).sort(yh)),y});function vE(o,s){var f=[];if(!(o&&o.length))return f;var y=-1,$=[],z=o.length;for(s=st(s,3);++y<z;){var G=o[y];s(G,y,o)&&(f.push(G),$.push(y))}return ch(o,$),f}function Ju(o){return o==null?o:cx.call(o)}function mE(o,s,f){var y=o==null?0:o.length;return y?(f&&typeof f!="number"&&rr(o,s,f)?(s=0,f=y):(s=s==null?0:Pt(s),f=f===n?y:Pt(f)),zr(o,s,f)):[]}function bE(o,s){return vl(o,s)}function yE(o,s,f){return Lu(o,s,st(f,2))}function SE(o,s){var f=o==null?0:o.length;if(f){var y=vl(o,s);if(y<f&&Qr(o[y],s))return y}return-1}function CE(o,s){return vl(o,s,!0)}function xE(o,s,f){return Lu(o,s,st(f,2),!0)}function wE(o,s){var f=o==null?0:o.length;if(f){var y=vl(o,s,!0)-1;if(Qr(o[y],s))return y}return-1}function EE(o){return o&&o.length?dh(o):[]}function $E(o,s){return o&&o.length?dh(o,st(s,2)):[]}function OE(o){var s=o==null?0:o.length;return s?zr(o,1,s):[]}function _E(o,s,f){return o&&o.length?(s=f||s===n?1:Pt(s),zr(o,0,s<0?0:s)):[]}function RE(o,s,f){var y=o==null?0:o.length;return y?(s=f||s===n?1:Pt(s),s=y-s,zr(o,s<0?0:s,y)):[]}function IE(o,s){return o&&o.length?ml(o,st(s,3),!1,!0):[]}function PE(o,s){return o&&o.length?ml(o,st(s,3)):[]}var TE=Lt(function(o){return Wi(jn(o,1,wn,!0))}),NE=Lt(function(o){var s=Fr(o);return wn(s)&&(s=n),Wi(jn(o,1,wn,!0),st(s,2))}),ME=Lt(function(o){var s=Fr(o);return s=typeof s=="function"?s:n,Wi(jn(o,1,wn,!0),n,s)});function AE(o){return o&&o.length?Wi(o):[]}function DE(o,s){return o&&o.length?Wi(o,st(s,2)):[]}function LE(o,s){return s=typeof s=="function"?s:n,o&&o.length?Wi(o,n,s):[]}function ed(o){if(!(o&&o.length))return[];var s=0;return o=Bi(o,function(f){if(wn(f))return s=Nn(f.length,s),!0}),mu(s,function(f){return hn(o,gu(f))})}function Zh(o,s){if(!(o&&o.length))return[];var f=ed(o);return s==null?f:hn(f,function(y){return br(s,n,y)})}var zE=Lt(function(o,s){return wn(o)?Qa(o,s):[]}),FE=Lt(function(o){return Fu(Bi(o,wn))}),BE=Lt(function(o){var s=Fr(o);return wn(s)&&(s=n),Fu(Bi(o,wn),st(s,2))}),jE=Lt(function(o){var s=Fr(o);return s=typeof s=="function"?s:n,Fu(Bi(o,wn),n,s)}),HE=Lt(ed);function kE(o,s){return hh(o||[],s||[],Za)}function VE(o,s){return hh(o||[],s||[],ts)}var WE=Lt(function(o){var s=o.length,f=s>1?o[s-1]:n;return f=typeof f=="function"?(o.pop(),f):n,Zh(o,f)});function Qh(o){var s=M(o);return s.__chain__=!0,s}function UE(o,s){return s(o),o}function Ol(o,s){return s(o)}var GE=Si(function(o){var s=o.length,f=s?o[0]:0,y=this.__wrapped__,$=function(z){return $u(z,o)};return s>1||this.__actions__.length||!(y instanceof jt)||!Ci(f)?this.thru($):(y=y.slice(f,+f+(s?1:0)),y.__actions__.push({func:Ol,args:[$],thisArg:n}),new Dr(y,this.__chain__).thru(function(z){return s&&!z.length&&z.push(n),z}))});function KE(){return Qh(this)}function qE(){return new Dr(this.value(),this.__chain__)}function XE(){this.__values__===n&&(this.__values__=fv(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function YE(){return this}function ZE(o){for(var s,f=this;f instanceof dl;){var y=Uh(f);y.__index__=0,y.__values__=n,s?$.__wrapped__=y:s=y;var $=y;f=f.__wrapped__}return $.__wrapped__=o,s}function QE(){var o=this.__wrapped__;if(o instanceof jt){var s=o;return this.__actions__.length&&(s=new jt(this)),s=s.reverse(),s.__actions__.push({func:Ol,args:[Ju],thisArg:n}),new Dr(s,this.__chain__)}return this.thru(Ju)}function JE(){return gh(this.__wrapped__,this.__actions__)}var e$=bl(function(o,s,f){tn.call(o,f)?++o[f]:bi(o,f,1)});function t$(o,s,f){var y=Ot(o)?_g:Ux;return f&&rr(o,s,f)&&(s=n),y(o,st(s,3))}function n$(o,s){var f=Ot(o)?Bi:Zg;return f(o,st(s,3))}var r$=$h(Gh),i$=$h(Kh);function o$(o,s){return jn(_l(o,s),1)}function a$(o,s){return jn(_l(o,s),T)}function s$(o,s,f){return f=f===n?1:Pt(f),jn(_l(o,s),f)}function Jh(o,s){var f=Ot(o)?Mr:Vi;return f(o,st(s,3))}function ev(o,s){var f=Ot(o)?OC:Yg;return f(o,st(s,3))}var l$=bl(function(o,s,f){tn.call(o,f)?o[f].push(s):bi(o,f,[s])});function c$(o,s,f,y){o=dr(o)?o:oa(o),f=f&&!y?Pt(f):0;var $=o.length;return f<0&&(f=Nn($+f,0)),Nl(o)?f<=$&&o.indexOf(s,f)>-1:!!$&&Ko(o,s,f)>-1}var u$=Lt(function(o,s,f){var y=-1,$=typeof s=="function",z=dr(o)?le(o.length):[];return Vi(o,function(G){z[++y]=$?br(s,G,f):Ja(G,s,f)}),z}),d$=bl(function(o,s,f){bi(o,f,s)});function _l(o,s){var f=Ot(o)?hn:rh;return f(o,st(s,3))}function f$(o,s,f,y){return o==null?[]:(Ot(s)||(s=s==null?[]:[s]),f=y?n:f,Ot(f)||(f=f==null?[]:[f]),sh(o,s,f))}var p$=bl(function(o,s,f){o[f?0:1].push(s)},function(){return[[],[]]});function g$(o,s,f){var y=Ot(o)?fu:Tg,$=arguments.length<3;return y(o,st(s,4),f,$,Vi)}function h$(o,s,f){var y=Ot(o)?_C:Tg,$=arguments.length<3;return y(o,st(s,4),f,$,Yg)}function v$(o,s){var f=Ot(o)?Bi:Zg;return f(o,Pl(st(s,3)))}function m$(o){var s=Ot(o)?Gg:cw;return s(o)}function b$(o,s,f){(f?rr(o,s,f):s===n)?s=1:s=Pt(s);var y=Ot(o)?jx:uw;return y(o,s)}function y$(o){var s=Ot(o)?Hx:fw;return s(o)}function S$(o){if(o==null)return 0;if(dr(o))return Nl(o)?Xo(o):o.length;var s=Gn(o);return s==te||s==xe?o.size:Tu(o).length}function C$(o,s,f){var y=Ot(o)?pu:pw;return f&&rr(o,s,f)&&(s=n),y(o,st(s,3))}var x$=Lt(function(o,s){if(o==null)return[];var f=s.length;return f>1&&rr(o,s[0],s[1])?s=[]:f>2&&rr(s[0],s[1],s[2])&&(s=[s[0]]),sh(o,jn(s,1),[])}),Rl=nx||function(){return Bn.Date.now()};function w$(o,s){if(typeof s!="function")throw new Ar(l);return o=Pt(o),function(){if(--o<1)return s.apply(this,arguments)}}function tv(o,s,f){return s=f?n:s,s=o&&s==null?o.length:s,yi(o,_,n,n,n,n,s)}function nv(o,s){var f;if(typeof s!="function")throw new Ar(l);return o=Pt(o),function(){return--o>0&&(f=s.apply(this,arguments)),o<=1&&(s=n),f}}var td=Lt(function(o,s,f){var y=b;if(f.length){var $=Hi(f,ra(td));y|=I}return yi(o,y,s,f,$)}),rv=Lt(function(o,s,f){var y=b|x;if(f.length){var $=Hi(f,ra(rv));y|=I}return yi(s,y,o,f,$)});function iv(o,s,f){s=f?n:s;var y=yi(o,E,n,n,n,n,n,s);return y.placeholder=iv.placeholder,y}function ov(o,s,f){s=f?n:s;var y=yi(o,O,n,n,n,n,n,s);return y.placeholder=ov.placeholder,y}function av(o,s,f){var y,$,z,G,q,Q,me=0,be=!1,we=!1,Le=!0;if(typeof o!="function")throw new Ar(l);s=Br(s)||0,bn(f)&&(be=!!f.leading,we="maxWait"in f,z=we?Nn(Br(f.maxWait)||0,s):z,Le="trailing"in f?!!f.trailing:Le);function Ze(En){var Jr=y,Ei=$;return y=$=n,me=En,G=o.apply(Ei,Jr),G}function ut(En){return me=En,q=is(Ft,s),be?Ze(En):G}function Mt(En){var Jr=En-Q,Ei=En-me,$v=s-Jr;return we?Un($v,z-Ei):$v}function dt(En){var Jr=En-Q,Ei=En-me;return Q===n||Jr>=s||Jr<0||we&&Ei>=z}function Ft(){var En=Rl();if(dt(En))return kt(En);q=is(Ft,Mt(En))}function kt(En){return q=n,Le&&y?Ze(En):(y=$=n,G)}function xr(){q!==n&&vh(q),me=0,y=Q=$=q=n}function ir(){return q===n?G:kt(Rl())}function wr(){var En=Rl(),Jr=dt(En);if(y=arguments,$=this,Q=En,Jr){if(q===n)return ut(Q);if(we)return vh(q),q=is(Ft,s),Ze(Q)}return q===n&&(q=is(Ft,s)),G}return wr.cancel=xr,wr.flush=ir,wr}var E$=Lt(function(o,s){return Xg(o,1,s)}),$$=Lt(function(o,s,f){return Xg(o,Br(s)||0,f)});function O$(o){return yi(o,D)}function Il(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new Ar(l);var f=function(){var y=arguments,$=s?s.apply(this,y):y[0],z=f.cache;if(z.has($))return z.get($);var G=o.apply(this,y);return f.cache=z.set($,G)||z,G};return f.cache=new(Il.Cache||mi),f}Il.Cache=mi;function Pl(o){if(typeof o!="function")throw new Ar(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function _$(o){return nv(2,o)}var R$=gw(function(o,s){s=s.length==1&&Ot(s[0])?hn(s[0],yr(st())):hn(jn(s,1),yr(st()));var f=s.length;return Lt(function(y){for(var $=-1,z=Un(y.length,f);++$<z;)y[$]=s[$].call(this,y[$]);return br(o,this,y)})}),nd=Lt(function(o,s){var f=Hi(s,ra(nd));return yi(o,I,n,s,f)}),sv=Lt(function(o,s){var f=Hi(s,ra(sv));return yi(o,R,n,s,f)}),I$=Si(function(o,s){return yi(o,P,n,n,n,s)});function P$(o,s){if(typeof o!="function")throw new Ar(l);return s=s===n?s:Pt(s),Lt(o,s)}function T$(o,s){if(typeof o!="function")throw new Ar(l);return s=s==null?0:Nn(Pt(s),0),Lt(function(f){var y=f[s],$=Gi(f,0,s);return y&&ji($,y),br(o,this,$)})}function N$(o,s,f){var y=!0,$=!0;if(typeof o!="function")throw new Ar(l);return bn(f)&&(y="leading"in f?!!f.leading:y,$="trailing"in f?!!f.trailing:$),av(o,s,{leading:y,maxWait:s,trailing:$})}function M$(o){return tv(o,1)}function A$(o,s){return nd(ju(s),o)}function D$(){if(!arguments.length)return[];var o=arguments[0];return Ot(o)?o:[o]}function L$(o){return Lr(o,S)}function z$(o,s){return s=typeof s=="function"?s:n,Lr(o,S,s)}function F$(o){return Lr(o,h|S)}function B$(o,s){return s=typeof s=="function"?s:n,Lr(o,h|S,s)}function j$(o,s){return s==null||qg(o,s,Ln(s))}function Qr(o,s){return o===s||o!==o&&s!==s}var H$=xl(Ru),k$=xl(function(o,s){return o>=s}),vo=eh(function(){return arguments}())?eh:function(o){return Sn(o)&&tn.call(o,"callee")&&!jg.call(o,"callee")},Ot=le.isArray,V$=Cg?yr(Cg):Zx;function dr(o){return o!=null&&Tl(o.length)&&!xi(o)}function wn(o){return Sn(o)&&dr(o)}function W$(o){return o===!0||o===!1||Sn(o)&&nr(o)==se}var Ki=ix||pd,U$=xg?yr(xg):Qx;function G$(o){return Sn(o)&&o.nodeType===1&&!os(o)}function K$(o){if(o==null)return!0;if(dr(o)&&(Ot(o)||typeof o=="string"||typeof o.splice=="function"||Ki(o)||ia(o)||vo(o)))return!o.length;var s=Gn(o);if(s==te||s==xe)return!o.size;if(rs(o))return!Tu(o).length;for(var f in o)if(tn.call(o,f))return!1;return!0}function q$(o,s){return es(o,s)}function X$(o,s,f){f=typeof f=="function"?f:n;var y=f?f(o,s):n;return y===n?es(o,s,n,f):!!y}function rd(o){if(!Sn(o))return!1;var s=nr(o);return s==ge||s==ae||typeof o.message=="string"&&typeof o.name=="string"&&!os(o)}function Y$(o){return typeof o=="number"&&kg(o)}function xi(o){if(!bn(o))return!1;var s=nr(o);return s==he||s==ue||s==de||s==Ie}function lv(o){return typeof o=="number"&&o==Pt(o)}function Tl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=N}function bn(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Sn(o){return o!=null&&typeof o=="object"}var cv=wg?yr(wg):ew;function Z$(o,s){return o===s||Pu(o,s,Ku(s))}function Q$(o,s,f){return f=typeof f=="function"?f:n,Pu(o,s,Ku(s),f)}function J$(o){return uv(o)&&o!=+o}function eO(o){if(zw(o))throw new Et(a);return th(o)}function tO(o){return o===null}function nO(o){return o==null}function uv(o){return typeof o=="number"||Sn(o)&&nr(o)==$e}function os(o){if(!Sn(o)||nr(o)!=_e)return!1;var s=il(o);if(s===null)return!0;var f=tn.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&el.call(f)==QC}var id=Eg?yr(Eg):tw;function rO(o){return lv(o)&&o>=-N&&o<=N}var dv=$g?yr($g):nw;function Nl(o){return typeof o=="string"||!Ot(o)&&Sn(o)&&nr(o)==ye}function Cr(o){return typeof o=="symbol"||Sn(o)&&nr(o)==De}var ia=Og?yr(Og):rw;function iO(o){return o===n}function oO(o){return Sn(o)&&Gn(o)==Qe}function aO(o){return Sn(o)&&nr(o)==Fe}var sO=xl(Nu),lO=xl(function(o,s){return o<=s});function fv(o){if(!o)return[];if(dr(o))return Nl(o)?Yr(o):ur(o);if(Ga&&o[Ga])return jC(o[Ga]());var s=Gn(o),f=s==te?yu:s==xe?Zs:oa;return f(o)}function wi(o){if(!o)return o===0?o:0;if(o=Br(o),o===T||o===-T){var s=o<0?-1:1;return s*W}return o===o?o:0}function Pt(o){var s=wi(o),f=s%1;return s===s?f?s-f:s:0}function pv(o){return o?fo(Pt(o),0,X):0}function Br(o){if(typeof o=="number")return o;if(Cr(o))return K;if(bn(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=bn(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=Ng(o);var f=et.test(o);return f||Gt.test(o)?wC(o.slice(2),f?2:8):Te.test(o)?K:+o}function gv(o){return ui(o,fr(o))}function cO(o){return o?fo(Pt(o),-N,N):o===0?o:0}function Yt(o){return o==null?"":Sr(o)}var uO=ta(function(o,s){if(rs(s)||dr(s)){ui(s,Ln(s),o);return}for(var f in s)tn.call(s,f)&&Za(o,f,s[f])}),hv=ta(function(o,s){ui(s,fr(s),o)}),Ml=ta(function(o,s,f,y){ui(s,fr(s),o,y)}),dO=ta(function(o,s,f,y){ui(s,Ln(s),o,y)}),fO=Si($u);function pO(o,s){var f=ea(o);return s==null?f:Kg(f,s)}var gO=Lt(function(o,s){o=on(o);var f=-1,y=s.length,$=y>2?s[2]:n;for($&&rr(s[0],s[1],$)&&(y=1);++f<y;)for(var z=s[f],G=fr(z),q=-1,Q=G.length;++q<Q;){var me=G[q],be=o[me];(be===n||Qr(be,Zo[me])&&!tn.call(o,me))&&(o[me]=z[me])}return o}),hO=Lt(function(o){return o.push(n,Nh),br(vv,n,o)});function vO(o,s){return Rg(o,st(s,3),ci)}function mO(o,s){return Rg(o,st(s,3),_u)}function bO(o,s){return o==null?o:Ou(o,st(s,3),fr)}function yO(o,s){return o==null?o:Qg(o,st(s,3),fr)}function SO(o,s){return o&&ci(o,st(s,3))}function CO(o,s){return o&&_u(o,st(s,3))}function xO(o){return o==null?[]:gl(o,Ln(o))}function wO(o){return o==null?[]:gl(o,fr(o))}function od(o,s,f){var y=o==null?n:po(o,s);return y===n?f:y}function EO(o,s){return o!=null&&Dh(o,s,Kx)}function ad(o,s){return o!=null&&Dh(o,s,qx)}var $O=_h(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=tl.call(s)),o[s]=f},ld(pr)),OO=_h(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=tl.call(s)),tn.call(o,s)?o[s].push(f):o[s]=[f]},st),_O=Lt(Ja);function Ln(o){return dr(o)?Ug(o):Tu(o)}function fr(o){return dr(o)?Ug(o,!0):iw(o)}function RO(o,s){var f={};return s=st(s,3),ci(o,function(y,$,z){bi(f,s(y,$,z),y)}),f}function IO(o,s){var f={};return s=st(s,3),ci(o,function(y,$,z){bi(f,$,s(y,$,z))}),f}var PO=ta(function(o,s,f){hl(o,s,f)}),vv=ta(function(o,s,f,y){hl(o,s,f,y)}),TO=Si(function(o,s){var f={};if(o==null)return f;var y=!1;s=hn(s,function(z){return z=Ui(z,o),y||(y=z.length>1),z}),ui(o,Uu(o),f),y&&(f=Lr(f,h|v|S,$w));for(var $=s.length;$--;)zu(f,s[$]);return f});function NO(o,s){return mv(o,Pl(st(s)))}var MO=Si(function(o,s){return o==null?{}:aw(o,s)});function mv(o,s){if(o==null)return{};var f=hn(Uu(o),function(y){return[y]});return s=st(s),lh(o,f,function(y,$){return s(y,$[0])})}function AO(o,s,f){s=Ui(s,o);var y=-1,$=s.length;for($||($=1,o=n);++y<$;){var z=o==null?n:o[di(s[y])];z===n&&(y=$,z=f),o=xi(z)?z.call(o):z}return o}function DO(o,s,f){return o==null?o:ts(o,s,f)}function LO(o,s,f,y){return y=typeof y=="function"?y:n,o==null?o:ts(o,s,f,y)}var bv=Ph(Ln),yv=Ph(fr);function zO(o,s,f){var y=Ot(o),$=y||Ki(o)||ia(o);if(s=st(s,4),f==null){var z=o&&o.constructor;$?f=y?new z:[]:bn(o)?f=xi(z)?ea(il(o)):{}:f={}}return($?Mr:ci)(o,function(G,q,Q){return s(f,G,q,Q)}),f}function FO(o,s){return o==null?!0:zu(o,s)}function BO(o,s,f){return o==null?o:ph(o,s,ju(f))}function jO(o,s,f,y){return y=typeof y=="function"?y:n,o==null?o:ph(o,s,ju(f),y)}function oa(o){return o==null?[]:bu(o,Ln(o))}function HO(o){return o==null?[]:bu(o,fr(o))}function kO(o,s,f){return f===n&&(f=s,s=n),f!==n&&(f=Br(f),f=f===f?f:0),s!==n&&(s=Br(s),s=s===s?s:0),fo(Br(o),s,f)}function VO(o,s,f){return s=wi(s),f===n?(f=s,s=0):f=wi(f),o=Br(o),Xx(o,s,f)}function WO(o,s,f){if(f&&typeof f!="boolean"&&rr(o,s,f)&&(s=f=n),f===n&&(typeof s=="boolean"?(f=s,s=n):typeof o=="boolean"&&(f=o,o=n)),o===n&&s===n?(o=0,s=1):(o=wi(o),s===n?(s=o,o=0):s=wi(s)),o>s){var y=o;o=s,s=y}if(f||o%1||s%1){var $=Vg();return Un(o+$*(s-o+xC("1e-"+(($+"").length-1))),s)}return Au(o,s)}var UO=na(function(o,s,f){return s=s.toLowerCase(),o+(f?Sv(s):s)});function Sv(o){return sd(Yt(o).toLowerCase())}function Cv(o){return o=Yt(o),o&&o.replace(Fn,DC).replace(pn,"")}function GO(o,s,f){o=Yt(o),s=Sr(s);var y=o.length;f=f===n?y:fo(Pt(f),0,y);var $=f;return f-=s.length,f>=0&&o.slice(f,$)==s}function KO(o){return o=Yt(o),o&&at.test(o)?o.replace(Ye,LC):o}function qO(o){return o=Yt(o),o&&Be.test(o)?o.replace(Ne,"\\$&"):o}var XO=na(function(o,s,f){return o+(f?"-":"")+s.toLowerCase()}),YO=na(function(o,s,f){return o+(f?" ":"")+s.toLowerCase()}),ZO=Eh("toLowerCase");function QO(o,s,f){o=Yt(o),s=Pt(s);var y=s?Xo(o):0;if(!s||y>=s)return o;var $=(s-y)/2;return Cl(ll($),f)+o+Cl(sl($),f)}function JO(o,s,f){o=Yt(o),s=Pt(s);var y=s?Xo(o):0;return s&&y<s?o+Cl(s-y,f):o}function e_(o,s,f){o=Yt(o),s=Pt(s);var y=s?Xo(o):0;return s&&y<s?Cl(s-y,f)+o:o}function t_(o,s,f){return f||s==null?s=0:s&&(s=+s),lx(Yt(o).replace(bt,""),s||0)}function n_(o,s,f){return(f?rr(o,s,f):s===n)?s=1:s=Pt(s),Du(Yt(o),s)}function r_(){var o=arguments,s=Yt(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var i_=na(function(o,s,f){return o+(f?"_":"")+s.toLowerCase()});function o_(o,s,f){return f&&typeof f!="number"&&rr(o,s,f)&&(s=f=n),f=f===n?X:f>>>0,f?(o=Yt(o),o&&(typeof s=="string"||s!=null&&!id(s))&&(s=Sr(s),!s&&qo(o))?Gi(Yr(o),0,f):o.split(s,f)):[]}var a_=na(function(o,s,f){return o+(f?" ":"")+sd(s)});function s_(o,s,f){return o=Yt(o),f=f==null?0:fo(Pt(f),0,o.length),s=Sr(s),o.slice(f,f+s.length)==s}function l_(o,s,f){var y=M.templateSettings;f&&rr(o,s,f)&&(s=n),o=Yt(o),s=Ml({},s,y,Th);var $=Ml({},s.imports,y.imports,Th),z=Ln($),G=bu($,z),q,Q,me=0,be=s.interpolate||_n,we="__p += '",Le=Su((s.escape||_n).source+"|"+be.source+"|"+(be===Ae?ct:_n).source+"|"+(s.evaluate||_n).source+"|$","g"),Ze="//# sourceURL="+(tn.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Go+"]")+`
278
- `;o.replace(Le,function(dt,Ft,kt,xr,ir,wr){return kt||(kt=xr),we+=o.slice(me,wr).replace(Zn,zC),Ft&&(q=!0,we+=`' +
279
- __e(`+Ft+`) +
280
- '`),ir&&(Q=!0,we+=`';
281
- `+ir+`;
282
- __p += '`),kt&&(we+=`' +
283
- ((__t = (`+kt+`)) == null ? '' : __t) +
284
- '`),me=wr+dt.length,dt}),we+=`';
285
- `;var ut=tn.call(s,"variable")&&s.variable;if(!ut)we=`with (obj) {
286
- `+we+`
287
- }
288
- `;else if(Vt.test(ut))throw new Et(c);we=(Q?we.replace(zt,""):we).replace(xt,"$1").replace(Re,"$1;"),we="function("+(ut||"obj")+`) {
289
- `+(ut?"":`obj || (obj = {});
290
- `)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(Q?`, __j = Array.prototype.join;
291
- function print() { __p += __j.call(arguments, '') }
292
- `:`;
293
- `)+we+`return __p
294
- }`;var Mt=wv(function(){return qt(z,Ze+"return "+we).apply(n,G)});if(Mt.source=we,rd(Mt))throw Mt;return Mt}function c_(o){return Yt(o).toLowerCase()}function u_(o){return Yt(o).toUpperCase()}function d_(o,s,f){if(o=Yt(o),o&&(f||s===n))return Ng(o);if(!o||!(s=Sr(s)))return o;var y=Yr(o),$=Yr(s),z=Mg(y,$),G=Ag(y,$)+1;return Gi(y,z,G).join("")}function f_(o,s,f){if(o=Yt(o),o&&(f||s===n))return o.slice(0,Lg(o)+1);if(!o||!(s=Sr(s)))return o;var y=Yr(o),$=Ag(y,Yr(s))+1;return Gi(y,0,$).join("")}function p_(o,s,f){if(o=Yt(o),o&&(f||s===n))return o.replace(bt,"");if(!o||!(s=Sr(s)))return o;var y=Yr(o),$=Mg(y,Yr(s));return Gi(y,$).join("")}function g_(o,s){var f=A,y=k;if(bn(s)){var $="separator"in s?s.separator:$;f="length"in s?Pt(s.length):f,y="omission"in s?Sr(s.omission):y}o=Yt(o);var z=o.length;if(qo(o)){var G=Yr(o);z=G.length}if(f>=z)return o;var q=f-Xo(y);if(q<1)return y;var Q=G?Gi(G,0,q).join(""):o.slice(0,q);if($===n)return Q+y;if(G&&(q+=Q.length-q),id($)){if(o.slice(q).search($)){var me,be=Q;for($.global||($=Su($.source,Yt(Me.exec($))+"g")),$.lastIndex=0;me=$.exec(be);)var we=me.index;Q=Q.slice(0,we===n?q:we)}}else if(o.indexOf(Sr($),q)!=q){var Le=Q.lastIndexOf($);Le>-1&&(Q=Q.slice(0,Le))}return Q+y}function h_(o){return o=Yt(o),o&&Je.test(o)?o.replace(He,WC):o}var v_=na(function(o,s,f){return o+(f?" ":"")+s.toUpperCase()}),sd=Eh("toUpperCase");function xv(o,s,f){return o=Yt(o),s=f?n:s,s===n?BC(o)?KC(o):PC(o):o.match(s)||[]}var wv=Lt(function(o,s){try{return br(o,n,s)}catch(f){return rd(f)?f:new Et(f)}}),m_=Si(function(o,s){return Mr(s,function(f){f=di(f),bi(o,f,td(o[f],o))}),o});function b_(o){var s=o==null?0:o.length,f=st();return o=s?hn(o,function(y){if(typeof y[1]!="function")throw new Ar(l);return[f(y[0]),y[1]]}):[],Lt(function(y){for(var $=-1;++$<s;){var z=o[$];if(br(z[0],this,y))return br(z[1],this,y)}})}function y_(o){return Wx(Lr(o,h))}function ld(o){return function(){return o}}function S_(o,s){return o==null||o!==o?s:o}var C_=Oh(),x_=Oh(!0);function pr(o){return o}function cd(o){return nh(typeof o=="function"?o:Lr(o,h))}function w_(o){return ih(Lr(o,h))}function E_(o,s){return oh(o,Lr(s,h))}var $_=Lt(function(o,s){return function(f){return Ja(f,o,s)}}),O_=Lt(function(o,s){return function(f){return Ja(o,f,s)}});function ud(o,s,f){var y=Ln(s),$=gl(s,y);f==null&&!(bn(s)&&($.length||!y.length))&&(f=s,s=o,o=this,$=gl(s,Ln(s)));var z=!(bn(f)&&"chain"in f)||!!f.chain,G=xi(o);return Mr($,function(q){var Q=s[q];o[q]=Q,G&&(o.prototype[q]=function(){var me=this.__chain__;if(z||me){var be=o(this.__wrapped__),we=be.__actions__=ur(this.__actions__);return we.push({func:Q,args:arguments,thisArg:o}),be.__chain__=me,be}return Q.apply(o,ji([this.value()],arguments))})}),o}function __(){return Bn._===this&&(Bn._=JC),this}function dd(){}function R_(o){return o=Pt(o),Lt(function(s){return ah(s,o)})}var I_=ku(hn),P_=ku(_g),T_=ku(pu);function Ev(o){return Xu(o)?gu(di(o)):sw(o)}function N_(o){return function(s){return o==null?n:po(o,s)}}var M_=Rh(),A_=Rh(!0);function fd(){return[]}function pd(){return!1}function D_(){return{}}function L_(){return""}function z_(){return!0}function F_(o,s){if(o=Pt(o),o<1||o>N)return[];var f=X,y=Un(o,X);s=st(s),o-=X;for(var $=mu(y,s);++f<o;)s(f);return $}function B_(o){return Ot(o)?hn(o,di):Cr(o)?[o]:ur(Wh(Yt(o)))}function j_(o){var s=++ZC;return Yt(o)+s}var H_=Sl(function(o,s){return o+s},0),k_=Vu("ceil"),V_=Sl(function(o,s){return o/s},1),W_=Vu("floor");function U_(o){return o&&o.length?pl(o,pr,Ru):n}function G_(o,s){return o&&o.length?pl(o,st(s,2),Ru):n}function K_(o){return Pg(o,pr)}function q_(o,s){return Pg(o,st(s,2))}function X_(o){return o&&o.length?pl(o,pr,Nu):n}function Y_(o,s){return o&&o.length?pl(o,st(s,2),Nu):n}var Z_=Sl(function(o,s){return o*s},1),Q_=Vu("round"),J_=Sl(function(o,s){return o-s},0);function eR(o){return o&&o.length?vu(o,pr):0}function tR(o,s){return o&&o.length?vu(o,st(s,2)):0}return M.after=w$,M.ary=tv,M.assign=uO,M.assignIn=hv,M.assignInWith=Ml,M.assignWith=dO,M.at=fO,M.before=nv,M.bind=td,M.bindAll=m_,M.bindKey=rv,M.castArray=D$,M.chain=Qh,M.chunk=Ww,M.compact=Uw,M.concat=Gw,M.cond=b_,M.conforms=y_,M.constant=ld,M.countBy=e$,M.create=pO,M.curry=iv,M.curryRight=ov,M.debounce=av,M.defaults=gO,M.defaultsDeep=hO,M.defer=E$,M.delay=$$,M.difference=Kw,M.differenceBy=qw,M.differenceWith=Xw,M.drop=Yw,M.dropRight=Zw,M.dropRightWhile=Qw,M.dropWhile=Jw,M.fill=eE,M.filter=n$,M.flatMap=o$,M.flatMapDeep=a$,M.flatMapDepth=s$,M.flatten=qh,M.flattenDeep=tE,M.flattenDepth=nE,M.flip=O$,M.flow=C_,M.flowRight=x_,M.fromPairs=rE,M.functions=xO,M.functionsIn=wO,M.groupBy=l$,M.initial=oE,M.intersection=aE,M.intersectionBy=sE,M.intersectionWith=lE,M.invert=$O,M.invertBy=OO,M.invokeMap=u$,M.iteratee=cd,M.keyBy=d$,M.keys=Ln,M.keysIn=fr,M.map=_l,M.mapKeys=RO,M.mapValues=IO,M.matches=w_,M.matchesProperty=E_,M.memoize=Il,M.merge=PO,M.mergeWith=vv,M.method=$_,M.methodOf=O_,M.mixin=ud,M.negate=Pl,M.nthArg=R_,M.omit=TO,M.omitBy=NO,M.once=_$,M.orderBy=f$,M.over=I_,M.overArgs=R$,M.overEvery=P_,M.overSome=T_,M.partial=nd,M.partialRight=sv,M.partition=p$,M.pick=MO,M.pickBy=mv,M.property=Ev,M.propertyOf=N_,M.pull=fE,M.pullAll=Yh,M.pullAllBy=pE,M.pullAllWith=gE,M.pullAt=hE,M.range=M_,M.rangeRight=A_,M.rearg=I$,M.reject=v$,M.remove=vE,M.rest=P$,M.reverse=Ju,M.sampleSize=b$,M.set=DO,M.setWith=LO,M.shuffle=y$,M.slice=mE,M.sortBy=x$,M.sortedUniq=EE,M.sortedUniqBy=$E,M.split=o_,M.spread=T$,M.tail=OE,M.take=_E,M.takeRight=RE,M.takeRightWhile=IE,M.takeWhile=PE,M.tap=UE,M.throttle=N$,M.thru=Ol,M.toArray=fv,M.toPairs=bv,M.toPairsIn=yv,M.toPath=B_,M.toPlainObject=gv,M.transform=zO,M.unary=M$,M.union=TE,M.unionBy=NE,M.unionWith=ME,M.uniq=AE,M.uniqBy=DE,M.uniqWith=LE,M.unset=FO,M.unzip=ed,M.unzipWith=Zh,M.update=BO,M.updateWith=jO,M.values=oa,M.valuesIn=HO,M.without=zE,M.words=xv,M.wrap=A$,M.xor=FE,M.xorBy=BE,M.xorWith=jE,M.zip=HE,M.zipObject=kE,M.zipObjectDeep=VE,M.zipWith=WE,M.entries=bv,M.entriesIn=yv,M.extend=hv,M.extendWith=Ml,ud(M,M),M.add=H_,M.attempt=wv,M.camelCase=UO,M.capitalize=Sv,M.ceil=k_,M.clamp=kO,M.clone=L$,M.cloneDeep=F$,M.cloneDeepWith=B$,M.cloneWith=z$,M.conformsTo=j$,M.deburr=Cv,M.defaultTo=S_,M.divide=V_,M.endsWith=GO,M.eq=Qr,M.escape=KO,M.escapeRegExp=qO,M.every=t$,M.find=r$,M.findIndex=Gh,M.findKey=vO,M.findLast=i$,M.findLastIndex=Kh,M.findLastKey=mO,M.floor=W_,M.forEach=Jh,M.forEachRight=ev,M.forIn=bO,M.forInRight=yO,M.forOwn=SO,M.forOwnRight=CO,M.get=od,M.gt=H$,M.gte=k$,M.has=EO,M.hasIn=ad,M.head=Xh,M.identity=pr,M.includes=c$,M.indexOf=iE,M.inRange=VO,M.invoke=_O,M.isArguments=vo,M.isArray=Ot,M.isArrayBuffer=V$,M.isArrayLike=dr,M.isArrayLikeObject=wn,M.isBoolean=W$,M.isBuffer=Ki,M.isDate=U$,M.isElement=G$,M.isEmpty=K$,M.isEqual=q$,M.isEqualWith=X$,M.isError=rd,M.isFinite=Y$,M.isFunction=xi,M.isInteger=lv,M.isLength=Tl,M.isMap=cv,M.isMatch=Z$,M.isMatchWith=Q$,M.isNaN=J$,M.isNative=eO,M.isNil=nO,M.isNull=tO,M.isNumber=uv,M.isObject=bn,M.isObjectLike=Sn,M.isPlainObject=os,M.isRegExp=id,M.isSafeInteger=rO,M.isSet=dv,M.isString=Nl,M.isSymbol=Cr,M.isTypedArray=ia,M.isUndefined=iO,M.isWeakMap=oO,M.isWeakSet=aO,M.join=cE,M.kebabCase=XO,M.last=Fr,M.lastIndexOf=uE,M.lowerCase=YO,M.lowerFirst=ZO,M.lt=sO,M.lte=lO,M.max=U_,M.maxBy=G_,M.mean=K_,M.meanBy=q_,M.min=X_,M.minBy=Y_,M.stubArray=fd,M.stubFalse=pd,M.stubObject=D_,M.stubString=L_,M.stubTrue=z_,M.multiply=Z_,M.nth=dE,M.noConflict=__,M.noop=dd,M.now=Rl,M.pad=QO,M.padEnd=JO,M.padStart=e_,M.parseInt=t_,M.random=WO,M.reduce=g$,M.reduceRight=h$,M.repeat=n_,M.replace=r_,M.result=AO,M.round=Q_,M.runInContext=Z,M.sample=m$,M.size=S$,M.snakeCase=i_,M.some=C$,M.sortedIndex=bE,M.sortedIndexBy=yE,M.sortedIndexOf=SE,M.sortedLastIndex=CE,M.sortedLastIndexBy=xE,M.sortedLastIndexOf=wE,M.startCase=a_,M.startsWith=s_,M.subtract=J_,M.sum=eR,M.sumBy=tR,M.template=l_,M.times=F_,M.toFinite=wi,M.toInteger=Pt,M.toLength=pv,M.toLower=c_,M.toNumber=Br,M.toSafeInteger=cO,M.toString=Yt,M.toUpper=u_,M.trim=d_,M.trimEnd=f_,M.trimStart=p_,M.truncate=g_,M.unescape=h_,M.uniqueId=j_,M.upperCase=v_,M.upperFirst=sd,M.each=Jh,M.eachRight=ev,M.first=Xh,ud(M,function(){var o={};return ci(M,function(s,f){tn.call(M.prototype,f)||(o[f]=s)}),o}(),{chain:!1}),M.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){M[o].placeholder=M}),Mr(["drop","take"],function(o,s){jt.prototype[o]=function(f){f=f===n?1:Nn(Pt(f),0);var y=this.__filtered__&&!s?new jt(this):this.clone();return y.__filtered__?y.__takeCount__=Un(f,y.__takeCount__):y.__views__.push({size:Un(f,X),type:o+(y.__dir__<0?"Right":"")}),y},jt.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),Mr(["filter","map","takeWhile"],function(o,s){var f=s+1,y=f==H||f==L;jt.prototype[o]=function($){var z=this.clone();return z.__iteratees__.push({iteratee:st($,3),type:f}),z.__filtered__=z.__filtered__||y,z}}),Mr(["head","last"],function(o,s){var f="take"+(s?"Right":"");jt.prototype[o]=function(){return this[f](1).value()[0]}}),Mr(["initial","tail"],function(o,s){var f="drop"+(s?"":"Right");jt.prototype[o]=function(){return this.__filtered__?new jt(this):this[f](1)}}),jt.prototype.compact=function(){return this.filter(pr)},jt.prototype.find=function(o){return this.filter(o).head()},jt.prototype.findLast=function(o){return this.reverse().find(o)},jt.prototype.invokeMap=Lt(function(o,s){return typeof o=="function"?new jt(this):this.map(function(f){return Ja(f,o,s)})}),jt.prototype.reject=function(o){return this.filter(Pl(st(o)))},jt.prototype.slice=function(o,s){o=Pt(o);var f=this;return f.__filtered__&&(o>0||s<0)?new jt(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),s!==n&&(s=Pt(s),f=s<0?f.dropRight(-s):f.take(s-o)),f)},jt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},jt.prototype.toArray=function(){return this.take(X)},ci(jt.prototype,function(o,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),y=/^(?:head|last)$/.test(s),$=M[y?"take"+(s=="last"?"Right":""):s],z=y||/^find/.test(s);$&&(M.prototype[s]=function(){var G=this.__wrapped__,q=y?[1]:arguments,Q=G instanceof jt,me=q[0],be=Q||Ot(G),we=function(Ft){var kt=$.apply(M,ji([Ft],q));return y&&Le?kt[0]:kt};be&&f&&typeof me=="function"&&me.length!=1&&(Q=be=!1);var Le=this.__chain__,Ze=!!this.__actions__.length,ut=z&&!Le,Mt=Q&&!Ze;if(!z&&be){G=Mt?G:new jt(this);var dt=o.apply(G,q);return dt.__actions__.push({func:Ol,args:[we],thisArg:n}),new Dr(dt,Le)}return ut&&Mt?o.apply(this,q):(dt=this.thru(we),ut?y?dt.value()[0]:dt.value():dt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(o){var s=Qs[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",y=/^(?:pop|shift)$/.test(o);M.prototype[o]=function(){var $=arguments;if(y&&!this.__chain__){var z=this.value();return s.apply(Ot(z)?z:[],$)}return this[f](function(G){return s.apply(Ot(G)?G:[],$)})}}),ci(jt.prototype,function(o,s){var f=M[s];if(f){var y=f.name+"";tn.call(Jo,y)||(Jo[y]=[]),Jo[y].push({name:s,func:f})}}),Jo[yl(n,x).name]=[{name:"wrapper",func:n}],jt.prototype.clone=hx,jt.prototype.reverse=vx,jt.prototype.value=mx,M.prototype.at=GE,M.prototype.chain=KE,M.prototype.commit=qE,M.prototype.next=XE,M.prototype.plant=ZE,M.prototype.reverse=QE,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=JE,M.prototype.first=M.prototype.head,Ga&&(M.prototype[Ga]=YE),M},Yo=qC();so?((so.exports=Yo)._=Yo,cu._=Yo):Bn._=Yo}).call(Vr)})(_c,_c.exports);_c.exports;B.createContext(void 0);function ko(e){this._maxSize=e,this.clear()}ko.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ko.prototype.get=function(e){return this._values[e]};ko.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var aB=/[^.^\]^[]+|(?=\[\]|\.\.)/g,cC=/^\d+$/,sB=/^\d/,lB=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,cB=/^\s*(['"]?)(.*?)(\1)\s*$/,hg=512,j0=new ko(hg),H0=new ko(hg),k0=new ko(hg),uC={Cache:ko,split:pp,normalizePath:Jd,setter:function(e){var t=Jd(e);return H0.get(e)||H0.set(e,function(r,i){for(var a=0,l=t.length,c=r;a<l-1;){var d=t[a];if(d==="__proto__"||d==="constructor"||d==="prototype")return r;c=c[t[a++]]}c[t[a]]=i})},getter:function(e,t){var n=Jd(e);return k0.get(e)||k0.set(e,function(i){for(var a=0,l=n.length;a<l;)if(i!=null||!t)i=i[n[a++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(vg(n)||cC.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){uB(Array.isArray(e)?e:pp(e),t,n)}};function Jd(e){return j0.get(e)||j0.set(e,pp(e).map(function(t){return t.replace(cB,"$2")}))}function pp(e){return e.match(aB)||[""]}function uB(e,t,n){var r=e.length,i,a,l,c;for(a=0;a<r;a++)i=e[a],i&&(pB(i)&&(i='"'+i+'"'),c=vg(i),l=!c&&/^\d+$/.test(i),t.call(n,i,c,l,a,e))}function vg(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function dB(e){return e.match(sB)&&!e.match(cC)}function fB(e){return lB.test(e)}function pB(e){return!vg(e)&&(dB(e)||fB(e))}var dC={exports:{}};dC.exports=function(e){return fC(gB(e),e)};dC.exports.array=fC;function fC(e,t){var n=e.length,r=new Array(n),i={},a=n,l=hB(t),c=vB(e);for(t.forEach(function(p){if(!c.has(p[0])||!c.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||d(e[a],a,new Set);return r;function d(p,g,h){if(h.has(p)){var v;try{v=", node was:"+JSON.stringify(p)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!c.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!i[g]){i[g]=!0;var S=l.get(p)||new Set;if(S=Array.from(S),g=S.length){h.add(p);do{var C=S[--g];d(C,c.get(C),h)}while(g);h.delete(p)}r[--n]=p}}}function gB(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function hB(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function vB(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}const mB=Object.prototype.toString,bB=Error.prototype.toString,yB=RegExp.prototype.toString,SB=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",CB=/^Symbol\((.*)\)(.*)$/;function xB(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function V0(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return xB(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return SB.call(e).replace(CB,"Symbol($1)");const r=mB.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+bB.call(e)+"]":r==="RegExp"?yB.call(e):null}function Qi(e,t){let n=V0(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=V0(this[r],t);return a!==null?a:i},2)}function pC(e){return e==null?[]:[].concat(e)}let gC,wB=/\$\{\s*(\w+)\s*\}/g;gC=Symbol.toStringTag;class hr extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(wB,(i,a)=>Qi(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,a){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[gC]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],pC(t).forEach(l=>{if(hr.isError(l)){this.errors.push(...l.errors);const c=l.inner.length?l.inner:[l];this.inner.push(...c)}else this.errors.push(l)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!a&&Error.captureStackTrace&&Error.captureStackTrace(this,hr)}}let Pi={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Qi(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Qi(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Qi(n,!0)}\``+i}},EB={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},$B={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},gp={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},OB={isValue:"${path} field must be ${value}"},_B={noUnknown:"${path} field has unspecified keys: ${unknown}"},RB={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},IB={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Qi(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Qi(n,!0)}\``}return hr.formatError(Pi.notType,e)}};Object.assign(Object.create(null),{mixed:Pi,string:EB,number:$B,date:gp,object:_B,array:RB,boolean:OB,tuple:IB});const hC=e=>e&&e.__isYupSchema__;class Rc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,l=typeof r=="function"?r:(...c)=>c.every(d=>d===r);return new Rc(t,(c,d)=>{var p;let g=l(...c)?i:a;return(p=g==null?void 0:g(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!hC(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const Zl={context:"$",value:"."};class Ks{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Zl.context,this.isValue=this.key[0]===Zl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Zl.context:this.isValue?Zl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&uC.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ks.prototype.__isYupRef=!0;const vC=e=>e==null;function Sa(e){function t({value:n,path:r="",options:i,originalValue:a,schema:l},c,d){const{name:p,test:g,params:h,message:v,skipAbsent:S}=e;let{parent:C,context:m,abortEarly:b=l.spec.abortEarly,disableStackTrace:x=l.spec.disableStackTrace}=i;function w(k){return Ks.isRef(k)?k.getValue(n,C,m):k}function E(k={}){var j;const F=Object.assign({value:n,originalValue:a,label:l.spec.label,path:k.path||r,spec:l.spec},h,k.params);for(const V of Object.keys(F))F[V]=w(F[V]);const H=new hr(hr.formatError(k.message||v,F),n,F.path,k.type||p,(j=k.disableStackTrace)!=null?j:x);return H.params=F,H}const O=b?c:d;let I={path:r,parent:C,type:p,from:i.from,createError:E,resolve:w,options:i,originalValue:a,schema:l};const R=k=>{hr.isError(k)?O(k):k?d(null):O(E())},_=k=>{hr.isError(k)?O(k):c(k)};if(S&&vC(n))return R(!0);let D;try{var A;if(D=g.call(I,n,I),typeof((A=D)==null?void 0:A.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${I.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(D).then(R,_)}}catch(k){_(k);return}R(D)}return t.OPTIONS=e,t}function PB(e,t,n,r=n){let i,a,l;return t?(uC.forEach(t,(c,d,p)=>{let g=d?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let h=e.type==="tuple",v=p?parseInt(g,10):0;if(e.innerType||h){if(h&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[v],e=h?e.spec.types[v]:e.innerType}if(!p){if(!e.fields||!e.fields[g])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${l} which is a type: "${e.type}")`);i=n,n=n&&n[g],e=e.fields[g]}a=g,l=d?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Ic extends Set{describe(){const t=[];for(const n of this.values())t.push(Ks.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Ic(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Oa(e,t=new Map){if(hC(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Oa(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Oa(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Oa(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Oa(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Do{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ic,this._blacklist=new Ic,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Pi.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Oa(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(l=>{a.test(l.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&vC(a))return a;let l=Qi(t),c=Qi(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
295
-
296
- attempted value: ${l}
297
- `+(c!==l?`result of cast: ${c}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:a,originalValue:l=t,strict:c=this.spec.strict}=n,d=t;c||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let g of Object.values(this.internalTests))g&&p.push(g);this.runTests({path:a,value:d,originalValue:l,options:n,tests:p},r,g=>{if(g.length)return i(g,d);this.runTests({path:a,value:d,originalValue:l,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:l,originalValue:c,path:d,options:p}=t,g=m=>{i||(i=!0,n(m,l))},h=m=>{i||(i=!0,r(m,l))},v=a.length,S=[];if(!v)return h([]);let C={value:l,originalValue:c,path:d,options:p,schema:this};for(let m=0;m<a.length;m++){const b=a[m];b(C,g,function(w){w&&(Array.isArray(w)?S.push(...w):S.push(w)),--v<=0&&h(S)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:l}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof c=="number";let p=r[c];const g=Object.assign({},l,{strict:!0,parent:r,value:p,originalValue:a[c],key:void 0,[d?"index":"key"]:c,path:d||c.includes(".")?`${i||""}[${p?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(h,v,S)=>this.resolve(g)._validate(p,g,v,S)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((l,c)=>i._validate(t,n,(d,p)=>{hr.isError(d)&&(d.value=p),c(d)},(d,p)=>{d.length?c(new hr(d,p,void 0,void 0,a)):l(p)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a,l=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,d)=>{throw hr.isError(c)&&(c.value=d),c},(c,d)=>{if(c.length)throw new hr(c,t,void 0,void 0,l);a=d}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(hr.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(hr.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Oa(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Sa({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Sa({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Pi.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Pi.notNull){return this.nullability(!1,t)}required(t=Pi.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Pi.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Sa(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(l=>!(l.OPTIONS.name===n.name&&(a||l.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=pC(t).map(a=>new Ks(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new Rc(i,n):Rc.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Sa({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Pi.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Sa({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,l=a.resolveAll(this.resolve);return l.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:l}})}}),r}notOneOf(t,n=Pi.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Sa({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,l=a.resolveAll(this.resolve);return l.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:l}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:a,nullable:l}=n.spec;return{meta:i,label:r,optional:a,nullable:l,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,p,g)=>g.findIndex(h=>h.name===d.name)===p)}}}Do.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Do.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:l}=PB(this,t,n,r.context);return l[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Do.prototype[e]=Do.prototype.oneOf;for(const e of["not","nope"])Do.prototype[e]=Do.prototype.notOneOf;const TB=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ri(e,t=0){return Number(e)||t}function NB(e){const t=TB.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:Ri(t[1]),month:Ri(t[2],1)-1,day:Ri(t[3],1),hour:Ri(t[4]),minute:Ri(t[5]),second:Ri(t[6]),millisecond:t[7]?Ri(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Ri(t[10]),minuteOffset:Ri(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let MB=new Date(""),AB=e=>Object.prototype.toString.call(e)==="[object Date]";class mg extends Do{constructor(){super({type:"date",check(t){return AB(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=NB(t),isNaN(t)?mg.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ks.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=gp.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=gp.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}mg.INVALID_DATE=MB;ja.extend(Jz);ja.extend(Zz);ja.extend(Vz);ja.extend(Uz);ja.extend(Kz);ja.extend(Xz);const DB=({children:e})=>On.jsx(Us.Content,{children:e}),LB=({children:e})=>On.jsx(Us.Footer,{style:{textAlign:"center"},children:e}),zB=({children:e})=>On.jsx(Us.Header,{children:e}),FB=({children:e})=>On.jsx(Us,{style:{minHeight:"100vh"},children:e}),BB=({children:e,direction:t,collapsed:n,collapsedWidth:r,iconUrl:i,brandImageUrl:a})=>{let l;return i&&a&&(l=On.jsxs("div",{className:`logo-container ${n?"collapsed":""}`,children:[On.jsx("img",{className:"logo",src:i,alt:"icon",width:20,height:20}),On.jsx("img",{className:"brand-image",src:a,alt:"brand-image",height:20})]})),On.jsxs(Us.Sider,{collapsible:!0,collapsed:n,collapsedWidth:r,trigger:null,width:250,className:`${t}`,children:[l,e]})};Object.assign(FB,{Header:zB,Footer:LB,Content:DB,Sider:BB});const jB=({children:e,...t})=>On.jsx(nu,{...t,children:e});Object.assign(jB,{Item:nu.Item});const HB=({...e})=>On.jsx(b1,{...e});Object.assign(HB,{Group:b1.Group});const kB=({...e})=>On.jsx(U1,{...e});/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),u=require("react");/**
298
2
  postmate - A powerful, simple, promise-based postMessage library
299
3
  @version v1.5.2
300
4
  @link https://github.com/dollarshaveclub/postmate
301
5
  @author Jacob Kelley <jakie8@gmail.com>
302
6
  @license MIT
303
- **/var Lo="application/x-postmate-v1+json",VB=5,WB=0,UB=function(){return++WB},zn=function(){var t;return Ji.debug?(t=console).log.apply(t,arguments):null},GB=function(t){var n=document.createElement("a");n.href=t;var r=n.protocol.length>4?n.protocol:window.location.protocol,i=n.host.length?n.port==="80"||n.port==="443"?n.hostname:n.host:window.location.host;return n.origin||r+"//"+i},KB={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},bg=function(t,n){return!(typeof n=="string"&&t.origin!==n||!t.data||typeof t.data=="object"&&!("postmate"in t.data)||t.data.type!==Lo||!KB[t.data.postmate])},qB=function(t,n){var r=typeof t[n]=="function"?t[n]():t[n];return Ji.Promise.resolve(r)},XB=function(){function e(n){var r=this;this.parent=n.parent,this.frame=n.frame,this.child=n.child,this.childOrigin=n.childOrigin,this.events={},process.env.NODE_ENV!=="production"&&(zn("Parent: Registering API"),zn("Parent: Awaiting messages...")),this.listener=function(i){if(!bg(i,r.childOrigin))return!1;var a=((i||{}).data||{}).value||{},l=a.data,c=a.name;i.data.postmate==="emit"&&(process.env.NODE_ENV!=="production"&&zn("Parent: Received event emission: "+c),c in r.events&&r.events[c].call(r,l))},this.parent.addEventListener("message",this.listener,!1),process.env.NODE_ENV!=="production"&&zn("Parent: Awaiting event emissions from Child")}var t=e.prototype;return t.get=function(r){var i=this;return new Ji.Promise(function(a){var l=UB(),c=function d(p){p.data.uid===l&&p.data.postmate==="reply"&&(i.parent.removeEventListener("message",d,!1),a(p.data.value))};i.parent.addEventListener("message",c,!1),i.child.postMessage({postmate:"request",type:Lo,property:r,uid:l},i.childOrigin)})},t.call=function(r,i){this.child.postMessage({postmate:"call",type:Lo,property:r,data:i},this.childOrigin)},t.on=function(r,i){this.events[r]=i},t.destroy=function(){process.env.NODE_ENV!=="production"&&zn("Parent: Destroying Postmate instance"),window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)},e}(),YB=function(){function e(n){var r=this;this.model=n.model,this.parent=n.parent,this.parentOrigin=n.parentOrigin,this.child=n.child,process.env.NODE_ENV!=="production"&&(zn("Child: Registering API"),zn("Child: Awaiting messages...")),this.child.addEventListener("message",function(i){if(bg(i,r.parentOrigin)){process.env.NODE_ENV!=="production"&&zn("Child: Received request",i.data);var a=i.data,l=a.property,c=a.uid,d=a.data;if(i.data.postmate==="call"){l in r.model&&typeof r.model[l]=="function"&&r.model[l](d);return}qB(r.model,l).then(function(p){return i.source.postMessage({property:l,postmate:"reply",type:Lo,uid:c,value:p},i.origin)})}})}var t=e.prototype;return t.emit=function(r,i){process.env.NODE_ENV!=="production"&&zn('Child: Emitting Event "'+r+'"',i),this.parent.postMessage({postmate:"emit",type:Lo,value:{name:r,data:i}},this.parentOrigin)},e}(),Ji=function(){function e(n){var r=n.container,i=r===void 0?typeof i<"u"?i:document.body:r,a=n.model,l=n.url,c=n.name,d=n.classListArray,p=d===void 0?[]:d;return this.parent=window,this.frame=document.createElement("iframe"),this.frame.name=c||"",this.frame.classList.add.apply(this.frame.classList,p),i.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=a||{},this.sendHandshake(l)}var t=e.prototype;return t.sendHandshake=function(r){var i=this,a=GB(r),l=0,c;return new e.Promise(function(d,p){var g=function S(C){return bg(C,a)?C.data.postmate==="handshake-reply"?(clearInterval(c),process.env.NODE_ENV!=="production"&&zn("Parent: Received handshake reply from Child"),i.parent.removeEventListener("message",S,!1),i.childOrigin=C.origin,process.env.NODE_ENV!=="production"&&zn("Parent: Saving Child origin",i.childOrigin),d(new XB(i))):(process.env.NODE_ENV!=="production"&&zn("Parent: Invalid handshake reply"),p("Failed handshake")):!1};i.parent.addEventListener("message",g,!1);var h=function(){l++,process.env.NODE_ENV!=="production"&&zn("Parent: Sending handshake attempt "+l,{childOrigin:a}),i.child.postMessage({postmate:"handshake",type:Lo,model:i.model},a),l===VB&&clearInterval(c)},v=function(){h(),c=setInterval(h,500)};i.frame.attachEvent?i.frame.attachEvent("onload",v):i.frame.onload=v,process.env.NODE_ENV!=="production"&&zn("Parent: Loading frame",{url:r}),i.frame.src=r})},e}();Ji.debug=!1;Ji.Promise=function(){try{return window?window.Promise:Promise}catch{return null}}();Ji.Model=function(){function e(n){return this.child=window,this.model=n,this.parent=this.child.parent,this.sendHandshakeReply()}var t=e.prototype;return t.sendHandshakeReply=function(){var r=this;return new Ji.Promise(function(i,a){var l=function c(d){if(d.data.postmate){if(d.data.postmate==="handshake"){process.env.NODE_ENV!=="production"&&zn("Child: Received handshake from Parent"),r.child.removeEventListener("message",c,!1),process.env.NODE_ENV!=="production"&&zn("Child: Sending handshake reply to Parent"),d.source.postMessage({postmate:"handshake-reply",type:Lo},d.origin),r.parentOrigin=d.origin;var p=d.data.model;return p&&(Object.keys(p).forEach(function(g){r.model[g]=p[g]}),process.env.NODE_ENV!=="production"&&zn("Child: Inherited and extended model from Parent")),process.env.NODE_ENV!=="production"&&zn("Child: Saving Parent origin",r.parentOrigin),i(new YB(r))}return a("Handshake Reply Failed")}};r.child.addEventListener("message",l,!1)})},e}();const ZB=e=>On.jsx(LF,{...e}),mC=B.createContext(null),QB=e=>{const{children:t,config:n}=e,{height:r,pages:i}=n,a=Ov.useLocation(),l=Ov.useNavigate(),{pathname:c}=a,d=c.split("/")[1];if(!d&&n.appType==="fullPage")return On.jsx(DF,{type:"error",message:"Missing App ID in URL!","data-testid":"missing-id-alert"});const p=B.useRef(null),g={appId:d,appConfig:null,clientApi:null,currentAction:null},[h,v]=oB((m,b)=>{switch(b.type){case"RESET":return g;case"SET_APP_CONFIG":m.appConfig=b.payload;return;case"SET_CLIENT_API":m.clientApi=b.payload;return;case"SET_CURRENT_ACTION":m.currentAction=b.payload;return;case"OPEN_RICH_MODAL":m.customPath=b.payload.path;return}},g),S={reset:()=>v({type:"RESET"}),setAppConfig:m=>v({type:"SET_APP_CONFIG",payload:m}),setClientApi:m=>v({type:"SET_CLIENT_API",payload:m}),openRichModal:m=>{var b;v({type:"OPEN_RICH_MODAL",payload:m}),(b=h.clientApi)==null||b.emit("openRichModal",m)},confirmAction:m=>{var b;v({type:"SET_CURRENT_ACTION",payload:m}),(b=h.clientApi)==null||b.emit("confirmAction",m)},navigate:m=>{var b;(b=h.clientApi)==null||b.emit("navigateViaChild",{path:m.path,label:m.label})},notify:m=>{var b;return(b=h.clientApi)==null?void 0:b.emit("notify",m)},message:m=>{var b;return(b=h.clientApi)==null?void 0:b.emit("message",m)}},C={height:r||"fullPage",pages:i||[],navigateViaParent:({path:m})=>{l(m)},resolvedConfirmAction:m=>{console.log("recieved resolvedConfirmAction from parent",m)}};return B.useEffect(()=>{p.current||(p.current=new Ji.Model(C).then(m=>{const b=m;S.setAppConfig(b.model.appConfig),S.setClientApi(b)}))},[]),h.clientApi?On.jsx(mC.Provider,{value:{state:h,actions:S},children:On.jsx("div",{className:"app-client-provider",children:t})}):On.jsxs("div",{className:"app-client-provider__loading",children:[On.jsx(kB,{}),On.jsx(GF,{children:"Setting up the connection with parent..."})]})},JB=()=>{const e=B.useContext(mC);if(!e)throw new Error("useAppClient must be used within an AppClientProvider");return e};exports.AppClientProvider=QB;exports.Button=ZB;exports.useAppClient=JB;
7
+ **/var h="application/x-postmate-v1+json",w=5,C=0,_=function(){return++C},l=function(){var r;return p.debug?(r=console).log.apply(r,arguments):null},k=function(r){var t=document.createElement("a");t.href=r;var n=t.protocol.length>4?t.protocol:window.location.protocol,e=t.host.length?t.port==="80"||t.port==="443"?t.hostname:t.host:window.location.host;return t.origin||n+"//"+e},D={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},g=function(r,t){return!(typeof t=="string"&&r.origin!==t||!r.data||typeof r.data=="object"&&!("postmate"in r.data)||r.data.type!==h||!D[r.data.postmate])},V=function(r,t){var n=typeof r[t]=="function"?r[t]():r[t];return p.Promise.resolve(n)},A=function(){function s(t){var n=this;this.parent=t.parent,this.frame=t.frame,this.child=t.child,this.childOrigin=t.childOrigin,this.events={},process.env.NODE_ENV!=="production"&&(l("Parent: Registering API"),l("Parent: Awaiting messages...")),this.listener=function(e){if(!g(e,n.childOrigin))return!1;var o=((e||{}).data||{}).value||{},i=o.data,d=o.name;e.data.postmate==="emit"&&(process.env.NODE_ENV!=="production"&&l("Parent: Received event emission: "+d),d in n.events&&n.events[d].call(n,i))},this.parent.addEventListener("message",this.listener,!1),process.env.NODE_ENV!=="production"&&l("Parent: Awaiting event emissions from Child")}var r=s.prototype;return r.get=function(n){var e=this;return new p.Promise(function(o){var i=_(),d=function a(c){c.data.uid===i&&c.data.postmate==="reply"&&(e.parent.removeEventListener("message",a,!1),o(c.data.value))};e.parent.addEventListener("message",d,!1),e.child.postMessage({postmate:"request",type:h,property:n,uid:i},e.childOrigin)})},r.call=function(n,e){this.child.postMessage({postmate:"call",type:h,property:n,data:e},this.childOrigin)},r.on=function(n,e){this.events[n]=e},r.destroy=function(){process.env.NODE_ENV!=="production"&&l("Parent: Destroying Postmate instance"),window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)},s}(),L=function(){function s(t){var n=this;this.model=t.model,this.parent=t.parent,this.parentOrigin=t.parentOrigin,this.child=t.child,process.env.NODE_ENV!=="production"&&(l("Child: Registering API"),l("Child: Awaiting messages...")),this.child.addEventListener("message",function(e){if(g(e,n.parentOrigin)){process.env.NODE_ENV!=="production"&&l("Child: Received request",e.data);var o=e.data,i=o.property,d=o.uid,a=o.data;if(e.data.postmate==="call"){i in n.model&&typeof n.model[i]=="function"&&n.model[i](a);return}V(n.model,i).then(function(c){return e.source.postMessage({property:i,postmate:"reply",type:h,uid:d,value:c},e.origin)})}})}var r=s.prototype;return r.emit=function(n,e){process.env.NODE_ENV!=="production"&&l('Child: Emitting Event "'+n+'"',e),this.parent.postMessage({postmate:"emit",type:h,value:{name:n,data:e}},this.parentOrigin)},s}(),p=function(){function s(t){var n=t.container,e=n===void 0?typeof e<"u"?e:document.body:n,o=t.model,i=t.url,d=t.name,a=t.classListArray,c=a===void 0?[]:a;return this.parent=window,this.frame=document.createElement("iframe"),this.frame.name=d||"",this.frame.classList.add.apply(this.frame.classList,c),e.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=o||{},this.sendHandshake(i)}var r=s.prototype;return r.sendHandshake=function(n){var e=this,o=k(n),i=0,d;return new s.Promise(function(a,c){var f=function v(m){return g(m,o)?m.data.postmate==="handshake-reply"?(clearInterval(d),process.env.NODE_ENV!=="production"&&l("Parent: Received handshake reply from Child"),e.parent.removeEventListener("message",v,!1),e.childOrigin=m.origin,process.env.NODE_ENV!=="production"&&l("Parent: Saving Child origin",e.childOrigin),a(new A(e))):(process.env.NODE_ENV!=="production"&&l("Parent: Invalid handshake reply"),c("Failed handshake")):!1};e.parent.addEventListener("message",f,!1);var E=function(){i++,process.env.NODE_ENV!=="production"&&l("Parent: Sending handshake attempt "+i,{childOrigin:o}),e.child.postMessage({postmate:"handshake",type:h,model:e.model},o),i===w&&clearInterval(d)},y=function(){E(),d=setInterval(E,500)};e.frame.attachEvent?e.frame.attachEvent("onload",y):e.frame.onload=y,process.env.NODE_ENV!=="production"&&l("Parent: Loading frame",{url:n}),e.frame.src=n})},s}();p.debug=!1;p.Promise=function(){try{return window?window.Promise:Promise}catch{return null}}();p.Model=function(){function s(t){return this.child=window,this.model=t,this.parent=this.child.parent,this.sendHandshakeReply()}var r=s.prototype;return r.sendHandshakeReply=function(){var n=this;return new p.Promise(function(e,o){var i=function d(a){if(a.data.postmate){if(a.data.postmate==="handshake"){process.env.NODE_ENV!=="production"&&l("Child: Received handshake from Parent"),n.child.removeEventListener("message",d,!1),process.env.NODE_ENV!=="production"&&l("Child: Sending handshake reply to Parent"),a.source.postMessage({postmate:"handshake-reply",type:h},a.origin),n.parentOrigin=a.origin;var c=a.data.model;return c&&(Object.keys(c).forEach(function(f){n.model[f]=c[f]}),process.env.NODE_ENV!=="production"&&l("Child: Inherited and extended model from Parent")),process.env.NODE_ENV!=="production"&&l("Child: Saving Parent origin",n.parentOrigin),e(new L(n))}return o("Handshake Reply Failed")}};n.child.addEventListener("message",i,!1)})},s}();const P={isLoading:!0},N=u.createContext(P),I=()=>u.useContext(N),R=({children:s,config:r})=>{const[t,n]=u.useState({}),[e,o]=u.useState(P);u.useEffect(()=>{if(r.forceRedirect&&!r.isDev&&window.self===window.top){console.error("This app must be run inside an iframe when forceRedirect is true.");return}const d=new p.Model({setData:a=>{console.log("AppClientProvider: setData",a),n(a)}});d.then(a=>{console.log("AppClientProvider: handshake success",a),a.emit("init",r)}),d.catch(a=>{console.error("AppClientProvider: handshake error",a)}),o({isLoading:!1})},[r]);const i={...e,data:t};return console.log("client context value",i),O.jsx(N.Provider,{value:i,children:s})};exports.AppClientProvider=R;exports.useAppClient=I;