@akinon/ui-collapse 0.0.1

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 ADDED
@@ -0,0 +1,125 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ka=require("react/jsx-runtime"),R=require("react"),Ga=require("react-dom");function Xa(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 h=Xa(R);function Ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ro={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var c=n.apply(null,a);c&&r.push(c)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&r.push(s)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ro);var qa=ro.exports;const Te=Ya(qa);function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}var gn={exports:{}},D={};/**
6
+ * @license React
7
+ * react-is.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */var dr;function Qa(){if(dr)return D;dr=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function p(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case o:case r:case l:case d:return f;default:switch(f=f&&f.$$typeof,f){case c:case i:case s:case v:case u:case a:return f;default:return y}}case t:return y}}}return D.ContextConsumer=i,D.ContextProvider=a,D.Element=e,D.ForwardRef=s,D.Fragment=n,D.Lazy=v,D.Memo=u,D.Portal=t,D.Profiler=o,D.StrictMode=r,D.Suspense=l,D.SuspenseList=d,D.isAsyncMode=function(){return!1},D.isConcurrentMode=function(){return!1},D.isContextConsumer=function(f){return p(f)===i},D.isContextProvider=function(f){return p(f)===a},D.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},D.isForwardRef=function(f){return p(f)===s},D.isFragment=function(f){return p(f)===n},D.isLazy=function(f){return p(f)===v},D.isMemo=function(f){return p(f)===u},D.isPortal=function(f){return p(f)===t},D.isProfiler=function(f){return p(f)===o},D.isStrictMode=function(f){return p(f)===r},D.isSuspense=function(f){return p(f)===l},D.isSuspenseList=function(f){return p(f)===d},D.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===l||f===d||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===u||f.$$typeof===a||f.$$typeof===i||f.$$typeof===s||f.$$typeof===S||f.getModuleId!==void 0)},D.typeOf=p,D}var H={};/**
14
+ * @license React
15
+ * react-is.development.js
16
+ *
17
+ * Copyright (c) Facebook, Inc. and its affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */var vr;function Za(){return vr||(vr=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S=!1,p=!1,f=!1,y=!1,m=!1,O;O=Symbol.for("react.module.reference");function E(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===o||m||w===r||w===l||w===d||y||w===g||S||p||f||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===u||w.$$typeof===a||w.$$typeof===i||w.$$typeof===s||w.$$typeof===O||w.getModuleId!==void 0))}function x(w){if(typeof w=="object"&&w!==null){var oe=w.$$typeof;switch(oe){case e:var we=w.type;switch(we){case n:case o:case r:case l:case d:return we;default:var Ae=we&&we.$$typeof;switch(Ae){case c:case i:case s:case v:case u:case a:return Ae;default:return oe}}case t:return oe}}}var C=i,b=a,M=e,A=s,T=n,N=v,_=u,k=t,L=o,I=r,F=l,z=d,U=!1,W=!1;function X(w){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(w){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(w){return x(w)===i}function se(w){return x(w)===a}function re(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function pe(w){return x(w)===s}function Be(w){return x(w)===n}function tt(w){return x(w)===v}function nt(w){return x(w)===u}function rt(w){return x(w)===t}function ze(w){return x(w)===o}function be(w){return x(w)===r}function ot(w){return x(w)===l}function We(w){return x(w)===d}H.ContextConsumer=C,H.ContextProvider=b,H.Element=M,H.ForwardRef=A,H.Fragment=T,H.Lazy=N,H.Memo=_,H.Portal=k,H.Profiler=L,H.StrictMode=I,H.Suspense=F,H.SuspenseList=z,H.isAsyncMode=X,H.isConcurrentMode=te,H.isContextConsumer=Y,H.isContextProvider=se,H.isElement=re,H.isForwardRef=pe,H.isFragment=Be,H.isLazy=tt,H.isMemo=nt,H.isPortal=rt,H.isProfiler=ze,H.isStrictMode=be,H.isSuspense=ot,H.isSuspenseList=We,H.isValidElementType=E,H.typeOf=x}()),H}process.env.NODE_ENV==="production"?gn.exports=Qa():gn.exports=Za();var oo=gn.exports;function $t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return R.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat($t(r)):oo.isFragment(r)&&r.props?n=n.concat($t(r.props.children,t)):n.push(r))}),n}var hn={},Kn=[],Ja=function(t){Kn.push(t)};function Gn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Kn.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function ei(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Kn.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function ao(){hn={}}function io(e,t,n){!t&&!hn[n]&&(e(!1,n),hn[n]=!0)}function Re(e,t){io(Gn,e,t)}function ti(e,t){io(ei,e,t)}Re.preMessage=Ja;Re.resetWarned=ao;Re.noteOnce=ti;function K(e){"@babel/helpers - typeof";return K=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},K(e)}function ni(e,t){if(K(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(K(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function co(e){var t=ni(e,"string");return K(t)==="symbol"?t:String(t)}function $(e,t,n){return t=co(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pr(Object(n),!0).forEach(function(r){$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ri(e){return e instanceof HTMLElement||e instanceof SVGElement}function oi(e){return ri(e)?e:e instanceof R.Component?Ga.findDOMNode(e):null}function so(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function ai(e,t){typeof e=="function"?e(t):K(e)==="object"&&e&&"current"in e&&(e.current=t)}function ii(e){var t,n,r=oo.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(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,co(r.key),r)}}function ht(e,t,n){return t&&gr(e.prototype,t),n&&gr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},mn(e,t)}function lo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mn(e,t)}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jt(e)}function ci(){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 bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function si(e,t){if(t&&(K(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function uo(e){var t=ci();return function(){var r=jt(e),o;if(t){var a=jt(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return si(this,o)}}function hr(e,t){var n=j({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function yn(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 li(e){if(Array.isArray(e))return yn(e)}function fo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xn(e,t){if(e){if(typeof e=="string")return yn(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 yn(e,t)}}function ui(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(e){return li(e)||fo(e)||Xn(e)||ui()}var vo=function(t){return+setTimeout(t,16)},po=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(vo=function(t){return window.requestAnimationFrame(t)},po=function(t){return window.cancelAnimationFrame(t)});var mr=0,Yn=new Map;function go(e){Yn.delete(e)}var Sn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mr+=1;var r=mr;function o(a){if(a===0)go(r),t();else{var i=vo(function(){o(a-1)});Yn.set(r,i)}}return o(n),r};Sn.cancel=function(e){var t=Yn.get(e);return go(t),po(t)};function qn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function fi(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ft(e,t){if(e==null)return{};var n=fi(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function di(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(Re(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&c>1)return!1;r.add(a);var l=c+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],l))return!1;return!0}if(a&&i&&K(a)==="object"&&K(i)==="object"){var u=Object.keys(a);return u.length!==Object.keys(i).length?!1:u.every(function(v){return o(a[v],i[v],l)})}return!1}return o(e,t)}var br="%",vi=function(){function e(t){gt(this,e),$(this,"instanceId",void 0),$(this,"cache",new Map),this.instanceId=t}return ht(e,[{key:"get",value:function(n){return this.cache.get(n.join(br))||null}},{key:"update",value:function(n,r){var o=n.join(br),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i)}}]),e}(),En="data-token-hash",$e="data-css-hash",pi="data-cache-path",Ge="__cssinjs_instance__";function gi(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($e,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ge]=o[Ge]||e,o[Ge]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat($e,"]"))).forEach(function(o){var a=o.getAttribute($e);if(r[a]){if(o[Ge]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new vi(e)}var hi=h.createContext({hashPriority:"low",cache:gi(),defaultCache:!0});const Qn=hi;function me(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function mi(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 yr="data-rc-order",Sr="data-rc-priority",bi="rc-util-key",Cn=new Map;function ho(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bi}function Ft(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function yi(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function mo(e){return Array.from((Cn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function bo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=yi(r),c=i==="prependQueue",s=document.createElement("style");s.setAttribute(yr,i),c&&a&&s.setAttribute(Sr,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var l=Ft(t),d=l.firstChild;if(r){if(c){var u=mo(l).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(yr)))return!1;var g=Number(v.getAttribute(Sr)||0);return a>=g});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,d)}else l.appendChild(s);return s}function yo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ft(t);return mo(n).find(function(r){return r.getAttribute(ho(t))===e})}function So(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yo(e,t);if(n){var r=Ft(t);r.removeChild(n)}}function Si(e,t){var n=Cn.get(e);if(!n||!mi(document,n)){var r=bo("",t),o=r.parentNode;Cn.set(e,o),e.removeChild(r)}}function Lt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ft(n);Si(r,n);var o=yo(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;o.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=bo(e,n);return s.setAttribute(ho(n),t),s}function Eo(e){if(Array.isArray(e))return e}function Ei(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(d){l=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function Co(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(e,t){return Eo(e)||Ei(e,t)||Xn(e,t)||Co()}function Ci(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 Zn=function(){function e(){gt(this,e),$(this,"cache",void 0),$(this,"keys",void 0),$(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ht(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(c){if(!i)i=void 0;else{var s,l;i=(s=i)===null||s===void 0||(l=s.map)===null||l===void 0?void 0:l.get(c)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,d){var u=B(l,2),v=u[1];return o.internalGet(d)[1]<v?[d,o.internalGet(d)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=B(a,1),c=i[0];this.delete(c)}this.keys.push(n)}var s=this.cache;n.forEach(function(l,d){if(d===n.length-1)s.set(l,{value:[r,o.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Ci(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();$(Zn,"MAX_CACHE_SIZE",20);$(Zn,"MAX_CACHE_OFFSET",5);var Er=0,xo=function(){function e(t){gt(this,e),$(this,"derivatives",void 0),$(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Er,t.length===0&&Gn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Er+=1}return ht(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Zt=new Zn;function xn(e){var t=Array.isArray(e)?e:[e];return Zt.has(t)||Zt.set(t,new xo(t)),Zt.get(t)}var xi=new WeakMap,Jt={};function Ti(e,t){for(var n=xi,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Jt)||n.set(Jt,e()),n.get(Jt)}var Cr=new WeakMap;function Dt(e){var t=Cr.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xo?t+=r.id:r&&K(r)==="object"?t+=Dt(r):t+=r}),Cr.set(e,t)),t}function Oi(e,t){return qn("".concat(t,"_").concat(Dt(e)))}var lt="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),To="_bAmBoO_";function wi(e,t,n){if(me()){var r,o;Lt(e,lt);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 i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(To);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),So(lt),i}return!1}var en=void 0;function Ai(){return en===void 0&&(en=wi("@layer ".concat(lt," { .").concat(lt,' { content: "').concat(To,'"!important; } }'),function(e){e.className=lt})),en}var xr=process.env.NODE_ENV!=="test"&&me()?h.useLayoutEffect:h.useEffect,Oo=function(t,n){var r=h.useRef(!0);xr(function(){return t(r.current)},n),xr(function(){return r.current=!1,function(){r.current=!0}},[])},Tr=function(t,n){Oo(function(r){if(!r)return t()},n)},Pi=j({},h),Or=Pi.useInsertionEffect,Mi=function(t,n,r){h.useMemo(t,r),Oo(function(){return n(!0)},r)},Ri=Or?function(e,t,n){return Or(function(){return e(),t()},n)}:Mi;const _i=Ri;var Ii=j({},h),ki=Ii.useInsertionEffect,Ni=function(t){var n=[],r=!1;function o(a){if(r){process.env.NODE_ENV!=="production"&&Gn(!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 h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},$i=function(){return function(t){t()}},ji=typeof ki<"u"?Ni:$i;const Li=ji;function Di(){return!1}var Tn=!1;function Hi(){return Tn}const Fi=process.env.NODE_ENV==="production"?Di:Hi;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var tn=window;if(typeof tn.webpackHotUpdate=="function"){var Bi=tn.webpackHotUpdate;tn.webpackHotUpdate=function(){return Tn=!0,setTimeout(function(){Tn=!1},0),Bi.apply(void 0,arguments)}}}function wo(e,t,n,r,o){var a=h.useContext(Qn),i=a.cache,c=[e].concat(Oe(t)),s=c.join("_"),l=Li([s]),d=Fi(),u=function(p){i.update(c,function(f){var y=f||[],m=B(y,2),O=m[0],E=O===void 0?0:O,x=m[1],C=x;process.env.NODE_ENV!=="production"&&x&&d&&(r==null||r(C,d),C=null);var b=C||n(),M=[E,b];return p?p(M):M})};h.useMemo(function(){u()},[s]);var v=i.get(c);process.env.NODE_ENV!=="production"&&!v&&(u(),v=i.get(c));var g=v[1];return _i(function(){o==null||o(g)},function(S){return u(function(p){var f=B(p,2),y=f[0],m=f[1];return S&&y===0&&(o==null||o(g)),[y+1,m]}),function(){i.update(c,function(p){var f=p||[],y=B(f,2),m=y[0],O=m===void 0?0:m,E=y[1],x=O-1;return x===0?(l(function(){return r==null?void 0:r(E,!1)}),null):[O-1,E]})}},[s]),g}var zi={},Wi=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ke=new Map;function Ui(e){ke.set(e,(ke.get(e)||0)+1)}function Vi(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(En,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ge]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Ki=0;function Gi(e,t){ke.set(e,(ke.get(e)||0)-1);var n=Array.from(ke.keys()),r=n.filter(function(o){var a=ke.get(o)||0;return a<=0});n.length-r.length>Ki&&r.forEach(function(o){Vi(o,t),ke.delete(o)})}var Xi=function(t,n,r,o){var a=r.getDerivativeToken(t),i=j(j({},a),n);return o&&(i=o(i)),i};function Yi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.useContext(Qn),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,c=n.override,s=c===void 0?zi:c,l=n.formatToken,d=n.getComputedToken,u=Ti(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),v=Dt(u),g=Dt(s),S=wo("token",[i,e.id,v,g],function(){var p=d?d(u,s,e):Xi(u,s,e,l),f=Oi(p,i);p._tokenKey=f,Ui(f);var y="".concat(Wi,"-").concat(qn(f));return p._hashId=y,[p,y]},function(p){Gi(p[0]._tokenKey,o)});return S}var qi={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},Ao="comm",Po="rule",Mo="decl",Qi="@import",Zi="@keyframes",Ji="@layer",ec=Math.abs,Jn=String.fromCharCode;function Ro(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function tc(e,t){return e.indexOf(t)}function dt(e,t){return e.charCodeAt(t)|0}function vt(e,t,n){return e.slice(t,n)}function xe(e){return e.length}function nc(e){return e.length}function St(e,t){return t.push(e),e}var Bt=1,Qe=1,_o=0,ue=0,V=0,Ze="";function er(e,t,n,r,o,a,i,c){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Bt,column:Qe,length:i,return:"",siblings:c}}function rc(){return V}function oc(){return V=ue>0?dt(Ze,--ue):0,Qe--,V===10&&(Qe=1,Bt--),V}function ve(){return V=ue<_o?dt(Ze,ue++):0,Qe++,V===10&&(Qe=1,Bt++),V}function je(){return dt(Ze,ue)}function _t(){return ue}function zt(e,t){return vt(Ze,e,t)}function On(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 ac(e){return Bt=Qe=1,_o=xe(Ze=e),ue=0,[]}function ic(e){return Ze="",e}function nn(e){return Ro(zt(ue-1,wn(e===91?e+2:e===40?e+1:e)))}function cc(e){for(;(V=je())&&V<33;)ve();return On(e)>2||On(V)>3?"":" "}function sc(e,t){for(;--t&&ve()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return zt(e,_t()+(t<6&&je()==32&&ve()==32))}function wn(e){for(;ve();)switch(V){case e:return ue;case 34:case 39:e!==34&&e!==39&&wn(V);break;case 40:e===41&&wn(e);break;case 92:ve();break}return ue}function lc(e,t){for(;ve()&&e+V!==47+10;)if(e+V===42+42&&je()===47)break;return"/*"+zt(t,ue-1)+"*"+Jn(e===47?e:ve())}function uc(e){for(;!On(je());)ve();return zt(e,ue)}function fc(e){return ic(It("",null,null,null,[""],e=ac(e),0,[0],e))}function It(e,t,n,r,o,a,i,c,s){for(var l=0,d=0,u=i,v=0,g=0,S=0,p=1,f=1,y=1,m=0,O="",E=o,x=a,C=r,b=O;f;)switch(S=m,m=ve()){case 40:if(S!=108&&dt(b,u-1)==58){tc(b+=Rt(nn(m),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=nn(m);break;case 9:case 10:case 13:case 32:b+=cc(S);break;case 92:b+=sc(_t()-1,7);continue;case 47:switch(je()){case 42:case 47:St(dc(lc(ve(),_t()),t,n,s),s);break;default:b+="/"}break;case 123*p:c[l++]=xe(b)*y;case 125*p:case 59:case 0:switch(m){case 0:case 125:f=0;case 59+d:y==-1&&(b=Rt(b,/\f/g,"")),g>0&&xe(b)-u&&St(g>32?Ar(b+";",r,n,u-1,s):Ar(Rt(b," ","")+";",r,n,u-2,s),s);break;case 59:b+=";";default:if(St(C=wr(b,t,n,l,d,o,c,O,E=[],x=[],u,a),a),m===123)if(d===0)It(b,t,C,C,E,a,u,c,x);else switch(v===99&&dt(b,3)===110?100:v){case 100:case 108:case 109:case 115:It(e,C,C,r&&St(wr(e,C,C,0,0,o,c,O,o,E=[],u,x),x),o,x,u,c,r?E:x);break;default:It(b,C,C,C,[""],x,0,c,x)}}l=d=g=0,p=y=1,O=b="",u=i;break;case 58:u=1+xe(b),g=S;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&oc()==125)continue}switch(b+=Jn(m),m*p){case 38:y=d>0?1:(b+="\f",-1);break;case 44:c[l++]=(xe(b)-1)*y,y=1;break;case 64:je()===45&&(b+=nn(ve())),v=je(),d=u=xe(O=b+=uc(_t())),m++;break;case 45:S===45&&xe(b)==2&&(p=0)}}return a}function wr(e,t,n,r,o,a,i,c,s,l,d,u){for(var v=o-1,g=o===0?a:[""],S=nc(g),p=0,f=0,y=0;p<r;++p)for(var m=0,O=vt(e,v+1,v=ec(f=i[p])),E=e;m<S;++m)(E=Ro(f>0?g[m]+" "+O:Rt(O,/&\f/g,g[m])))&&(s[y++]=E);return er(e,t,n,o===0?Po:c,s,l,d,u)}function dc(e,t,n,r){return er(e,t,n,Ao,Jn(rc()),vt(e,2,-2),0,r)}function Ar(e,t,n,r,o){return er(e,t,n,Mo,vt(e,0,r),vt(e,r+1,-1),r,o)}function An(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function vc(e,t,n,r){switch(e.type){case Ji:if(e.children.length)break;case Qi:case Mo:return e.return=e.return||e.value;case Ao:return"";case Zi:return e.return=e.value+"{"+An(e.children,r)+"}";case Po:if(!xe(e.value=e.props.join(",")))return""}return xe(n=An(e.children,r))?e.return=e.value+"{"+n+"}":""}function Io(e,t){var n=t.path,r=t.parentSelectors;Re(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var pc=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Io("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},gc=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Io("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Pr="data-ant-cssinjs-cache-path",ko="_FILE_STYLE__",Le,No=!0;function hc(){if(!Le&&(Le={},me())){var e=document.createElement("div");e.className=Pr,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=B(a,2),c=i[0],s=i[1];Le[c]=s});var n=document.querySelector("style[".concat(Pr,"]"));if(n){var r;No=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function mc(e){return hc(),!!Le[e]}function bc(e){var t=Le[e],n=null;if(t&&me())if(No)n=ko;else{var r=document.querySelector("style[".concat($e,'="').concat(Le[e],'"]'));r?n=r.innerHTML:delete Le[e]}return[n,t]}var Mr=me(),$o="_skip_check_",jo="_multi_value_";function Rr(e){var t=An(fc(e),vc);return t.replace(/\{%%%\:[^;];}/g,";")}function yc(e){return K(e)==="object"&&e&&($o in e||jo in e)}function Sc(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var c,s=i.trim().split(/\s+/),l=s[0]||"",d=((c=l.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return l="".concat(d).concat(o).concat(l.slice(d.length)),[l].concat(Oe(s.slice(1))).join(" ")});return a.join(",")}var Ec=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,c=n.hashId,s=n.layer,l=n.path,d=n.hashPriority,u=n.transformers,v=u===void 0?[]:u,g=n.linters,S=g===void 0?[]:g,p="",f={};function y(C){var b=C.getName(c);if(!f[b]){var M=e(C.style,n,{root:!1,parentSelectors:i}),A=B(M,1),T=A[0];f[b]="@keyframes ".concat(C.getName(c)).concat(T)}}function m(C){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(M){Array.isArray(M)?m(M,b):M&&b.push(M)}),b}var O=m(Array.isArray(t)?t:[t]);if(O.forEach(function(C){var b=typeof C=="string"&&!o?{}:C;if(typeof b=="string")p+="".concat(b,`
24
+ `);else if(b._keyframe)y(b);else{var M=v.reduce(function(A,T){var N;return(T==null||(N=T.visit)===null||N===void 0?void 0:N.call(T,A))||A},b);Object.keys(M).forEach(function(A){var T=M[A];if(K(T)==="object"&&T&&(A!=="animationName"||!T._keyframe)&&!yc(T)){var N=!1,_=A.trim(),k=!1;(o||a)&&c?_.startsWith("@")?N=!0:_=Sc(A,c,d):o&&!c&&(_==="&"||_==="")&&(_="",k=!0);var L=e(T,n,{root:k,injectHash:N,parentSelectors:[].concat(Oe(i),[_])}),I=B(L,2),F=I[0],z=I[1];f=j(j({},f),z),p+="".concat(_).concat(F)}else{let X=function(te,Y){process.env.NODE_ENV!=="production"&&(K(T)!=="object"||!(T!=null&&T[$o]))&&[pc,gc].concat(Oe(S)).forEach(function(pe){return pe(te,Y,{path:l,hashId:c,parentSelectors:i})});var se=te.replace(/[A-Z]/g,function(pe){return"-".concat(pe.toLowerCase())}),re=Y;!qi[te]&&typeof re=="number"&&re!==0&&(re="".concat(re,"px")),te==="animationName"&&Y!==null&&Y!==void 0&&Y._keyframe&&(y(Y),re=Y.getName(c)),p+="".concat(se,":").concat(re,";")};var U,W=(U=T==null?void 0:T.value)!==null&&U!==void 0?U:T;K(T)==="object"&&T!==null&&T!==void 0&&T[jo]&&Array.isArray(W)?W.forEach(function(te){X(A,te)}):X(A,W)}})}}),!o)p="{".concat(p,"}");else if(s&&Ai()){var E=s.split(","),x=E[E.length-1].trim();p="@layer ".concat(x," {").concat(p,"}"),E.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,f]};function Cc(e,t){return qn("".concat(e.join("%")).concat(t))}function xc(){return null}function Pn(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,c=e.clientOnly,s=e.order,l=s===void 0?0:s,d=h.useContext(Qn),u=d.autoClear,v=d.mock,g=d.defaultCache,S=d.hashPriority,p=d.container,f=d.ssrInline,y=d.transformers,m=d.linters,O=d.cache,E=n._tokenKey,x=[E].concat(Oe(r)),C=Mr;process.env.NODE_ENV!=="production"&&v!==void 0&&(C=v==="client");var b=wo("style",x,function(){var _=x.join("|");if(mc(_)){var k=bc(_),L=B(k,2),I=L[0],F=L[1];if(I)return[I,E,F,{},c,l]}var z=t(),U=Ec(z,{hashId:o,hashPriority:S,layer:a,path:r.join("-"),transformers:y,linters:m}),W=B(U,2),X=W[0],te=W[1],Y=Rr(X),se=Cc(x,Y);return[Y,E,se,te,c,l]},function(_,k){var L=B(_,3),I=L[2];(k||u)&&Mr&&So(I,{mark:$e})},function(_){var k=B(_,4),L=k[0];k[1];var I=k[2],F=k[3];if(C&&L!==ko){var z={mark:$e,prepend:"queue",attachTo:p,priority:l},U=typeof i=="function"?i():i;U&&(z.csp={nonce:U});var W=Lt(L,I,z);W[Ge]=O.instanceId,W.setAttribute(En,E),process.env.NODE_ENV!=="production"&&W.setAttribute(pi,x.join("|")),Object.keys(F).forEach(function(X){Lt(Rr(F[X]),"_effect-".concat(X),z)})}}),M=B(b,3),A=M[0],T=M[1],N=M[2];return function(_){var k;if(!f||C||!g)k=h.createElement(xc,null);else{var L;k=h.createElement("style",De({},(L={},$(L,En,T),$(L,$e,N),L),{dangerouslySetInnerHTML:{__html:A}}))}return h.createElement(h.Fragment,null,k,_)}}function Ve(e){return e.notSplit=!0,e}Ve(["borderTop","borderBottom"]),Ve(["borderTop"]),Ve(["borderBottom"]),Ve(["borderLeft","borderRight"]),Ve(["borderLeft"]),Ve(["borderRight"]);var Tc=R.createContext({});const tr=Tc;function Oc(e){return Eo(e)||fo(e)||Xn(e)||Co()}function Mn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Lo(e,t,n,r){if(!t.length)return n;var o=Oc(t),a=o[0],i=o.slice(1),c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=Oe(e):c=j({},e),r&&n===void 0&&i.length===1?delete c[a][i[0]]:c[a]=Lo(c[a],i,n,r),c}function rn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mn(e,t.slice(0,-1))?e:Lo(e,t,n,r)}function wc(e){return K(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function _r(e){return Array.isArray(e)?[]:{}}var Ac=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Pc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=_r(t[0]);return t.forEach(function(o){function a(i,c){var s=new Set(c),l=Mn(o,i),d=Array.isArray(l);if(d||wc(l)){if(!s.has(l)){s.add(l);var u=Mn(r,i);d?r=rn(r,i,[]):(!u||K(u)!=="object")&&(r=rn(r,i,_r(l))),Ac(l).forEach(function(v){a([].concat(Oe(i),[v]),s)})}}else r=rn(r,i,l)}a([])}),r}function Do(){}let Ce=null;function Mc(){Ce=null,ao()}let nr=Do;process.env.NODE_ENV!=="production"&&(nr=(e,t,n)=>{Re(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Mc()});const Ho=h.createContext({}),Wt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(Ho),n=(r,o,a)=>{if(!r)if(t===!1&&o==="deprecated"){const i=Ce;Ce||(Ce={}),Ce[e]=Ce[e]||[],Ce[e].includes(a||"")||Ce[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ce)}else process.env.NODE_ENV!=="production"&&nr(r,e,a)};return n.deprecated=(r,o,a,i)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Do,e},Ut=nr,Rc=R.createContext(void 0),_c={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 Ic={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 kc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fo=kc,Nc={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"]},Ic),timePickerLocale:Object.assign({},Fo)},Ir=Nc,ae="${label} is not a valid ${type}",$c={locale:"en",Pagination:_c,DatePicker:Ir,TimePicker:Fo,Calendar:Ir,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:ae,method:ae,array:ae,object:ae,number:ae,date:ae,boolean:ae,integer:ae,float:ae,regexp:ae,email:ae,url:ae,hex:ae},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"}},Vt=$c;Object.assign({},Vt.Modal);let kt=[];const kr=()=>kt.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vt.Modal);function jc(e){if(e){const t=Object.assign({},e);return kt.push(t),kr(),()=>{kt=kt.filter(n=>n!==t),kr()}}Object.assign({},Vt.Modal)}const Lc=R.createContext(void 0),Bo=Lc,zo="internalMark",Wo=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=Wt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===zo,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>jc(t&&t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Bo.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(Wo.displayName="LocaleProvider");const Dc=Wo;function ee(e,t){Hc(e)&&(e="100%");var n=Fc(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 Et(e){return Math.min(1,Math.max(0,e))}function Hc(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Fc(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Uo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ct(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ne(e){return e.length===1?"0"+e:String(e)}function Bc(e,t,n){return{r:ee(e,255)*255,g:ee(t,255)*255,b:ee(n,255)*255}}function Nr(e,t,n){e=ee(e,255),t=ee(t,255),n=ee(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,c=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=c>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:i,l:c}}function on(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 zc(e,t,n){var r,o,a;if(e=ee(e,360),t=ee(t,100),n=ee(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,c=2*n-i;r=on(c,i,e+1/3),o=on(c,i,e),a=on(c,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Rn(e,t,n){e=ee(e,255),t=ee(t,255),n=ee(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,c=r-o,s=r===0?0:c/r;if(r===o)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,v:i}}function Wc(e,t,n){e=ee(e,360)*6,t=ee(t,100),n=ee(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),c=n*(1-(1-o)*t),s=r%6,l=[n,i,a,a,c,n][s],d=[c,n,n,i,a,a][s],u=[a,a,c,n,n,i][s];return{r:l*255,g:d*255,b:u*255}}function _n(e,t,n,r){var o=[Ne(Math.round(e).toString(16)),Ne(Math.round(t).toString(16)),Ne(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Uc(e,t,n,r,o){var a=[Ne(Math.round(e).toString(16)),Ne(Math.round(t).toString(16)),Ne(Math.round(n).toString(16)),Ne(Vc(r))];return o&&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 Vc(e){return Math.round(parseFloat(e)*255).toString(16)}function $r(e){return ie(e)/255}function ie(e){return parseInt(e,16)}function Kc(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var In={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 Ke(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,c=!1;return typeof e=="string"&&(e=Yc(e)),typeof e=="object"&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=Bc(e.r,e.g,e.b),i=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(r=Ct(e.s),o=Ct(e.v),t=Wc(e.h,r,o),i=!0,c="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(r=Ct(e.s),a=Ct(e.l),t=zc(e.h,r,a),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Uo(n),{ok:i,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 Gc="[-\\+]?\\d+%?",Xc="[-\\+]?\\d*\\.\\d+%?",Pe="(?:".concat(Xc,")|(?:").concat(Gc,")"),an="[\\s|\\(]+(".concat(Pe,")[,|\\s]+(").concat(Pe,")[,|\\s]+(").concat(Pe,")\\s*\\)?"),cn="[\\s|\\(]+(".concat(Pe,")[,|\\s]+(").concat(Pe,")[,|\\s]+(").concat(Pe,")[,|\\s]+(").concat(Pe,")\\s*\\)?"),fe={CSS_UNIT:new RegExp(Pe),rgb:new RegExp("rgb"+an),rgba:new RegExp("rgba"+cn),hsl:new RegExp("hsl"+an),hsla:new RegExp("hsla"+cn),hsv:new RegExp("hsv"+an),hsva:new RegExp("hsva"+cn),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 Yc(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(In[e])e=In[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fe.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fe.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fe.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fe.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fe.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fe.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fe.hex8.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),a:$r(n[4]),format:t?"name":"hex8"}:(n=fe.hex6.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),format:t?"name":"hex"}:(n=fe.hex4.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),a:$r(n[4]+n[4]),format:t?"name":"hex8"}:(n=fe.hex3.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Se(e){return!!fe.CSS_UNIT.exec(String(e))}var ce=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=Kc(t)),this.originalInput=t;var o=Ke(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,a=t.r/255,i=t.g/255,c=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Uo(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=Rn(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=Rn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nr(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=Nr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_n(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),Uc(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(ee(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(ee(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="#"+_n(this.r,this.g,this.b,!1),n=0,r=Object.entries(In);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(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=Et(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=Et(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=Et(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=Et(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(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%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,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+c)%1;return i},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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),xt=2,jr=.16,qc=.05,Qc=.05,Zc=.15,Vo=5,Ko=4,Jc=[{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 Lr(e){var t=e.r,n=e.g,r=e.b,o=Rn(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Tt(e){var t=e.r,n=e.g,r=e.b;return"#".concat(_n(t,n,r,!1))}function es(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Dr(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xt*t:Math.round(e.h)+xt*t:r=n?Math.round(e.h)+xt*t:Math.round(e.h)-xt*t,r<0?r+=360:r>=360&&(r-=360),r}function Hr(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-jr*t:t===Ko?r=e.s+jr:r=e.s+qc*t,r>1&&(r=1),n&&t===Vo&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Fr(e,t,n){var r;return n?r=e.v+Qc*t:r=e.v-Zc*t,r>1&&(r=1),Number(r.toFixed(2))}function He(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ke(e),o=Vo;o>0;o-=1){var a=Lr(r),i=Tt(Ke({h:Dr(a,o,!0),s:Hr(a,o,!0),v:Fr(a,o,!0)}));n.push(i)}n.push(Tt(r));for(var c=1;c<=Ko;c+=1){var s=Lr(r),l=Tt(Ke({h:Dr(s,c),s:Hr(s,c),v:Fr(s,c)}));n.push(l)}return t.theme==="dark"?Jc.map(function(d){var u=d.index,v=d.opacity,g=Tt(es(Ke(t.backgroundColor||"#141414"),Ke(n[u]),v*100));return g}):n}var sn={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"},Nt={},ln={};Object.keys(sn).forEach(function(e){Nt[e]=He(sn[e]),Nt[e].primary=Nt[e][5],ln[e]=He(sn[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var ts=Nt.blue;const ns=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},rs=ns;function os(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 Go={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"},as=Object.assign(Object.assign({},Go),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
25
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
26
+ '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}),pt=as;function is(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:d}=e,u=n(s),v=n(o),g=n(a),S=n(i),p=n(c),f=r(l,d),y=e.colorLink||e.colorInfo,m=n(y);return Object.assign(Object.assign({},f),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg: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:S[1],colorErrorBgHover:S[2],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new ce("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cs=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},ss=cs;function ls(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},ss(r))}const Ee=(e,t)=>new ce(e).setAlpha(t).toRgbString(),st=(e,t)=>new ce(e).darken(t).toHexString(),us=e=>{const t=He(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]}},fs=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ee(r,.88),colorTextSecondary:Ee(r,.65),colorTextTertiary:Ee(r,.45),colorTextQuaternary:Ee(r,.25),colorFill:Ee(r,.15),colorFillSecondary:Ee(r,.06),colorFillTertiary:Ee(r,.04),colorFillQuaternary:Ee(r,.02),colorBgLayout:st(n,4),colorBgContainer:st(n,0),colorBgElevated:st(n,0),colorBgSpotlight:Ee(r,.85),colorBgBlur:"transparent",colorBorder:st(n,15),colorBorderSecondary:st(n,6)}};function ds(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const vs=e=>{const t=ds(e),n=t.map(o=>o.size),r=t.map(o=>o.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]}},ps=vs;function gs(e){const t=Object.keys(Go).map(n=>{const r=He(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),is(e,{generateColorPalettes:us,generateNeutralColorPalettes:fs})),ps(e.fontSize)),os(e)),rs(e)),ls(e))}const Xo=xn(gs),Yo={token:pt,override:{override:pt},hashed:!0},qo=R.createContext(Yo),Qo="anticon",hs=(e,t)=>t||(e?`ant-${e}`:"ant"),Je=h.createContext({getPrefixCls:hs,iconPrefixCls:Qo}),ms=`-ant-${Date.now()}-${Math.random()}`;function bs(e,t){const n={},r=(i,c)=>{let s=i.clone();return s=(c==null?void 0:c(s))||s,s.toRgbString()},o=(i,c)=>{const s=new ce(i),l=He(s.toRgbString());n[`${c}-color`]=r(s),n[`${c}-color-disabled`]=l[1],n[`${c}-color-hover`]=l[4],n[`${c}-color-active`]=l[6],n[`${c}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=l[0],n[`${c}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new ce(t.primaryColor),c=He(i.toRgbString());c.forEach((l,d)=>{n[`primary-${d+1}`]=l}),n["primary-color-deprecated-l-35"]=r(i,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(i,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(i,l=>l.setAlpha(l.getAlpha()*.12));const s=new ce(c[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setAlpha(l.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
27
+ :root {
28
+ ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
29
+ `)}
30
+ }
31
+ `.trim()}function ys(e,t){const n=bs(e,t);me()?Lt(n,`${ms}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Ut(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const kn=h.createContext(!1),Ss=e=>{let{children:t,disabled:n}=e;const r=h.useContext(kn);return h.createElement(kn.Provider,{value:n??r},t)},Es=kn,Nn=h.createContext(void 0),Cs=e=>{let{children:t,size:n}=e;const r=h.useContext(Nn);return h.createElement(Nn.Provider,{value:n||r},t)},Kt=Nn;function xs(){const e=R.useContext(Es),t=R.useContext(Kt);return{componentDisabled:e,componentSize:t}}const Ts="5.11.0";function un(e){return e>=0&&e<=255}function Ot(e,t){const{r:n,g:r,b:o,a}=new ce(e).toRgb();if(a<1)return e;const{r:i,g:c,b:s}=new ce(t).toRgb();for(let l=.01;l<=1;l+=.01){const d=Math.round((n-i*(1-l))/l),u=Math.round((r-c*(1-l))/l),v=Math.round((o-s*(1-l))/l);if(un(d)&&un(u)&&un(v))return new ce({r:d,g:u,b:v,a:Math.round(l*100)/100}).toRgbString()}return new ce({r:n,g:r,b:o,a:1}).toRgbString()}var Os=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Zo(e){const{override:t}=e,n=Os(e,["override"]),r=Object.assign({},t);Object.keys(pt).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,c=768,s=992,l=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ot(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ot(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ot(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ot(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
32
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
33
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
34
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
35
+ `,boxShadowSecondary:`
36
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
37
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
38
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
39
+ `,boxShadowTertiary:`
40
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
41
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
42
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
43
+ `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
44
+ 0 1px 2px -2px ${new ce("rgba(0, 0, 0, 0.16)").toRgbString()},
45
+ 0 3px 6px 0 ${new ce("rgba(0, 0, 0, 0.12)").toRgbString()},
46
+ 0 5px 12px 4px ${new ce("rgba(0, 0, 0, 0.09)").toRgbString()}
47
+ `,boxShadowDrawerRight:`
48
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
49
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
50
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
51
+ `,boxShadowDrawerLeft:`
52
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
53
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
54
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
55
+ `,boxShadowDrawerUp:`
56
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
57
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
58
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
59
+ `,boxShadowDrawerDown:`
60
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
61
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
62
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
63
+ `,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 Br=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jo=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Br(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Zo(i),a&&Object.entries(a).forEach(c=>{let[s,l]=c;const{theme:d}=l,u=Br(l,["theme"]);let v=u;d&&(v=Jo(Object.assign(Object.assign({},i),u),{override:u},d)),i[s]=v}),i};function rr(){const{token:e,hashed:t,theme:n,override:r}=R.useContext(qo),o=`${Ts}-${t||""}`,a=n||Xo,[i,c]=Yi(a,[pt,e],{salt:o,override:r,getComputedToken:Jo,formatToken:Zo});return[a,i,t?c:""]}function zr(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function qe(e){var t=h.useRef(!1),n=h.useState(e),r=B(n,2),o=r[0],a=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(c,s){s&&t.current||a(c)}return[o,i]}function fn(e){return e!==void 0}function ws(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,c=qe(function(){return fn(o)?o:fn(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=B(c,2),l=s[0],d=s[1],u=o!==void 0?o:l,v=i?i(u):u,g=zr(a),S=qe([u]),p=B(S,2),f=p[0],y=p[1];Tr(function(){var O=f[0];l!==O&&g(l,O)},[f]),Tr(function(){fn(o)||d(o)},[o]);var m=zr(function(O,E){d(O,E),y([u],E)});return[v,m]}const As=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}},ea=()=>({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"}}),Ps=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"}}}),Ms=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ta=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let $n=!0;function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ta)return Object.assign.apply(Object,[{}].concat(t));$n=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),$n=!0,r}const Wr={};function Rs(){}function _s(e){let t,n=e,r=Rs;return ta&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return $n&&t.add(a),o[a]}}),r=(o,a)=>{var i;Wr[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Wr[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}}const Is=(e,t)=>{const[n,r]=rr();return Pn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ea()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},na=Is;function ks(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return c=>{const[s,l,d]=rr(),{getPrefixCls:u,iconPrefixCls:v,csp:g}=R.useContext(Je),S=u(),p={theme:s,token:l,hashId:d,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Pn(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",S]}),()=>[{"&":Ps(l)}]),na(v,g),[Pn(Object.assign(Object.assign({},p),{path:[i,c,v]}),()=>{const{token:f,flush:y}=_s(l),m=Object.assign({},l[a]);if(r.deprecatedTokens){const{deprecatedTokens:M}=r;M.forEach(A=>{let[T,N]=A;var _;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Re(!(m!=null&&m[T]),`The token '${String(T)}' of ${a} had deprecated, use '${String(N)}' instead.`),(m!=null&&m[T]||m!=null&&m[N])&&((_=m[N])!==null&&_!==void 0||(m[N]=m==null?void 0:m[T]))})}const O=typeof n=="function"?n(jn(f,m??{})):n,E=Object.assign(Object.assign({},O),m),x=`.${c}`,C=jn(f,{componentCls:x,prefixCls:c,iconCls:`.${v}`,antCls:`.${S}`},E),b=t(C,{hashId:d,prefixCls:c,rootPrefixCls:S,iconPrefixCls:v,overrideComponentToken:m});return y(a,E),[r.resetStyle===!1?null:Ms(l,c),b]}),d]}}function Ns(e,t){const n=e||{},r=n.inherit===!1||!t?Yo:t;return so(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,c)=>{const s=a[c];return!di(i,s,!0)}))}var $s=["children"],ra=h.createContext({});function js(e){var t=e.children,n=ft(e,$s);return h.createElement(ra.Provider,{value:n},t)}var Ls=function(e){lo(n,e);var t=uo(n);function n(){return gt(this,n),t.apply(this,arguments)}return ht(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component),Ie="none",wt="appear",At="enter",Pt="leave",Ur="none",de="prepare",Xe="start",Ye="active",or="end",oa="prepared";function Vr(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 Ds(e,t){var n={animationend:Vr("Animation","AnimationEnd"),transitionend:Vr("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Hs=Ds(me(),typeof window<"u"?window:{}),aa={};if(me()){var Fs=document.createElement("div");aa=Fs.style}var Mt={};function ia(e){if(Mt[e])return Mt[e];var t=Hs[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in aa)return Mt[e]=t[a],Mt[e]}return""}var ca=ia("animationend"),sa=ia("transitionend"),la=!!(ca&&sa),Kr=ca||"animationend",Gr=sa||"transitionend";function Xr(e,t){if(!e)return null;if(K(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Bs=function(e){var t=R.useRef(),n=R.useRef(e);n.current=e;var r=h.useCallback(function(i){n.current(i)},[]);function o(i){i&&(i.removeEventListener(Gr,r),i.removeEventListener(Kr,r))}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Gr,r),i.addEventListener(Kr,r),t.current=i)}return h.useEffect(function(){return function(){o(t.current)}},[]),[a,o]};var ua=me()?R.useLayoutEffect:R.useEffect;const zs=function(){var e=h.useRef(null);function t(){Sn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Sn(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var Ws=[de,Xe,Ye,or],Us=[de,oa],fa=!1,Vs=!0;function da(e){return e===Ye||e===or}const Ks=function(e,t,n){var r=qe(Ur),o=B(r,2),a=o[0],i=o[1],c=zs(),s=B(c,2),l=s[0],d=s[1];function u(){i(de,!0)}var v=t?Us:Ws;return ua(function(){if(a!==Ur&&a!==or){var g=v.indexOf(a),S=v[g+1],p=n(a);p===fa?i(S,!0):S&&l(function(f){function y(){f.isCanceled()||i(S,!0)}p===!0?y():Promise.resolve(p).then(y)})}},[e,a]),h.useEffect(function(){return function(){d()}},[]),[u,a]};function Gs(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,c=i===void 0?!0:i,s=r.motionLeave,l=s===void 0?!0:s,d=r.motionDeadline,u=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,S=r.onLeavePrepare,p=r.onAppearStart,f=r.onEnterStart,y=r.onLeaveStart,m=r.onAppearActive,O=r.onEnterActive,E=r.onLeaveActive,x=r.onAppearEnd,C=r.onEnterEnd,b=r.onLeaveEnd,M=r.onVisibleChanged,A=qe(),T=B(A,2),N=T[0],_=T[1],k=qe(Ie),L=B(k,2),I=L[0],F=L[1],z=qe(null),U=B(z,2),W=U[0],X=U[1],te=R.useRef(!1),Y=R.useRef(null);function se(){return n()}var re=R.useRef(!1);function pe(){F(Ie,!0),X(null,!0)}function Be(ne){var q=se();if(!(ne&&!ne.deadline&&ne.target!==q)){var Q=re.current,le;I===wt&&Q?le=x==null?void 0:x(q,ne):I===At&&Q?le=C==null?void 0:C(q,ne):I===Pt&&Q&&(le=b==null?void 0:b(q,ne)),I!==Ie&&Q&&le!==!1&&pe()}}var tt=Bs(Be),nt=B(tt,1),rt=nt[0],ze=function(q){var Q,le,_e;switch(q){case wt:return Q={},$(Q,de,v),$(Q,Xe,p),$(Q,Ye,m),Q;case At:return le={},$(le,de,g),$(le,Xe,f),$(le,Ye,O),le;case Pt:return _e={},$(_e,de,S),$(_e,Xe,y),$(_e,Ye,E),_e;default:return{}}},be=h.useMemo(function(){return ze(I)},[I]),ot=Ks(I,!e,function(ne){if(ne===de){var q=be[de];return q?q(se()):fa}if(oe in be){var Q;X(((Q=be[oe])===null||Q===void 0?void 0:Q.call(be,se(),null))||null)}return oe===Ye&&(rt(se()),d>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){Be({deadline:!0})},d))),oe===oa&&pe(),Vs}),We=B(ot,2),w=We[0],oe=We[1],we=da(oe);re.current=we,ua(function(){_(t);var ne=te.current;te.current=!0;var q;!ne&&t&&c&&(q=wt),ne&&t&&a&&(q=At),(ne&&!t&&l||!ne&&u&&!t&&l)&&(q=Pt);var Q=ze(q);q&&(e||Q[de])?(F(q),w()):F(Ie)},[t]),R.useEffect(function(){(I===wt&&!c||I===At&&!a||I===Pt&&!l)&&F(Ie)},[c,a,l]),R.useEffect(function(){return function(){te.current=!1,clearTimeout(Y.current)}},[]);var Ae=h.useRef(!1);R.useEffect(function(){N&&(Ae.current=!0),N!==void 0&&I===Ie&&((Ae.current||N)&&(M==null||M(N)),Ae.current=!0)},[N,I]);var at=W;return be[de]&&oe===Xe&&(at=j({transition:"none"},at)),[I,oe,at,N??t]}function Xs(e){var t=e;K(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=h.forwardRef(function(o,a){var i=o.visible,c=i===void 0?!0:i,s=o.removeOnLeave,l=s===void 0?!0:s,d=o.forceRender,u=o.children,v=o.motionName,g=o.leavedClassName,S=o.eventProps,p=h.useContext(ra),f=p.motion,y=n(o,f),m=R.useRef(),O=R.useRef();function E(){try{return m.current instanceof HTMLElement?m.current:oi(O.current)}catch{return null}}var x=Gs(y,c,E,o),C=B(x,4),b=C[0],M=C[1],A=C[2],T=C[3],N=h.useRef(T);T&&(N.current=!0);var _=h.useCallback(function(X){m.current=X,ai(a,X)},[a]),k,L=j(j({},S),{},{visible:c});if(!u)k=null;else if(b===Ie)T?k=u(j({},L),_):!l&&N.current&&g?k=u(j(j({},L),{},{className:g}),_):d||!l&&!g?k=u(j(j({},L),{},{style:{display:"none"}}),_):k=null;else{var I,F;M===de?F="prepare":da(M)?F="active":M===Xe&&(F="start");var z=Xr(v,"".concat(b,"-").concat(F));k=u(j(j({},L),{},{className:Te(Xr(v,b),(I={},$(I,z,z&&F),$(I,v,typeof v=="string"),I)),style:A}),_)}if(h.isValidElement(k)&&ii(k)){var U=k,W=U.ref;W||(k=h.cloneElement(k,{ref:_}))}return h.createElement(Ls,{ref:O},k)});return r.displayName="CSSMotion",r}const va=Xs(la);var Ln="add",Dn="keep",Hn="remove",dn="removed";function Ys(e){var t;return e&&K(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function Fn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ys)}function qs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Fn(e),i=Fn(t);a.forEach(function(l){for(var d=!1,u=r;u<o;u+=1){var v=i[u];if(v.key===l.key){r<u&&(n=n.concat(i.slice(r,u).map(function(g){return j(j({},g),{},{status:Ln})})),r=u),n.push(j(j({},v),{},{status:Dn})),r+=1,d=!0;break}}d||n.push(j(j({},l),{},{status:Hn}))}),r<o&&(n=n.concat(i.slice(r).map(function(l){return j(j({},l),{},{status:Ln})})));var c={};n.forEach(function(l){var d=l.key;c[d]=(c[d]||0)+1});var s=Object.keys(c).filter(function(l){return c[l]>1});return s.forEach(function(l){n=n.filter(function(d){var u=d.key,v=d.status;return u!==l||v!==Hn}),n.forEach(function(d){d.key===l&&(d.status=Dn)})}),n}var Qs=["component","children","onVisibleChanged","onAllRemoved"],Zs=["status"],Js=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function el(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:va,n=function(r){lo(a,r);var o=uo(a);function a(){var i;gt(this,a);for(var c=arguments.length,s=new Array(c),l=0;l<c;l++)s[l]=arguments[l];return i=o.call.apply(o,[this].concat(s)),$(bn(i),"state",{keyEntities:[]}),$(bn(i),"removeKey",function(d){var u=i.state.keyEntities,v=u.map(function(g){return g.key!==d?g:j(j({},g),{},{status:dn})});return i.setState({keyEntities:v}),v.filter(function(g){var S=g.status;return S!==dn}).length}),i}return ht(a,[{key:"render",value:function(){var c=this,s=this.state.keyEntities,l=this.props,d=l.component,u=l.children,v=l.onVisibleChanged,g=l.onAllRemoved,S=ft(l,Qs),p=d||h.Fragment,f={};return Js.forEach(function(y){f[y]=S[y],delete S[y]}),delete S.keys,h.createElement(p,S,s.map(function(y,m){var O=y.status,E=ft(y,Zs),x=O===Ln||O===Dn;return h.createElement(t,De({},f,{key:E.key,visible:x,eventProps:E,onVisibleChanged:function(b){if(v==null||v(b,{key:E.key}),!b){var M=c.removeKey(E.key);M===0&&g&&g()}}}),function(C,b){return u(j(j({},C),{},{index:m}),b)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,s){var l=c.keys,d=s.keyEntities,u=Fn(l),v=qs(d,u);return{keyEntities:v.filter(function(g){var S=d.find(function(p){var f=p.key;return g.key===f});return!(S&&S.status===dn&&g.status===Hn)})}}}]),a}(h.Component);return $(n,"defaultProps",{component:"div"}),n}el(la);function tl(e){const{children:t}=e,[,n]=rr(),{motion:r}=n,o=h.useRef(!1);return o.current=o.current||r===!1,o.current?h.createElement(js,{motion:r},t):t}const pa=h.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Wt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(pa.displayName="PropWarning");const nl=process.env.NODE_ENV!=="production"?pa:()=>null;var rl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Bn=!1;process.env.NODE_ENV;const ol=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],al="ant";let ga;function il(){return ga||al}function cl(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const sl=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(ga=t),r&&cl(r)&&(process.env.NODE_ENV!=="production"&&Ut(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ys(il(),r))},ll=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:c,componentSize:s,direction:l,space:d,virtual:u,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,popupOverflow:S,legacyLocale:p,parentContext:f,iconPrefixCls:y,theme:m,componentDisabled:O,segmented:E,statistic:x,spin:C,calendar:b,carousel:M,cascader:A,collapse:T,typography:N,checkbox:_,descriptions:k,divider:L,drawer:I,skeleton:F,steps:z,image:U,layout:W,list:X,mentions:te,modal:Y,progress:se,result:re,slider:pe,breadcrumb:Be,menu:tt,pagination:nt,input:rt,empty:ze,badge:be,radio:ot,rate:We,switch:w,transfer:oe,avatar:we,message:Ae,tag:at,table:ne,card:q,tabs:Q,timeline:le,timePicker:_e,upload:Ra,notification:_a,tree:Ia,colorPicker:ka,datePicker:Na,rangePicker:$a,flex:ja,wave:La,dropdown:Da,warning:Ha}=e,Fa=h.useCallback((G,J)=>{const{prefixCls:ge}=e;if(J)return J;const he=ge||f.getPrefixCls("");return G?`${he}-${G}`:he},[f.getPrefixCls,e.prefixCls]),it=y||f.iconPrefixCls||Qo,ct=n||f.csp;na(it,ct);const mt=Ns(m,f.theme);process.env.NODE_ENV!=="production"&&(Bn=Bn||!!mt);const qt={csp:ct,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:c||p,direction:l,space:d,virtual:u,popupMatchSelectWidth:g??v,popupOverflow:S,getPrefixCls:Fa,iconPrefixCls:it,theme:mt,segmented:E,statistic:x,spin:C,calendar:b,carousel:M,cascader:A,collapse:T,typography:N,checkbox:_,descriptions:k,divider:L,drawer:I,skeleton:F,steps:z,image:U,input:rt,layout:W,list:X,mentions:te,modal:Y,progress:se,result:re,slider:pe,breadcrumb:Be,menu:tt,pagination:nt,empty:ze,badge:be,radio:ot,rate:We,switch:w,transfer:oe,avatar:we,message:Ae,tag:at,table:ne,card:q,tabs:Q,timeline:le,timePicker:_e,upload:Ra,notification:_a,tree:Ia,colorPicker:ka,datePicker:Na,rangePicker:$a,flex:ja,wave:La,dropdown:Da,warning:Ha},bt=Object.assign({},f);Object.keys(qt).forEach(G=>{qt[G]!==void 0&&(bt[G]=qt[G])}),ol.forEach(G=>{const J=e[G];J&&(bt[G]=J)});const Ue=so(()=>bt,bt,(G,J)=>{const ge=Object.keys(G),he=Object.keys(J);return ge.length!==he.length||ge.some(yt=>G[yt]!==J[yt])}),Ba=h.useMemo(()=>({prefixCls:it,csp:ct}),[it,ct]);let Z=h.createElement(h.Fragment,null,h.createElement(nl,{dropdownMatchSelectWidth:v}),t);const lr=h.useMemo(()=>{var G,J,ge,he;return Pc(((G=Vt.Form)===null||G===void 0?void 0:G.defaultValidateMessages)||{},((ge=(J=Ue.locale)===null||J===void 0?void 0:J.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((he=Ue.form)===null||he===void 0?void 0:he.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Ue,i==null?void 0:i.validateMessages]);Object.keys(lr).length>0&&(Z=h.createElement(Rc.Provider,{value:lr},Z)),c&&(Z=h.createElement(Dc,{locale:c,_ANT_MARK__:zo},Z)),(it||ct)&&(Z=h.createElement(tr.Provider,{value:Ba},Z)),s&&(Z=h.createElement(Cs,{size:s},Z)),Z=h.createElement(tl,null,Z);const za=h.useMemo(()=>{const G=mt||{},{algorithm:J,token:ge,components:he}=G,yt=rl(G,["algorithm","token","components"]),ur=J&&(!Array.isArray(J)||J.length>0)?xn(J):Xo,Qt={};Object.entries(he||{}).forEach(Wa=>{let[Ua,Va]=Wa;const ye=Object.assign({},Va);"algorithm"in ye&&(ye.algorithm===!0?ye.theme=ur:(Array.isArray(ye.algorithm)||typeof ye.algorithm=="function")&&(ye.theme=xn(ye.algorithm)),delete ye.algorithm),Qt[Ua]=ye});const fr=Object.assign(Object.assign({},pt),ge);return Object.assign(Object.assign({},yt),{theme:ur,token:fr,components:Qt,override:Object.assign({override:fr},Qt)})},[mt]);return m&&(Z=h.createElement(qo.Provider,{value:za},Z)),Ue.warning&&(Z=h.createElement(Ho.Provider,{value:Ue.warning},Z)),O!==void 0&&(Z=h.createElement(Ss,{disabled:O},Z)),h.createElement(Je.Provider,{value:Ue},Z)},et=e=>{const t=h.useContext(Je),n=h.useContext(Bo);return h.createElement(ll,Object.assign({parentContext:t,legacyLocale:n},e))};et.ConfigContext=Je;et.SizeContext=Kt;et.config=sl;et.useConfig=xs;Object.defineProperty(et,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Ut(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Kt)});process.env.NODE_ENV!=="production"&&(et.displayName="ConfigProvider");function Ht(){return Ht=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},Ht.apply(this,arguments)}function ul(e){if(Array.isArray(e))return e}function fl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(d){l=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function Yr(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 dl(e,t){if(e){if(typeof e=="string")return Yr(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 Yr(e,t)}}function vl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ha(e,t){return ul(e)||fl(e,t)||dl(e,t)||vl()}function Fe(e){"@babel/helpers - typeof";return Fe=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},Fe(e)}function pl(e,t){if(Fe(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fe(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gl(e){var t=pl(e,"string");return Fe(t)==="symbol"?t:String(t)}function zn(e,t,n){return t=gl(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ma(e,t){if(e==null)return{};var n=hl(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(r){zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ml(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bl(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 Qr="data-rc-order",Zr="data-rc-priority",yl="rc-util-key",Wn=new Map;function ba(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):yl}function ar(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Sl(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ya(e){return Array.from((Wn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ml())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=Sl(r),c=i==="prependQueue",s=document.createElement("style");s.setAttribute(Qr,i),c&&a&&s.setAttribute(Zr,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var l=ar(t),d=l.firstChild;if(r){if(c){var u=ya(l).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Qr)))return!1;var g=Number(v.getAttribute(Zr)||0);return a>=g});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,d)}else l.appendChild(s);return s}function El(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ar(t);return ya(n).find(function(r){return r.getAttribute(ba(t))===e})}function Cl(e,t){var n=Wn.get(e);if(!n||!bl(document,n)){var r=Sa("",t),o=r.parentNode;Wn.set(e,o),e.removeChild(r)}}function xl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ar(n);Cl(r,n);var o=El(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;o.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=Sa(e,n);return s.setAttribute(ba(n),t),s}function Ea(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Tl(e){return Ea(e)instanceof ShadowRoot}function Ol(e){return Tl(e)?Ea(e):null}var Un={},ir=[],wl=function(t){ir.push(t)};function Al(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ir.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Pl(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ir.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ml(){Un={}}function Ca(e,t,n){!t&&!Un[n]&&(e(!1,n),Un[n]=!0)}function Gt(e,t){Ca(Al,e,t)}function Rl(e,t){Ca(Pl,e,t)}Gt.preMessage=wl;Gt.resetWarned=Ml;Gt.noteOnce=Rl;function _l(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Il(e,t){Gt(e,"[@ant-design/icons] ".concat(t))}function Jr(e){return Fe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Fe(e.icon)==="object"||typeof e.icon=="function")}function eo(){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[_l(n)]=r}return t},{})}function Vn(e,t,n){return n?R.createElement(e.tag,Me(Me({key:t},eo(e.attrs)),n),(e.children||[]).map(function(r,o){return Vn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):R.createElement(e.tag,Me({key:t},eo(e.attrs)),(e.children||[]).map(function(r,o){return Vn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function xa(e){return He(e)[0]}function Ta(e){return e?Array.isArray(e)?e:[e]:[]}var kl=`
65
+ .anticon {
66
+ display: inline-block;
67
+ color: inherit;
68
+ font-style: normal;
69
+ line-height: 0;
70
+ text-align: center;
71
+ text-transform: none;
72
+ vertical-align: -0.125em;
73
+ text-rendering: optimizeLegibility;
74
+ -webkit-font-smoothing: antialiased;
75
+ -moz-osx-font-smoothing: grayscale;
76
+ }
77
+
78
+ .anticon > * {
79
+ line-height: 1;
80
+ }
81
+
82
+ .anticon svg {
83
+ display: inline-block;
84
+ }
85
+
86
+ .anticon::before {
87
+ display: none;
88
+ }
89
+
90
+ .anticon .anticon-icon {
91
+ display: block;
92
+ }
93
+
94
+ .anticon[tabindex] {
95
+ cursor: pointer;
96
+ }
97
+
98
+ .anticon-spin::before,
99
+ .anticon-spin {
100
+ display: inline-block;
101
+ -webkit-animation: loadingCircle 1s infinite linear;
102
+ animation: loadingCircle 1s infinite linear;
103
+ }
104
+
105
+ @-webkit-keyframes loadingCircle {
106
+ 100% {
107
+ -webkit-transform: rotate(360deg);
108
+ transform: rotate(360deg);
109
+ }
110
+ }
111
+
112
+ @keyframes loadingCircle {
113
+ 100% {
114
+ -webkit-transform: rotate(360deg);
115
+ transform: rotate(360deg);
116
+ }
117
+ }
118
+ `,Nl=function(t){var n=R.useContext(tr),r=n.csp,o=n.prefixCls,a=kl;o&&(a=a.replace(/anticon/g,o)),R.useEffect(function(){var i=t.current,c=Ol(i);xl(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},$l=["icon","className","onClick","style","primaryColor","secondaryColor"],ut={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function jl(e){var t=e.primaryColor,n=e.secondaryColor;ut.primaryColor=t,ut.secondaryColor=n||xa(t),ut.calculated=!!n}function Ll(){return Me({},ut)}var Xt=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,c=t.secondaryColor,s=ma(t,$l),l=h.useRef(),d=ut;if(i&&(d={primaryColor:i,secondaryColor:c||xa(i)}),Nl(l),Il(Jr(n),"icon should be icon definiton, but got ".concat(n)),!Jr(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=Me(Me({},u),{},{icon:u.icon(d.primaryColor,d.secondaryColor)})),Vn(u.icon,"svg-".concat(u.name),Me(Me({className:r,onClick:o,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};Xt.displayName="IconReact";Xt.getTwoToneColors=Ll;Xt.setTwoToneColors=jl;const cr=Xt;function Oa(e){var t=Ta(e),n=ha(t,2),r=n[0],o=n[1];return cr.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Dl(){var e=cr.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Hl=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Oa(ts.primary);var Yt=h.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,c=e.tabIndex,s=e.onClick,l=e.twoToneColor,d=ma(e,Hl),u=h.useContext(tr),v=u.prefixCls,g=v===void 0?"anticon":v,S=u.rootClassName,p=Te(S,g,(n={},zn(n,"".concat(g,"-").concat(o.name),!!o.name),zn(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),f=c;f===void 0&&s&&(f=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,m=Ta(l),O=ha(m,2),E=O[0],x=O[1];return h.createElement("span",Ht({role:"img","aria-label":o.name},d,{ref:t,tabIndex:f,onClick:s,className:p}),h.createElement(cr,{icon:o,primaryColor:E,secondaryColor:x,style:y}))});Yt.displayName="AntdIcon";Yt.getTwoToneColor=Dl;Yt.setTwoToneColor=Oa;const Fl=Yt,{isValidElement:Bl}=h;function zl(e,t,n){return Bl(e)?h.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function to(e,t){return zl(e,e,t)}var P={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>=P.F1&&n<=P.F12)return!1;switch(n){case P.ALT:case P.CAPS_LOCK:case P.CONTEXT_MENU:case P.CTRL:case P.DOWN:case P.END:case P.ESC:case P.HOME:case P.INSERT:case P.LEFT:case P.MAC_FF_META:case P.META:case P.NUMLOCK:case P.NUM_CENTER:case P.PAGE_DOWN:case P.PAGE_UP:case P.PAUSE:case P.PRINT_SCREEN:case P.RIGHT:case P.SHIFT:case P.UP:case P.WIN_KEY:case P.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=P.ZERO&&t<=P.NINE||t>=P.NUM_ZERO&&t<=P.NUM_MULTIPLY||t>=P.A&&t<=P.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case P.SPACE:case P.QUESTION_MARK:case P.NUM_PLUS:case P.NUM_MINUS:case P.NUM_PERIOD:case P.NUM_DIVISION:case P.SEMICOLON:case P.DASH:case P.EQUALS:case P.COMMA:case P.PERIOD:case P.SLASH:case P.APOSTROPHE:case P.SINGLE_QUOTE:case P.OPEN_SQUARE_BRACKET:case P.BACKSLASH:case P.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const vn=()=>({height:0,opacity:0}),no=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Wl=e=>({height:e?e.offsetHeight:0}),pn=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ul=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:vn,onEnterStart:vn,onAppearActive:no,onEnterActive:no,onLeaveStart:Wl,onLeaveActive:vn,onAppearEnd:pn,onEnterEnd:pn,onLeaveEnd:pn,motionDeadline:500}},Vl=Ul,Kl=e=>{const t=R.useContext(Kt);return R.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Gl=Kl,Xl=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
119
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
120
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Yl=Xl;var ql={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 Ql=ql;var wa=function(t,n){return h.createElement(Fl,Ht({},t,{ref:n,icon:Ql}))};process.env.NODE_ENV!=="production"&&(wa.displayName="RightOutlined");const Zl=h.forwardRef(wa);var Aa=R.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,c=e.children,s=e.isActive,l=e.role,d=R.useState(s||o),u=B(d,2),v=u[0],g=u[1];return R.useEffect(function(){(o||s)&&g(!0)},[o,s]),v?R.createElement("div",{ref:t,className:Te("".concat(r,"-content"),(n={},$(n,"".concat(r,"-content-active"),s),$(n,"".concat(r,"-content-inactive"),!s),n),a),style:i,role:l},R.createElement("div",{className:"".concat(r,"-content-box")},c)):null});Aa.displayName="PanelContent";var Jl=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Pa=R.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,c=e.isActive,s=e.onItemClick,l=e.forceRender,d=e.className,u=e.prefixCls,v=e.collapsible,g=e.accordion,S=e.panelKey,p=e.extra,f=e.header,y=e.expandIcon,m=e.openMotion,O=e.destroyInactivePanel,E=e.children,x=ft(e,Jl),C=v==="disabled",b=v==="header",M=v==="icon",A=p!=null&&typeof p!="boolean",T=function(){s==null||s(S)},N=function(z){(z.key==="Enter"||z.keyCode===P.ENTER||z.which===P.ENTER)&&T()},_=typeof y=="function"?y(e):R.createElement("i",{className:"arrow"});_&&(_=R.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(v)?T:void 0},_));var k=Te((n={},$(n,"".concat(u,"-item"),!0),$(n,"".concat(u,"-item-active"),c),$(n,"".concat(u,"-item-disabled"),C),n),d),L=Te(i,(r={},$(r,"".concat(u,"-header"),!0),$(r,"".concat(u,"-header-collapsible-only"),b),$(r,"".concat(u,"-icon-collapsible-only"),M),r)),I={className:L,"aria-expanded":c,"aria-disabled":C,onKeyDown:N};return!b&&!M&&(I.onClick=T,I.role=g?"tab":"button",I.tabIndex=C?-1:0),R.createElement("div",De({},x,{ref:t,className:k}),R.createElement("div",I,a&&_,R.createElement("span",{className:"".concat(u,"-header-text"),onClick:v==="header"?T:void 0},f),A&&R.createElement("div",{className:"".concat(u,"-extra")},p)),R.createElement(va,De({visible:c,leavedClassName:"".concat(u,"-content-hidden")},m,{forceRender:l,removeOnLeave:O}),function(F,z){var U=F.className,W=F.style;return R.createElement(Aa,{ref:z,prefixCls:u,className:U,style:W,isActive:c,forceRender:l,role:g?"tabpanel":void 0},E)}))}),eu=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],tu=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,c=n.onItemClick,s=n.activeKey,l=n.openMotion,d=n.expandIcon;return t.map(function(u,v){var g=u.children,S=u.label,p=u.key,f=u.collapsible,y=u.onItemClick,m=u.destroyInactivePanel,O=ft(u,eu),E=String(p??v),x=f??a,C=m??i,b=function(T){x!=="disabled"&&(c(T),y==null||y(T))},M=!1;return o?M=s[0]===E:M=s.indexOf(E)>-1,R.createElement(Pa,De({},O,{prefixCls:r,key:E,panelKey:E,isActive:M,accordion:o,openMotion:l,expandIcon:d,header:S,collapsible:x,onItemClick:b,destroyInactivePanel:C}),g)})},nu=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,c=r.destroyInactivePanel,s=r.onItemClick,l=r.activeKey,d=r.openMotion,u=r.expandIcon,v=t.key||String(n),g=t.props,S=g.header,p=g.headerClass,f=g.destroyInactivePanel,y=g.collapsible,m=g.onItemClick,O=!1;a?O=l[0]===v:O=l.indexOf(v)>-1;var E=y??i,x=function(M){E!=="disabled"&&(s(M),m==null||m(M))},C={key:v,panelKey:v,header:S,headerClass:p,isActive:O,prefixCls:o,destroyInactivePanel:f??c,openMotion:d,accordion:a,children:t.props.children,onItemClick:x,expandIcon:u,collapsible:E};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(b){typeof C[b]>"u"&&delete C[b]}),R.cloneElement(t,C))};function ru(e,t,n){return Array.isArray(e)?tu(e,n):$t(t).map(function(r,o){return nu(r,o,n)})}function ou(e){var t=e;if(!Array.isArray(t)){var n=K(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var au=R.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,c=e.accordion,s=e.className,l=e.children,d=e.collapsible,u=e.openMotion,v=e.expandIcon,g=e.activeKey,S=e.defaultActiveKey,p=e.onChange,f=e.items,y=Te(r,s),m=ws([],{value:g,onChange:function(A){return p==null?void 0:p(A)},defaultValue:S,postState:ou}),O=B(m,2),E=O[0],x=O[1],C=function(A){return x(function(){if(c)return E[0]===A?[]:[A];var T=E.indexOf(A),N=T>-1;return N?E.filter(function(_){return _!==A}):[].concat(Oe(E),[A])})};Re(!l,"`children` will be removed in next major version. Please use `items` instead.");var b=ru(f,l,{prefixCls:r,accordion:c,openMotion:u,expandIcon:v,collapsible:d,destroyInactivePanel:a,onItemClick:C,activeKey:E});return R.createElement("div",{ref:t,className:y,style:i,role:c?"tablist":void 0},b)});const sr=Object.assign(au,{Panel:Pa});sr.Panel;const iu=h.forwardRef((e,t)=>{process.env.NODE_ENV!=="production"&&Wt("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:n}=h.useContext(Je),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),c=Te({[`${i}-no-arrow`]:!a},o);return h.createElement(sr.Panel,Object.assign({ref:t},e,{prefixCls:i,className:c}))}),cu=iu,su=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:s,lineWidth:l,lineType:d,colorBorder:u,colorText:v,colorTextHeading:g,colorTextDisabled:S,fontSize:p,fontSizeLG:f,lineHeight:y,marginSM:m,paddingSM:O,paddingLG:E,paddingXS:x,motionDurationSlow:C,fontSizeIcon:b,contentPadding:M}=e,A=`${l}px ${d} ${u}`;return{[t]:Object.assign(Object.assign({},As(e)),{backgroundColor:o,border:A,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:A,"&:last-child":{[`
121
+ &,
122
+ & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:g,lineHeight:y,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*y,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:Object.assign(Object.assign({},ea()),{fontSize:b,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:v,backgroundColor:n,borderTop:A,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:O-x}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:f,[`> ${t}-header`]:{padding:c,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:f*y,marginInlineStart:E-r}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:S,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},lu=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},uu=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
123
+ > ${t}-item:last-child,
124
+ > ${t}-item:last-child ${t}-header
125
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},fu=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},du=ks("Collapse",e=>{const t=jn(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[su(t),uu(t),fu(t),lu(t),Yl(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),Ma=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=h.useContext(Je),{prefixCls:a,className:i,rootClassName:c,style:s,bordered:l=!0,ghost:d,size:u,expandIconPosition:v="start",children:g,expandIcon:S}=e,p=Gl(A=>{var T;return(T=u??A)!==null&&T!==void 0?T:"middle"}),f=n("collapse",a),y=n(),[m,O]=du(f);if(process.env.NODE_ENV!=="production"){const A=Wt("Collapse");process.env.NODE_ENV!=="production"&&A(v!=="left"&&v!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const E=h.useMemo(()=>v==="left"?"start":v==="right"?"end":v,[v]),x=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const T=S?S(A):h.createElement(Zl,{rotate:A.isActive?90:void 0});return to(T,()=>({className:Te(T.props.className,`${f}-arrow`)}))},C=Te(`${f}-icon-position-${E}`,{[`${f}-borderless`]:!l,[`${f}-rtl`]:r==="rtl",[`${f}-ghost`]:!!d,[`${f}-${p}`]:p!=="middle"},o==null?void 0:o.className,i,c,O),b=Object.assign(Object.assign({},Vl(y)),{motionAppear:!1,leavedClassName:`${f}-content-hidden`}),M=h.useMemo(()=>g?$t(g).map((A,T)=>{var N,_;if(!((N=A.props)===null||N===void 0)&&N.disabled){const k=(_=A.key)!==null&&_!==void 0?_:String(T),{disabled:L,collapsible:I}=A.props,F=Object.assign(Object.assign({},hr(A.props,["disabled"])),{key:k,collapsible:I??(L?"disabled":void 0)});return to(A,F)}return A}):null,[g]);return m(h.createElement(sr,Object.assign({ref:t,openMotion:b},hr(e,["rootClassName"]),{expandIcon:x,prefixCls:f,className:C,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),M))});process.env.NODE_ENV!=="production"&&(Ma.displayName="Collapse");const vu=Object.assign(Ma,{Panel:cu}),pu=({...e})=>Ka.jsx(vu,{...e});exports.Collapse=pu;
@@ -0,0 +1,5 @@
1
+ import type { CollapseProps as AntCollapseProps } from 'antd';
2
+ import * as React from 'react';
3
+ export type CollapseProps = AntCollapseProps;
4
+ export declare const Collapse: ({ ...restCollapseProps }: CollapseProps) => React.JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAE7C,eAAO,MAAM,QAAQ,6BAA8B,aAAa,sBAI/D,CAAC"}