Plugin Directory

Changeset 3428097


Ignore:
Timestamp:
12/27/2025 06:52:01 AM (3 months ago)
Author:
eunito
Message:

1.0.0 released

Location:
gutenito-blocks-addon
Files:
388 added
3 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • gutenito-blocks-addon/trunk/build/global/index.asset.php

    r3427319 r3428097  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => 'bb67286be88e880a5acb');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => '0c5c30684eb7cf8da208');
  • gutenito-blocks-addon/trunk/build/global/index.js

    r3427319 r3428097  
    1 (()=>{var e,t={3304:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{advancedHeading:()=>m,digitalClock:()=>h,sampleBlock:()=>v});const o=window.wp.hooks,i=window.wp.compose;function a(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const c=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r},l=window.wp.element,s=window.ReactJSXRuntime,u=(0,i.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:r,name:i,clientId:a}=t;if(i?.includes("gutenito-blocks-addon/")){(0,l.useEffect)((()=>{const e=a?.slice(-6);r({blockClass:`gutenito-blocks-addon${e}`})}),[a]);const i={...t.wrapperProps,className:c(n?.blockClass)},u=(0,o.applyFilters)("GutenitoBlocksAddon.blockWrapper.attributes",i,n);return(0,s.jsx)(e,{...t,wrapperProps:u})}return(0,s.jsx)(e,{...t})}),"GutenitoBlocksAddonWrapperProps"),f=window.wp.i18n,d=window.wp.components,p=({attributes:e,setAttributes:t,name:n})=>{const{GutenitoBlocksAddonPanelBody:r,GutenitoBlocksAddonSpacingSizes:i}=window?.gutenitoBlocksAddon?.components,a=(0,o.applyFilters)("GutenitoBlocksAddon.advancedControl.layout.margin.exclude",new Set([])),c=(0,o.applyFilters)("GutenitoBlocksAddon.advancedControl.layout.padding.exclude",new Set([]));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r,{title:(0,f.__)("Layout","gutenito-blocks-addon"),children:[!c.has(n)&&(0,s.jsx)(i,{label:(0,f.__)("Padding","gutenito-blocks-addon"),value:e?.padding,onChange:e=>t({padding:e})}),!a.has(n)&&(0,s.jsx)(i,{label:(0,f.__)("Margin","gutenito-blocks-addon"),value:e?.margin,onChange:e=>t({margin:e})})]}),(0,s.jsx)(r,{title:(0,f.__)("Motion Effects","gutenito-blocks-addon"),children:(0,s.jsx)(d.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:"Label",onChange:e=>{t({motionEffects:e})},value:e?.motionEffects,options:[{disabled:!0,label:"Select an Option",value:""},{label:"Bounce",value:"bounce"},{label:"Wobble",value:"wobble"},{label:"Swing",value:"swing"}]})})]})},h=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),v=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),m=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),g=(0,i.createHigherOrderComponent)((e=>t=>{if(t?.name?.includes("gutenito-blocks-addon/")){if(t?.attributes?.preview){const{blockNameCamelcase:e}=window?.gutenitoBlocksAddon?.helpers,n=e(t?.name);return r[n]}const{GutenitoBlocksAddonStyleTag:n}=window?.gutenitoBlocksAddon?.components,o=((e={})=>{const{useGenerateStyles:t,getSpacingValue:n}=window.gutenitoBlocksAddon.helpers;return t(`.${e?.blockClass}`,(()=>({"padding-top":n(e?.padding?.top),"padding-right":n(e?.padding?.right),"padding-bottom":n(e?.padding?.bottom),"padding-left":n(e?.padding?.left),"margin-top":n(e?.margin?.top),"margin-right":n(e?.margin?.right),"margin-bottom":n(e?.margin?.bottom),"margin-left":n(e?.margin?.left)})))})(t?.attributes),i={...t,advancedControls:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(p,{...t})})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n,{attributes:t?.attributes,setAttributes:t?.setAttributes,styles:o,attributeKey:"globalStyles"}),(0,s.jsx)(e,{...i})]})}return(0,s.jsx)(e,{...t})}));(0,o.addFilter)("editor.BlockEdit","gutenito-blocks-addon/addAdvancedControls",g),(0,o.addFilter)("editor.BlockListBlock","gutenito-blocks-addon/blockWrapper",u);const b=window.wp.plugins,y=window.wp.data,w=window.React;var x=n.n(w);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}const k={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function E(e){if(Array.isArray(e))return e}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e,t){return E(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||$(e,t)||O()}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}function R(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var F=n(6942),N=n.n(F);function _(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function I(e){return Math.min(1,Math.max(0,e))}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e){return e<=1?"".concat(100*Number(e),"%"):e}function z(e){return 1===e.length?"0"+e:String(e)}function H(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,c=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=c>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:c}}function B(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,c=r-o,l=0===r?0:c/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:l,v:a}}function V(e,t,n,r){var o=[z(Math.round(e).toString(16)),z(Math.round(t).toString(16)),z(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 W(e){return G(e)/255}function G(e){return parseInt(e,16)}var X={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 q(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(X[e])e=X[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Z.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Z.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Z.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Z.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Z.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Z.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Z.hex8.exec(e))?{r:G(n[1]),g:G(n[2]),b:G(n[3]),a:W(n[4]),format:t?"name":"hex8"}:(n=Z.hex6.exec(e))?{r:G(n[1]),g:G(n[2]),b:G(n[3]),format:t?"name":"hex"}:(n=Z.hex4.exec(e))?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),a:W(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=Z.hex3.exec(e))&&{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Q(e.r)&&Q(e.g)&&Q(e.b)?(t=function(e,t,n){return{r:255*_(e,255),g:255*_(t,255),b:255*_(n,255)}}(e.r,e.g,e.b),a=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Q(e.h)&&Q(e.s)&&Q(e.v)?(r=L(e.s),o=L(e.v),t=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,c,n][l],g:255*[c,n,n,a,i,i][l],b:255*[i,i,c,n,n,a][l]}}(e.h,r,o),a=!0,c="hsv"):Q(e.h)&&Q(e.s)&&Q(e.l)&&(r=L(e.s),i=L(e.l),t=function(e,t,n){var r,o,i;if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=B(c,a,e+1/3),o=B(c,a,e),i=B(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=T(n),{ok:a,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 K="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),U="[\\s|\\(]+(".concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")\\s*\\)?"),Y="[\\s|\\(]+(".concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")\\s*\\)?"),Z={CSS_UNIT:new RegExp(K),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+Y),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+Y),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+Y),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 Q(e){return Boolean(Z.CSS_UNIT.exec(String(e)))}var J=[{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 ee(e){var t=D(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function te(e){var t=e.r,n=e.g,r=e.b;return"#".concat(V(t,n,r,!1))}function ne(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function re(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function oe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function ie(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=q(e),o=5;o>0;o-=1){var i=ee(r),a=te(q({h:ne(i,o,!0),s:re(i,o,!0),v:oe(i,o,!0)}));n.push(a)}n.push(te(r));for(var c=1;c<=4;c+=1){var l=ee(r),s=te(q({h:ne(l,c),s:re(l,c),v:oe(l,c)}));n.push(s)}return"dark"===t.theme?J.map((function(e){var r,o,i,a=e.index,c=e.opacity;return te((r=q(t.backgroundColor||"#141414"),i=100*c/100,{r:((o=q(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ae={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"},ce=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ce.primary=ce[5];var le=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];le.primary=le[5];var se=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];se.primary=se[5];var ue=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ue.primary=ue[5];var fe=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];fe.primary=fe[5];var de=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];de.primary=de[5];var pe=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];pe.primary=pe[5];var he=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];he.primary=he[5];var ve=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ve.primary=ve[5];var me=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];me.primary=me[5];var ge=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ge.primary=ge[5];var be=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];be.primary=be[5];var ye=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ye.primary=ye[5];var we={red:ce,volcano:le,orange:se,gold:ue,yellow:fe,lime:de,green:pe,cyan:he,blue:ve,geekblue:me,purple:ge,magenta:be,grey:ye},xe=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];xe.primary=xe[5];var Ce=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Ce.primary=Ce[5];var ke=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];ke.primary=ke[5];var Ee=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ee.primary=Ee[5];var Se=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Se.primary=Se[5];var $e=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];$e.primary=$e[5];var Oe=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Oe.primary=Oe[5];var Me=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Me.primary=Me[5];var je=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];je.primary=je[5];var Pe=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Pe.primary=Pe[5];var Re=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Re.primary=Re[5];var Ae=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ae.primary=Ae[5];var Fe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Fe.primary=Fe[5];const Ne=(0,w.createContext)({});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Le="data-rc-order",ze="data-rc-priority",He=new Map;function Be(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function De(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ve(e){return Array.from((He.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Te())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,l=document.createElement("style");l.setAttribute(Le,a),c&&i&&l.setAttribute(ze,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var s=De(t),u=s.firstChild;if(r){if(c){var f=(t.styles||Ve(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Le)))return!1;var t=Number(e.getAttribute(ze)||0);return i>=t}));if(f.length)return s.insertBefore(l,f[f.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=De(t);return(t.styles||Ve(n)).find((function(n){return n.getAttribute(Be(t))===e}))}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(e,t);n&&De(t).removeChild(n)}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=De(n),o=Ve(r),i=Ie(Ie({},n),{},{styles:o});!function(e,t){var n=He.get(e);if(!n||!function(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}(document,n)){var r=We("",t),o=r.parentNode;He.set(e,o),e.removeChild(r)}}(r,i);var a,c,l,s=Ge(t,i);if(s)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&s.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce)&&(s.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;var u=We(e,i);return u.setAttribute(Be(i),t),u}function Ke(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ue(e){return function(e){return Ke(e)instanceof ShadowRoot}(e)?Ke(e):null}var Ye={},Ze=[];function Qe(e,t){}function Je(e,t){}function et(e,t,n){t||Ye[n]||(e(!1,n),Ye[n]=!0)}function tt(e,t){et(Qe,e,t)}tt.preMessage=function(e){Ze.push(e)},tt.resetWarned=function(){Ye={}},tt.noteOnce=function(e,t){et(Je,e,t)};const nt=tt;function rt(e){return"object"===j(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===j(e.icon)||"function"==typeof e.icon)}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function it(e,t,n){return n?x().createElement(e.tag,Ie(Ie({key:t},ot(e.attrs)),n),(e.children||[]).map((function(n,r){return it(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):x().createElement(e.tag,Ie({key:t},ot(e.attrs)),(e.children||[]).map((function(n,r){return it(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function at(e){return ie(e)[0]}function ct(e){return e?Array.isArray(e)?e:[e]:[]}var lt=["icon","className","onClick","style","primaryColor","secondaryColor"],st={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ut=function(e){var t,n,r,o,i,a,c,l=e.icon,s=e.className,u=e.onClick,f=e.style,d=e.primaryColor,p=e.secondaryColor,h=A(e,lt),v=w.useRef(),m=st;if(d&&(m={primaryColor:d,secondaryColor:p||at(d)}),t=v,n=(0,w.useContext)(Ne),r=n.csp,o=n.prefixCls,i="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,w.useEffect)((function(){var e=Ue(t.current);qe(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=rt(l),c="icon should be icon definiton, but got ".concat(l),nt(a,"[@ant-design/icons] ".concat(c)),!rt(l))return null;var g=l;return g&&"function"==typeof g.icon&&(g=Ie(Ie({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),it(g.icon,"svg-".concat(g.name),Ie(Ie({className:s,onClick:u,style:f,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:v}))};ut.displayName="IconReact",ut.getTwoToneColors=function(){return Ie({},st)},ut.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;st.primaryColor=t,st.secondaryColor=n||at(t),st.calculated=!!n};const ft=ut;function dt(e){var t=M(ct(e),2),n=t[0],r=t[1];return ft.setTwoToneColors({primaryColor:n,secondaryColor:r})}var pt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dt(ve.primary);var ht=w.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,l=e.twoToneColor,s=A(e,pt),u=w.useContext(Ne),f=u.prefixCls,d=void 0===f?"anticon":f,p=u.rootClassName,h=N()(p,d,R(R({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||"loading"===r.name),n),v=a;void 0===v&&c&&(v=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=M(ct(l),2),b=g[0],y=g[1];return w.createElement("span",C({role:"img","aria-label":r.name},s,{ref:t,tabIndex:v,onClick:c,className:h}),w.createElement(ft,{icon:r,primaryColor:b,secondaryColor:y,style:m}))}));ht.displayName="AntdIcon",ht.getTwoToneColor=function(){var e=ft.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ht.setTwoToneColor=dt;const vt=ht;var mt=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:k}))};const gt=w.forwardRef(mt),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var yt=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:bt}))};const wt=w.forwardRef(yt),xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Ct=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:xt}))};const kt=w.forwardRef(Ct);function Et(e){var t=w.useRef();t.current=e;var n=w.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var St=Te()?w.useLayoutEffect:w.useEffect,$t=function(e,t){var n=w.useRef(!0);St((function(){return e(n.current)}),t),St((function(){return n.current=!1,function(){n.current=!0}}),[])},Ot=function(e,t){$t((function(t){if(!t)return e()}),t)};const Mt=$t;function jt(e){var t=w.useRef(!1),n=M(w.useState(e),2),r=n[0],o=n[1];return w.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Pt(e){return void 0!==e}function Rt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,c=M(jt((function(){return Pt(o)?o:Pt(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=c[0],s=c[1],u=void 0!==o?o:l,f=a?a(u):u,d=Et(i),p=M(jt([u]),2),h=p[0],v=p[1];return Ot((function(){var e=h[0];l!==e&&d(l,e)}),[h]),Ot((function(){Pt(o)||s(o)}),[o]),[f,Et((function(e,t){s(e,t),v([u],t)}))]}const At=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Ft=(0,w.createContext)(null);function Nt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _t(e){return function(e){if(Array.isArray(e))return S(e)}(e)||Nt(e)||$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var It=n(4363);function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return x().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Tt(e)):(0,It.isFragment)(e)&&e.props?n=n.concat(Tt(e.props.children,t)):n.push(e))})),n}const Lt=window.ReactDOM;var zt=n.n(Lt);function Ht(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bt(e){var t,n=function(e){return e&&"object"===j(e)&&Ht(e.nativeElement)?e.nativeElement:Ht(e)?e:null}(e);return n||(e instanceof x().Component?null===(t=zt().findDOMNode)||void 0===t?void 0:t.call(zt(),e):null)}function Dt(e,t,n){var r=w.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Vt=function(e,t){"function"==typeof e?e(t):"object"===j(e)&&e&&"current"in e&&(e.current=t)},Wt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Vt(t,e)}))}},Gt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dt((function(){return Wt.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Xt=function(e){var t,n,r=(0,It.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===It.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===It.ForwardRef)};Number(w.version.split(".")[0]);var qt=w.createContext(null),Kt=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ut="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Yt=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Zt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Yt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Qt=["top","right","bottom","left","width","height","size","weight"],Jt="undefined"!=typeof MutationObserver,en=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){Zt(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ut&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ut&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Qt.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},nn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Yt},rn=sn(0,0,0,0);function on(e){return parseFloat(e)||0}function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+on(e["border-"+n+"-width"])}),0)}var cn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof nn(e).SVGGraphicsElement}:function(e){return e instanceof nn(e).SVGElement&&"function"==typeof e.getBBox};function ln(e){return Ut?cn(e)?function(e){var t=e.getBBox();return sn(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rn;var r=nn(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=on(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=on(r.width),l=on(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=an(r,"left","right")+i),Math.round(l+a)!==n&&(l-=an(r,"top","bottom")+a)),!function(e){return e===nn(e).document.documentElement}(e)){var s=Math.round(c+i)-t,u=Math.round(l+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(u)&&(l-=u)}return sn(o.left,o.top,c,l)}(e):rn}function sn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var un=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=sn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ln(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),fn=function(e,t){var n,r,o,i,a,c,l,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(c.prototype),tn(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);tn(this,{target:e,contentRect:s})},dn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Kt,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new un(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new fn(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pn="undefined"!=typeof WeakMap?new WeakMap:new Kt,hn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=en.getInstance(),r=new dn(t,n,this);pn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){hn.prototype[e]=function(){var t;return(t=pn.get(this))[e].apply(t,arguments)}}));const vn=void 0!==Yt.ResizeObserver?Yt.ResizeObserver:hn;var mn=new Map,gn=new vn((function(e){e.forEach((function(e){var t,n=e.target;null===(t=mn.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yn(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,P(r.key),r)}}function wn(e,t,n){return t&&yn(e.prototype,t),n&&yn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xn(e,t)}function Cn(e,t){if("function"!=typeof t&&null!==t)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&&xn(e,t)}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(En=function(){return!!e})()}function Sn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $n(e){var t=En();return function(){var n,r=kn(e);if(t){var o=kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}(this,n)}}var On=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);function Mn(e,t){var n=e.children,r=e.disabled,o=w.useRef(null),i=w.useRef(null),a=w.useContext(qt),c="function"==typeof n,l=c?n(o):n,s=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!c&&w.isValidElement(l)&&Xt(l),f=u?l.ref:null,d=Gt(f,o),p=function(){var e;return Bt(o.current)||(o.current&&"object"===j(o.current)?Bt(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Bt(i.current)};w.useImperativeHandle(t,(function(){return p()}));var h=w.useRef(e);h.current=e;var v=w.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,c=o.height,l=e.offsetWidth,u=e.offsetHeight,f=Math.floor(i),d=Math.floor(c);if(s.current.width!==f||s.current.height!==d||s.current.offsetWidth!==l||s.current.offsetHeight!==u){var p={width:f,height:d,offsetWidth:l,offsetHeight:u};s.current=p;var v=l===Math.round(i)?i:l,m=u===Math.round(c)?c:u,g=Ie(Ie({},p),{},{offsetWidth:v,offsetHeight:m});null==a||a(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return w.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=v,mn.has(e)||(mn.set(e,new Set),gn.observe(e)),mn.get(e).add(t)),function(){return function(e,t){mn.has(e)&&(mn.get(e).delete(t),mn.get(e).size||(gn.unobserve(e),mn.delete(e)))}(n,v)}}),[o.current,r]),w.createElement(On,{ref:i},u?w.cloneElement(l,{ref:d}):l)}const jn=w.forwardRef(Mn);function Pn(e,t){var n=e.children;return("function"==typeof n?[n]:Tt(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return w.createElement(jn,C({},e,{key:o,ref:0===r?t:void 0}),n)}))}var Rn=w.forwardRef(Pn);Rn.Collection=function(e){var t=e.children,n=e.onBatchResize,r=w.useRef(0),o=w.useRef([]),i=w.useContext(qt),a=w.useCallback((function(e,t,a){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return w.createElement(qt.Provider,{value:a},t)};const An=Rn;var Fn=function(e){return+setTimeout(e,16)},Nn=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Fn=function(e){return window.requestAnimationFrame(e)},Nn=function(e){return window.cancelAnimationFrame(e)});var In=0,Tn=new Map;function Ln(e){Tn.delete(e)}var zn=function(e){var t=In+=1;return function n(r){if(0===r)Ln(t),e();else{var o=Fn((function(){n(r-1)}));Tn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};zn.cancel=function(e){var t=Tn.get(e);return Ln(e),Nn(t)};const Hn=zn;var Bn={width:0,height:0,left:0,top:0};function Dn(e,t){var n=w.useRef(e),r=M(w.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Vn=Math.pow(.995,20);function Wn(e){var t=M((0,w.useState)(0),2),n=t[0],r=t[1],o=(0,w.useRef)(0),i=(0,w.useRef)();return i.current=e,Ot((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var Gn={width:0,height:0,left:0,top:0,right:0};function Xn(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function qn(e){return String(e).replace(/"/g,"TABS_DQ")}function Kn(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Un=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?w.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));const Yn=Un;var Zn=w.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==j(i)||w.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?w.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));const Qn=Zn,Jn=w.createContext(null);var er=[];var tr="rc-util-locker-".concat(Date.now()),nr=0;function rr(e){var t=!!e,n=M(w.useState((function(){return nr+=1,"".concat(tr,"_").concat(nr)})),1)[0];Mt((function(){if(t){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(c.width,10),s=parseInt(c.height,10);try{var u=l?"width: ".concat(c.width,";"):"",f=s?"height: ".concat(c.height,";"):"";qe("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),t)}catch(e){console.error(e),r=l,o=s}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Xe(t),{width:d,height:p}}(o):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;qe("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Xe(n);var o;return function(){Xe(n)}}),[t,n])}var or=!1,ir=function(e){return!1!==e&&(Te()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ar=w.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,c=e.children,l=M(w.useState(n),2),s=l[0],u=l[1],f=s||n;w.useEffect((function(){(a||n)&&u(n)}),[n,a]);var d=M(w.useState((function(){return ir(o)})),2),p=d[0],h=d[1];w.useEffect((function(){var e=ir(o);h(null!=e?e:null)}));var v=function(e){var t=M(w.useState((function(){return Te()?document.createElement("div"):null})),1)[0],n=w.useRef(!1),r=w.useContext(Jn),o=M(w.useState(er),2),i=o[0],a=o[1],c=r||(n.current?void 0:function(e){a((function(t){return[e].concat(_t(t))}))});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function s(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Mt((function(){return e?r?r(l):l():s(),s}),[e]),Mt((function(){i.length&&(i.forEach((function(e){return e()})),a(er))}),[i]),[t,c]}(f&&!p),m=M(v,2),g=m[0],b=m[1],y=null!=p?p:g;rr(r&&n&&Te()&&(y===g||y===document.body));var x=null;c&&Xt(c)&&t&&(x=c.ref);var C=Gt(x,t);if(!f||!Te()||void 0===p)return null;var k=!1===y||or,E=c;return t&&(E=w.cloneElement(c,{ref:C})),w.createElement(Jn.Provider,{value:b},k?E:(0,Lt.createPortal)(E,y))}));const cr=ar;var lr=0,sr=Ie({},w).useId;const ur=sr?function(e){var t=sr();return e||t}:function(e){var t=M(w.useState("ssr-id"),2),n=t[0],r=t[1];return w.useEffect((function(){var e=lr;lr+=1,r("rc_unique_".concat(e))}),[]),e||n};var fr=w.createContext({}),dr=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);const pr=dr;function hr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function vr(e,t,n,r){if(!t.length)return n;var o,i=function(e){return E(e)||Nt(e)||$(e)||O()}(t),a=i[0],c=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?_t(e):Ie({},e):[],r&&void 0===n&&1===c.length?delete o[a][c[0]]:o[a]=vr(o[a],c,n,r),o}function mr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!hr(e,t.slice(0,-1))?e:vr(e,t,n,r)}function gr(e){return Array.isArray(e)?[]:{}}var br="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=gr(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),c=hr(e,n),l=Array.isArray(c);if(l||"object"===j(i=c)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(c)){a.add(c);var s=hr(r,n);l?r=mr(r,n,[]):s&&"object"===j(s)||(r=mr(r,n,gr(c))),br(c).forEach((function(e){t([].concat(_t(n),[e]),a)}))}}else r=mr(r,n,c)}([])})),r}var wr="none",xr="appear",Cr="enter",kr="leave",Er="none",Sr="prepare",$r="start",Or="active",Mr="end",jr="prepared";function Pr(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}var Rr,Ar,Fr,Nr=(Rr=Te(),Ar="undefined"!=typeof window?window:{},Fr={animationend:Pr("Animation","AnimationEnd"),transitionend:Pr("Transition","TransitionEnd")},Rr&&("AnimationEvent"in Ar||delete Fr.animationend.animation,"TransitionEvent"in Ar||delete Fr.transitionend.transition),Fr),_r={};if(Te()){var Ir=document.createElement("div");_r=Ir.style}var Tr={};function Lr(e){if(Tr[e])return Tr[e];var t=Nr[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in _r)return Tr[e]=t[i],Tr[e]}return""}var zr=Lr("animationend"),Hr=Lr("transitionend"),Br=!(!zr||!Hr),Dr=zr||"animationend",Vr=Hr||"transitionend";function Wr(e,t){return e?"object"===j(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Gr=Te()?w.useLayoutEffect:w.useEffect;var Xr=[Sr,$r,Or,Mr],qr=[Sr,jr],Kr=!1;function Ur(e){return e===Or||e===Mr}function Yr(e,t,n,r){var o,i,a,c=r.motionEnter,l=void 0===c||c,s=r.motionAppear,u=void 0===s||s,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,v=r.onAppearPrepare,m=r.onEnterPrepare,g=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,x=r.onLeaveStart,C=r.onAppearActive,k=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,O=r.onLeaveEnd,j=r.onVisibleChanged,P=M(jt(),2),A=P[0],F=P[1],N=(o=wr,i=M(w.useReducer((function(e){return e+1}),0),2)[1],a=w.useRef(o),[Et((function(){return a.current})),Et((function(e){a.current="function"==typeof e?e(a.current):e,i()}))]),_=M(N,2),I=_[0],T=_[1],L=M(jt(null),2),z=L[0],H=L[1],B=I(),D=(0,w.useRef)(!1),V=(0,w.useRef)(null);function W(){return n()}var G=(0,w.useRef)(!1);function X(){T(wr),H(null,!0)}var q=Et((function(e){var t=I();if(t!==wr){var n=W();if(!e||e.deadline||e.target===n){var r,o=G.current;t===xr&&o?r=null==S?void 0:S(n,e):t===Cr&&o?r=null==$?void 0:$(n,e):t===kr&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&X()}}})),K=function(e){var t=(0,w.useRef)();function n(t){t&&(t.removeEventListener(Vr,e),t.removeEventListener(Dr,e))}return w.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Vr,e),r.addEventListener(Dr,e),t.current=r)},n]}(q),U=M(K,1)[0],Y=function(e){switch(e){case xr:return R(R(R({},Sr,v),$r,b),Or,C);case Cr:return R(R(R({},Sr,m),$r,y),Or,k);case kr:return R(R(R({},Sr,g),$r,x),Or,E);default:return{}}},Z=w.useMemo((function(){return Y(B)}),[B]),Q=M(function(e,t,n){var r=M(jt(Er),2),o=r[0],i=r[1],a=function(){var e=w.useRef(null);function t(){Hn.cancel(e.current)}return w.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Hn((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=M(a,2),l=c[0],s=c[1],u=t?qr:Xr;return Gr((function(){if(o!==Er&&o!==Mr){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Kr?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),w.useEffect((function(){return function(){s()}}),[]),[function(){i(Sr,!0)},o]}(B,!e,(function(e){if(e===Sr){var t=Z[Sr];return t?t(W()):Kr}var n;return ee in Z&&H((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,W(),null))||null),ee===Or&&B!==wr&&(U(W()),p>0&&(clearTimeout(V.current),V.current=setTimeout((function(){q({deadline:!0})}),p))),ee===jr&&X(),!0})),2),J=Q[0],ee=Q[1],te=Ur(ee);G.current=te,Gr((function(){F(t);var n,r=D.current;D.current=!0,!r&&t&&u&&(n=xr),r&&t&&l&&(n=Cr),(r&&!t&&d||!r&&h&&!t&&d)&&(n=kr);var o=Y(n);n&&(e||o[Sr])?(T(n),J()):T(wr)}),[t]),(0,w.useEffect)((function(){(B===xr&&!u||B===Cr&&!l||B===kr&&!d)&&T(wr)}),[u,l,d]),(0,w.useEffect)((function(){return function(){D.current=!1,clearTimeout(V.current)}}),[]);var ne=w.useRef(!1);(0,w.useEffect)((function(){A&&(ne.current=!0),void 0!==A&&B===wr&&((ne.current||A)&&(null==j||j(A)),ne.current=!0)}),[A,B]);var re=z;return Z[Sr]&&ee===$r&&(re=Ie({transition:"none"},re)),[B,ee,re,null!=A?A:t]}const Zr=function(e){var t=e;"object"===j(e)&&(t=e.transitionSupport);var n=w.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,c=e.forceRender,l=e.children,s=e.motionName,u=e.leavedClassName,f=e.eventProps,d=function(e,n){return!(!e.motionName||!t||!1===n)}(e,w.useContext(fr).motion),p=(0,w.useRef)(),h=(0,w.useRef)(),v=M(Yr(d,o,(function(){try{return p.current instanceof HTMLElement?p.current:Bt(h.current)}catch(e){return null}}),e),4),m=v[0],g=v[1],b=v[2],y=v[3],x=w.useRef(y);y&&(x.current=!0);var C,k=w.useCallback((function(e){p.current=e,Vt(n,e)}),[n]),E=Ie(Ie({},f),{},{visible:o});if(l)if(m===wr)C=y?l(Ie({},E),k):!a&&x.current&&u?l(Ie(Ie({},E),{},{className:u}),k):c||!a&&!u?l(Ie(Ie({},E),{},{style:{display:"none"}}),k):null;else{var S;g===Sr?S="prepare":Ur(g)?S="active":g===$r&&(S="start");var $=Wr(s,"".concat(m,"-").concat(S));C=l(Ie(Ie({},E),{},{className:N()(Wr(s,m),R(R({},$,$&&S),s,"string"==typeof s)),style:b}),k)}else C=null;return w.isValidElement(C)&&Xt(C)&&(C.ref||(C=w.cloneElement(C,{ref:k}))),w.createElement(pr,{ref:h},C)}));return n.displayName="CSSMotion",n}(Br);var Qr="add",Jr="keep",eo="remove",to="removed";function no(e){var t;return Ie(Ie({},t=e&&"object"===j(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ro(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(no)}var oo=["component","children","onVisibleChanged","onAllRemoved"],io=["status"],ao=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zr,t=function(t){Cn(r,t);var n=$n(r);function r(){var e;bn(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return R(Sn(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),R(Sn(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Ie(Ie({},e),{},{status:to})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==to})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return wn(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,c=(r.onAllRemoved,A(r,oo)),l=o||w.Fragment,s={};return ao.forEach((function(e){s[e]=c[e],delete c[e]})),delete c.keys,w.createElement(l,c,n.map((function(n,r){var o=n.status,c=A(n,io),l=o===Qr||o===Jr;return w.createElement(e,C({},s,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return i(Ie(Ie({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=ro(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ro(e),a=ro(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Ie(Ie({},e),{},{status:Qr})}))),r=i),n.push(Ie(Ie({},c),{},{status:Jr})),r+=1,t=!0;break}}t||n.push(Ie(Ie({},e),{},{status:eo}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Ie(Ie({},e),{},{status:Qr})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==eo}))).forEach((function(t){t.key===e&&(t.status=Jr)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==to||e.status!==eo}))}}}]),r}(w.Component);R(t,"defaultProps",{component:"div"})}(Br);const co=Zr;function lo(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,l=o.x,s=void 0===l?0:l,u=o.y,f=void 0===u?0:u,d=w.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],m=h[0],g=h[1],b=v[0],y=v[1];m!==b&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=f,g!==y&&["l","r"].includes(g)?"l"===g?p.left=0:p.right=0:p.left=s}return w.createElement("div",{ref:d,className:N()("".concat(t,"-arrow"),a),style:p},c)}function so(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?w.createElement(co,C({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return w.createElement("div",{style:{zIndex:r},className:N()("".concat(t,"-mask"),n)})})):null}var uo=w.memo((function(e){return e.children}),(function(e,t){return t.cache}));const fo=uo;var po=w.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,c=e.onVisibleChanged,l=e.open,s=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,k=e.portal,E=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,j=e.ready,P=e.offsetX,R=e.offsetY,A=e.offsetR,F=e.offsetB,_=e.onAlign,I=e.onPrepare,T=e.stretch,L=e.targetWidth,z=e.targetHeight,H="function"==typeof n?n():n,B=l||s,D=(null==y?void 0:y.length)>0,V=M(w.useState(!y||!D),2),W=V[0],G=V[1];if(Mt((function(){!W&&D&&a&&G(!0)}),[W,D,a]),!W)return null;var X="auto",q={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(j||!l){var K,U=v.points,Y=v.dynamicInset||(null===(K=v._experimental)||void 0===K?void 0:K.dynamicInset),Z=Y&&"r"===U[0][1],Q=Y&&"b"===U[0][0];Z?(q.right=A,q.left=X):(q.left=P,q.right=X),Q?(q.bottom=F,q.top=X):(q.top=R,q.bottom=X)}var J={};return T&&(T.includes("height")&&z?J.height=z:T.includes("minHeight")&&z&&(J.minHeight=z),T.includes("width")&&L?J.width=L:T.includes("minWidth")&&L&&(J.minWidth=L)),l||(J.pointerEvents="none"),w.createElement(k,{open:b||B,getContainer:y&&function(){return y(a)},autoDestroy:x},w.createElement(so,{prefixCls:o,open:l,zIndex:E,mask:d,motion:g}),w.createElement(An,{onResize:_,disabled:!l},(function(e){return w.createElement(co,C({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),c(e)}}),(function(n,a){var c=n.className,s=n.style,d=N()(o,c,r);return w.createElement("div",{ref:Wt(e,t,a),className:d,style:Ie(Ie(Ie(Ie({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),s),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f},p&&w.createElement(lo,{prefixCls:o,arrow:p,arrowPos:h,align:v}),w.createElement(fo,{cache:!l&&!u},H))}))})))}));const ho=po;var vo=w.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Xt(n),i=w.useCallback((function(e){Vt(t,r?r(e):e)}),[r]),a=Gt(i,n.ref);return o?w.cloneElement(n,{ref:a}):n}));const mo=vo,go=w.createContext(null);function bo(e){return e?Array.isArray(e)?e:[e]:[]}const yo=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function wo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xo(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Co(e){return e.ownerDocument.defaultView}function ko(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Co(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function So(e){return Eo(parseFloat(e),0)}function $o(e,t){var n=Ie({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Co(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,c=t.borderLeftWidth,l=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=So(i),v=So(a),m=So(c),g=So(l),b=Eo(Math.round(s.width/d*1e3)/1e3),y=Eo(Math.round(s.height/u*1e3)/1e3),w=(d-p-m-g)*b,x=(u-f-h-v)*y,C=h*y,k=v*y,E=m*b,S=g*b,$=0,O=0;if("clip"===r){var M=So(o);$=M*b,O=M*y}var j=s.x+E-$,P=s.y+C-O,R=j+s.width+2*$-E-S-w,A=P+s.height+2*O-C-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,A)}})),n}function Oo(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Mo(e,t){var n=M(t||[],2),r=n[0],o=n[1];return[Oo(e.width,r),Oo(e.height,o)]}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Po(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Ro(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Ao=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Fo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cr,t=w.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,c=void 0===a?"hover":a,l=t.showAction,s=t.hideAction,u=t.popupVisible,f=t.defaultPopupVisible,d=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,v=t.mouseLeaveDelay,m=void 0===v?.1:v,g=t.focusDelay,b=t.blurDelay,y=t.mask,x=t.maskClosable,C=void 0===x||x,k=t.getPopupContainer,E=t.forceRender,S=t.autoDestroy,$=t.destroyPopupOnHide,O=t.popup,j=t.popupClassName,P=t.popupStyle,R=t.popupPlacement,F=t.builtinPlacements,_=void 0===F?{}:F,I=t.popupAlign,T=t.zIndex,L=t.stretch,z=t.getPopupClassNameFromAlign,H=t.fresh,B=t.alignPoint,D=t.onPopupClick,V=t.onPopupAlign,W=t.arrow,G=t.popupMotion,X=t.maskMotion,q=t.popupTransitionName,K=t.popupAnimation,U=t.maskTransitionName,Y=t.maskAnimation,Z=t.className,Q=t.getTriggerDOMNode,J=A(t,Ao),ee=S||$||!1,te=M(w.useState(!1),2),ne=te[0],re=te[1];Mt((function(){re(At())}),[]);var oe=w.useRef({}),ie=w.useContext(go),ae=w.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),ce=ur(),le=M(w.useState(null),2),se=le[0],ue=le[1],fe=w.useRef(null),de=Et((function(e){fe.current=e,Ht(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(ce,e)})),pe=M(w.useState(null),2),he=pe[0],ve=pe[1],me=w.useRef(null),ge=Et((function(e){Ht(e)&&he!==e&&(ve(e),me.current=e)})),be=w.Children.only(i),ye=(null==be?void 0:be.props)||{},we={},xe=Et((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=Ue(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=Ue(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ce=xo(o,G,K,q),ke=xo(o,X,Y,U),Ee=M(w.useState(f||!1),2),Se=Ee[0],$e=Ee[1],Oe=null!=u?u:Se,Me=Et((function(e){void 0===u&&$e(e)}));Mt((function(){$e(u||!1)}),[u]);var je=w.useRef(Oe);je.current=Oe;var Pe=w.useRef([]);Pe.current=[];var Re=Et((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Oe)!==e&&(Pe.current.push(e),null==d||d(e))})),Ae=w.useRef(),Fe=function(){clearTimeout(Ae.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Re(e):Ae.current=setTimeout((function(){Re(e)}),1e3*t)};w.useEffect((function(){return Fe}),[]);var _e=M(w.useState(!1),2),Te=_e[0],Le=_e[1];Mt((function(e){e&&!Oe||Le(!0)}),[Oe]);var ze=M(w.useState(null),2),He=ze[0],Be=ze[1],De=M(w.useState(null),2),Ve=De[0],We=De[1],Ge=function(e){We([e.clientX,e.clientY])},Xe=function(e,t,n,r,o,i,a){var c=M(w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=c[0],s=c[1],u=w.useRef(0),f=w.useMemo((function(){return t?ko(t):[]}),[t]),d=w.useRef({});e||(d.current={});var p=Et((function(){if(t&&n&&e){var c,l,u,p,h,v=t,m=v.ownerDocument,g=Co(v).getComputedStyle(v),b=g.width,y=g.height,w=g.position,x=v.style.left,C=v.style.top,k=v.style.right,E=v.style.bottom,S=v.style.overflow,$=Ie(Ie({},o[r]),i),O=m.createElement("div");if(null===(c=v.parentElement)||void 0===c||c.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var j,P,R=n.getBoundingClientRect();R.x=null!==(j=R.x)&&void 0!==j?j:R.left,R.y=null!==(P=R.y)&&void 0!==P?P:R.top,h={x:R.x,y:R.y,width:R.width,height:R.height}}var A=v.getBoundingClientRect();A.x=null!==(l=A.x)&&void 0!==l?l:A.left,A.y=null!==(u=A.y)&&void 0!==u?u:A.top;var F=m.documentElement,N=F.clientWidth,_=F.clientHeight,I=F.scrollWidth,T=F.scrollHeight,L=F.scrollTop,z=F.scrollLeft,H=A.height,B=A.width,D=h.height,V=h.width,W={left:0,top:0,right:N,bottom:_},G={left:-z,top:-L,right:I-z,bottom:T-L},X=$.htmlRegion,q="visible",K="visibleFirst";"scroll"!==X&&X!==K&&(X=q);var U=X===K,Y=$o(G,f),Z=$o(W,f),Q=X===q?Z:Y,J=U?Z:Q;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var ee=v.getBoundingClientRect();v.style.left=x,v.style.top=C,v.style.right=k,v.style.bottom=E,v.style.overflow=S,null===(p=v.parentElement)||void 0===p||p.removeChild(O);var te=Eo(Math.round(B/parseFloat(b)*1e3)/1e3),ne=Eo(Math.round(H/parseFloat(y)*1e3)/1e3);if(0===te||0===ne||Ht(n)&&!yo(n))return;var re=$.offset,oe=$.targetOffset,ie=M(Mo(A,re),2),ae=ie[0],ce=ie[1],le=M(Mo(h,oe),2),se=le[0],ue=le[1];h.x-=se,h.y-=ue;var fe=M($.points||[],2),de=fe[0],pe=jo(fe[1]),he=jo(de),ve=Po(h,pe),me=Po(A,he),ge=Ie({},$),be=ve.x-me.x+ae,ye=ve.y-me.y+ce;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,r=A.x+e,o=A.y+t,i=r+B,a=o+H,c=Math.max(r,n.left),l=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-c)*(u-l))}var we,xe,Ce,ke,Ee=pt(be,ye),Se=pt(be,ye,Z),$e=Po(h,["t","l"]),Oe=Po(A,["t","l"]),Me=Po(h,["b","r"]),je=Po(A,["b","r"]),Pe=$.overflow||{},Re=Pe.adjustX,Ae=Pe.adjustY,Fe=Pe.shiftX,Ne=Pe.shiftY,_e=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=A.y+ye,xe=we+H,Ce=A.x+be,ke=Ce+B}ht();var Te=_e(Ae),Le=he[0]===pe[0];if(Te&&"t"===he[0]&&(xe>J.bottom||d.current.bt)){var ze=ye;Le?ze-=H-D:ze=$e.y-je.y-ce;var He=pt(be,ze),Be=pt(be,ze,Z);He>Ee||He===Ee&&(!U||Be>=Se)?(d.current.bt=!0,ye=ze,ce=-ce,ge.points=[Ro(he,0),Ro(pe,0)]):d.current.bt=!1}if(Te&&"b"===he[0]&&(we<J.top||d.current.tb)){var De=ye;Le?De+=H-D:De=Me.y-Oe.y-ce;var Ve=pt(be,De),We=pt(be,De,Z);Ve>Ee||Ve===Ee&&(!U||We>=Se)?(d.current.tb=!0,ye=De,ce=-ce,ge.points=[Ro(he,0),Ro(pe,0)]):d.current.tb=!1}var Ge=_e(Re),Xe=he[1]===pe[1];if(Ge&&"l"===he[1]&&(ke>J.right||d.current.rl)){var qe=be;Xe?qe-=B-V:qe=$e.x-je.x-ae;var Ke=pt(qe,ye),Ue=pt(qe,ye,Z);Ke>Ee||Ke===Ee&&(!U||Ue>=Se)?(d.current.rl=!0,be=qe,ae=-ae,ge.points=[Ro(he,1),Ro(pe,1)]):d.current.rl=!1}if(Ge&&"r"===he[1]&&(Ce<J.left||d.current.lr)){var Ye=be;Xe?Ye+=B-V:Ye=Me.x-Oe.x-ae;var Ze=pt(Ye,ye),Qe=pt(Ye,ye,Z);Ze>Ee||Ze===Ee&&(!U||Qe>=Se)?(d.current.lr=!0,be=Ye,ae=-ae,ge.points=[Ro(he,1),Ro(pe,1)]):d.current.lr=!1}ht();var Je=!0===Fe?0:Fe;"number"==typeof Je&&(Ce<Z.left&&(be-=Ce-Z.left-ae,h.x+V<Z.left+Je&&(be+=h.x-Z.left+V-Je)),ke>Z.right&&(be-=ke-Z.right-ae,h.x>Z.right-Je&&(be+=h.x-Z.right+Je)));var et=!0===Ne?0:Ne;"number"==typeof et&&(we<Z.top&&(ye-=we-Z.top-ce,h.y+D<Z.top+et&&(ye+=h.y-Z.top+D-et)),xe>Z.bottom&&(ye-=xe-Z.bottom-ce,h.y>Z.bottom-et&&(ye+=h.y-Z.bottom+et)));var tt=A.x+be,nt=tt+B,rt=A.y+ye,ot=rt+H,it=h.x,at=it+V,ct=h.y,lt=ct+D,st=(Math.max(tt,it)+Math.min(nt,at))/2-tt,ut=(Math.max(rt,ct)+Math.min(ot,lt))/2-rt;null==a||a(t,ge);var ft=ee.right-A.x-(be+A.width),dt=ee.bottom-A.y-(ye+A.height);1===te&&(be=Math.round(be),ft=Math.round(ft)),1===ne&&(ye=Math.round(ye),dt=Math.round(dt)),s({ready:!0,offsetX:be/te,offsetY:ye/ne,offsetR:ft/te,offsetB:dt/ne,arrowX:st/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ge})}})),h=function(){s((function(e){return Ie(Ie({},e),{},{ready:!1})}))};return Mt(h,[r]),Mt((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(Oe,se,B&&null!==Ve?Ve:he,R,_,I,V),qe=M(Xe,11),Ke=qe[0],Ye=qe[1],Ze=qe[2],Qe=qe[3],Je=qe[4],et=qe[5],tt=qe[6],nt=qe[7],rt=qe[8],ot=qe[9],it=qe[10],at=function(e,t,n,r){return w.useMemo((function(){var o=bo(null!=n?n:t),i=bo(null!=r?r:t),a=new Set(o),c=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[a,c]}),[e,t,n,r])}(ne,c,l,s),ct=M(at,2),lt=ct[0],st=ct[1],ut=lt.has("click"),ft=st.has("click")||st.has("contextMenu"),dt=Et((function(){Te||it()}));!function(e,t,n,r){Mt((function(){if(e&&t&&n){var o=n,i=ko(t),a=ko(o),c=Co(o),l=new Set([c].concat(_t(i),_t(a)));function s(){r(),je.current&&B&&ft&&Ne(!1)}return l.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),c.addEventListener("resize",s,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",s),c.removeEventListener("resize",s)}))}}}),[e,t,n])}(Oe,he,se,dt),Mt((function(){dt()}),[Ve,R]),Mt((function(){!Oe||null!=_&&_[R]||dt()}),[JSON.stringify(I)]);var pt=w.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c,l=i[a];if(wo(null===(c=e[l])||void 0===c?void 0:c.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(_,o,ot,B);return N()(e,null==z?void 0:z(ot))}),[ot,z,_,o,B]);w.useImperativeHandle(n,(function(){return{nativeElement:me.current,popupElement:fe.current,forceAlign:dt}}));var ht=M(w.useState(0),2),vt=ht[0],mt=ht[1],gt=M(w.useState(0),2),bt=gt[0],yt=gt[1],wt=function(){if(L&&he){var e=he.getBoundingClientRect();mt(e.width),yt(e.height)}};function xt(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Ne(t,n);for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(c))}}Mt((function(){He&&(it(),He(),Be(null))}),[He]),(ut||ft)&&(we.onClick=function(e){var t;je.current&&ft?Ne(!1):!je.current&&ut&&(Ge(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(e,t,n,r,o,i,a,c){var l=w.useRef(e);l.current=e,w.useEffect((function(){if(t&&r&&(!o||i)){var e=function(e){var t;l.current&&!a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},s=Co(r);s.addEventListener("mousedown",e,!0),s.addEventListener("contextmenu",e,!0);var u=Ue(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){s.removeEventListener("mousedown",e,!0),s.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,o,i])}(Oe,ft,he,se,y,C,xe,Ne);var Ct,kt,St=lt.has("hover"),$t=st.has("hover");St&&(xt("onMouseEnter",!0,h,(function(e){Ge(e)})),xt("onPointerEnter",!0,h,(function(e){Ge(e)})),Ct=function(e){(Oe||Te)&&null!=se&&se.contains(e.target)&&Ne(!0,h)},B&&(we.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),$t&&(xt("onMouseLeave",!1,m),xt("onPointerLeave",!1,m),kt=function(){Ne(!1,m)}),lt.has("focus")&&xt("onFocus",!0,g),st.has("focus")&&xt("onBlur",!1,b),lt.has("contextMenu")&&(we.onContextMenu=function(e){var t;je.current&&st.has("contextMenu")?Ne(!1):(Ge(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Z&&(we.className=N()(ye.className,Z));var Ot=Ie(Ie({},ye),we),jt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(jt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(r)),J[e].apply(J,r)})}));var Pt=w.cloneElement(be,Ie(Ie({},Ot),jt)),Rt={x:et,y:tt},Ft=W?Ie({},!0!==W?W:{}):null;return w.createElement(w.Fragment,null,w.createElement(An,{disabled:!Oe,ref:ge,onResize:function(){wt(),dt()}},w.createElement(mo,{getTriggerDOMNode:Q},Pt)),w.createElement(go.Provider,{value:ae},w.createElement(ho,{portal:e,ref:de,prefixCls:o,popup:O,className:N()(j,pt),style:P,target:he,onMouseEnter:Ct,onMouseLeave:kt,onPointerEnter:Ct,zIndex:T,open:Oe,keepDom:Te,fresh:H,onClick:D,mask:y,motion:Ce,maskMotion:ke,onVisibleChanged:function(e){Le(!1),it(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){wt(),Be((function(){return e}))}))},forceRender:E,autoDestroy:ee,getPopupContainer:k,align:ot,arrow:Ft,arrowPos:Rt,ready:Ke,offsetX:Ye,offsetY:Ze,offsetR:Qe,offsetB:Je,onAlign:dt,stretch:L,targetWidth:vt/nt,targetHeight:bt/rt})))}));return t}(cr);var No={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=No.F1&&t<=No.F12)return!1;switch(t){case No.ALT:case No.CAPS_LOCK:case No.CONTEXT_MENU:case No.CTRL:case No.DOWN:case No.END:case No.ESC:case No.HOME:case No.INSERT:case No.LEFT:case No.MAC_FF_META:case No.META:case No.NUMLOCK:case No.NUM_CENTER:case No.PAGE_DOWN:case No.PAGE_UP:case No.PAUSE:case No.PRINT_SCREEN:case No.RIGHT:case No.SHIFT:case No.UP:case No.WIN_KEY:case No.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=No.ZERO&&e<=No.NINE)return!0;if(e>=No.NUM_ZERO&&e<=No.NUM_MULTIPLY)return!0;if(e>=No.A&&e<=No.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case No.SPACE:case No.QUESTION_MARK:case No.NUM_PLUS:case No.NUM_MINUS:case No.NUM_PERIOD:case No.NUM_DIVISION:case No.SEMICOLON:case No.DASH:case No.EQUALS:case No.COMMA:case No.PERIOD:case No.SLASH:case No.APOSTROPHE:case No.SINGLE_QUOTE:case No.OPEN_SQUARE_BRACKET:case No.BACKSLASH:case No.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const _o=No;var Io=_o.ESC,To=_o.TAB;const Lo=(0,w.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,w.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=Wt(t,null==i?void 0:i.ref);return x().createElement(x().Fragment,null,r&&x().createElement("div",{className:"".concat(o,"-arrow")}),x().cloneElement(i,{ref:Xt(i)?a:void 0}))}));var zo={adjustX:1,adjustY:1},Ho=[0,0];const Bo={topLeft:{points:["bl","tl"],overflow:zo,offset:[0,-4],targetOffset:Ho},top:{points:["bc","tc"],overflow:zo,offset:[0,-4],targetOffset:Ho},topRight:{points:["br","tr"],overflow:zo,offset:[0,-4],targetOffset:Ho},bottomLeft:{points:["tl","bl"],overflow:zo,offset:[0,4],targetOffset:Ho},bottom:{points:["tc","bc"],overflow:zo,offset:[0,4],targetOffset:Ho},bottomRight:{points:["tr","br"],overflow:zo,offset:[0,4],targetOffset:Ho}};var Do=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vo(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,c=e.transitionName,l=e.animation,s=e.align,u=e.placement,f=void 0===u?"bottomLeft":u,d=e.placements,p=void 0===d?Bo:d,h=e.getPopupContainer,v=e.showAction,m=e.hideAction,g=e.overlayClassName,b=e.overlayStyle,y=e.visible,k=e.trigger,E=void 0===k?["hover"]:k,S=e.autoFocus,$=e.overlay,O=e.children,j=e.onVisibleChange,P=A(e,Do),F=M(x().useState(),2),_=F[0],I=F[1],T="visible"in e?y:_,L=x().useRef(null),z=x().useRef(null),H=x().useRef(null);x().useImperativeHandle(t,(function(){return L.current}));var B=function(e){I(e),null==j||j(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=w.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case Io:c();break;case To:var t=!1;a.current||(t=l()),t?e.preventDefault():c()}};w.useEffect((function(){return t?(window.addEventListener("keydown",s),o&&Hn(l,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:T,triggerRef:H,onVisibleChange:B,autoFocus:S,overlayRef:z});var D,V,W,G=function(){return x().createElement(Lo,{ref:z,overlay:$,prefixCls:a,arrow:o})},X=x().cloneElement(O,{className:N()(null===(n=O.props)||void 0===n?void 0:n.className,T&&(D=e.openClassName,void 0!==D?D:"".concat(a,"-open"))),ref:Xt(O)?Wt(H,O.ref):void 0}),q=m;return q||-1===E.indexOf("contextMenu")||(q=["click"]),x().createElement(Fo,C({builtinPlacements:p},P,{prefixCls:a,ref:L,popupClassName:N()(g,R({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:E,showAction:v,hideAction:q,popupPlacement:f,popupAlign:s,popupTransitionName:c,popupAnimation:l,popupVisible:T,stretch:(V=e.minOverlayWidthMatchTrigger,W=e.alignPoint,("minOverlayWidthMatchTrigger"in e?V:!W)?"minWidth":""),popup:"function"==typeof $?G:G(),onPopupVisibleChange:B,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:h}),X)}const Wo=x().forwardRef(Vo);var Go=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Xo=void 0;function qo(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,c=e.responsiveDisabled,l=e.registerSize,s=e.itemKey,u=e.className,f=e.style,d=e.children,p=e.display,h=e.order,v=e.component,m=void 0===v?"div":v,g=A(e,Go),b=a&&!p;function y(e){l(s,e)}w.useEffect((function(){return function(){y(null)}}),[]);var x,k=i&&o!==Xo?i(o):d;r||(x={opacity:b?0:1,height:b?0:Xo,overflowY:b?"hidden":Xo,order:a?h:Xo,pointerEvents:b?"none":Xo,position:b?"absolute":Xo});var E={};b&&(E["aria-hidden"]=!0);var S=w.createElement(m,C({className:N()(!r&&n,u),style:Ie(Ie({},x),f)},E,g,{ref:t}),k);return a&&(S=w.createElement(An,{onResize:function(e){y(e.offsetWidth)},disabled:c},S)),S}var Ko=w.forwardRef(qo);Ko.displayName="Item";const Uo=Ko;function Yo(e,t){var n=M(w.useState(t),2),r=n[0],o=n[1];return[r,Et((function(t){e((function(){o(t)}))}))]}var Zo=x().createContext(null),Qo=["component"],Jo=["className"],ei=["className"],ti=function(e,t){var n=w.useContext(Zo);if(!n){var r=e.component,o=void 0===r?"div":r,i=A(e,Qo);return w.createElement(o,C({},i,{ref:t}))}var a=n.className,c=A(n,Jo),l=e.className,s=A(e,ei);return w.createElement(Zo.Provider,{value:null},w.createElement(Uo,C({ref:t,className:N()(a,l)},c,s)))},ni=w.forwardRef(ti);ni.displayName="RawItem";const ri=ni;var oi=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ii="responsive",ai="invalidate";function ci(e){return"+ ".concat(e.length," ...")}function li(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,c=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,f=void 0===u?10:u,d=e.ssr,p=e.style,h=e.className,v=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,x=void 0===y?"div":y,k=e.itemComponent,E=e.onVisibleChange,S=A(e,oi),$="full"===d,O=(n=w.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Hn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Lt.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),j=M(Yo(O,null),2),P=j[0],R=j[1],F=P||0,_=M(Yo(O,new Map),2),I=_[0],T=_[1],L=M(Yo(O,0),2),z=L[0],H=L[1],B=M(Yo(O,0),2),D=B[0],V=B[1],W=M(Yo(O,0),2),G=W[0],X=W[1],q=M((0,w.useState)(null),2),K=q[0],U=q[1],Y=M((0,w.useState)(null),2),Z=Y[0],Q=Y[1],J=w.useMemo((function(){return null===Z&&$?Number.MAX_SAFE_INTEGER:Z||0}),[Z,P]),ee=M((0,w.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(o,"-item"),oe=Math.max(z,D),ie=v===ii,ae=a.length&&ie,ce=v===ai,le=ae||"number"==typeof v&&a.length>v,se=(0,w.useMemo)((function(){var e=a;return ae?e=null===P&&$?a:a.slice(0,Math.min(a.length,F/f)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,f,P,v,ae]),ue=(0,w.useMemo)((function(){return ae?a.slice(J+1):a.slice(se.length)}),[a,se,ae,J]),fe=(0,w.useCallback)((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),de=(0,w.useCallback)(c||function(e){return e},[c]);function pe(e,t,n){(Z!==e||void 0!==t&&t!==K)&&(Q(e),n||(ne(e<a.length-1),null==E||E(e)),void 0!==t&&U(t))}function he(e,t){T((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ve(e){return I.get(fe(se[e],e))}Mt((function(){if(F&&"number"==typeof oe&&se){var e=G,t=se.length,n=t-1;if(!t)return void pe(0,null);for(var r=0;r<t;r+=1){var o=ve(r);if($&&(o=o||0),void 0===o){pe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=F||r===n-1&&e+ve(n)<=F){pe(n,null);break}if(e+oe>F){pe(r-1,e-o-G+D);break}}b&&ve(0)+G>F&&U(null)}}),[F,I,D,G,fe,se]);var me=te&&!!ue.length,ge={};null!==K&&ae&&(ge={position:"absolute",left:K,top:0});var be,ye={prefixCls:re,responsive:ae,component:k,invalidate:ce},we=l?function(e,t){var n=fe(e,t);return w.createElement(Zo.Provider,{key:n,value:Ie(Ie({},ye),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=J})},l(e,t))}:function(e,t){var n=fe(e,t);return w.createElement(Uo,C({},ye,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:he,display:t<=J}))},xe={order:me?J:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){V(t),H(D)},display:me};if(g)g&&(be=w.createElement(Zo.Provider,{value:Ie(Ie({},ye),xe)},g(ue)));else{var Ce=m||ci;be=w.createElement(Uo,C({},ye,xe),"function"==typeof Ce?Ce(ue):Ce)}var ke=w.createElement(x,C({className:N()(!ce&&o,h),style:p,ref:t},S),se.map(we),le?be:null,b&&w.createElement(Uo,C({},ye,{responsive:ie,responsiveDisabled:!ae,order:J,className:"".concat(re,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:ge}),b));return ie&&(ke=w.createElement(An,{onResize:function(e,t){R(t.clientWidth)},disabled:!ae},ke)),ke}var si=w.forwardRef(li);si.displayName="Overflow",si.Item=ri,si.RESPONSIVE=ii,si.INVALIDATE=ai;const ui=si,fi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(nt(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var c=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],c))return!1;return!0}if(t&&o&&"object"===j(t)&&"object"===j(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],c)}))}return!1}(e,t)};var di=w.createContext(null);function pi(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function hi(e){return pi(w.useContext(di),e)}var vi=["children","locked"],mi=w.createContext(null);function gi(e){var t=e.children,n=e.locked,r=A(e,vi),o=w.useContext(mi),i=Dt((function(){return e=r,t=Ie({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&fi(e[1],t[1],!0))}));return w.createElement(mi.Provider,{value:i},t)}var bi=[],yi=w.createContext(null);function wi(){return w.useContext(yi)}var xi=w.createContext(bi);function Ci(e){var t=w.useContext(xi);return w.useMemo((function(){return void 0!==e?[].concat(_t(t),[e]):t}),[t,e])}var ki=w.createContext(null);const Ei=w.createContext({});function Si(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(yo(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var $i=_o.LEFT,Oi=_o.RIGHT,Mi=_o.UP,ji=_o.DOWN,Pi=_o.ENTER,Ri=_o.ESC,Ai=_o.HOME,Fi=_o.END,Ni=[Mi,ji,$i,Oi];function _i(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_t(e.querySelectorAll("*")).filter((function(e){return Si(e,t)}));return Si(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Ii(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=_i(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Ti=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(pi(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var Li="__RC_UTIL_PATH_SPLIT__",zi=function(e){return e.join(Li)},Hi="rc-menu-more";function Bi(e){var t=w.useRef(e);t.current=e;var n=w.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Di=Math.random().toFixed(5).toString().slice(2),Vi=0;function Wi(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Gi(e,t,n,r){var o=w.useContext(mi),i=o.activeKey,a=o.onActive,c=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),l}function Xi(e){var t=w.useContext(mi),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function qi(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=w.createElement(n,Ie({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var Ki=["item"];function Ui(e){var t=e.item,n=A(e,Ki);return Object.defineProperty(n,"item",{get:function(){return nt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Yi=["title","attribute","elementRef"],Zi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Qi=["active"],Ji=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Wi(A(e,Yi),["eventKey","popupClassName","popupOffset","onTitleClick"]);return nt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),w.createElement(ui.Item,C({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(w.Component),ea=w.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,c=e.children,l=e.role,s=e.onMouseEnter,u=e.onMouseLeave,f=e.onClick,d=e.onKeyDown,p=e.onFocus,h=A(e,Zi),v=hi(o),m=w.useContext(mi),g=m.prefixCls,b=m.onItemClick,y=m.disabled,x=m.overflowDisabled,k=m.itemIcon,E=m.selectedKeys,S=m.onActive,$=w.useContext(Ei)._internalRenderMenuItem,O="".concat(g,"-item"),M=w.useRef(),j=w.useRef(),P=y||i,F=Gt(t,j),_=Ci(o),I=function(e){return{key:o,keyPath:_t(_).reverse(),item:M.current,domEvent:e}},T=a||k,L=Gi(o,P,s,u),z=L.active,H=A(L,Qi),B=E.includes(o),D=Xi(_.length),V={};"option"===e.role&&(V["aria-selected"]=B);var W=w.createElement(Ji,C({ref:M,elementRef:F,role:null===l?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&v?null:v},h,H,V,{component:"li","aria-disabled":i,style:Ie(Ie({},D),n),className:N()(O,R(R(R({},"".concat(O,"-active"),z),"".concat(O,"-selected"),B),"".concat(O,"-disabled"),P),r),onClick:function(e){if(!P){var t=I(e);null==f||f(Ui(t)),b(t)}},onKeyDown:function(e){if(null==d||d(e),e.which===_o.ENTER){var t=I(e);null==f||f(Ui(t)),b(t)}},onFocus:function(e){S(o),null==p||p(e)}}),c,w.createElement(qi,{props:Ie(Ie({},e),{},{isSelected:B}),icon:T}));return $&&(W=$(W,e,{selected:B})),W}));function ta(e,t){var n=e.eventKey,r=wi(),o=Ci(n);return w.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:w.createElement(ea,C({},e,{ref:t}))}const na=w.forwardRef(ta);var ra=["className","children"],oa=function(e,t){var n=e.className,r=e.children,o=A(e,ra),i=w.useContext(mi),a=i.prefixCls,c=i.mode,l=i.rtl;return w.createElement("ul",C({className:N()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},ia=w.forwardRef(oa);ia.displayName="SubMenuList";const aa=ia;function ca(e,t){return Tt(e).map((function(e,n){if(w.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(_t(t),[n]).join("-")));var c={key:a,eventKey:a};return w.cloneElement(e,c)}return e}))}var la={adjustX:1,adjustY:1},sa={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},leftTop:{points:["tr","tl"],overflow:la},leftBottom:{points:["br","bl"],overflow:la},rightTop:{points:["tl","tr"],overflow:la},rightBottom:{points:["bl","br"],overflow:la}},ua={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},rightTop:{points:["tr","tl"],overflow:la},rightBottom:{points:["br","bl"],overflow:la},leftTop:{points:["tl","tr"],overflow:la},leftBottom:{points:["bl","br"],overflow:la}};function fa(e,t,n){return t||(n?n[e]||n.other:void 0)}var da={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pa(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,c=e.popupOffset,l=e.disabled,s=e.mode,u=e.onVisibleChange,f=w.useContext(mi),d=f.getPopupContainer,p=f.rtl,h=f.subMenuOpenDelay,v=f.subMenuCloseDelay,m=f.builtinPlacements,g=f.triggerSubMenuAction,b=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,C=f.defaultMotions,k=M(w.useState(!1),2),E=k[0],S=k[1],$=Ie(Ie({},p?ua:sa),m),O=da[s],j=fa(s,x,C),P=w.useRef(j);"inline"!==s&&(P.current=j);var A=Ie(Ie({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=w.useRef();return w.useEffect((function(){return F.current=Hn((function(){S(n)})),function(){Hn.cancel(F.current)}}),[n]),w.createElement(Fo,{prefixCls:t,popupClassName:N()("".concat(t,"-popup"),R({},"".concat(t,"-rtl"),p),a,y),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:d,builtinPlacements:$,popupPlacement:O,popupVisible:E,popup:o,popupStyle:i,popupAlign:c&&{offset:c},action:l?[]:[g],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:b,popupMotion:A,fresh:!0},r)}function ha(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=w.useContext(mi),c=a.prefixCls,l=a.forceSubMenuRender,s=a.motion,u=a.defaultMotions,f=a.mode,d=w.useRef(!1);d.current=f===i;var p=M(w.useState(!d.current),2),h=p[0],v=p[1],m=!!d.current&&n;w.useEffect((function(){d.current&&v(!1)}),[f]);var g=Ie({},fa(i,s,u));r.length>1&&(g.motionAppear=!1);var b=g.onVisibleChanged;return g.onVisibleChanged=function(e){return d.current||e||v(!0),null==b?void 0:b(e)},h?null:w.createElement(gi,{mode:i,locked:!d.current},w.createElement(co,C({visible:m},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return w.createElement(aa,{id:t,className:n,style:r},o)})))}var va=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ma=["active"],ga=w.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),c=e.internalPopupClose,l=e.children,s=e.itemIcon,u=e.expandIcon,f=e.popupClassName,d=e.popupOffset,p=e.popupStyle,h=e.onClick,v=e.onMouseEnter,m=e.onMouseLeave,g=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,x=A(e,va),k=hi(i),E=w.useContext(mi),S=E.prefixCls,$=E.mode,O=E.openKeys,j=E.disabled,P=E.overflowDisabled,F=E.activeKey,_=E.selectedKeys,I=E.itemIcon,T=E.expandIcon,L=E.onItemClick,z=E.onOpenChange,H=E.onActive,B=w.useContext(Ei)._internalRenderSubMenuItem,D=w.useContext(ki).isSubPathKey,V=Ci(),W="".concat(S,"-submenu"),G=j||a,X=w.useRef(),q=w.useRef(),K=null!=s?s:I,U=null!=u?u:T,Y=O.includes(i),Z=!P&&Y,Q=D(_,i),J=Gi(i,G,b,y),ee=J.active,te=A(J,ma),ne=M(w.useState(!1),2),re=ne[0],oe=ne[1],ie=function(e){G||oe(e)},ae=w.useMemo((function(){return ee||"inline"!==$&&(re||D([F],i))}),[$,ee,F,re,i,D]),ce=Xi(V.length),le=Bi((function(e){null==h||h(Ui(e)),L(e)})),se=k&&"".concat(k,"-popup"),ue=w.createElement("div",C({role:"menuitem",style:ce,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:X,title:"string"==typeof o?o:null,"data-menu-id":P&&k?null:k,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":G,onClick:function(e){G||(null==g||g({key:i,domEvent:e}),"inline"===$&&z(i,!Y))},onFocus:function(){H(i)}},te),o,w.createElement(qi,{icon:"horizontal"!==$?U:void 0,props:Ie(Ie({},e),{},{isOpen:Z,isSubMenu:!0})},w.createElement("i",{className:"".concat(W,"-arrow")}))),fe=w.useRef($);if("inline"!==$&&V.length>1?fe.current="vertical":fe.current=$,!P){var de=fe.current;ue=w.createElement(pa,{mode:de,prefixCls:W,visible:!c&&Z&&"inline"!==$,popupClassName:f,popupOffset:d,popupStyle:p,popup:w.createElement(gi,{mode:"horizontal"===de?"vertical":de},w.createElement(aa,{id:se,ref:q},l)),disabled:G,onVisibleChange:function(e){"inline"!==$&&z(i,e)}},ue)}var pe=w.createElement(ui.Item,C({ref:t,role:"none"},x,{component:"li",style:n,className:N()(W,"".concat(W,"-").concat($),r,R(R(R(R({},"".concat(W,"-open"),Z),"".concat(W,"-active"),ae),"".concat(W,"-selected"),Q),"".concat(W,"-disabled"),G)),onMouseEnter:function(e){ie(!0),null==v||v({key:i,domEvent:e})},onMouseLeave:function(e){ie(!1),null==m||m({key:i,domEvent:e})}}),ue,!P&&w.createElement(ha,{id:se,open:Z,keyPath:V},l));return B&&(pe=B(pe,e,{selected:Q,active:ae,open:Z,disabled:G})),w.createElement(gi,{onItemClick:le,mode:"horizontal"===$?"vertical":$,itemIcon:K,expandIcon:U},pe)}));const ba=w.forwardRef((function(e,t){var n,r=e.eventKey,o=e.children,i=Ci(r),a=ca(o,i),c=wi();return w.useEffect((function(){if(c)return c.registerPath(r,i),function(){c.unregisterPath(r,i)}}),[i]),n=c?a:w.createElement(ga,C({ref:t},e),a),w.createElement(xi.Provider,{value:i},n)}));function ya(e){var t=e.className,n=e.style,r=w.useContext(mi).prefixCls;return wi()?null:w.createElement("li",{role:"separator",className:N()("".concat(r,"-item-divider"),t),style:n})}var wa=["className","title","eventKey","children"],xa=w.forwardRef((function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),i=A(e,wa),a=w.useContext(mi).prefixCls,c="".concat(a,"-item-group");return w.createElement("li",C({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:N()(c,n)}),w.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),w.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}));const Ca=w.forwardRef((function(e,t){var n=e.eventKey,r=ca(e.children,Ci(n));return wi()?r:w.createElement(xa,C({ref:t},Wi(e,["warnKey"])),r)}));var ka=["label","children","key","type","extra"];function Ea(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===j(e)){var l=e,s=l.label,u=l.children,f=l.key,d=l.type,p=l.extra,h=A(l,ka),v=null!=f?f:"tmp-".concat(c);return u||"group"===d?"group"===d?w.createElement(o,C({key:v},h,{title:s}),Ea(u,t,n)):w.createElement(i,C({key:v},h,{title:s}),Ea(u,t,n)):"divider"===d?w.createElement(a,C({key:v},h)):w.createElement(r,C({key:v},h),s,(!!p||0===p)&&w.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null})).filter((function(e){return e}))}function Sa(e,t,n,r,o){var i=e,a=Ie({divider:ya,item:na,group:Ca,submenu:ba},r);return t&&(i=Ea(t,a,o)),ca(i,n)}var $a=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Oa=[],Ma=w.forwardRef((function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,c=r.style,l=r.className,s=r.tabIndex,u=void 0===s?0:s,f=r.items,d=r.children,p=r.direction,h=r.id,v=r.mode,m=void 0===v?"vertical":v,g=r.inlineCollapsed,b=r.disabled,y=r.disabledOverflow,x=r.subMenuOpenDelay,k=void 0===x?.1:x,E=r.subMenuCloseDelay,S=void 0===E?.1:E,$=r.forceSubMenuRender,O=r.defaultOpenKeys,j=r.openKeys,P=r.activeKey,F=r.defaultActiveFirst,_=r.selectable,I=void 0===_||_,T=r.multiple,L=void 0!==T&&T,z=r.defaultSelectedKeys,H=r.selectedKeys,B=r.onSelect,D=r.onDeselect,V=r.inlineIndent,W=void 0===V?24:V,G=r.motion,X=r.defaultMotions,q=r.triggerSubMenuAction,K=void 0===q?"hover":q,U=r.builtinPlacements,Y=r.itemIcon,Z=r.expandIcon,Q=r.overflowedIndicator,J=void 0===Q?"...":Q,ee=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ne=r.onClick,re=r.onOpenChange,oe=r.onKeyDown,ie=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ae=r._internalRenderSubMenuItem,ce=r._internalComponents,le=A(r,$a),se=M(w.useMemo((function(){return[Sa(d,f,Oa,ce,i),Sa(d,f,Oa,{},i)]}),[d,f,ce]),2),ue=se[0],fe=se[1],de=M(w.useState(!1),2),pe=de[0],he=de[1],ve=w.useRef(),me=function(e){var t=M(Rt(e,{value:e}),2),n=t[0],r=t[1];return w.useEffect((function(){Vi+=1;var e="".concat(Di,"-").concat(Vi);r("rc-menu-uuid-".concat(e))}),[]),n}(h),ge="rtl"===p,be=Rt(O,{value:j,postState:function(e){return e||Oa}}),ye=M(be,2),we=ye[0],xe=ye[1],Ce=function(e){function t(){xe(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Lt.flushSync)(t):t()},ke=M(w.useState(we),2),Ee=ke[0],Se=ke[1],$e=w.useRef(!1),Oe=M(w.useMemo((function(){return"inline"!==m&&"vertical"!==m||!g?[m,!1]:["vertical",g]}),[m,g]),2),Me=Oe[0],je=Oe[1],Pe="inline"===Me,Re=M(w.useState(Me),2),Ae=Re[0],Fe=Re[1],Ne=M(w.useState(je),2),_e=Ne[0],Te=Ne[1];w.useEffect((function(){Fe(Me),Te(je),$e.current&&(Pe?xe(Ee):Ce(Oa))}),[Me,je]);var Le=M(w.useState(0),2),ze=Le[0],He=Le[1],Be=ze>=ue.length-1||"horizontal"!==Ae||y;w.useEffect((function(){Pe&&Se(we)}),[we]),w.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var De=function(){var e=M(w.useState({}),2)[1],t=(0,w.useRef)(new Map),n=(0,w.useRef)(new Map),r=M(w.useState([]),2),o=r[0],i=r[1],a=(0,w.useRef)(0),c=(0,w.useRef)(!1),l=(0,w.useCallback)((function(r,o){var i=zi(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var l,s=a.current;l=function(){s===a.current&&(c.current||e({}))},Promise.resolve().then(l)}),[]),s=(0,w.useCallback)((function(e,r){var o=zi(r);n.current.delete(o),t.current.delete(e)}),[]),u=(0,w.useCallback)((function(e){i(e)}),[]),f=(0,w.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(Li);return n&&o.includes(r[0])&&r.unshift(Hi),r}),[o]),d=(0,w.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),p=(0,w.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(Li),o=new Set;return _t(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return w.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:l,unregisterPath:s,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:f,getKeys:function(){var e=_t(t.current.keys());return o.length&&e.push(Hi),e},getSubPathKeys:p}}(),Ve=De.registerPath,We=De.unregisterPath,Ge=De.refreshOverflowKeys,Xe=De.isSubPathKey,qe=De.getKeyPath,Ke=De.getKeys,Ue=De.getSubPathKeys,Ye=w.useMemo((function(){return{registerPath:Ve,unregisterPath:We}}),[Ve,We]),Ze=w.useMemo((function(){return{isSubPathKey:Xe}}),[Xe]);w.useEffect((function(){Ge(Be?Oa:ue.slice(ze+1).map((function(e){return e.key})))}),[ze,Be]);var Qe=M(Rt(P||F&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:P}),2),Je=Qe[0],et=Qe[1],tt=Bi((function(e){et(e)})),nt=Bi((function(){et(void 0)}));(0,w.useImperativeHandle)(t,(function(){return{list:ve.current,focus:function(e){var t,n,r=Ke(),o=Ti(r,me),i=o.elements,a=o.key2element,c=o.element2key,l=_i(ve.current,i),s=null!=Je?Je:l[0]?c.get(l[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var rt=Rt(z||[],{value:H,postState:function(e){return Array.isArray(e)?e:null==e?Oa:[e]}}),ot=M(rt,2),it=ot[0],at=ot[1],ct=Bi((function(e){null==ne||ne(Ui(e)),function(e){if(I){var t,n=e.key,r=it.includes(n);t=L?r?it.filter((function(e){return e!==n})):[].concat(_t(it),[n]):[n],at(t);var o=Ie(Ie({},e),{},{selectedKeys:t});r?null==D||D(o):null==B||B(o)}!L&&we.length&&"inline"!==Ae&&Ce(Oa)}(e)})),lt=Bi((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ae){var r=Ue(e);n=n.filter((function(e){return!r.has(e)}))}fi(we,n,!0)||Ce(n,!0)})),st=function(e,t,n,r,o,i,a,c,l,s){var u=w.useRef(),f=w.useRef();f.current=t;var d=function(){Hn.cancel(u.current)};return w.useEffect((function(){return function(){d()}}),[]),function(p){var h=p.which;if([].concat(Ni,[Pi,Ri,Ai,Fi]).includes(h)){var v=i(),m=Ti(v,r),g=m,b=g.elements,y=g.key2element,w=g.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=w.get(x),k=function(e,t,n,r){var o,i="prev",a="next",c="children",l="parent";if("inline"===e&&r===Pi)return{inlineTrigger:!0};var s=R(R({},Mi,i),ji,a),u=R(R(R(R({},$i,n?a:i),Oi,n?i:a),ji,c),Pi,c),f=R(R(R(R(R(R({},Mi,i),ji,a),Pi,c),Ri,l),$i,n?c:l),Oi,n?l:c);switch(null===(o={inline:s,horizontal:u,vertical:f,inlineSub:s,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(e,1===a(C,!0).length,n,h);if(!k&&h!==Ai&&h!==Fi)return;(Ni.includes(h)||[Ai,Fi].includes(h))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),d(),u.current=Hn((function(){f.current===r&&t.focus()}))}};if([Ai,Fi].includes(h)||k.sibling||!x){var S,$,O=_i(S=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):o.current,b);$=h===Ai?O[0]:h===Fi?O[O.length-1]:Ii(S,b,x,k.offset),E($)}else if(k.inlineTrigger)l(C);else if(k.offset>0)l(C,!0),d(),u.current=Hn((function(){m=Ti(v,r);var e=x.getAttribute("aria-controls"),t=Ii(document.getElementById(e),m.elements);E(t)}),5);else if(k.offset<0){var M=a(C,!0),j=M[M.length-2],P=y.get(j);l(j,!1),E(P)}}null==s||s(p)}}(Ae,Je,ge,me,ve,Ke,qe,et,(function(e,t){var n=null!=t?t:!we.includes(e);lt(e,n)}),oe);w.useEffect((function(){he(!0)}),[]);var ut=w.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),ft="horizontal"!==Ae||y?ue:ue.map((function(e,t){return w.createElement(gi,{key:e.key,overflowDisabled:t>ze},e)})),dt=w.createElement(ui,C({id:h,ref:ve,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:na,className:N()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ae),l,R(R({},"".concat(i,"-inline-collapsed"),_e),"".concat(i,"-rtl"),ge),a),dir:p,style:c,role:"menu",tabIndex:u,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return w.createElement(ba,{eventKey:Hi,title:J,disabled:Be,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Ae||y?ui.INVALIDATE:ui.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){He(e)},onKeyDown:st},le));return w.createElement(Ei.Provider,{value:ut},w.createElement(di.Provider,{value:me},w.createElement(gi,{prefixCls:i,rootClassName:a,mode:Ae,openKeys:we,rtl:ge,disabled:b,motion:pe?G:null,defaultMotions:pe?X:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:S,forceSubMenuRender:$,builtinPlacements:U,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:Y,expandIcon:Z,onItemClick:ct,onOpenChange:lt},w.createElement(ki.Provider,{value:Ze},dt),w.createElement("div",{style:{display:"none"},"aria-hidden":!0},w.createElement(yi.Provider,{value:Ye},fe)))))})),ja=Ma;ja.Item=na,ja.SubMenu=ba,ja.ItemGroup=Ca,ja.Divider=ya;const Pa=ja;var Ra=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,c=e.more,l=void 0===c?{}:c,s=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,v=e.onTabClick,m=e.getPopupContainer,g=e.popupClassName,b=M((0,w.useState)(!1),2),y=b[0],x=b[1],k=M((0,w.useState)(null),2),E=k[0],S=k[1],$=l.icon,O=void 0===$?"More":$,j="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),A=null!==E?"".concat(j,"-").concat(E):null,F=null==i?void 0:i.dropdownAriaLabel,_=w.createElement(Pa,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),x(!1)},prefixCls:"".concat(P,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[E],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,c=Kn(t,o,f,n);return w.createElement(na,{key:i,id:"".concat(j,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},w.createElement("span",null,a),c&&w.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function I(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void S(a.key)}}(0,w.useEffect)((function(){var e=document.getElementById(A);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,w.useEffect)((function(){y||S(null)}),[y]);var T=R({},p?"marginRight":"marginLeft",d);o.length||(T.visibility="hidden",T.order=1);var L=N()(R({},"".concat(P,"-rtl"),p)),z=a?null:w.createElement(Wo,C({prefixCls:P,overlay:_,visible:!!o.length&&y,onVisibleChange:x,overlayClassName:N()(L,g),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},l),w.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:T,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(r,"-more"),"aria-expanded":y,onKeyDown:function(e){var t=e.which;if(y)switch(t){case _o.UP:I(-1),e.preventDefault();break;case _o.DOWN:I(1),e.preventDefault();break;case _o.ESC:x(!1);break;case _o.SPACE:case _o.ENTER:null!==E&&v(E,e)}else[_o.DOWN,_o.SPACE,_o.ENTER].includes(t)&&(x(!0),e.preventDefault())}},O));return w.createElement("div",{className:N()("".concat(n,"-nav-operations"),u),style:s,ref:t},z,w.createElement(Yn,{prefixCls:n,locale:i,editable:f}))}));const Aa=w.memo(Ra,(function(e,t){return t.tabMoving})),Fa=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.tab,i=o.key,a=o.label,c=o.disabled,l=o.closeIcon,s=o.icon,u=e.closable,f=e.renderWrapper,d=e.removeAriaLabel,p=e.editable,h=e.onClick,v=e.onFocus,m=e.style,g="".concat(t,"-tab"),b=Kn(u,l,p,c);function y(e){c||h(e)}var x=w.useMemo((function(){return s&&"string"==typeof a?w.createElement("span",null,a):a}),[a,s]),C=w.createElement("div",{key:i,"data-node-key":qn(i),className:N()(g,R(R(R({},"".concat(g,"-with-remove"),b),"".concat(g,"-active"),r),"".concat(g,"-disabled"),c)),style:m,onClick:y},w.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(g,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[_o.SPACE,_o.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:v},s&&w.createElement("span",{className:"".concat(g,"-icon")},s),a&&x),b&&w.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:0,className:"".concat(g,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:i,event:t})}},l||p.removeIcon||"×"));return f?f(C):C};var Na=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),c=a.width,l=a.height;if(Math.abs(c-r)<1)return[c,l]}return[r,i]},_a=function(e,t){return e[t?0:1]},Ia=w.forwardRef((function(e,t){var n,r,o,i,a,c=e.className,l=e.style,s=e.id,u=e.animated,f=e.activeKey,d=e.rtl,p=e.extra,h=e.editable,v=e.locale,m=e.tabPosition,g=e.tabBarGutter,b=e.children,y=e.onTabClick,k=e.onTabScroll,E=e.indicator,S=w.useContext(Ft),$=S.prefixCls,O=S.tabs,j=(0,w.useRef)(null),P=(0,w.useRef)(null),A=(0,w.useRef)(null),F=(0,w.useRef)(null),_=(0,w.useRef)(null),I=(0,w.useRef)(null),T=(0,w.useRef)(null),L="top"===m||"bottom"===m,z=Dn(0,(function(e,t){L&&k&&k({direction:e>t?"left":"right"})})),H=M(z,2),B=H[0],D=H[1],V=Dn(0,(function(e,t){!L&&k&&k({direction:e>t?"top":"bottom"})})),W=M(V,2),G=W[0],X=W[1],q=M((0,w.useState)([0,0]),2),K=q[0],U=q[1],Y=M((0,w.useState)([0,0]),2),Z=Y[0],Q=Y[1],J=M((0,w.useState)([0,0]),2),ee=J[0],te=J[1],ne=M((0,w.useState)([0,0]),2),re=ne[0],oe=ne[1],ie=(n=new Map,r=(0,w.useRef)([]),o=M((0,w.useState)({}),2)[1],i=(0,w.useRef)("function"==typeof n?n():n),a=Wn((function(){var e=i.current;r.current.forEach((function(t){e=t(e)})),r.current=[],i.current=e,o({})})),[i.current,function(e){r.current.push(e),a()}]),ae=M(ie,2),ce=ae[0],le=ae[1],se=function(e,t,n){return(0,w.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Bn,i=o.left+o.width,a=0;a<e.length;a+=1){var c,l=e[a].key,s=t.get(l);s||(s=t.get(null===(c=e[a-1])||void 0===c?void 0:c.key)||Bn);var u=r.get(l)||Ie({},s);u.right=i-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(O,ce,Z[0]),ue=_a(K,L),fe=_a(Z,L),de=_a(ee,L),pe=_a(re,L),he=Math.floor(ue)<Math.floor(fe+de),ve=he?ue-pe:ue-de,me="".concat($,"-nav-operations-hidden"),ge=0,be=0;function ye(e){return e<ge?ge:e>be?be:e}L&&d?(ge=0,be=Math.max(0,fe-ve)):(ge=Math.min(0,ve-fe),be=0);var we=(0,w.useRef)(null),xe=M((0,w.useState)(),2),Ce=xe[0],ke=xe[1];function Ee(){ke(Date.now())}function Se(){we.current&&clearTimeout(we.current)}!function(e,t){var n=M((0,w.useState)(),2),r=n[0],o=n[1],i=M((0,w.useState)(0),2),a=i[0],c=i[1],l=M((0,w.useState)(0),2),s=l[0],u=l[1],f=M((0,w.useState)(),2),d=f[0],p=f[1],h=(0,w.useRef)(),v=(0,w.useRef)(),m=(0,w.useRef)(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){var n=e.touches[0],i=n.screenX,l=n.screenY;o({x:i,y:l});var s=i-r.x,f=l-r.y;t(s,f);var d=Date.now();c(d),u(d-a),p({x:s,y:f})}},onTouchEnd:function(){if(r&&(o(null),p(null),d)){var e=d.x/s,n=d.y/s,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var c=e,l=n;h.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(h.current):t(20*(c*=Vn),20*(l*=Vn))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===v.current?n:r:i>a?(o=n,v.current="x"):(o=r,v.current="y"),t(-o,-o)&&e.preventDefault()}},w.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(F,(function(e,t){function n(e,t){e((function(e){return ye(e+t)}))}return!!he&&(L?n(D,e):n(X,t),Se(),Ee(),!0)})),(0,w.useEffect)((function(){return Se(),Ce&&(we.current=setTimeout((function(){ke(0)}),100)),Se}),[Ce]);var $e=function(e,t,n,r,o,i,a){var c,l,s,u=a.tabs,f=a.tabPosition,d=a.rtl;return["top","bottom"].includes(f)?(c="width",l=d?"right":"left",s=Math.abs(n)):(c="height",l="top",s=-n),(0,w.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||Gn;if(Math.floor(i[l]+i[c])>Math.floor(s+t)){r=o-1;break}}for(var a=0,f=n-1;f>=0;f-=1)if((e.get(u[f].key)||Gn)[l]<s){a=f+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,f,u.map((function(e){return e.key})).join("_"),d])}(se,ve,L?B:G,fe,de,pe,Ie(Ie({},e),{},{tabs:O})),Oe=M($e,2),Me=Oe[0],je=Oe[1],Pe=Et((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=se.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=B;d?t.right<B?n=t.right:t.right+t.width>B+ve&&(n=t.right+t.width-ve):t.left<-B?n=-t.left:t.left+t.width>-B+ve&&(n=-(t.left+t.width-ve)),X(0),D(ye(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+ve&&(r=-(t.top+t.height-ve)),D(0),X(ye(r))}})),Re={};"top"===m||"bottom"===m?Re[d?"marginRight":"marginLeft"]=g:Re.marginTop=g;var Ae=O.map((function(e,t){var n=e.key;return w.createElement(Fa,{id:s,prefixCls:$,key:n,tab:e,style:0===t?void 0:Re,closable:e.closable,editable:h,active:n===f,renderWrapper:b,removeAriaLabel:null==v?void 0:v.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){Pe(n),Ee(),F.current&&(d||(F.current.scrollLeft=0),F.current.scrollTop=0)}})})),Fe=function(){return le((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return O.forEach((function(e){var r,o=e.key,i=null===(r=_.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(qn(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),c=a.width,l=a.height,s=a.left,u=a.top;return Math.abs(c-n)<1?[c,l,s-t.left,u-t.top]:[n,r,i,o]}(i,n),c=M(a,4),l=c[0],s=c[1],u=c[2],f=c[3];t.set(o,{width:l,height:s,left:u,top:f})}})),t}))};(0,w.useEffect)((function(){Fe()}),[O.map((function(e){return e.key})).join("_")]);var Ne=Wn((function(){var e=Na(j),t=Na(P),n=Na(A);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Na(T);te(r);var o=Na(I);oe(o);var i=Na(_);Q([i[0]-r[0],i[1]-r[1]]),Fe()})),_e=O.slice(0,Me),Te=O.slice(je+1),Le=[].concat(_t(_e),_t(Te)),ze=se.get(f),He=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,c=i.align,l=void 0===c?"center":c,s=M((0,w.useState)(),2),u=s[0],f=s[1],d=(0,w.useRef)(),p=x().useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function h(){Hn.cancel(d.current)}return(0,w.useEffect)((function(){var e={};if(t)if(n){e.width=p(t.width);var o=r?"right":"left";"start"===l&&(e[o]=t[o]),"center"===l&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),d.current=Hn((function(){f(e)})),h}),[t,n,r,l,p]),{style:u}}({activeTabOffset:ze,horizontal:L,indicator:E,rtl:d}).style;(0,w.useEffect)((function(){Pe()}),[f,ge,be,Xn(ze),Xn(se),L]),(0,w.useEffect)((function(){Ne()}),[d]);var Be,De,Ve,We,Ge=!!Le.length,Xe="".concat($,"-nav-wrap");return L?d?(De=B>0,Be=B!==be):(Be=B<0,De=B!==ge):(Ve=G<0,We=G!==ge),w.createElement(An,{onResize:Ne},w.createElement("div",{ref:Gt(t,j),role:"tablist",className:N()("".concat($,"-nav"),c),style:l,onKeyDown:function(){Ee()}},w.createElement(Qn,{ref:P,position:"left",extra:p,prefixCls:$}),w.createElement(An,{onResize:Ne},w.createElement("div",{className:N()(Xe,R(R(R(R({},"".concat(Xe,"-ping-left"),Be),"".concat(Xe,"-ping-right"),De),"".concat(Xe,"-ping-top"),Ve),"".concat(Xe,"-ping-bottom"),We)),ref:F},w.createElement(An,{onResize:Ne},w.createElement("div",{ref:_,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(G,"px)"),transition:Ce?"none":void 0}},Ae,w.createElement(Yn,{ref:T,prefixCls:$,locale:v,editable:h,style:Ie(Ie({},0===Ae.length?void 0:Re),{},{visibility:Ge?"hidden":null})}),w.createElement("div",{className:N()("".concat($,"-ink-bar"),R({},"".concat($,"-ink-bar-animated"),u.inkBar)),style:He}))))),w.createElement(Aa,C({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:I,prefixCls:$,tabs:Le,className:!Ge&&me,tabMoving:!!Ce})),w.createElement(Qn,{ref:A,position:"right",extra:p,prefixCls:$})))}));const Ta=Ia;var La=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,c=e.tabKey,l=e.children;return w.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:o,className:N()(n,a&&"".concat(n,"-active"),r),ref:t},l)}));const za=La;var Ha=["renderTabBar"],Ba=["label","key"];const Da=function(e){var t=e.renderTabBar,n=A(e,Ha),r=w.useContext(Ft).tabs;return t?t(Ie(Ie({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=A(e,Ba);return w.createElement(za,C({tab:t,key:n,tabKey:n},r))}))}),Ta):w.createElement(Ta,n)};var Va=["key","forceRender","style","className","destroyInactiveTabPane"];const Wa=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=w.useContext(Ft),c=a.prefixCls,l=a.tabs,s=r.tabPane,u="".concat(c,"-tabpane");return w.createElement("div",{className:N()("".concat(c,"-content-holder"))},w.createElement("div",{className:N()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),R({},"".concat(c,"-content-animated"),s))},l.map((function(e){var o=e.key,a=e.forceRender,c=e.style,l=e.className,f=e.destroyInactiveTabPane,d=A(e,Va),p=o===n;return w.createElement(co,C({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!f),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return w.createElement(za,C({},d,{prefixCls:u,id:t,tabKey:o,animated:s,active:p,style:Ie(Ie({},c),r),className:N()(l,i),ref:n}))}))}))))};var Ga=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xa=0;const qa=w.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,c=e.direction,l=e.activeKey,s=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,p=void 0===d?"top":d,h=e.tabBarGutter,v=e.tabBarStyle,m=e.tabBarExtraContent,g=e.locale,b=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,k=e.onChange,E=e.onTabClick,S=e.onTabScroll,$=e.getPopupContainer,O=e.popupClassName,P=e.indicator,F=A(e,Ga),_=w.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===j(e)&&"key"in e}))}),[a]),I="rtl"===c,T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Ie({inkBar:!0},"object"===j(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),L=M((0,w.useState)(!1),2),z=L[0],H=L[1];(0,w.useEffect)((function(){H(At())}),[]);var B=M(Rt((function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:s}),2),D=B[0],V=B[1],W=M((0,w.useState)((function(){return _.findIndex((function(e){return e.key===D}))})),2),G=W[0],X=W[1];(0,w.useEffect)((function(){var e,t=_.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(G,_.length-1)),V(null===(e=_[t])||void 0===e?void 0:e.key)),X(t)}),[_.map((function(e){return e.key})).join("_"),D,G]);var q=M(Rt(null,{value:n}),2),K=q[0],U=q[1];(0,w.useEffect)((function(){n||(U("rc-tabs-".concat(Xa)),Xa+=1)}),[]);var Y={id:K,activeKey:D,animated:T,tabPosition:p,rtl:I,mobile:z},Z=Ie(Ie({},Y),{},{editable:u,locale:g,more:b,tabBarGutter:h,onTabClick:function(e,t){null==E||E(e,t);var n=e!==D;V(e),n&&(null==k||k(e))},onTabScroll:S,extra:m,style:v,panes:null,getPopupContainer:$,popupClassName:O,indicator:P});return w.createElement(Ft.Provider,{value:{tabs:_,prefixCls:o}},w.createElement("div",C({ref:t,id:n,className:N()(o,"".concat(o,"-").concat(p),R(R(R({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),I),i)},F),w.createElement(Da,C({},Z,{renderTabBar:x})),w.createElement(Wa,C({destroyInactiveTabPane:y},Y,{animated:T}))))})),Ka=w.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:Ua}=Ka,Ya=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Za(e){return e.join("%")}var Qa=function(){function e(t){bn(this,e),R(this,"instanceId",void 0),R(this,"cache",new Map),this.instanceId=t}return wn(e,[{key:"get",value:function(e){return this.opGet(Za(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Za(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const Ja=Qa;var ec="data-token-hash",tc="data-css-hash",nc="__cssinjs_instance__";var rc=w.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(tc,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[nc]=t[nc]||e,t[nc]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(tc,"]"))).forEach((function(t){var n,o=t.getAttribute(tc);r[o]?t[nc]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Ja(e)}(),defaultCache:!0});const oc=rc;new RegExp("CALC_UNIT","g");var ic=function(){function e(){bn(this,e),R(this,"cache",void 0),R(this,"keys",void 0),R(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=M(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=M(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();R(ic,"MAX_CACHE_SIZE",20),R(ic,"MAX_CACHE_OFFSET",5);var ac=0,cc=function(){function e(t){bn(this,e),R(this,"derivatives",void 0),R(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ac,0===t.length&&t.length,ac+=1}return wn(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),lc=new ic,sc=new WeakMap,uc={},fc=new WeakMap;function dc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fc.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof cc?n+=o.id:o&&"object"===j(o)?n+=dc(o,t):n+=o})),t&&(n=Ya(n)),fc.set(e,n)),n}function pc(e,t){return Ya("".concat(t,"_").concat(dc(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var hc=Te();function vc(e){return"number"==typeof e?"".concat(e,"px"):e}function mc(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Ie(Ie({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},R(R({},ec,t),tc,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bc=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=M(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},yc=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=M(e,2),c=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var s,u=gc(c,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(u,")")}})),[o,bc(r,t,{scope:null==n?void 0:n.scope})]},wc=Ie({},w).useInsertionEffect;const xc=wc?function(e,t,n){return wc((function(){return e(),t()}),n)}:function(e,t,n){w.useMemo(e,n),Mt((function(){return t(!0)}),n)},Cc=void 0!==Ie({},w).useInsertionEffect?function(e){var t=[],n=!1;return w.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function kc(e,t,n,r,o){var i=w.useContext(oc).cache,a=Za([e].concat(_t(t))),c=Cc([a]),l=function(e){i.opUpdate(a,(function(t){var r=M(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};w.useMemo((function(){l()}),[a]);var s=i.opGet(a)[1];return xc((function(){null==o||o(s)}),(function(e){return l((function(t){var n=M(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(s)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=M(t||[],2),o=n[0],l=void 0===o?0:o,s=n[1];return 0==l-1?(c((function(){!e&&i.opGet(a)||null==r||r(s,!1)})),null):[l-1,s]}))}}),[a]),s}var Ec={},Sc=new Map;var $c="token";function Oc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,w.useContext)(oc),o=r.cache.instanceId,i=r.container,a=n.salt,c=void 0===a?"":a,l=n.override,s=void 0===l?Ec:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,p=function(e,n){for(var r=sc,o=0;o<n.length;o+=1){var i=n[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(uc)||r.set(uc,Object.assign.apply(Object,[{}].concat(_t(t)))),r.get(uc)}(0,t),h=dc(p),v=dc(s),m=d?dc(d):"",g=kc($c,[c,e.id,h,v,m],(function(){var t,n=f?f(p,s,e):function(e,t,n,r){var o=Ie(Ie({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(p,s,e,u),r=Ie({},n),o="";if(d){var i=M(yc(n,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),2);n=i[0],o=i[1]}var a=pc(n,c);n._tokenKey=a,r._tokenKey=pc(r,c);var l=null!==(t=null==d?void 0:d.key)&&void 0!==t?t:a;n._themeKey=l,function(e){Sc.set(e,(Sc.get(e)||0)+1)}(l);var h="".concat("css","-").concat(Ya(a));return n._hashId=h,[n,h,r,o,(null==d?void 0:d.key)||""]}),(function(e){!function(e,t){Sc.set(e,(Sc.get(e)||0)-1);var n=Array.from(Sc.keys()),r=n.filter((function(e){return(Sc.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(ec,'="').concat(e,'"]')).forEach((function(e){var n;e[nc]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Sc.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=M(e,4),n=t[0],r=t[3];if(d&&r){var a=qe(r,Ya("css-variables-".concat(n._themeKey)),{mark:tc,prepend:"queue",attachTo:i,priority:-999});a[nc]=o,a.setAttribute(ec,n._themeKey)}}));return g}const Mc={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};var jc="comm",Pc="rule",Rc="decl",Ac=Math.abs,Fc=String.fromCharCode;function Nc(e){return e.trim()}function _c(e,t,n){return e.replace(t,n)}function Ic(e,t,n){return e.indexOf(t,n)}function Tc(e,t){return 0|e.charCodeAt(t)}function Lc(e,t,n){return e.slice(t,n)}function zc(e){return e.length}function Hc(e,t){return t.push(e),e}function Bc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Dc(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Rc:return e.return=e.return||e.value;case jc:return"";case"@keyframes":return e.return=e.value+"{"+Bc(e.children,r)+"}";case Pc:if(!zc(e.value=e.props.join(",")))return""}return zc(n=Bc(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var Vc=1,Wc=1,Gc=0,Xc=0,qc=0,Kc="";function Uc(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Vc,column:Wc,length:a,return:"",siblings:c}}function Yc(){return qc=Xc>0?Tc(Kc,--Xc):0,Wc--,10===qc&&(Wc=1,Vc--),qc}function Zc(){return qc=Xc<Gc?Tc(Kc,Xc++):0,Wc++,10===qc&&(Wc=1,Vc++),qc}function Qc(){return Tc(Kc,Xc)}function Jc(){return Xc}function el(e,t){return Lc(Kc,e,t)}function tl(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 nl(e){return Nc(el(Xc-1,il(91===e?e+2:40===e?e+1:e)))}function rl(e){for(;(qc=Qc())&&qc<33;)Zc();return tl(e)>2||tl(qc)>3?"":" "}function ol(e,t){for(;--t&&Zc()&&!(qc<48||qc>102||qc>57&&qc<65||qc>70&&qc<97););return el(e,Jc()+(t<6&&32==Qc()&&32==Zc()))}function il(e){for(;Zc();)switch(qc){case e:return Xc;case 34:case 39:34!==e&&39!==e&&il(qc);break;case 40:41===e&&il(e);break;case 92:Zc()}return Xc}function al(e,t){for(;Zc()&&e+qc!==57&&(e+qc!==84||47!==Qc()););return"/*"+el(t,Xc-1)+"*"+Fc(47===e?e:Zc())}function cl(e){for(;!tl(Qc());)Zc();return el(e,Xc)}function ll(e){return function(e){return Kc="",e}(sl("",null,null,null,[""],e=function(e){return Vc=Wc=1,Gc=zc(Kc=e),Xc=0,[]}(e),0,[0],e))}function sl(e,t,n,r,o,i,a,c,l){for(var s=0,u=0,f=a,d=0,p=0,h=0,v=1,m=1,g=1,b=0,y="",w=o,x=i,C=r,k=y;m;)switch(h=b,b=Zc()){case 40:if(108!=h&&58==Tc(k,f-1)){-1!=Ic(k+=_c(nl(b),"&","&\f"),"&\f",Ac(s?c[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:k+=nl(b);break;case 9:case 10:case 13:case 32:k+=rl(h);break;case 92:k+=ol(Jc()-1,7);continue;case 47:switch(Qc()){case 42:case 47:Hc(fl(al(Zc(),Jc()),t,n,l),l),5!=tl(h||1)&&5!=tl(Qc()||1)||!zc(k)||" "===Lc(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*v:c[s++]=zc(k)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==g&&(k=_c(k,/\f/g,"")),p>0&&(zc(k)-f||0===v&&47===h)&&Hc(p>32?dl(k+";",r,n,f-1,l):dl(_c(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(Hc(C=ul(k,t,n,s,u,o,c,y,w=[],x=[],f,i),i),123===b)if(0===u)sl(k,t,C,C,w,i,f,c,x);else switch(99===d&&110===Tc(k,3)?100:d){case 100:case 108:case 109:case 115:sl(e,C,C,r&&Hc(ul(e,C,C,0,0,o,c,y,o,w=[],f,x),x),o,x,f,c,r?w:x);break;default:sl(k,C,C,C,[""],x,0,c,x)}}s=u=p=0,v=g=1,y=k="",f=a;break;case 58:f=1+zc(k),p=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==Yc())continue;switch(k+=Fc(b),b*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:c[s++]=(zc(k)-1)*g,g=1;break;case 64:45===Qc()&&(k+=nl(Zc())),d=Qc(),u=f=zc(y=k+=cl(Jc())),b++;break;case 45:45===h&&2==zc(k)&&(v=0)}}return i}function ul(e,t,n,r,o,i,a,c,l,s,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,m=0,g=0;v<r;++v)for(var b=0,y=Lc(e,d+1,d=Ac(m=a[v])),w=e;b<h;++b)(w=Nc(m>0?p[b]+" "+y:_c(y,/&\f/g,p[b])))&&(l[g++]=w);return Uc(e,t,n,0===o?Pc:c,l,s,u,f)}function fl(e,t,n,r){return Uc(e,t,n,jc,Fc(qc),Lc(e,2,-2),0,r)}function dl(e,t,n,r,o){return Uc(e,t,n,Rc,Lc(e,0,r),Lc(e,r+1,-1),r,o)}var pl,hl="data-ant-cssinjs-cache-path",vl="_FILE_STYLE__",ml=!0;var gl="_multi_value_";function bl(e){return Bc(ll(e),Dc).replace(/\{%%%\:[^;];}/g,";")}var yl=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,c=n.hashId,l=n.layer,s=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,d=(n.linters,""),p={};function h(t){var r=t.getName(c);if(!p[r]){var o=M(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(c)).concat(o)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)d+="".concat(r,"\n");else if(r._keyframe)h(r);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==j(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===j(e)&&e&&("_skip_check_"in e||gl in e)}(r)){var u;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Mc[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(c)),d+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===j(r)&&null!=r&&r[gl]&&Array.isArray(f)?f.forEach((function(e){x(t,e)})):x(t,f)}else{var v=!1,m=t.trim(),g=!1;(o||i)&&c?m.startsWith("@")?v=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(_t(n.slice(1))).join(" ")})).join(",")}("&"===m?"":t,c,s):!o||c||"&"!==m&&""!==m||(m="",g=!0);var b=M(e(r,n,{root:g,injectHash:v,parentSelectors:[].concat(_t(a),[m])}),2),y=b[0],w=b[1];p=Ie(Ie({},p),w),d+="".concat(m).concat(y)}}))}})),o?l&&(d="@layer ".concat(l.name," {").concat(d,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):d="{".concat(d,"}"),[d,p]};function wl(e,t){return Ya("".concat(e.join("%")).concat(t))}function xl(){return null}var Cl="style";function kl(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,l=e.order,s=void 0===l?0:l,u=w.useContext(oc),f=u.autoClear,d=(u.mock,u.defaultCache),p=u.hashPriority,h=u.container,v=u.ssrInline,m=u.transformers,g=u.linters,b=u.cache,y=u.layer,x=n._tokenKey,k=[x];y&&k.push("layer"),k.push.apply(k,_t(r));var E=hc,S=kc(Cl,k,(function(){var e=k.join("|");if(function(e){return function(){if(!pl&&(pl={},Te())){var e=document.createElement("div");e.className=hl,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(/"$/,"")).split(";").forEach((function(e){var t=M(e.split(":"),2),n=t[0],r=t[1];pl[n]=r}));var n,r=document.querySelector("style[".concat(hl,"]"));r&&(ml=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!pl[e]}(e)){var n=function(e){var t=pl[e],n=null;if(t&&Te())if(ml)n=vl;else{var r=document.querySelector("style[".concat(tc,'="').concat(pl[e],'"]'));r?n=r.innerHTML:delete pl[e]}return[n,t]}(e),a=M(n,2),l=a[0],u=a[1];if(l)return[l,x,u,{},c,s]}var f=t(),d=M(yl(f,{hashId:o,hashPriority:p,layer:y?i:void 0,path:r.join("-"),transformers:m,linters:g}),2),h=d[0],v=d[1],b=bl(h),w=wl(k,b);return[b,x,w,v,c,s]}),(function(e,t){var n=M(e,3)[2];(t||f)&&hc&&Xe(n,{mark:tc})}),(function(e){var t=M(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==vl){var i={mark:tc,prepend:!y&&"queue",attachTo:h,priority:s},c="function"==typeof a?a():a;c&&(i.csp={nonce:c});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){qe(bl(o[e]),"_layer-".concat(e),Ie(Ie({},i),{},{prepend:!0}))}));var f=qe(n,r,i);f[nc]=b.instanceId,f.setAttribute(ec,x),u.forEach((function(e){qe(bl(o[e]),"_effect-".concat(e),i)}))}})),$=M(S,3),O=$[0],j=$[1],P=$[2];return function(e){var t;return t=v&&!E&&d?w.createElement("style",C({},R(R({},ec,j),tc,P),{dangerouslySetInnerHTML:{__html:O}})):w.createElement(xl,null),w.createElement(w.Fragment,null,t,e)}}var El="cssVar";R(R(R({},Cl,(function(e,t,n){var r=M(e,6),o=r[0],i=r[1],a=r[2],c=r[3],l=r[4],s=r[5],u=(n||{}).plain;if(l)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return f=mc(o,i,a,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=mc(bl(c[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[s,a,f]})),$c,(function(e,t,n){var r=M(e,5),o=r[2],i=r[3],a=r[4],c=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,mc(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),El,(function(e,t,n){var r=M(e,4),o=r[1],i=r[2],a=r[3],c=(n||{}).plain;return o?[-999,i,mc(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]:null}));var Sl=function(){function e(t,n){bn(this,e),R(this,"name",void 0),R(this,"style",void 0),R(this,"_keyframe",!0),this.name=t,this.style=n}return wn(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const $l=Sl;function Ol(e){return e.notSplit=!0,e}Ol(["borderTop","borderBottom"]),Ol(["borderTop"]),Ol(["borderBottom"]),Ol(["borderLeft","borderRight"]),Ol(["borderLeft"]),Ol(["borderRight"]);const Ml={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"},jl=Object.assign(Object.assign({},Ml),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});var Pl=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=q(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=null!==(r=n.format)&&void 0!==r?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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=T(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=D(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=D(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=H(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=H(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),V(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[z(Math.round(e).toString(16)),z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z((i=r,Math.round(255*parseFloat(i)).toString(16)))];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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*_(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+V(this.r,this.g,this.b,!1),t=0,n=Object.entries(X);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=I(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=I(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=I(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=I(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){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},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],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const Rl=(e,t)=>new Pl(e).setAlpha(t).toRgbString(),Al=(e,t)=>new Pl(e).darken(t).toHexString(),Fl=e=>{const t=ie(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]}},Nl=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Rl(r,.88),colorTextSecondary:Rl(r,.65),colorTextTertiary:Rl(r,.45),colorTextQuaternary:Rl(r,.25),colorFill:Rl(r,.15),colorFillSecondary:Rl(r,.06),colorFillTertiary:Rl(r,.04),colorFillQuaternary:Rl(r,.02),colorBgSolid:Rl(r,1),colorBgSolidHover:Rl(r,.75),colorBgSolidActive:Rl(r,.95),colorBgLayout:Al(n,4),colorBgContainer:Al(n,0),colorBgElevated:Al(n,0),colorBgSpotlight:Rl(r,.85),colorBgBlur:"transparent",colorBorder:Al(n,15),colorBorderSecondary:Al(n,6)}},_l=(Il=function(e){ae.pink=ae.magenta,we.pink=we.magenta;const t=Object.keys(Ml).map((t=>{const n=e[t]===ae[t]?we[t]:ie(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:c,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,f=n(l),d=n(o),p=n(i),h=n(a),v=n(c),m=r(s,u),g=n(e.colorLink||e.colorInfo),b=new Pl(h[1]).mix(new Pl(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Pl("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Fl,generateNeutralColorPalettes:Nl})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],c=r[1],l=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:s,lineHeightSM:l,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(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}})(r))}(e))},Tl=Array.isArray(Il)?Il:[Il],lc.has(Tl)||lc.set(Tl,new cc(Tl)),lc.get(Tl));var Il,Tl;const Ll={token:jl,override:{override:jl},hashed:!0},zl=x().createContext(Ll);function Hl(e){return e>=0&&e<=255}const Bl=function(e,t){const{r:n,g:r,b:o,a:i}=new Pl(e).toRgb();if(i<1)return e;const{r:a,g:c,b:l}=new Pl(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-c*(1-e))/e),s=Math.round((o-l*(1-e))/e);if(Hl(t)&&Hl(i)&&Hl(s))return new Pl({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Pl({r:n,g:r,b:o,a:1}).toRgbString()};function Dl(e){const{override:t}=e,n=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["override"]),r=Object.assign({},t);Object.keys(jl).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Bl(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:Bl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Bl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Bl(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:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Pl("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Pl("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Pl("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",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 Vl=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Wl={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Gl={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Xl={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ql=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Vl(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Dl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Vl(n,["theme"]);let i=o;r&&(i=ql(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Kl(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=x().useContext(zl),i=`5.21.3-${t||""}`,a=n||_l,[c,l,s]=Oc(a,[jl,e],{salt:i,override:r,getComputedToken:ql,formatToken:Dl,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Wl,ignore:Gl,preserve:Xl}});return[a,s,t?l:"",c,o]}const Ul=w.createContext(void 0),Yl=e=>{const t=x().useContext(Ul);return x().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Zl=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Ql={motionAppear:!1,motionEnter:!0,motionLeave:!0};const Jl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},es=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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}},ts=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ns=e=>({outline:`${vc(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),rs=e=>({"&:focus-visible":Object.assign({},ns(e))}),os=wn((function e(){bn(this,e)}));var is="CALC_UNIT",as=new RegExp(is,"g");function cs(e){return"number"==typeof e?"".concat(e).concat(is):e}var ls=function(e){Cn(n,e);var t=$n(n);function n(e,r){var o;bn(this,n),R(Sn(o=t.call(this)),"result",""),R(Sn(o),"unitlessCssVar",void 0),R(Sn(o),"lowPriority",void 0);var i=j(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=cs(e):"string"===i&&(o.result=e),o}return wn(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(cs(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(cs(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(as,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(os);const ss=function(e){Cn(n,e);var t=$n(n);function n(e){var r;return bn(this,n),R(Sn(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return wn(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(os),us=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},fs=function(e,t,n,r){var o=Ie({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=M(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=Ie(Ie({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var ds="undefined"!=typeof CSSINJS_STATISTIC,ps=!0;function hs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ds)return Object.assign.apply(Object,[{}].concat(t));ps=!1;var r={};return t.forEach((function(e){"object"===j(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ps=!0,r}var vs={};function ms(){}const gs=function(e,t,n){var r;return"function"==typeof n?n(hs(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}};var bs=function(){function e(){bn(this,e),R(this,"map",new Map),R(this,"objectIDMap",new WeakMap),R(this,"nextID",0),R(this,"lastAccessBeat",new Map),R(this,"accessBeat",0)}return wn(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===j(e)?"obj_".concat(t.getObjectID(e)):"".concat(j(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ys=new bs;const ws=function(){return{}},{genStyleHooks:xs,genComponentStyleHook:Cs,genSubStyleComponent:ks}=function(e){var t=e.useCSP,n=void 0===t?ws:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,c=e.getCompUnitless;function l(t,c,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],f=M(u,1)[0],d=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=r(),m=v.theme,g=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,C=o(),k=C.rootPrefixCls,E=C.iconPrefixCls,S=n(),$=w?"css":"js",O=(t=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(gc(t,w.prefix)),e.add(gc(t,us(f,w.prefix)))})),function(e,t){var n="css"===e?ls:ss;return function(e){return new n(e,t)}}($,e)},u=[$,f,null==w?void 0:w.prefix],x().useMemo((function(){var e=ys.get(u);if(e)return e;var n=t();return ys.set(u,n),n}),u)),M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return vc(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return vc(e)})).join(","),")")}}}($),P=M.max,R=M.min,A={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:p,order:s.order||-999};return kl(Ie(Ie({},A),{},{clientOnly:!1,path:["Shared",k]}),(function(){return"function"==typeof i?i(y):[]})),[kl(Ie(Ie({},A),{},{path:[d,e,E]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=ms;return ds&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return ps&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;vs[e]={global:Array.from(t),component:Ie(Ie({},null===(r=vs[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),n=t.token,r=t.flush,o=gs(f,g,l),i=".".concat(e),u=fs(f,g,o,{deprecatedTokens:s.deprecatedTokens});w&&o&&"object"===j(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(gc(e,us(f,w.prefix)),")")}));var d=hs(n,{componentCls:i,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(k),calc:O,max:P,min:R},w?o:u),p=c(d,{hashId:b,prefixCls:e,rootPrefixCls:k,iconPrefixCls:E});r(f,u);var v="function"==typeof a?a(d,e,h,s.resetFont):null;return[!1===s.resetStyle?null:v,p]})),b]}}return{genStyleHooks:function(e,t,n,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var s=(null==o?void 0:o.unitless)||{},u=Ie(Ie({},"function"==typeof c?c(e):{}),{},R({},a("zIndexPopup"),!0));Object.keys(s).forEach((function(e){u[a(e)]=s[e]}));var f=Ie(Ie({},o),{},{unitless:u,prefixToken:a}),d=l(e,t,n,f),p=function(e,t,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,c=n.prefixToken,l=n.ignore,s=function(i){var a=i.rootCls,s=i.cssVar,u=void 0===s?{}:s,f=r().realToken;return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,c=e.scope,l=void 0===c?"":c,s=(0,w.useContext)(oc),u=s.cache.instanceId,f=s.container,d=a._tokenKey,p=[].concat(_t(e.path),[n,l,d]),h=kc(El,p,(function(){var e=t(),a=M(yc(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),c=a[0],s=a[1];return[c,s,wl(p,s),n]}),(function(e){var t=M(e,3)[2];hc&&Xe(t,{mark:tc})}),(function(e){var t=M(e,3),r=t[1],o=t[2];if(r){var i=qe(r,o,{mark:tc,prepend:"queue",attachTo:f,priority:-999});i[nc]=u,i.setAttribute(ec,n)}}))}({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:l,token:f,scope:a},(function(){var r=gs(e,f,t),o=fs(e,f,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null};return function(t){var n=r().cssVar;return[function(r){return a&&n?x().createElement(x().Fragment,null,x().createElement(s,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]}}(i,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=M(d(e,t),2)[1],r=M(p(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=l(e,t,n,Ie({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,w.useContext)(Ka);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Kl();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,w.useContext)(Ka);return((e,t)=>{const[n,r]=Kl();kl({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":ts(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},getCompUnitless:()=>Wl}),Es=e=>({animationDuration:e,animationFillMode:"both"}),Ss=e=>({animationDuration:e,animationFillMode:"both"}),$s=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${o}${e}-enter,\n      ${o}${e}-appear\n    `]:Object.assign(Object.assign({},Es(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ss(r)),{animationPlayState:"paused"}),[`\n      ${o}${e}-enter${e}-enter-active,\n      ${o}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Os={"slide-up":{inKeyframes:new $l("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new $l("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new $l("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new $l("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new $l("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new $l("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new $l("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new $l("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Ms=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Os[t];return[$s(r,o,i,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},js=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ms(e,"slide-up"),Ms(e,"slide-down")]]},Ps=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${vc(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:vc(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:vc(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${vc(e.borderRadiusLG)} 0 0 ${vc(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Rs=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},es(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${vc(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Jl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${vc(e.paddingXXS)} ${vc(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},As=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:vc(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Fs=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${vc(e.borderRadius)} ${vc(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${vc(e.borderRadius)} ${vc(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${vc(e.borderRadius)} ${vc(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${vc(e.borderRadius)} 0 0 ${vc(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ns=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:c,itemColor:l}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},rs(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},_s=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:vc(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:vc(e.marginXS)},marginLeft:{_skip_check_:!0,value:vc(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Is=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},es(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${vc(e.paddingXS)}`,background:"transparent",border:`${vc(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},rs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ns(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Ts=xs("Tabs",(e=>{const t=hs(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${vc(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${vc(e.horizontalItemGutter)}`});return[Fs(t),_s(t),As(t),Rs(t),Ps(t),Is(t),js(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const Ls=e=>{var t,n,r,o,i,a,c,l,s,u,f;const{type:d,className:p,rootClassName:h,size:v,onEdit:m,hideAdd:g,centered:b,addIcon:y,removeIcon:x,moreIcon:C,more:k,popupClassName:E,children:S,items:$,animated:O,style:M,indicatorSize:j,indicator:P}=e,R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=R,{direction:F,tabs:_,getPrefixCls:I,getPopupContainer:T}=w.useContext(Ka),L=I("tabs",A),z=(e=>{const[,,,,t]=Kl();return t?`${e}-css-var`:""})(L),[H,B,D]=Ts(L,z);let V;"editable-card"===d&&(V={onEdit:(e,t)=>{let{key:n,event:r}=t;null==m||m("add"===e?r:n,e)},removeIcon:null!==(t=null!=x?x:null==_?void 0:_.removeIcon)&&void 0!==t?t:w.createElement(gt,null),addIcon:(null!=y?y:null==_?void 0:_.addIcon)||w.createElement(kt,null),showAdd:!0!==g});const W=I(),G=Yl(v),X=function(e,t){if(e)return e;const n=Tt(t).map((e=>{if(w.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}($,S),q=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Ql),{motionName:Zl(e,"switch")})),t}(L,O),K=Object.assign(Object.assign({},null==_?void 0:_.style),M),U={align:null!==(n=null==P?void 0:P.align)&&void 0!==n?n:null===(r=null==_?void 0:_.indicator)||void 0===r?void 0:r.align,size:null!==(c=null!==(i=null!==(o=null==P?void 0:P.size)&&void 0!==o?o:j)&&void 0!==i?i:null===(a=null==_?void 0:_.indicator)||void 0===a?void 0:a.size)&&void 0!==c?c:null==_?void 0:_.indicatorSize};return H(w.createElement(qa,Object.assign({direction:F,getPopupContainer:T},R,{items:X,className:N()({[`${L}-${G}`]:G,[`${L}-card`]:["card","editable-card"].includes(d),[`${L}-editable-card`]:"editable-card"===d,[`${L}-centered`]:b},null==_?void 0:_.className,p,h,B,D,z),popupClassName:N()(E,B,D,z),style:K,editable:V,more:Object.assign({icon:null!==(f=null!==(u=null!==(s=null===(l=null==_?void 0:_.more)||void 0===l?void 0:l.icon)&&void 0!==s?s:null==_?void 0:_.moreIcon)&&void 0!==u?u:C)&&void 0!==f?f:w.createElement(wt,null),transitionName:`${W}-slide-up`},k),prefixCls:L,animated:q,indicator:U})))};Ls.TabPane=()=>null;const zs=Ls,Hs=["xxl","xl","lg","md","sm","xs"];const Bs=(0,w.createContext)({}),Ds=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Vs=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Ws=xs("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),Gs=xs("Grid",(e=>{const t=hs(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Ds(t),Vs(t,""),Vs(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${vc(t)})`]:Object.assign({},Vs(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function Xs(e,t){const[n,r]=w.useState("string"==typeof e?e:"");return w.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<Hs.length;n++){const o=Hs[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const qs=w.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:c,gutter:l=0,wrap:s}=e,u=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=w.useContext(Ka),[p,h]=w.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,m]=w.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=Xs(o,v),b=Xs(r,v),y=w.useRef(l),C=function(){const[,e]=Kl(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Hs).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return x().useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}();w.useEffect((()=>{const e=C.subscribe((e=>{m(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>C.unsubscribe(e)}),[]);const k=f("row",n),[E,S,$]=Ws(k),O=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<Hs.length;r++){const o=Hs[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),M=N()(k,{[`${k}-no-wrap`]:!1===s,[`${k}-${b}`]:b,[`${k}-${g}`]:g,[`${k}-rtl`]:"rtl"===d},i,S,$),j={},P=null!=O[0]&&O[0]>0?O[0]/-2:void 0;P&&(j.marginLeft=P,j.marginRight=P);const[R,A]=O;j.rowGap=A;const F=w.useMemo((()=>({gutter:[R,A],wrap:s})),[R,A,s]);return E(w.createElement(Bs.Provider,{value:F},w.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},j),a),ref:t}),c)))})),Ks=qs;function Us(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Ys=["xs","sm","md","lg","xl","xxl"],Zs=w.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=w.useContext(Ka),{gutter:o,wrap:i}=w.useContext(Bs),{prefixCls:a,span:c,order:l,offset:s,push:u,pull:f,className:d,children:p,flex:h,style:v}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[b,y,x]=Gs(g),C={};let k={};Ys.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],k=Object.assign(Object.assign({},k),{[`${g}-${t}-${n.span}`]:void 0!==n.span,[`${g}-${t}-order-${n.order}`]:n.order||0===n.order,[`${g}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${g}-${t}-push-${n.push}`]:n.push||0===n.push,[`${g}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${g}-rtl`]:"rtl"===r}),n.flex&&(k[`${g}-${t}-flex`]=!0,C[`--${g}-${t}-flex`]=Us(n.flex))}));const E=N()(g,{[`${g}-${c}`]:void 0!==c,[`${g}-order-${l}`]:l,[`${g}-offset-${s}`]:s,[`${g}-push-${u}`]:u,[`${g}-pull-${f}`]:f},d,k,y,x),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=Us(h),!1!==i||S.minWidth||(S.minWidth=0)),b(w.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},S),v),C),className:E,ref:t}),p))})),Qs=Zs,Js=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=N()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=N()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=w.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return w.createElement("span",{className:N()(t,a,c,n),style:Object.assign(Object.assign({},l),r)})},eu=new $l("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),tu=e=>({height:e,lineHeight:vc(e)}),nu=e=>Object.assign({width:e},tu(e)),ru=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:eu,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ou=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},tu(e)),iu=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},nu(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},nu(o)),[`${t}${t}-sm`]:Object.assign({},nu(i))}},au=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},ou(t,c)),[`${r}-lg`]:Object.assign({},ou(o,c)),[`${r}-sm`]:Object.assign({},ou(i,c))}},cu=e=>Object.assign({width:e},tu(e)),lu=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},cu(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cu(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},su=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},uu=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},tu(e)),fu=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},uu(r,c))},su(e,r,n)),{[`${n}-lg`]:Object.assign({},uu(o,c))}),su(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},uu(i,c))}),su(e,i,`${n}-sm`))},du=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:c,controlHeight:l,controlHeightLG:s,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:m,paragraphLiHeight:g,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},nu(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},nu(s)),[`${n}-sm`]:Object.assign({},nu(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fu(e)),iu(e)),au(e)),lu(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${c}\n      `]:Object.assign({},ru(e))}}},pu=xs("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=hs(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[du(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),hu=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},vu=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=_t(new Array(o)).map(((t,n)=>w.createElement("li",{key:n,style:{width:hu(n,e)}})));return w.createElement("ul",{className:N()(t,n),style:r},i)},mu=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return w.createElement("h3",{className:N()(t,n),style:Object.assign({width:r},o)})};function gu(e){return e&&"object"==typeof e?e:{}}const bu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:c=!1,title:l=!0,paragraph:s=!0,active:u,round:f}=e,{getPrefixCls:d,direction:p,skeleton:h}=w.useContext(Ka),v=d("skeleton",t),[m,g,b]=pu(v);if(n||!("loading"in e)){const e=!!c,t=!!l,n=!!s;let a,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),gu(c));a=w.createElement("div",{className:`${v}-header`},w.createElement(Js,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),gu(l));r=w.createElement(mu,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),gu(s));o=w.createElement(vu,Object.assign({},n))}d=w.createElement("div",{className:`${v}-content`},r,o)}const y=N()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:u,[`${v}-rtl`]:"rtl"===p,[`${v}-round`]:f},null==h?void 0:h.className,r,o,g,b);return m(w.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,d))}return null!=a?a:null};bu.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-button`,size:a},d))))},bu.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls","className"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},bu.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-input`,size:a},d))))},bu.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=w.useContext(Ka),c=a("skeleton",t),[l,s,u]=pu(c),f=N()(c,`${c}-element`,{[`${c}-active`]:i},n,r,s,u);return l(w.createElement("div",{className:f},w.createElement("div",{className:N()(`${c}-image`,n),style:o},w.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},w.createElement("title",null,"Image placeholder"),w.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},bu.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=N()(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,f);return s(w.createElement("div",{className:d},w.createElement("div",{className:N()(`${l}-image`,n),style:o},a)))};const yu=bu;const wu=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=w.useContext(Ka),a=i("card",t),c=N()(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return w.createElement("div",Object.assign({},o,{className:c}))},xu=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${vc(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Jl),{[`\n          > ${n}-typography,\n          > ${n}-typography-edit-content\n        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Cu=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n      ${vc(o)} 0 0 0 ${n},\n      0 ${vc(o)} 0 0 ${n},\n      ${vc(o)} ${vc(o)} 0 0 ${n},\n      ${vc(o)} 0 0 0 ${n} inset,\n      0 ${vc(o)} 0 0 ${n} inset;\n    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ku=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${vc(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:vc(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:vc(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${vc(e.lineWidth)} ${e.lineType} ${i}`}}})},Eu=e=>Object.assign(Object.assign({margin:`${vc(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Jl),"&-description":{color:e.colorTextDescription}}),Su=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${vc(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${vc(e.padding)} ${vc(n)}`}}},$u=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ou=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:c}=e;return{[t]:Object.assign(Object.assign({},es(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:xu(e),[`${t}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:Cu(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ku(e),[`${t}-meta`]:Eu(e)}),[`${t}-bordered`]:{border:`${vc(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Su(e),[`${t}-loading`]:$u(e),[`${t}-rtl`]:{direction:"rtl"}}},Mu=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${vc(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ju=xs("Card",(e=>{const t=hs(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Ou(t),Mu(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Pu=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ru=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return w.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return w.createElement("li",{style:{width:100/n.length+"%"},key:r},w.createElement("span",null,e))})))},Au=w.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:c={},bodyStyle:l={},title:s,loading:u,bordered:f=!0,size:d,type:p,cover:h,actions:v,tabList:m,children:g,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:C,tabProps:k={},classNames:E,styles:S}=e,$=Pu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:M,card:j}=w.useContext(Ka),P=e=>{var t;return N()(null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t[e],null==E?void 0:E[e])},R=e=>{var t;return Object.assign(Object.assign({},null===(t=null==j?void 0:j.styles)||void 0===t?void 0:t[e]),null==S?void 0:S[e])},A=w.useMemo((()=>{let e=!1;return w.Children.forEach(g,(t=>{(null==t?void 0:t.type)===wu&&(e=!0)})),e}),[g]),F=O("card",n),[_,I,T]=ju(F),L=w.createElement(yu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),z=void 0!==b,H=Object.assign(Object.assign({},k),{[z?"activeKey":"defaultActiveKey"]:z?b:y,tabBarExtraContent:x});let B;const D=Yl(d),V=D&&"default"!==D?D:"large",W=m?w.createElement(zs,Object.assign({size:V},H,{className:`${F}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:m.map((e=>{var{tab:t}=e,n=Pu(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(s||a||W){const e=N()(`${F}-head`,P("header")),t=N()(`${F}-head-title`,P("title")),n=N()(`${F}-extra`,P("extra")),r=Object.assign(Object.assign({},c),R("header"));B=w.createElement("div",{className:e,style:r},w.createElement("div",{className:`${F}-head-wrapper`},s&&w.createElement("div",{className:t,style:R("title")},s),a&&w.createElement("div",{className:n,style:R("extra")},a)),W)}const G=N()(`${F}-cover`,P("cover")),X=h?w.createElement("div",{className:G,style:R("cover")},h):null,q=N()(`${F}-body`,P("body")),K=Object.assign(Object.assign({},l),R("body")),U=w.createElement("div",{className:q,style:K},u?L:g),Y=N()(`${F}-actions`,P("actions")),Z=(null==v?void 0:v.length)?w.createElement(Ru,{actionClasses:Y,actionStyle:R("actions"),actions:v}):null,Q=Wi($,["onTabChange"]),J=N()(F,null==j?void 0:j.className,{[`${F}-loading`]:u,[`${F}-bordered`]:f,[`${F}-hoverable`]:C,[`${F}-contain-grid`]:A,[`${F}-contain-tabs`]:null==m?void 0:m.length,[`${F}-${D}`]:D,[`${F}-type-${p}`]:!!p,[`${F}-rtl`]:"rtl"===M},r,o,I,T),ee=Object.assign(Object.assign({},null==j?void 0:j.style),i);return _(w.createElement("div",Object.assign({ref:t},Q,{className:J,style:ee}),B,X,U,Z))}));const Fu=Au;Fu.Grid=wu,Fu.Meta=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=w.useContext(Ka),l=c("card",t),s=N()(`${l}-meta`,n),u=r?w.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?w.createElement("div",{className:`${l}-meta-title`},o):null,d=i?w.createElement("div",{className:`${l}-meta-description`},i):null,p=f||d?w.createElement("div",{className:`${l}-meta-detail`},f,d):null;return w.createElement("div",Object.assign({},a,{className:s}),u,p)};const Nu=Fu,_u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},es(e)),{borderBlockStart:`${vc(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${vc(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${vc(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${vc(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${vc(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${vc(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${vc(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Iu=xs("Divider",(e=>{const t=hs(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[_u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const Tu=e=>{const{getPrefixCls:t,direction:n,divider:r}=w.useContext(Ka),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:c,className:l,rootClassName:s,children:u,dashed:f,variant:d="solid",plain:p,style:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),m=t("divider",o),[g,b,y]=Iu(m),x=!!u,C="left"===a&&null!=c,k="right"===a&&null!=c,E=N()(m,null==r?void 0:r.className,b,y,`${m}-${i}`,{[`${m}-with-text`]:x,[`${m}-with-text-${a}`]:x,[`${m}-dashed`]:!!f,[`${m}-${d}`]:"solid"!==d,[`${m}-plain`]:!!p,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:C,[`${m}-no-default-orientation-margin-right`]:k},l,s),S=w.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),$=Object.assign(Object.assign({},C&&{marginLeft:S}),k&&{marginRight:S});return g(w.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},v,{role:"separator"}),u&&"vertical"!==i&&w.createElement("span",{className:`${m}-inner-text`,style:$},u)))};function Lu(e){return["small","middle","large"].includes(e)}const zu=["wrap","nowrap","wrap-reverse"],Hu=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Bu=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Du=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Vu=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Wu=e=>{const{componentCls:t}=e,n={};return zu.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},Gu=e=>{const{componentCls:t}=e,n={};return Bu.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},Xu=e=>{const{componentCls:t}=e,n={};return Hu.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},qu=xs("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=hs(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[Du(o),Vu(o),Wu(o),Gu(o),Xu(o)]}),(()=>({})),{resetStyle:!1});const Ku=x().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:c,children:l,vertical:s=!1,component:u="div"}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:p,getPrefixCls:h}=x().useContext(Ka),v=h("flex",n),[m,g,b]=qu(v),y=null!=s?s:null==d?void 0:d.vertical,w=N()(o,r,null==d?void 0:d.className,v,g,b,function(e,t){return N()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&zu.includes(n)}})(e,t)),((e,t)=>{const n={};return Bu.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return Hu.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))}(v,e),{[`${v}-rtl`]:"rtl"===p,[`${v}-gap-${c}`]:Lu(c),[`${v}-vertical`]:y}),C=Object.assign(Object.assign({},null==d?void 0:d.style),i);return a&&(C.flex=a),c&&!Lu(c)&&(C.gap=c),m(x().createElement(u,Object.assign({ref:t,className:w,style:C},Wi(f,["justify","wrap","align"])),l))})),Uu=Ku;function Yu(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return w.createElement("div",{className:N()("".concat(n,"-content"),i),style:a},w.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var Zu={shiftX:64,adjustY:1},Qu={adjustX:1,shiftY:!0},Ju=[0,0],ef={left:{points:["cr","cl"],overflow:Qu,offset:[-4,0],targetOffset:Ju},right:{points:["cl","cr"],overflow:Qu,offset:[4,0],targetOffset:Ju},top:{points:["bc","tc"],overflow:Zu,offset:[0,-4],targetOffset:Ju},bottom:{points:["tc","bc"],overflow:Zu,offset:[0,4],targetOffset:Ju},topLeft:{points:["bl","tl"],overflow:Zu,offset:[0,-4],targetOffset:Ju},leftTop:{points:["tr","tl"],overflow:Qu,offset:[-4,0],targetOffset:Ju},topRight:{points:["br","tr"],overflow:Zu,offset:[0,-4],targetOffset:Ju},rightTop:{points:["tl","tr"],overflow:Qu,offset:[4,0],targetOffset:Ju},bottomRight:{points:["tr","br"],overflow:Zu,offset:[0,4],targetOffset:Ju},rightBottom:{points:["bl","br"],overflow:Qu,offset:[4,0],targetOffset:Ju},bottomLeft:{points:["tl","bl"],overflow:Zu,offset:[0,4],targetOffset:Ju},leftBottom:{points:["br","bl"],overflow:Qu,offset:[-4,0],targetOffset:Ju}},tf=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],nf=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,c=e.mouseLeaveDelay,l=void 0===c?.1:c,s=e.overlayStyle,u=e.prefixCls,f=void 0===u?"rc-tooltip":u,d=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,v=e.transitionName,m=e.animation,g=e.motion,b=e.placement,y=void 0===b?"right":b,x=e.align,k=void 0===x?{}:x,E=e.destroyTooltipOnHide,S=void 0!==E&&E,$=e.defaultVisible,O=e.getTooltipContainer,M=e.overlayInnerStyle,j=(e.arrowContent,e.overlay),P=e.id,R=e.showArrow,F=void 0===R||R,N=A(e,tf),_=(0,w.useRef)(null);(0,w.useImperativeHandle)(t,(function(){return _.current}));var I=Ie({},N);return"visible"in e&&(I.popupVisible=e.visible),w.createElement(Fo,C({popupClassName:n,prefixCls:f,popup:function(){return w.createElement(Yu,{key:"content",prefixCls:f,id:P,overlayInnerStyle:M},j)},action:o,builtinPlacements:ef,popupPlacement:y,ref:_,popupAlign:k,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:m,popupMotion:g,defaultPopupVisible:$,autoDestroy:S,mouseLeaveDelay:l,popupStyle:s,mouseEnterDelay:a,arrow:F},I),d)};const rf=(0,w.forwardRef)(nf);function of(){of=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),c=new R(r||[]);return o(a,"_invoke",{value:$(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=y.prototype=g.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==j(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function $(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(j(t)+" is not iterable")}return b.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(k),s(k,l,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function af(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function cf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){af(i,r,o,a,c,"next",e)}function c(e){af(i,r,o,a,c,"throw",e)}a(void 0)}))}}var lf="RC_FORM_INTERNAL_HOOKS",sf=function(){nt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const uf=w.createContext({getFieldValue:sf,getFieldsValue:sf,getFieldError:sf,getFieldWarning:sf,getFieldsError:sf,isFieldsTouched:sf,isFieldTouched:sf,isFieldValidating:sf,isFieldsValidating:sf,resetFields:sf,setFields:sf,setFieldValue:sf,setFieldsValue:sf,validateFields:sf,submit:sf,getInternalHooks:function(){return sf(),{dispatch:sf,initEntityValue:sf,registerField:sf,useSubscribe:sf,setInitialValues:sf,destroyForm:sf,setCallbacks:sf,registerWatch:sf,getFields:sf,setValidateMessages:sf,setPreserve:sf,getInitialValue:sf}}}),ff=w.createContext(null);function df(e){return null==e?[]:Array.isArray(e)?e:[e]}function pf(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var hf=pf();function vf(e){var t="function"==typeof Map?new Map:void 0;return vf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(En())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&xn(o,n.prototype),o}(e,arguments,kn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),xn(n,e)},vf(e)}var mf=/%[sdj%]/g;function gf(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function bf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(mf,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function yf(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function wf(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}"undefined"!=typeof process&&process.env;var xf=function(e){Cn(n,e);var t=$n(n);function n(e,r){var o;return bn(this,n),R(Sn(o=t.call(this,"Async Validation Error")),"errors",void 0),R(Sn(o),"fields",void 0),o.errors=e,o.fields=r,o}return wn(n)}(vf(Error));function Cf(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function kf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===j(r)&&"object"===j(e[n])?e[n]=Ie(Ie({},e[n]),r):e[n]=r}return e}var Ef="enum";const Sf=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!yf(t,i||e.type)||r.push(bf(o.messages.required,e.fullField))};var $f,Of=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Mf=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jf={integer:function(e){return jf.number(e)&&parseInt(e,10)===e},float:function(e){return jf.number(e)&&!jf.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===j(e)&&!jf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Of)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if($f)return $f;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,f=s.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return $f=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Mf)}};const Pf=Sf,Rf=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(bf(o.messages.whitespace,e.fullField))},Af=function(e,t,n,r,o){if(e.required&&void 0===t)Sf(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jf[i](t)||r.push(bf(o.messages.types[i],e.fullField,e.type)):i&&j(t)!==e.type&&r.push(bf(o.messages.types[i],e.fullField,e.type))}},Ff=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,l=t,s=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?s="number":f?s="string":d&&(s="array"),!s)return!1;d&&(l=t.length),f&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(bf(o.messages[s].len,e.fullField,e.len)):a&&!c&&l<e.min?r.push(bf(o.messages[s].min,e.fullField,e.min)):c&&!a&&l>e.max?r.push(bf(o.messages[s].max,e.fullField,e.max)):a&&c&&(l<e.min||l>e.max)&&r.push(bf(o.messages[s].range,e.fullField,e.min,e.max))},Nf=function(e,t,n,r,o){e[Ef]=Array.isArray(e[Ef])?e[Ef]:[],-1===e[Ef].indexOf(t)&&r.push(bf(o.messages[Ef],e.fullField,e[Ef].join(", ")))},_f=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(bf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(bf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},If=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,i)&&!e.required)return n();Pf(e,t,r,a,o,i),yf(t,i)||Af(e,t,r,a,o)}n(a)},Tf={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"string")&&!e.required)return n();Pf(e,t,r,i,o,"string"),yf(t,"string")||(Af(e,t,r,i,o),Ff(e,t,r,i,o),_f(e,t,r,i,o),!0===e.whitespace&&Rf(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),yf(t)||Af(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Pf(e,t,r,i,o,"array"),null!=t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Nf(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"string")&&!e.required)return n();Pf(e,t,r,i,o),yf(t,"string")||_f(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"date")&&!e.required)return n();var a;Pf(e,t,r,i,o),yf(t,"date")||(a=t instanceof Date?t:new Date(t),Af(e,a,r,i,o),a&&Ff(e,a.getTime(),r,i,o))}n(i)},url:If,hex:If,email:If,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":j(t);Pf(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o)}n(i)}};var Lf=function(){function e(t){bn(this,e),R(this,"rules",null),R(this,"_messages",hf),this.define(t)}return wn(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==j(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=kf(pf(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===hf&&(a=pf()),kf(a,o.messages),o.messages=a}else o.messages=this.messages();var c={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Ie({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":j(i)))),(a="function"==typeof a?{validator:a}:Ie({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:i,source:r,field:e}))}))}));var l={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,_t(e[n]||[]))})),t}(e);wf(a,n,(function(e){return r(e),e.length?i(new xf(e,gf(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),l=c.length,s=0,u=[],f=new Promise((function(t,i){var f=function(e){if(u.push.apply(u,e),++s===l)return r(u),u.length?i(new xf(u,gf(u))):t(o)};c.length||(r(u),t(o)),c.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?wf(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,_t(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f.catch((function(e){return e})),f}(c,o,(function(t,n){var i,a=t.rule,c=!("object"!==a.type&&"array"!==a.type||"object"!==j(a.fields)&&"object"!==j(a.defaultField));function s(e,t){return Ie(Ie({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(_t(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var f=u.map(Cf(a,r));if(o.first&&f.length)return l[a.field]=1,n(f);if(c){if(a.required&&!t.value)return void 0!==a.message?f=[].concat(a.message).map(Cf(a,r)):o.error&&(f=[o.error(a,bf(o.messages.required,a.field))]),n(f);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=Ie(Ie({},d),t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];f&&f.length&&t.push.apply(t,_t(f)),e&&e.length&&t.push.apply(t,_t(e)),n(t.length?t:null)}))}else n(f)}if(c=c&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var f,d;null===(f=(d=console).error)||void 0===f||f.call(d,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},c=0;c<e.length;c++)t=e[c],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,_t(t)):o.push(t);o.length?(a=gf(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Tf.hasOwnProperty(e.type))throw new Error(bf("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Tf.required:Tf[this.getType(e)]||void 0}}]),e}();R(Lf,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Tf[e]=t})),R(Lf,"warning",(function(){})),R(Lf,"messages",hf),R(Lf,"validators",Tf);var zf="'${name}' is not a valid ${type}",Hf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zf,method:zf,array:zf,object:zf,number:zf,date:zf,boolean:zf,integer:zf,float:zf,regexp:zf,email:zf,url:zf,hex:zf},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Bf=Lf;function Df(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Vf="CODE_LOGIC_ERROR";function Wf(_x,e,t,n,r){return Gf.apply(this,arguments)}function Gf(){return Gf=cf(of().mark((function e(t,n,r,o,i){var a,c,l,s,u,f,d,p,h;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Ie({},r)).ruleIndex,Bf.warning=function(){},a.validator&&(c=a.validator,a.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Vf)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),s=new Bf(R({},t,[a])),u=yr(Hf,o.validateMessages),s.messages(u),f=[],e.prev=10,e.next=13,Promise.resolve(s.validate(R({},t,n),Ie({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,r=n===Vf?u.default:n;return w.isValidElement(r)?w.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Wf("".concat(t,".").concat(n),e,l,o,i)})));case 21:return d=e.sent,e.abrupt("return",d.reduce((function(e,t){return[].concat(_t(e),_t(t))}),[]));case 23:return p=Ie(Ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map((function(e){return"string"==typeof e?Df(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Gf.apply(this,arguments)}function Xf(e,t,n,r,o,i){var a,c=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Ie(Ie({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){nt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,nt(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=cf(of().mark((function e(n,o){var a,s,u;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return s=l[a],e.next=5,Wf(c,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=l.map((function(e){return Wf(c,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Kf.apply(this,arguments)}(s):function(e){return qf.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function qf(){return(qf=cf(of().mark((function e(t){return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,_t(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kf(){return(Kf=cf(of().mark((function e(t){var n;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uf(e){return df(e)}function Yf(e,t){var n={};return t.forEach((function(t){var r=hr(e,t);n=mr(n,t,r)})),n}function Zf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Qf(t,e,n)}))}function Qf(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Jf(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===j(t.target)&&e in t.target?t.target[e]:t}function ed(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(_t(e.slice(0,n)),[o],_t(e.slice(n,t)),_t(e.slice(t+1,r))):i<0?[].concat(_t(e.slice(0,t)),_t(e.slice(t+1,n+1)),[o],_t(e.slice(n+1,r))):e}var td=["name"],nd=[];function rd(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var od=function(e){Cn(n,e);var t=$n(n);function n(e){var r;return bn(this,n),R(Sn(r=t.call(this,e)),"state",{resetCount:0}),R(Sn(r),"cancelRegisterFunc",null),R(Sn(r),"mounted",!1),R(Sn(r),"touched",!1),R(Sn(r),"dirty",!1),R(Sn(r),"validatePromise",void 0),R(Sn(r),"prevValidating",void 0),R(Sn(r),"errors",nd),R(Sn(r),"warnings",nd),R(Sn(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Uf(o)),r.cancelRegisterFunc=null})),R(Sn(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(_t(void 0===n?[]:n),_t(t)):[]})),R(Sn(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),R(Sn(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),R(Sn(r),"metaCache",null),R(Sn(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Ie(Ie({},r.getMeta()),{},{destroy:e});fi(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),R(Sn(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,l=o.onReset,s=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(s),p=t&&Zf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||fi(f,d)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=nd,r.warnings=nd,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=nd,r.warnings=nd,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&rd(i,e,s,f,d,n))return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||nd),"warnings"in h&&(r.warnings=h.warnings||nd),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Zf(t,u,!0))return void r.reRender();if(i&&!u.length&&rd(i,e,s,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(c.map(Uf).some((function(e){return Zf(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!c.length||u.length||i)&&rd(i,e,s,f,d,n))return void r.reRender()}!0===i&&r.reRender()})),R(Sn(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,c=void 0!==a&&a,l=Promise.resolve().then(cf(of().mark((function o(){var a,c,s,u,f,d,p;return of().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,c=a.validateFirst,s=void 0!==c&&c,u=a.messageVariables,f=a.validateDebounce,d=r.getRules(),i&&(d=d.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||df(t).includes(i)}))),!f||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,f)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=Xf(t,n,d,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nd;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?nd:r;t?o.push.apply(o,_t(i)):n.push.apply(n,_t(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return c||(r.validatePromise=l,r.dirty=!0,r.errors=nd,r.warnings=nd,r.triggerMetaEvent(),r.reRender()),l})),R(Sn(r),"isFieldValidating",(function(){return!!r.validatePromise})),R(Sn(r),"isFieldTouched",(function(){return r.touched})),R(Sn(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(lf).getInitialValue)(r.getNamePath())})),R(Sn(r),"getErrors",(function(){return r.errors})),R(Sn(r),"getWarnings",(function(){return r.warnings})),R(Sn(r),"isListField",(function(){return r.props.isListField})),R(Sn(r),"isList",(function(){return r.props.isList})),R(Sn(r),"isPreserve",(function(){return r.props.preserve})),R(Sn(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),R(Sn(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Ie(Ie({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Tt(e);return 1===n.length&&w.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),R(Sn(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return hr(e||t(!0),n)})),R(Sn(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,c=t.normalize,l=t.valuePropName,s=t.getValueProps,u=t.fieldContext,f=void 0!==i?i:u.validateTrigger,d=r.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,v=p(lf).dispatch,m=r.getValue(),g=s||function(e){return R({},l,e)},b=e[o],y=void 0!==n?g(m):{},w=Ie(Ie({},e),y);return w[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Jf.apply(void 0,[l].concat(n)),c&&(e=c(e,m,h(!0))),v({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},df(f||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&v({type:"validateField",namePath:d,triggerName:e})}})),w})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(lf).initEntityValue)(Sn(r)),r}return wn(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(lf).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:w.isValidElement(o)?e=w.cloneElement(o,this.getControlled(o.props)):(nt(!o,"`children` of Field is not validate ReactElement."),e=o),w.createElement(w.Fragment,{key:t},e)}}]),n}(w.Component);R(od,"contextType",uf),R(od,"defaultProps",{trigger:"onChange",valuePropName:"value"});const id=function(e){var t=e.name,n=A(e,td),r=w.useContext(uf),o=w.useContext(ff),i=void 0!==t?Uf(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),w.createElement(od,C({key:a,name:i,isListField:!!o},n,{fieldContext:r}))};var ad="__@field_split__";function cd(e){return e.map((function(e){return"".concat(j(e),":").concat(e)})).join(ad)}var ld=function(){function e(){bn(this,e),R(this,"kvs",new Map)}return wn(e,[{key:"set",value:function(e,t){this.kvs.set(cd(e),t)}},{key:"get",value:function(e){return this.kvs.get(cd(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(cd(e))}},{key:"map",value:function(e){return _t(this.kvs.entries()).map((function(t){var n=M(t,2),r=n[0],o=n[1],i=r.split(ad);return e({key:i.map((function(e){var t=M(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const sd=ld;var ud=["name"],fd=wn((function e(t){var n=this;bn(this,e),R(this,"formHooked",!1),R(this,"forceRootUpdate",void 0),R(this,"subscribable",!0),R(this,"store",{}),R(this,"fieldEntities",[]),R(this,"initialValues",{}),R(this,"callbacks",{}),R(this,"validateMessages",null),R(this,"preserve",null),R(this,"lastValidatePromise",null),R(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),R(this,"getInternalHooks",(function(e){return e===lf?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(nt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),R(this,"useSubscribe",(function(e){n.subscribable=e})),R(this,"prevWithoutPreserves",null),R(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=yr(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=mr(o,n,hr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),R(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new sd;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),R(this,"getInitialValue",(function(e){var t=hr(n.initialValues,e);return e.length?yr(t):t})),R(this,"setCallbacks",(function(e){n.callbacks=e})),R(this,"setValidateMessages",(function(e){n.validateMessages=e})),R(this,"setPreserve",(function(e){n.preserve=e})),R(this,"watchList",[]),R(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),R(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),R(this,"timeoutId",null),R(this,"warningUnhooked",(function(){})),R(this,"updateStore",(function(e){n.store=e})),R(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),R(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new sd;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),R(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Uf(e);return t.get(n)||{INVALIDATE_NAME_PATH:Uf(e)}}))})),R(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===j(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return a.forEach((function(e){var t,n,a,l,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&c.push(s)}else c.push(s)})),Yf(n.store,c.map(Uf))})),R(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Uf(e);return hr(n.store,t)})),R(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Uf(e[n]),errors:[],warnings:[]}}))})),R(this,"getFieldError",(function(e){n.warningUnhooked();var t=Uf(e);return n.getFieldsError([t])[0].errors})),R(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Uf(e);return n.getFieldsError([t])[0].warnings})),R(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Uf),c=!1):(o=null,c=i):(o=i.map(Uf),c=a);var l=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return c?l.every((function(e){return s(e)||e.isList()})):l.some(s);var u=new sd;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(_t(t),[e])}))}))}));var f=function(e){return e.some(s)},d=u.map((function(e){return e.value}));return c?d.every(f):d.some(f)})),R(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),R(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Uf);return t.some((function(e){var t=e.getNamePath();return Zf(r,t)&&e.isFieldValidating()}))})),R(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),R(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new sd,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,_t(_t(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))nt(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)nt(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(mr(n.store,o,_t(i)[0].value))}}}}))})),R(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(yr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Uf);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(mr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),R(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=A(e,ud),a=Uf(o);r.push(a),"value"in i&&n.updateStore(mr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),R(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Ie(Ie({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),R(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===hr(n.store,r)&&n.updateStore(mr(n.store,r,t))}})),R(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),R(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Qf(e.getNamePath(),t)}))){var c=n.store;n.updateStore(mr(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}})),R(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),R(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Ie(Ie({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),R(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(_t(r))}),r})),R(this,"updateValue",(function(e,t){var r=Uf(e),o=n.store;n.updateStore(mr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Yf(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(_t(i)))})),R(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=yr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),R(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),R(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new sd;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Uf(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),R(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new sd;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Zf(e,n)}));a.length&&r(a,o)}})),R(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Uf):[],c=[],l=String(Date.now()),s=new Set,u=o||{},f=u.recursive,d=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(l)),!i||Zf(a,t,f)){var r=e.validateRules(Ie({validateMessages:Ie(Ie({},Hf),n.validateMessages)},o));c.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,_t(n)):r.push.apply(r,_t(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(c);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(l))}));return n.triggerOnFieldsChange(v),h})),R(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const dd=function(e){var t=w.useRef(),n=M(w.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new fd((function(){n({})}));t.current=r.getForm()}return[t.current]};var pd=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const hd=pd;var vd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const md=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,c=e.children,l=e.component,s=void 0===l?"form":l,u=e.validateMessages,f=e.validateTrigger,d=void 0===f?"onChange":f,p=e.onValuesChange,h=e.onFieldsChange,v=e.onFinish,m=e.onFinishFailed,g=e.clearOnDestroy,b=A(e,vd),y=w.useRef(null),x=w.useContext(hd),k=M(dd(i),1)[0],E=k.getInternalHooks(lf),S=E.useSubscribe,$=E.setInitialValues,O=E.setCallbacks,P=E.setValidateMessages,R=E.setPreserve,F=E.destroyForm;w.useImperativeHandle(t,(function(){return Ie(Ie({},k),{},{nativeElement:y.current})})),w.useEffect((function(){return x.registerForm(n,k),function(){x.unregisterForm(n)}}),[x,k,n]),P(Ie(Ie({},x.validateMessages),u)),O({onValuesChange:p,onFieldsChange:function(e){if(x.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:m}),R(a);var N,_=w.useRef(null);$(r,!_.current),_.current||(_.current=!0),w.useEffect((function(){return function(){return F(g)}}),[]);var I="function"==typeof c;N=I?c(k.getFieldsValue(!0),k):c,S(!I);var T=w.useRef();w.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==j(e)||"object"!==j(t))return!1;var n=Object.keys(e),r=Object.keys(t);return _t(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],o||[])||k.setFields(o||[]),T.current=o}),[o,k]);var L=w.useMemo((function(){return Ie(Ie({},k),{},{validateTrigger:d})}),[k,d]),z=w.createElement(ff.Provider,{value:null},w.createElement(uf.Provider,{value:L},N));return!1===s?z:w.createElement(s,C({},b,{ref:y,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),z)};function gd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var bd=w.forwardRef(md);bd.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=w.useContext(pd),a=w.useRef({});return w.createElement(pd.Provider,{value:Ie(Ie({},i),{},{validateMessages:Ie(Ie({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Ie(Ie({},a.current),{},R({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Ie({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},bd.Field=id,bd.List=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,c=w.useContext(uf),l=w.useContext(ff),s=w.useRef({keys:[],id:0}).current,u=w.useMemo((function(){var e=Uf(c.prefixName)||[];return[].concat(_t(e),_t(Uf(t)))}),[c.prefixName,t]),f=w.useMemo((function(){return Ie(Ie({},c),{},{prefixName:u})}),[c,u]),d=w.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(nt(!1,"Form.List only accepts function as children."),null):w.createElement(ff.Provider,{value:d},w.createElement(uf.Provider,{value:f},w.createElement(id,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(u||[])||[]},f={add:function(e,t){var n=l();t>=0&&t<=n.length?(s.keys=[].concat(_t(s.keys.slice(0,t)),[s.id],_t(s.keys.slice(t))),i([].concat(_t(n.slice(0,t)),[e],_t(n.slice(t))))):(s.keys=[].concat(_t(s.keys),[s.id]),i([].concat(_t(n),[e]))),s.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(s.keys=ed(s.keys,e,t),i(ed(n,e,t)))}}},d=o||[];return Array.isArray(d)||(d=[]),r(d.map((function(__,e){var t=s.keys[e];return void 0===t&&(s.keys[e]=s.id,t=s.keys[e],s.id+=1),{name:e,key:t,isListField:!0}})),f,t)}))))},bd.useForm=dd,bd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,c=a.form,l=M((0,w.useState)(),2),s=l[0],u=l[1],f=(0,w.useMemo)((function(){return gd(s)}),[s]),d=(0,w.useRef)(f);d.current=f;var p=(0,w.useContext)(uf),h=c||p,v=h&&h._init,m=Uf(r),g=(0,w.useRef)(m);return g.current=m,(0,w.useEffect)((function(){if(v){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(lf).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):hr(n,g.current)},o=t((function(e,t){var r=n(e,t),o=gd(r);d.current!==o&&(d.current=o,u(r))})),i=n(e(),e(!0));return s!==i&&u(i),o}}),[v]),s};const yd=w.createContext({}),wd=e=>{let{children:t,status:n,override:r}=e;const o=(0,w.useContext)(yd),i=(0,w.useMemo)((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return w.createElement(yd.Provider,{value:i},t)},xd=w.createContext(null),Cd=e=>{let{children:t}=e;return w.createElement(xd.Provider,{value:null},t)},kd=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=x().createElement(wd,{override:!0,status:!0},o)),t&&(o=x().createElement(Cd,null,o)),o},Ed=x().createContext(void 0),Sd=100,$d={Modal:Sd,Drawer:Sd,Popover:Sd,Popconfirm:Sd,Tooltip:Sd,Tour:Sd,FloatButton:Sd},Od={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Md=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:c,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${vc(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function jd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Pd(e,t){return e?t:{}}function Rd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:c=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Md(e,t,o)),{"&:before":{background:t}})]},Pd(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${vc(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pd(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${vc(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pd(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Pd(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Ad={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Fd={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Nd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _d(){}const Id=new $l("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Td=new $l("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ld=new $l("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zd=new $l("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Hd=new $l("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bd=new $l("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Dd={zoom:{inKeyframes:Id,outKeyframes:Td},"zoom-big":{inKeyframes:Ld,outKeyframes:zd},"zoom-big-fast":{inKeyframes:Ld,outKeyframes:zd},"zoom-left":{inKeyframes:new $l("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new $l("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new $l("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new $l("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Hd,outKeyframes:Bd},"zoom-down":{inKeyframes:new $l("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new $l("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Vd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dd[t];return[$s(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wd=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Gd(e,t){return Wd.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:c}))}),{})}const Xd=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:c,boxShadowSecondary:l,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},es(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:c,padding:`${vc(e.calc(s).div(2).equal())} ${vc(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Gd(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Rd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,f=s,d=2*o-a,p=c,h=2*o-0,v=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${c} L ${l} ${s} A ${n} ${n} 0 0 1 ${u} ${f} L ${d} ${p} A ${r} ${r} 0 0 0 ${h} ${v} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`}}(hs(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Kd=function(e){const t=xs("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=hs(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Xd(o),Vd(e,"zoom-big-fast")]}),qd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Ud=Wd.map((e=>`${e}-inverse`));function Yd(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Wd.includes(e):[].concat(_t(Ud),_t(Wd)).includes(e)}(t),r=N()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Zd=w.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:c,color:l,overlayInnerStyle:s,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:p,arrow:h=!0,title:v,overlay:m,builtinPlacements:g,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,C=!!h,[,k]=Kl(),{getPopupContainer:E,getPrefixCls:S,direction:$}=w.useContext(Ka),O=(()=>{const e=()=>{};return e.deprecated=_d,e})(),M=w.useRef(null),j=()=>{var e;null===(e=M.current)||void 0===e||e.forceAlign()};w.useImperativeHandle(t,(()=>{var e;return{forceAlign:j,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),j()},nativeElement:null===(e=M.current)||void 0===e?void 0:e.nativeElement}}));const[P,R]=Rt(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),A=!v&&!m&&0!==v,F=w.useMemo((()=>{var e,t;let n=b;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:b),g||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,c=t/2,l={};return Object.keys(Ad).forEach((e=>{const s=r&&Fd[e]||Ad[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Nd.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-c-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=c+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-c-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=c+o}const f=jd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-f.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":u.offset[0]=f.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":u.offset[1]=2*-f.arrowOffsetHorizontal+c;break;case"leftBottom":case"rightBottom":u.offset[1]=2*f.arrowOffsetHorizontal-c}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,f,t,n),a&&(u.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:C?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})}),[b,h,g,k]),_=w.useMemo((()=>0===v?v:m||v||""),[m,v]),I=w.createElement(kd,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:L="top",mouseEnterDelay:z=.1,mouseLeaveDelay:H=.1,overlayStyle:B,rootClassName:D}=e,V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=S("tooltip",o),G=S(),X=e["data-popover-inject"];let q=P;"open"in e||"visible"in e||!A||(q=!1);const K=w.isValidElement(u)&&!function(e){return e&&x().isValidElement(e)&&e.type===x().Fragment}(u)?u:w.createElement("span",null,u),U=K.props,Y=U.className&&"string"!=typeof U.className?U.className:N()(U.className,i||`${W}-open`),[Z,Q,J]=Kd(W,!X),ee=Yd(W,l),te=ee.arrowStyle,ne=Object.assign(Object.assign({},s),ee.overlayStyle),re=N()(c,{[`${W}-rtl`]:"rtl"===$},ee.className,D,Q,J),[oe,ie]=((e,t)=>{const[,n]=Kl(),r=x().useContext(Ed),o=e in $d;let i;if(void 0!==t)i=[t,t];else{let a=null!=r?r:0;a+=o?(r?0:n.zIndexPopupBase)+$d[e]:Od[e],i=[void 0===r?t:a,a]}return i})("Tooltip",V.zIndex),ae=w.createElement(rf,Object.assign({},V,{zIndex:oe,showArrow:C,placement:L,mouseEnterDelay:z,mouseLeaveDelay:H,prefixCls:W,overlayClassName:re,overlayStyle:Object.assign(Object.assign({},te),B),getTooltipContainer:T||a||E,ref:M,builtinPlacements:F,overlay:I,visible:q,onVisibleChange:t=>{var n,r;R(!A&&t),A||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:d,overlayInnerStyle:ne,arrowContent:w.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:Zl(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),q?function(e,t){return((e,t,n)=>x().isValidElement(e)?x().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}(K,{className:Y}):K);return Z(w.createElement(Ed.Provider,{value:ie},ae))})),Qd=Zd;Qd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("tooltip",t),[s,u,f]=Kd(l),d=Yd(l,i),p=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=N()(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return s(w.createElement("div",{className:v,style:p},w.createElement("div",{className:`${l}-arrow`}),w.createElement(Yu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};const Jd=Qd,ep=window.wp.blocks,tp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"};var np=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:tp}))};const rp=w.forwardRef(np),{getSelectedBlockClientId:op}=(0,y.select)("core/block-editor"),ip=({setOpen:e})=>{const[t,n]=(0,w.useState)(null);(0,w.useEffect)((()=>{fetch("https://thesharif.dev/wp-json/gutenito-essentials/v1/patterns").then((e=>e.json())).then((e=>n(e.data)))}),[]);const{insertBlocks:r,replaceBlocks:o,insertAfterBlock:i}=(0,y.dispatch)("core/block-editor");return(0,s.jsx)("div",{className:"gutenito-patterns",children:(0,s.jsx)("div",{className:"gutenito-patterns-wrapper",children:(0,s.jsx)("div",{className:"gutenito-pattern-cards",children:(0,s.jsx)(Ks,{className:"gutenito-pattern-row",children:t&&t.map(((t,n)=>{const a=n;return(0,s.jsx)(Qs,{xs:{flex:"100%"},sm:{flex:"46%"},md:{flex:"30%"},lg:{flex:"30%"},xl:{flex:"23%"},children:(0,s.jsxs)(Nu,{className:"gutenito-pattern-single-card",children:[(0,s.jsx)("div",{className:"gutenito-pattern-img",children:(0,s.jsx)("img",{src:t.image,alt:""})}),(0,s.jsx)(Tu,{className:"gutenito-pattern-divider"}),(0,s.jsxs)(Uu,{justify:"space-between",children:[(0,s.jsx)("div",{className:"gutenito-pattern-title",children:t.title}),(0,s.jsx)(Jd,{placement:"bottom",title:"Import the pattern",children:(0,s.jsxs)("div",{onClick:()=>(t=>{const n=op();if(n){i(n);const e=op();o(e,(0,ep.parse)(t))}else r((0,ep.parse)(t));e(!1)})(t.content),className:"gutenito-pattern-import-btn",children:["Import ",(0,s.jsx)(rp,{className:"gutenito-pattern-import-icon"})]})})]})]})},a)}))})})})})},{getSelectedBlockClientId:ap}=(0,y.select)("core/block-editor"),cp=({setOpen:e})=>{const[t,n]=(0,w.useState)(null);(0,w.useEffect)((()=>{fetch("https://thesharif.dev/wp-json/gutenito-essentials/v1/pages").then((e=>e.json())).then((e=>n(e.data)))}),[]);const{insertBlocks:r,replaceBlocks:o,insertAfterBlock:i}=(0,y.dispatch)("core/block-editor");return(0,s.jsx)("div",{className:"gutenito-pages",children:(0,s.jsx)("div",{className:"gutenito-pages-wrapper",children:(0,s.jsx)("div",{className:"gutenito-page-cards",children:(0,s.jsx)(Ks,{className:"gutenito-page-row",children:t&&t.map(((t,n)=>{const a=n;return(0,s.jsx)(Qs,{xs:{flex:"100%"},sm:{flex:"46%"},md:{flex:"30%"},lg:{flex:"30%"},xl:{flex:"23%"},children:(0,s.jsxs)(Nu,{className:"gutenito-page-single-card",children:[(0,s.jsx)("div",{className:"gutenito-page-img",children:(0,s.jsx)("img",{src:t.image,alt:""})}),(0,s.jsx)(Tu,{className:"gutenito-page-divider"}),(0,s.jsxs)(Uu,{justify:"space-between",children:[(0,s.jsx)("div",{className:"gutenito-page-title",children:t.title}),(0,s.jsx)(Jd,{placement:"bottom",title:"Import the page",children:(0,s.jsxs)("div",{onClick:()=>(t=>{const n=ap();if(n){i(n);const e=ap();o(e,(0,ep.parse)(t))}else r((0,ep.parse)(t));e(!1)})(t.content),className:"gutenito-page-import-btn",children:["Import ",(0,s.jsx)(rp,{className:"gutenito-page-import-icon"})]})})]})]})},a)}))})})})})},lp=()=>(0,s.jsx)("div",{className:"gutenito-templates",children:(0,s.jsx)("div",{className:"gutenito-templates-wrapper",children:(0,s.jsx)("h1",{style:{textAlign:"center"},children:"Coming soon!"})})}),sp=({setOpen:e})=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Uu,{justify:"end",align:"middle",children:(0,s.jsx)(Uu,{gap:18,children:(0,s.jsx)("div",{className:"gutenito-modal-close-btn",children:(0,s.jsx)(Jd,{placement:"bottom",title:"Close",children:(0,s.jsx)(gt,{className:"close-btn-icon",onClick:()=>e(!1)})})})})})}),up=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Uu,{justify:"start",align:"middle",children:(0,s.jsx)(Uu,{style:{width:"100%",alignItems:"center"},gap:18,children:(0,s.jsx)("div",{className:"gutenito-modal-header-title",children:"Templates"})})})}),fp=({setOpen:e})=>{const t={right:(0,s.jsx)(sp,{className:"header-right",setOpen:e}),left:(0,s.jsx)(up,{className:"header-left"})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"gutenito-template-modal-main",children:(0,s.jsx)("div",{className:"gutenito-template-modal-wrapper",children:(0,s.jsx)(zs,{centered:!0,tabBarExtraContent:t,defaultActiveKey:"1",items:[{label:"Patterns",key:"patterns",children:(0,s.jsx)(ip,{setOpen:e})},{label:"Page",key:"page",children:(0,s.jsx)(cp,{className:"gutenito-pages",setOpen:e})},{label:"Templates",key:"templates",children:(0,s.jsx)(lp,{className:"gutenito-templates",setOpen:e})}]})})})})},dp=()=>{const[e,t]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:"Demo Templates"}),e&&(0,Lt.createPortal)((0,s.jsx)(fp,{setOpen:t}),document.body)]})},pp=window.wp.editor,hp=window.wp.primitives,vp=(0,s.jsx)(hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(hp.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})});(0,b.registerPlugin)("gutenito-templates-lib-btn",{render:()=>{const e=(0,l.useRef)(null),t=(0,l.useRef)(!0);return(0,l.useEffect)((()=>{if(!t.current)return;const n=(0,y.subscribe)((()=>{const n=document.querySelector(".edit-post-header_toolbar, .editor-headertoolbar, .edit-site-header-edit-mode_start, .editor-header__toolbar");if(!n)return;let r=document.getElementById("gutenito-templates-lib-btn");r||(r=document.createElement("div"),r.id="gutenito-templates-lib-btn",n.appendChild(r)),!e.current&&r&&(e.current=(0,l.createRoot)(r)),e.current&&(e.current.render((0,s.jsx)(s.Fragment,{children:(0,s.jsx)(dp,{})})),t.current=!1)}));return()=>n()}),[]),null}}),(0,b.registerPlugin)("gutenito-sidebar",{render:()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(pp.PluginSidebar,{name:"plugin-sidebar-test",title:"Gutenito Settings",icon:vp,children:(0,s.jsx)("p",{children:"Coming Soon!"})})})})},2799:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case h:case p:case c:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=u,t.isFragment=function(e){return v(e)===o},t.isMemo=function(e){return v(e)===p}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var c=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(u--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6939:0,8131:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,a=n[0],c=n[1],l=n[2],s=0;if(a.some((t=>0!==e[t]))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(l)var u=l(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunkgutenito_blocks_addon=self.webpackChunkgutenito_blocks_addon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[8131],(()=>r(3304)));o=r.O(o)})();
     1(()=>{var e,t={3304:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{advancedHeading:()=>m,digitalClock:()=>h,sampleBlock:()=>v});const o=window.wp.hooks,i=window.wp.compose;function a(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const c=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r},l=window.wp.element,s=window.ReactJSXRuntime,u=(0,i.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:r,name:i,clientId:a}=t;if(i?.includes("gutenito-blocks-addon/")){(0,l.useEffect)((()=>{const e=a?.slice(-6);r({blockClass:`gutenito-blocks-addon${e}`})}),[a]);const i={...t.wrapperProps,className:c(n?.blockClass)},u=(0,o.applyFilters)("GutenitoBlocksAddon.blockWrapper.attributes",i,n);return(0,s.jsx)(e,{...t,wrapperProps:u})}return(0,s.jsx)(e,{...t})}),"GutenitoBlocksAddonWrapperProps"),f=window.wp.i18n,d=window.wp.components,p=({attributes:e,setAttributes:t,name:n})=>{const{GutenitoBlocksAddonPanelBody:r,GutenitoBlocksAddonSpacingSizes:i}=window?.gutenitoBlocksAddon?.components,a=(0,o.applyFilters)("GutenitoBlocksAddon.advancedControl.layout.margin.exclude",new Set([])),c=(0,o.applyFilters)("GutenitoBlocksAddon.advancedControl.layout.padding.exclude",new Set([]));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r,{title:(0,f.__)("Layout","gutenito-blocks-addon"),children:[!c.has(n)&&(0,s.jsx)(i,{label:(0,f.__)("Padding","gutenito-blocks-addon"),value:e?.padding,onChange:e=>t({padding:e})}),!a.has(n)&&(0,s.jsx)(i,{label:(0,f.__)("Margin","gutenito-blocks-addon"),value:e?.margin,onChange:e=>t({margin:e})})]}),(0,s.jsx)(r,{title:(0,f.__)("Motion Effects","gutenito-blocks-addon"),children:(0,s.jsx)(d.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:"Label",onChange:e=>{t({motionEffects:e})},value:e?.motionEffects,options:[{disabled:!0,label:"Select an Option",value:""},{label:"Bounce",value:"bounce"},{label:"Wobble",value:"wobble"},{label:"Swing",value:"swing"}]})})]})},h=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),v=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),m=(0,s.jsxs)("svg",{width:"400",height:"250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#FAFDFF",d:"M0 0h400v250H0z"}),(0,s.jsx)("path",{d:"M265.163 111H62.837c-3.776 0-6.837 2.91-6.837 6.5s3.061 6.5 6.837 6.5h202.326c3.776 0 6.837-2.91 6.837-6.5s-3.061-6.5-6.837-6.5zM207.062 153H60.938c-2.727 0-4.938 2.015-4.938 4.5s2.21 4.5 4.938 4.5h146.124c2.727 0 4.938-2.015 4.938-4.5s-2.211-4.5-4.938-4.5zM152.835 191h-93.67c-1.748 0-3.165 1.119-3.165 2.5s1.417 2.5 3.166 2.5h93.669c1.748 0 3.165-1.119 3.165-2.5s-1.417-2.5-3.165-2.5z",fill:"#3F8EFC"}),(0,s.jsx)("path",{d:"M315.6 53H70.53C62.505 53 56 59.505 56 67.53c0 8.025 6.505 14.53 14.53 14.53H315.6c8.025 0 14.53-6.505 14.53-14.53 0-8.025-6.505-14.53-14.53-14.53z",fill:"#3B28CC"})]}),g=(0,i.createHigherOrderComponent)((e=>t=>{if(t?.name?.includes("gutenito-blocks-addon/")){if(t?.attributes?.preview){const{blockNameCamelcase:e}=window?.gutenitoBlocksAddon?.helpers,n=e(t?.name);return r[n]}const{GutenitoBlocksAddonStyleTag:n}=window?.gutenitoBlocksAddon?.components,o=((e={})=>{const{useGenerateStyles:t,getSpacingValue:n}=window.gutenitoBlocksAddon.helpers;return t(`.${e?.blockClass}`,(()=>({"padding-top":n(e?.padding?.top),"padding-right":n(e?.padding?.right),"padding-bottom":n(e?.padding?.bottom),"padding-left":n(e?.padding?.left),"margin-top":n(e?.margin?.top),"margin-right":n(e?.margin?.right),"margin-bottom":n(e?.margin?.bottom),"margin-left":n(e?.margin?.left)})))})(t?.attributes),i={...t,advancedControls:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(p,{...t})})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n,{attributes:t?.attributes,setAttributes:t?.setAttributes,styles:o,attributeKey:"globalStyles"}),(0,s.jsx)(e,{...i})]})}return(0,s.jsx)(e,{...t})}));(0,o.addFilter)("editor.BlockEdit","gutenito-blocks-addon/addAdvancedControls",g),(0,o.addFilter)("editor.BlockListBlock","gutenito-blocks-addon/blockWrapper",u);const b=window.wp.plugins,y=window.wp.data,w=window.React;var x=n.n(w);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}const k={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function E(e){if(Array.isArray(e))return e}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e,t){return E(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||$(e,t)||O()}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}function R(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var F=n(6942),N=n.n(F);function _(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function I(e){return Math.min(1,Math.max(0,e))}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e){return e<=1?"".concat(100*Number(e),"%"):e}function z(e){return 1===e.length?"0"+e:String(e)}function H(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,c=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=c>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:c}}function B(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,c=r-o,l=0===r?0:c/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:l,v:a}}function V(e,t,n,r){var o=[z(Math.round(e).toString(16)),z(Math.round(t).toString(16)),z(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 W(e){return G(e)/255}function G(e){return parseInt(e,16)}var X={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 q(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(X[e])e=X[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Z.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Z.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Z.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Z.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Z.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Z.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Z.hex8.exec(e))?{r:G(n[1]),g:G(n[2]),b:G(n[3]),a:W(n[4]),format:t?"name":"hex8"}:(n=Z.hex6.exec(e))?{r:G(n[1]),g:G(n[2]),b:G(n[3]),format:t?"name":"hex"}:(n=Z.hex4.exec(e))?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),a:W(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=Z.hex3.exec(e))&&{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Q(e.r)&&Q(e.g)&&Q(e.b)?(t=function(e,t,n){return{r:255*_(e,255),g:255*_(t,255),b:255*_(n,255)}}(e.r,e.g,e.b),a=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Q(e.h)&&Q(e.s)&&Q(e.v)?(r=L(e.s),o=L(e.v),t=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,c,n][l],g:255*[c,n,n,a,i,i][l],b:255*[i,i,c,n,n,a][l]}}(e.h,r,o),a=!0,c="hsv"):Q(e.h)&&Q(e.s)&&Q(e.l)&&(r=L(e.s),i=L(e.l),t=function(e,t,n){var r,o,i;if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=B(c,a,e+1/3),o=B(c,a,e),i=B(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=T(n),{ok:a,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 K="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),U="[\\s|\\(]+(".concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")\\s*\\)?"),Y="[\\s|\\(]+(".concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")[,|\\s]+(").concat(K,")\\s*\\)?"),Z={CSS_UNIT:new RegExp(K),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+Y),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+Y),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+Y),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 Q(e){return Boolean(Z.CSS_UNIT.exec(String(e)))}var J=[{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 ee(e){var t=D(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function te(e){var t=e.r,n=e.g,r=e.b;return"#".concat(V(t,n,r,!1))}function ne(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function re(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function oe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function ie(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=q(e),o=5;o>0;o-=1){var i=ee(r),a=te(q({h:ne(i,o,!0),s:re(i,o,!0),v:oe(i,o,!0)}));n.push(a)}n.push(te(r));for(var c=1;c<=4;c+=1){var l=ee(r),s=te(q({h:ne(l,c),s:re(l,c),v:oe(l,c)}));n.push(s)}return"dark"===t.theme?J.map((function(e){var r,o,i,a=e.index,c=e.opacity;return te((r=q(t.backgroundColor||"#141414"),i=100*c/100,{r:((o=q(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ae={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"},ce=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ce.primary=ce[5];var le=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];le.primary=le[5];var se=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];se.primary=se[5];var ue=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ue.primary=ue[5];var fe=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];fe.primary=fe[5];var de=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];de.primary=de[5];var pe=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];pe.primary=pe[5];var he=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];he.primary=he[5];var ve=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ve.primary=ve[5];var me=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];me.primary=me[5];var ge=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ge.primary=ge[5];var be=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];be.primary=be[5];var ye=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ye.primary=ye[5];var we={red:ce,volcano:le,orange:se,gold:ue,yellow:fe,lime:de,green:pe,cyan:he,blue:ve,geekblue:me,purple:ge,magenta:be,grey:ye},xe=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];xe.primary=xe[5];var Ce=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Ce.primary=Ce[5];var ke=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];ke.primary=ke[5];var Ee=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ee.primary=Ee[5];var Se=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Se.primary=Se[5];var $e=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];$e.primary=$e[5];var Oe=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Oe.primary=Oe[5];var Me=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Me.primary=Me[5];var je=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];je.primary=je[5];var Pe=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Pe.primary=Pe[5];var Re=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Re.primary=Re[5];var Ae=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ae.primary=Ae[5];var Fe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Fe.primary=Fe[5];const Ne=(0,w.createContext)({});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Le="data-rc-order",ze="data-rc-priority",He=new Map;function Be(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function De(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ve(e){return Array.from((He.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Te())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,l=document.createElement("style");l.setAttribute(Le,a),c&&i&&l.setAttribute(ze,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var s=De(t),u=s.firstChild;if(r){if(c){var f=(t.styles||Ve(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Le)))return!1;var t=Number(e.getAttribute(ze)||0);return i>=t}));if(f.length)return s.insertBefore(l,f[f.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=De(t);return(t.styles||Ve(n)).find((function(n){return n.getAttribute(Be(t))===e}))}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(e,t);n&&De(t).removeChild(n)}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=De(n),o=Ve(r),i=Ie(Ie({},n),{},{styles:o});!function(e,t){var n=He.get(e);if(!n||!function(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}(document,n)){var r=We("",t),o=r.parentNode;He.set(e,o),e.removeChild(r)}}(r,i);var a,c,l,s=Ge(t,i);if(s)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&s.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce)&&(s.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;var u=We(e,i);return u.setAttribute(Be(i),t),u}function Ke(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ue(e){return function(e){return Ke(e)instanceof ShadowRoot}(e)?Ke(e):null}var Ye={},Ze=[];function Qe(e,t){}function Je(e,t){}function et(e,t,n){t||Ye[n]||(e(!1,n),Ye[n]=!0)}function tt(e,t){et(Qe,e,t)}tt.preMessage=function(e){Ze.push(e)},tt.resetWarned=function(){Ye={}},tt.noteOnce=function(e,t){et(Je,e,t)};const nt=tt;function rt(e){return"object"===j(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===j(e.icon)||"function"==typeof e.icon)}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function it(e,t,n){return n?x().createElement(e.tag,Ie(Ie({key:t},ot(e.attrs)),n),(e.children||[]).map((function(n,r){return it(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):x().createElement(e.tag,Ie({key:t},ot(e.attrs)),(e.children||[]).map((function(n,r){return it(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function at(e){return ie(e)[0]}function ct(e){return e?Array.isArray(e)?e:[e]:[]}var lt=["icon","className","onClick","style","primaryColor","secondaryColor"],st={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ut=function(e){var t,n,r,o,i,a,c,l=e.icon,s=e.className,u=e.onClick,f=e.style,d=e.primaryColor,p=e.secondaryColor,h=A(e,lt),v=w.useRef(),m=st;if(d&&(m={primaryColor:d,secondaryColor:p||at(d)}),t=v,n=(0,w.useContext)(Ne),r=n.csp,o=n.prefixCls,i="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,w.useEffect)((function(){var e=Ue(t.current);qe(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=rt(l),c="icon should be icon definiton, but got ".concat(l),nt(a,"[@ant-design/icons] ".concat(c)),!rt(l))return null;var g=l;return g&&"function"==typeof g.icon&&(g=Ie(Ie({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),it(g.icon,"svg-".concat(g.name),Ie(Ie({className:s,onClick:u,style:f,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:v}))};ut.displayName="IconReact",ut.getTwoToneColors=function(){return Ie({},st)},ut.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;st.primaryColor=t,st.secondaryColor=n||at(t),st.calculated=!!n};const ft=ut;function dt(e){var t=M(ct(e),2),n=t[0],r=t[1];return ft.setTwoToneColors({primaryColor:n,secondaryColor:r})}var pt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dt(ve.primary);var ht=w.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,l=e.twoToneColor,s=A(e,pt),u=w.useContext(Ne),f=u.prefixCls,d=void 0===f?"anticon":f,p=u.rootClassName,h=N()(p,d,R(R({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||"loading"===r.name),n),v=a;void 0===v&&c&&(v=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=M(ct(l),2),b=g[0],y=g[1];return w.createElement("span",C({role:"img","aria-label":r.name},s,{ref:t,tabIndex:v,onClick:c,className:h}),w.createElement(ft,{icon:r,primaryColor:b,secondaryColor:y,style:m}))}));ht.displayName="AntdIcon",ht.getTwoToneColor=function(){var e=ft.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ht.setTwoToneColor=dt;const vt=ht;var mt=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:k}))};const gt=w.forwardRef(mt),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var yt=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:bt}))};const wt=w.forwardRef(yt),xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Ct=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:xt}))};const kt=w.forwardRef(Ct);function Et(e){var t=w.useRef();t.current=e;var n=w.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var St=Te()?w.useLayoutEffect:w.useEffect,$t=function(e,t){var n=w.useRef(!0);St((function(){return e(n.current)}),t),St((function(){return n.current=!1,function(){n.current=!0}}),[])},Ot=function(e,t){$t((function(t){if(!t)return e()}),t)};const Mt=$t;function jt(e){var t=w.useRef(!1),n=M(w.useState(e),2),r=n[0],o=n[1];return w.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Pt(e){return void 0!==e}function Rt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,c=M(jt((function(){return Pt(o)?o:Pt(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=c[0],s=c[1],u=void 0!==o?o:l,f=a?a(u):u,d=Et(i),p=M(jt([u]),2),h=p[0],v=p[1];return Ot((function(){var e=h[0];l!==e&&d(l,e)}),[h]),Ot((function(){Pt(o)||s(o)}),[o]),[f,Et((function(e,t){s(e,t),v([u],t)}))]}const At=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Ft=(0,w.createContext)(null);function Nt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _t(e){return function(e){if(Array.isArray(e))return S(e)}(e)||Nt(e)||$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var It=n(4363);function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return x().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Tt(e)):(0,It.isFragment)(e)&&e.props?n=n.concat(Tt(e.props.children,t)):n.push(e))})),n}const Lt=window.ReactDOM;var zt=n.n(Lt);function Ht(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bt(e){var t,n=function(e){return e&&"object"===j(e)&&Ht(e.nativeElement)?e.nativeElement:Ht(e)?e:null}(e);return n||(e instanceof x().Component?null===(t=zt().findDOMNode)||void 0===t?void 0:t.call(zt(),e):null)}function Dt(e,t,n){var r=w.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Vt=function(e,t){"function"==typeof e?e(t):"object"===j(e)&&e&&"current"in e&&(e.current=t)},Wt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Vt(t,e)}))}},Gt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dt((function(){return Wt.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Xt=function(e){var t,n,r=(0,It.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===It.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===It.ForwardRef)};Number(w.version.split(".")[0]);var qt=w.createContext(null),Kt=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ut="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Yt=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Zt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Yt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Qt=["top","right","bottom","left","width","height","size","weight"],Jt="undefined"!=typeof MutationObserver,en=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){Zt(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ut&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ut&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Qt.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},nn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Yt},rn=sn(0,0,0,0);function on(e){return parseFloat(e)||0}function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+on(e["border-"+n+"-width"])}),0)}var cn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof nn(e).SVGGraphicsElement}:function(e){return e instanceof nn(e).SVGElement&&"function"==typeof e.getBBox};function ln(e){return Ut?cn(e)?function(e){var t=e.getBBox();return sn(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rn;var r=nn(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=on(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=on(r.width),l=on(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=an(r,"left","right")+i),Math.round(l+a)!==n&&(l-=an(r,"top","bottom")+a)),!function(e){return e===nn(e).document.documentElement}(e)){var s=Math.round(c+i)-t,u=Math.round(l+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(u)&&(l-=u)}return sn(o.left,o.top,c,l)}(e):rn}function sn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var un=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=sn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ln(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),fn=function(e,t){var n,r,o,i,a,c,l,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(c.prototype),tn(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);tn(this,{target:e,contentRect:s})},dn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Kt,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new un(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new fn(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pn="undefined"!=typeof WeakMap?new WeakMap:new Kt,hn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=en.getInstance(),r=new dn(t,n,this);pn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){hn.prototype[e]=function(){var t;return(t=pn.get(this))[e].apply(t,arguments)}}));const vn=void 0!==Yt.ResizeObserver?Yt.ResizeObserver:hn;var mn=new Map,gn=new vn((function(e){e.forEach((function(e){var t,n=e.target;null===(t=mn.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yn(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,P(r.key),r)}}function wn(e,t,n){return t&&yn(e.prototype,t),n&&yn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xn(e,t)}function Cn(e,t){if("function"!=typeof t&&null!==t)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&&xn(e,t)}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(En=function(){return!!e})()}function Sn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $n(e){var t=En();return function(){var n,r=kn(e);if(t){var o=kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}(this,n)}}var On=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);function Mn(e,t){var n=e.children,r=e.disabled,o=w.useRef(null),i=w.useRef(null),a=w.useContext(qt),c="function"==typeof n,l=c?n(o):n,s=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!c&&w.isValidElement(l)&&Xt(l),f=u?l.ref:null,d=Gt(f,o),p=function(){var e;return Bt(o.current)||(o.current&&"object"===j(o.current)?Bt(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Bt(i.current)};w.useImperativeHandle(t,(function(){return p()}));var h=w.useRef(e);h.current=e;var v=w.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,c=o.height,l=e.offsetWidth,u=e.offsetHeight,f=Math.floor(i),d=Math.floor(c);if(s.current.width!==f||s.current.height!==d||s.current.offsetWidth!==l||s.current.offsetHeight!==u){var p={width:f,height:d,offsetWidth:l,offsetHeight:u};s.current=p;var v=l===Math.round(i)?i:l,m=u===Math.round(c)?c:u,g=Ie(Ie({},p),{},{offsetWidth:v,offsetHeight:m});null==a||a(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return w.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=v,mn.has(e)||(mn.set(e,new Set),gn.observe(e)),mn.get(e).add(t)),function(){return function(e,t){mn.has(e)&&(mn.get(e).delete(t),mn.get(e).size||(gn.unobserve(e),mn.delete(e)))}(n,v)}}),[o.current,r]),w.createElement(On,{ref:i},u?w.cloneElement(l,{ref:d}):l)}const jn=w.forwardRef(Mn);function Pn(e,t){var n=e.children;return("function"==typeof n?[n]:Tt(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return w.createElement(jn,C({},e,{key:o,ref:0===r?t:void 0}),n)}))}var Rn=w.forwardRef(Pn);Rn.Collection=function(e){var t=e.children,n=e.onBatchResize,r=w.useRef(0),o=w.useRef([]),i=w.useContext(qt),a=w.useCallback((function(e,t,a){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return w.createElement(qt.Provider,{value:a},t)};const An=Rn;var Fn=function(e){return+setTimeout(e,16)},Nn=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Fn=function(e){return window.requestAnimationFrame(e)},Nn=function(e){return window.cancelAnimationFrame(e)});var In=0,Tn=new Map;function Ln(e){Tn.delete(e)}var zn=function(e){var t=In+=1;return function n(r){if(0===r)Ln(t),e();else{var o=Fn((function(){n(r-1)}));Tn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};zn.cancel=function(e){var t=Tn.get(e);return Ln(e),Nn(t)};const Hn=zn;var Bn={width:0,height:0,left:0,top:0};function Dn(e,t){var n=w.useRef(e),r=M(w.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Vn=Math.pow(.995,20);function Wn(e){var t=M((0,w.useState)(0),2),n=t[0],r=t[1],o=(0,w.useRef)(0),i=(0,w.useRef)();return i.current=e,Ot((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var Gn={width:0,height:0,left:0,top:0,right:0};function Xn(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function qn(e){return String(e).replace(/"/g,"TABS_DQ")}function Kn(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Un=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?w.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));const Yn=Un;var Zn=w.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==j(i)||w.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?w.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));const Qn=Zn,Jn=w.createContext(null);var er=[];var tr="rc-util-locker-".concat(Date.now()),nr=0;function rr(e){var t=!!e,n=M(w.useState((function(){return nr+=1,"".concat(tr,"_").concat(nr)})),1)[0];Mt((function(){if(t){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(c.width,10),s=parseInt(c.height,10);try{var u=l?"width: ".concat(c.width,";"):"",f=s?"height: ".concat(c.height,";"):"";qe("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),t)}catch(e){console.error(e),r=l,o=s}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Xe(t),{width:d,height:p}}(o):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;qe("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Xe(n);var o;return function(){Xe(n)}}),[t,n])}var or=!1,ir=function(e){return!1!==e&&(Te()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ar=w.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,c=e.children,l=M(w.useState(n),2),s=l[0],u=l[1],f=s||n;w.useEffect((function(){(a||n)&&u(n)}),[n,a]);var d=M(w.useState((function(){return ir(o)})),2),p=d[0],h=d[1];w.useEffect((function(){var e=ir(o);h(null!=e?e:null)}));var v=function(e){var t=M(w.useState((function(){return Te()?document.createElement("div"):null})),1)[0],n=w.useRef(!1),r=w.useContext(Jn),o=M(w.useState(er),2),i=o[0],a=o[1],c=r||(n.current?void 0:function(e){a((function(t){return[e].concat(_t(t))}))});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function s(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Mt((function(){return e?r?r(l):l():s(),s}),[e]),Mt((function(){i.length&&(i.forEach((function(e){return e()})),a(er))}),[i]),[t,c]}(f&&!p),m=M(v,2),g=m[0],b=m[1],y=null!=p?p:g;rr(r&&n&&Te()&&(y===g||y===document.body));var x=null;c&&Xt(c)&&t&&(x=c.ref);var C=Gt(x,t);if(!f||!Te()||void 0===p)return null;var k=!1===y||or,E=c;return t&&(E=w.cloneElement(c,{ref:C})),w.createElement(Jn.Provider,{value:b},k?E:(0,Lt.createPortal)(E,y))}));const cr=ar;var lr=0,sr=Ie({},w).useId;const ur=sr?function(e){var t=sr();return e||t}:function(e){var t=M(w.useState("ssr-id"),2),n=t[0],r=t[1];return w.useEffect((function(){var e=lr;lr+=1,r("rc_unique_".concat(e))}),[]),e||n};var fr=w.createContext({}),dr=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(w.Component);const pr=dr;function hr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function vr(e,t,n,r){if(!t.length)return n;var o,i=function(e){return E(e)||Nt(e)||$(e)||O()}(t),a=i[0],c=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?_t(e):Ie({},e):[],r&&void 0===n&&1===c.length?delete o[a][c[0]]:o[a]=vr(o[a],c,n,r),o}function mr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!hr(e,t.slice(0,-1))?e:vr(e,t,n,r)}function gr(e){return Array.isArray(e)?[]:{}}var br="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=gr(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),c=hr(e,n),l=Array.isArray(c);if(l||"object"===j(i=c)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(c)){a.add(c);var s=hr(r,n);l?r=mr(r,n,[]):s&&"object"===j(s)||(r=mr(r,n,gr(c))),br(c).forEach((function(e){t([].concat(_t(n),[e]),a)}))}}else r=mr(r,n,c)}([])})),r}var wr="none",xr="appear",Cr="enter",kr="leave",Er="none",Sr="prepare",$r="start",Or="active",Mr="end",jr="prepared";function Pr(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}var Rr,Ar,Fr,Nr=(Rr=Te(),Ar="undefined"!=typeof window?window:{},Fr={animationend:Pr("Animation","AnimationEnd"),transitionend:Pr("Transition","TransitionEnd")},Rr&&("AnimationEvent"in Ar||delete Fr.animationend.animation,"TransitionEvent"in Ar||delete Fr.transitionend.transition),Fr),_r={};if(Te()){var Ir=document.createElement("div");_r=Ir.style}var Tr={};function Lr(e){if(Tr[e])return Tr[e];var t=Nr[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in _r)return Tr[e]=t[i],Tr[e]}return""}var zr=Lr("animationend"),Hr=Lr("transitionend"),Br=!(!zr||!Hr),Dr=zr||"animationend",Vr=Hr||"transitionend";function Wr(e,t){return e?"object"===j(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Gr=Te()?w.useLayoutEffect:w.useEffect;var Xr=[Sr,$r,Or,Mr],qr=[Sr,jr],Kr=!1;function Ur(e){return e===Or||e===Mr}function Yr(e,t,n,r){var o,i,a,c=r.motionEnter,l=void 0===c||c,s=r.motionAppear,u=void 0===s||s,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,v=r.onAppearPrepare,m=r.onEnterPrepare,g=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,x=r.onLeaveStart,C=r.onAppearActive,k=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,O=r.onLeaveEnd,j=r.onVisibleChanged,P=M(jt(),2),A=P[0],F=P[1],N=(o=wr,i=M(w.useReducer((function(e){return e+1}),0),2)[1],a=w.useRef(o),[Et((function(){return a.current})),Et((function(e){a.current="function"==typeof e?e(a.current):e,i()}))]),_=M(N,2),I=_[0],T=_[1],L=M(jt(null),2),z=L[0],H=L[1],B=I(),D=(0,w.useRef)(!1),V=(0,w.useRef)(null);function W(){return n()}var G=(0,w.useRef)(!1);function X(){T(wr),H(null,!0)}var q=Et((function(e){var t=I();if(t!==wr){var n=W();if(!e||e.deadline||e.target===n){var r,o=G.current;t===xr&&o?r=null==S?void 0:S(n,e):t===Cr&&o?r=null==$?void 0:$(n,e):t===kr&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&X()}}})),K=function(e){var t=(0,w.useRef)();function n(t){t&&(t.removeEventListener(Vr,e),t.removeEventListener(Dr,e))}return w.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Vr,e),r.addEventListener(Dr,e),t.current=r)},n]}(q),U=M(K,1)[0],Y=function(e){switch(e){case xr:return R(R(R({},Sr,v),$r,b),Or,C);case Cr:return R(R(R({},Sr,m),$r,y),Or,k);case kr:return R(R(R({},Sr,g),$r,x),Or,E);default:return{}}},Z=w.useMemo((function(){return Y(B)}),[B]),Q=M(function(e,t,n){var r=M(jt(Er),2),o=r[0],i=r[1],a=function(){var e=w.useRef(null);function t(){Hn.cancel(e.current)}return w.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Hn((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=M(a,2),l=c[0],s=c[1],u=t?qr:Xr;return Gr((function(){if(o!==Er&&o!==Mr){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Kr?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),w.useEffect((function(){return function(){s()}}),[]),[function(){i(Sr,!0)},o]}(B,!e,(function(e){if(e===Sr){var t=Z[Sr];return t?t(W()):Kr}var n;return ee in Z&&H((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,W(),null))||null),ee===Or&&B!==wr&&(U(W()),p>0&&(clearTimeout(V.current),V.current=setTimeout((function(){q({deadline:!0})}),p))),ee===jr&&X(),!0})),2),J=Q[0],ee=Q[1],te=Ur(ee);G.current=te,Gr((function(){F(t);var n,r=D.current;D.current=!0,!r&&t&&u&&(n=xr),r&&t&&l&&(n=Cr),(r&&!t&&d||!r&&h&&!t&&d)&&(n=kr);var o=Y(n);n&&(e||o[Sr])?(T(n),J()):T(wr)}),[t]),(0,w.useEffect)((function(){(B===xr&&!u||B===Cr&&!l||B===kr&&!d)&&T(wr)}),[u,l,d]),(0,w.useEffect)((function(){return function(){D.current=!1,clearTimeout(V.current)}}),[]);var ne=w.useRef(!1);(0,w.useEffect)((function(){A&&(ne.current=!0),void 0!==A&&B===wr&&((ne.current||A)&&(null==j||j(A)),ne.current=!0)}),[A,B]);var re=z;return Z[Sr]&&ee===$r&&(re=Ie({transition:"none"},re)),[B,ee,re,null!=A?A:t]}const Zr=function(e){var t=e;"object"===j(e)&&(t=e.transitionSupport);var n=w.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,c=e.forceRender,l=e.children,s=e.motionName,u=e.leavedClassName,f=e.eventProps,d=function(e,n){return!(!e.motionName||!t||!1===n)}(e,w.useContext(fr).motion),p=(0,w.useRef)(),h=(0,w.useRef)(),v=M(Yr(d,o,(function(){try{return p.current instanceof HTMLElement?p.current:Bt(h.current)}catch(e){return null}}),e),4),m=v[0],g=v[1],b=v[2],y=v[3],x=w.useRef(y);y&&(x.current=!0);var C,k=w.useCallback((function(e){p.current=e,Vt(n,e)}),[n]),E=Ie(Ie({},f),{},{visible:o});if(l)if(m===wr)C=y?l(Ie({},E),k):!a&&x.current&&u?l(Ie(Ie({},E),{},{className:u}),k):c||!a&&!u?l(Ie(Ie({},E),{},{style:{display:"none"}}),k):null;else{var S;g===Sr?S="prepare":Ur(g)?S="active":g===$r&&(S="start");var $=Wr(s,"".concat(m,"-").concat(S));C=l(Ie(Ie({},E),{},{className:N()(Wr(s,m),R(R({},$,$&&S),s,"string"==typeof s)),style:b}),k)}else C=null;return w.isValidElement(C)&&Xt(C)&&(C.ref||(C=w.cloneElement(C,{ref:k}))),w.createElement(pr,{ref:h},C)}));return n.displayName="CSSMotion",n}(Br);var Qr="add",Jr="keep",eo="remove",to="removed";function no(e){var t;return Ie(Ie({},t=e&&"object"===j(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ro(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(no)}var oo=["component","children","onVisibleChanged","onAllRemoved"],io=["status"],ao=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zr,t=function(t){Cn(r,t);var n=$n(r);function r(){var e;bn(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return R(Sn(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),R(Sn(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Ie(Ie({},e),{},{status:to})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==to})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return wn(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,c=(r.onAllRemoved,A(r,oo)),l=o||w.Fragment,s={};return ao.forEach((function(e){s[e]=c[e],delete c[e]})),delete c.keys,w.createElement(l,c,n.map((function(n,r){var o=n.status,c=A(n,io),l=o===Qr||o===Jr;return w.createElement(e,C({},s,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return i(Ie(Ie({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=ro(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ro(e),a=ro(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Ie(Ie({},e),{},{status:Qr})}))),r=i),n.push(Ie(Ie({},c),{},{status:Jr})),r+=1,t=!0;break}}t||n.push(Ie(Ie({},e),{},{status:eo}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Ie(Ie({},e),{},{status:Qr})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==eo}))).forEach((function(t){t.key===e&&(t.status=Jr)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==to||e.status!==eo}))}}}]),r}(w.Component);R(t,"defaultProps",{component:"div"})}(Br);const co=Zr;function lo(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,l=o.x,s=void 0===l?0:l,u=o.y,f=void 0===u?0:u,d=w.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],m=h[0],g=h[1],b=v[0],y=v[1];m!==b&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=f,g!==y&&["l","r"].includes(g)?"l"===g?p.left=0:p.right=0:p.left=s}return w.createElement("div",{ref:d,className:N()("".concat(t,"-arrow"),a),style:p},c)}function so(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?w.createElement(co,C({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return w.createElement("div",{style:{zIndex:r},className:N()("".concat(t,"-mask"),n)})})):null}var uo=w.memo((function(e){return e.children}),(function(e,t){return t.cache}));const fo=uo;var po=w.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,c=e.onVisibleChanged,l=e.open,s=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,k=e.portal,E=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,j=e.ready,P=e.offsetX,R=e.offsetY,A=e.offsetR,F=e.offsetB,_=e.onAlign,I=e.onPrepare,T=e.stretch,L=e.targetWidth,z=e.targetHeight,H="function"==typeof n?n():n,B=l||s,D=(null==y?void 0:y.length)>0,V=M(w.useState(!y||!D),2),W=V[0],G=V[1];if(Mt((function(){!W&&D&&a&&G(!0)}),[W,D,a]),!W)return null;var X="auto",q={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(j||!l){var K,U=v.points,Y=v.dynamicInset||(null===(K=v._experimental)||void 0===K?void 0:K.dynamicInset),Z=Y&&"r"===U[0][1],Q=Y&&"b"===U[0][0];Z?(q.right=A,q.left=X):(q.left=P,q.right=X),Q?(q.bottom=F,q.top=X):(q.top=R,q.bottom=X)}var J={};return T&&(T.includes("height")&&z?J.height=z:T.includes("minHeight")&&z&&(J.minHeight=z),T.includes("width")&&L?J.width=L:T.includes("minWidth")&&L&&(J.minWidth=L)),l||(J.pointerEvents="none"),w.createElement(k,{open:b||B,getContainer:y&&function(){return y(a)},autoDestroy:x},w.createElement(so,{prefixCls:o,open:l,zIndex:E,mask:d,motion:g}),w.createElement(An,{onResize:_,disabled:!l},(function(e){return w.createElement(co,C({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),c(e)}}),(function(n,a){var c=n.className,s=n.style,d=N()(o,c,r);return w.createElement("div",{ref:Wt(e,t,a),className:d,style:Ie(Ie(Ie(Ie({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),s),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f},p&&w.createElement(lo,{prefixCls:o,arrow:p,arrowPos:h,align:v}),w.createElement(fo,{cache:!l&&!u},H))}))})))}));const ho=po;var vo=w.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Xt(n),i=w.useCallback((function(e){Vt(t,r?r(e):e)}),[r]),a=Gt(i,n.ref);return o?w.cloneElement(n,{ref:a}):n}));const mo=vo,go=w.createContext(null);function bo(e){return e?Array.isArray(e)?e:[e]:[]}const yo=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function wo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xo(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Co(e){return e.ownerDocument.defaultView}function ko(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Co(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function So(e){return Eo(parseFloat(e),0)}function $o(e,t){var n=Ie({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Co(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,c=t.borderLeftWidth,l=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=So(i),v=So(a),m=So(c),g=So(l),b=Eo(Math.round(s.width/d*1e3)/1e3),y=Eo(Math.round(s.height/u*1e3)/1e3),w=(d-p-m-g)*b,x=(u-f-h-v)*y,C=h*y,k=v*y,E=m*b,S=g*b,$=0,O=0;if("clip"===r){var M=So(o);$=M*b,O=M*y}var j=s.x+E-$,P=s.y+C-O,R=j+s.width+2*$-E-S-w,A=P+s.height+2*O-C-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,A)}})),n}function Oo(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Mo(e,t){var n=M(t||[],2),r=n[0],o=n[1];return[Oo(e.width,r),Oo(e.height,o)]}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Po(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Ro(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Ao=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Fo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cr,t=w.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,c=void 0===a?"hover":a,l=t.showAction,s=t.hideAction,u=t.popupVisible,f=t.defaultPopupVisible,d=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,v=t.mouseLeaveDelay,m=void 0===v?.1:v,g=t.focusDelay,b=t.blurDelay,y=t.mask,x=t.maskClosable,C=void 0===x||x,k=t.getPopupContainer,E=t.forceRender,S=t.autoDestroy,$=t.destroyPopupOnHide,O=t.popup,j=t.popupClassName,P=t.popupStyle,R=t.popupPlacement,F=t.builtinPlacements,_=void 0===F?{}:F,I=t.popupAlign,T=t.zIndex,L=t.stretch,z=t.getPopupClassNameFromAlign,H=t.fresh,B=t.alignPoint,D=t.onPopupClick,V=t.onPopupAlign,W=t.arrow,G=t.popupMotion,X=t.maskMotion,q=t.popupTransitionName,K=t.popupAnimation,U=t.maskTransitionName,Y=t.maskAnimation,Z=t.className,Q=t.getTriggerDOMNode,J=A(t,Ao),ee=S||$||!1,te=M(w.useState(!1),2),ne=te[0],re=te[1];Mt((function(){re(At())}),[]);var oe=w.useRef({}),ie=w.useContext(go),ae=w.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),ce=ur(),le=M(w.useState(null),2),se=le[0],ue=le[1],fe=w.useRef(null),de=Et((function(e){fe.current=e,Ht(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(ce,e)})),pe=M(w.useState(null),2),he=pe[0],ve=pe[1],me=w.useRef(null),ge=Et((function(e){Ht(e)&&he!==e&&(ve(e),me.current=e)})),be=w.Children.only(i),ye=(null==be?void 0:be.props)||{},we={},xe=Et((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=Ue(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=Ue(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ce=xo(o,G,K,q),ke=xo(o,X,Y,U),Ee=M(w.useState(f||!1),2),Se=Ee[0],$e=Ee[1],Oe=null!=u?u:Se,Me=Et((function(e){void 0===u&&$e(e)}));Mt((function(){$e(u||!1)}),[u]);var je=w.useRef(Oe);je.current=Oe;var Pe=w.useRef([]);Pe.current=[];var Re=Et((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Oe)!==e&&(Pe.current.push(e),null==d||d(e))})),Ae=w.useRef(),Fe=function(){clearTimeout(Ae.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Re(e):Ae.current=setTimeout((function(){Re(e)}),1e3*t)};w.useEffect((function(){return Fe}),[]);var _e=M(w.useState(!1),2),Te=_e[0],Le=_e[1];Mt((function(e){e&&!Oe||Le(!0)}),[Oe]);var ze=M(w.useState(null),2),He=ze[0],Be=ze[1],De=M(w.useState(null),2),Ve=De[0],We=De[1],Ge=function(e){We([e.clientX,e.clientY])},Xe=function(e,t,n,r,o,i,a){var c=M(w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=c[0],s=c[1],u=w.useRef(0),f=w.useMemo((function(){return t?ko(t):[]}),[t]),d=w.useRef({});e||(d.current={});var p=Et((function(){if(t&&n&&e){var c,l,u,p,h,v=t,m=v.ownerDocument,g=Co(v).getComputedStyle(v),b=g.width,y=g.height,w=g.position,x=v.style.left,C=v.style.top,k=v.style.right,E=v.style.bottom,S=v.style.overflow,$=Ie(Ie({},o[r]),i),O=m.createElement("div");if(null===(c=v.parentElement)||void 0===c||c.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var j,P,R=n.getBoundingClientRect();R.x=null!==(j=R.x)&&void 0!==j?j:R.left,R.y=null!==(P=R.y)&&void 0!==P?P:R.top,h={x:R.x,y:R.y,width:R.width,height:R.height}}var A=v.getBoundingClientRect();A.x=null!==(l=A.x)&&void 0!==l?l:A.left,A.y=null!==(u=A.y)&&void 0!==u?u:A.top;var F=m.documentElement,N=F.clientWidth,_=F.clientHeight,I=F.scrollWidth,T=F.scrollHeight,L=F.scrollTop,z=F.scrollLeft,H=A.height,B=A.width,D=h.height,V=h.width,W={left:0,top:0,right:N,bottom:_},G={left:-z,top:-L,right:I-z,bottom:T-L},X=$.htmlRegion,q="visible",K="visibleFirst";"scroll"!==X&&X!==K&&(X=q);var U=X===K,Y=$o(G,f),Z=$o(W,f),Q=X===q?Z:Y,J=U?Z:Q;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var ee=v.getBoundingClientRect();v.style.left=x,v.style.top=C,v.style.right=k,v.style.bottom=E,v.style.overflow=S,null===(p=v.parentElement)||void 0===p||p.removeChild(O);var te=Eo(Math.round(B/parseFloat(b)*1e3)/1e3),ne=Eo(Math.round(H/parseFloat(y)*1e3)/1e3);if(0===te||0===ne||Ht(n)&&!yo(n))return;var re=$.offset,oe=$.targetOffset,ie=M(Mo(A,re),2),ae=ie[0],ce=ie[1],le=M(Mo(h,oe),2),se=le[0],ue=le[1];h.x-=se,h.y-=ue;var fe=M($.points||[],2),de=fe[0],pe=jo(fe[1]),he=jo(de),ve=Po(h,pe),me=Po(A,he),ge=Ie({},$),be=ve.x-me.x+ae,ye=ve.y-me.y+ce;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,r=A.x+e,o=A.y+t,i=r+B,a=o+H,c=Math.max(r,n.left),l=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-c)*(u-l))}var we,xe,Ce,ke,Ee=pt(be,ye),Se=pt(be,ye,Z),$e=Po(h,["t","l"]),Oe=Po(A,["t","l"]),Me=Po(h,["b","r"]),je=Po(A,["b","r"]),Pe=$.overflow||{},Re=Pe.adjustX,Ae=Pe.adjustY,Fe=Pe.shiftX,Ne=Pe.shiftY,_e=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=A.y+ye,xe=we+H,Ce=A.x+be,ke=Ce+B}ht();var Te=_e(Ae),Le=he[0]===pe[0];if(Te&&"t"===he[0]&&(xe>J.bottom||d.current.bt)){var ze=ye;Le?ze-=H-D:ze=$e.y-je.y-ce;var He=pt(be,ze),Be=pt(be,ze,Z);He>Ee||He===Ee&&(!U||Be>=Se)?(d.current.bt=!0,ye=ze,ce=-ce,ge.points=[Ro(he,0),Ro(pe,0)]):d.current.bt=!1}if(Te&&"b"===he[0]&&(we<J.top||d.current.tb)){var De=ye;Le?De+=H-D:De=Me.y-Oe.y-ce;var Ve=pt(be,De),We=pt(be,De,Z);Ve>Ee||Ve===Ee&&(!U||We>=Se)?(d.current.tb=!0,ye=De,ce=-ce,ge.points=[Ro(he,0),Ro(pe,0)]):d.current.tb=!1}var Ge=_e(Re),Xe=he[1]===pe[1];if(Ge&&"l"===he[1]&&(ke>J.right||d.current.rl)){var qe=be;Xe?qe-=B-V:qe=$e.x-je.x-ae;var Ke=pt(qe,ye),Ue=pt(qe,ye,Z);Ke>Ee||Ke===Ee&&(!U||Ue>=Se)?(d.current.rl=!0,be=qe,ae=-ae,ge.points=[Ro(he,1),Ro(pe,1)]):d.current.rl=!1}if(Ge&&"r"===he[1]&&(Ce<J.left||d.current.lr)){var Ye=be;Xe?Ye+=B-V:Ye=Me.x-Oe.x-ae;var Ze=pt(Ye,ye),Qe=pt(Ye,ye,Z);Ze>Ee||Ze===Ee&&(!U||Qe>=Se)?(d.current.lr=!0,be=Ye,ae=-ae,ge.points=[Ro(he,1),Ro(pe,1)]):d.current.lr=!1}ht();var Je=!0===Fe?0:Fe;"number"==typeof Je&&(Ce<Z.left&&(be-=Ce-Z.left-ae,h.x+V<Z.left+Je&&(be+=h.x-Z.left+V-Je)),ke>Z.right&&(be-=ke-Z.right-ae,h.x>Z.right-Je&&(be+=h.x-Z.right+Je)));var et=!0===Ne?0:Ne;"number"==typeof et&&(we<Z.top&&(ye-=we-Z.top-ce,h.y+D<Z.top+et&&(ye+=h.y-Z.top+D-et)),xe>Z.bottom&&(ye-=xe-Z.bottom-ce,h.y>Z.bottom-et&&(ye+=h.y-Z.bottom+et)));var tt=A.x+be,nt=tt+B,rt=A.y+ye,ot=rt+H,it=h.x,at=it+V,ct=h.y,lt=ct+D,st=(Math.max(tt,it)+Math.min(nt,at))/2-tt,ut=(Math.max(rt,ct)+Math.min(ot,lt))/2-rt;null==a||a(t,ge);var ft=ee.right-A.x-(be+A.width),dt=ee.bottom-A.y-(ye+A.height);1===te&&(be=Math.round(be),ft=Math.round(ft)),1===ne&&(ye=Math.round(ye),dt=Math.round(dt)),s({ready:!0,offsetX:be/te,offsetY:ye/ne,offsetR:ft/te,offsetB:dt/ne,arrowX:st/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ge})}})),h=function(){s((function(e){return Ie(Ie({},e),{},{ready:!1})}))};return Mt(h,[r]),Mt((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(Oe,se,B&&null!==Ve?Ve:he,R,_,I,V),qe=M(Xe,11),Ke=qe[0],Ye=qe[1],Ze=qe[2],Qe=qe[3],Je=qe[4],et=qe[5],tt=qe[6],nt=qe[7],rt=qe[8],ot=qe[9],it=qe[10],at=function(e,t,n,r){return w.useMemo((function(){var o=bo(null!=n?n:t),i=bo(null!=r?r:t),a=new Set(o),c=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[a,c]}),[e,t,n,r])}(ne,c,l,s),ct=M(at,2),lt=ct[0],st=ct[1],ut=lt.has("click"),ft=st.has("click")||st.has("contextMenu"),dt=Et((function(){Te||it()}));!function(e,t,n,r){Mt((function(){if(e&&t&&n){var o=n,i=ko(t),a=ko(o),c=Co(o),l=new Set([c].concat(_t(i),_t(a)));function s(){r(),je.current&&B&&ft&&Ne(!1)}return l.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),c.addEventListener("resize",s,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",s),c.removeEventListener("resize",s)}))}}}),[e,t,n])}(Oe,he,se,dt),Mt((function(){dt()}),[Ve,R]),Mt((function(){!Oe||null!=_&&_[R]||dt()}),[JSON.stringify(I)]);var pt=w.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c,l=i[a];if(wo(null===(c=e[l])||void 0===c?void 0:c.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(_,o,ot,B);return N()(e,null==z?void 0:z(ot))}),[ot,z,_,o,B]);w.useImperativeHandle(n,(function(){return{nativeElement:me.current,popupElement:fe.current,forceAlign:dt}}));var ht=M(w.useState(0),2),vt=ht[0],mt=ht[1],gt=M(w.useState(0),2),bt=gt[0],yt=gt[1],wt=function(){if(L&&he){var e=he.getBoundingClientRect();mt(e.width),yt(e.height)}};function xt(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Ne(t,n);for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(c))}}Mt((function(){He&&(it(),He(),Be(null))}),[He]),(ut||ft)&&(we.onClick=function(e){var t;je.current&&ft?Ne(!1):!je.current&&ut&&(Ge(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(e,t,n,r,o,i,a,c){var l=w.useRef(e);l.current=e,w.useEffect((function(){if(t&&r&&(!o||i)){var e=function(e){var t;l.current&&!a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},s=Co(r);s.addEventListener("mousedown",e,!0),s.addEventListener("contextmenu",e,!0);var u=Ue(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){s.removeEventListener("mousedown",e,!0),s.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,o,i])}(Oe,ft,he,se,y,C,xe,Ne);var Ct,kt,St=lt.has("hover"),$t=st.has("hover");St&&(xt("onMouseEnter",!0,h,(function(e){Ge(e)})),xt("onPointerEnter",!0,h,(function(e){Ge(e)})),Ct=function(e){(Oe||Te)&&null!=se&&se.contains(e.target)&&Ne(!0,h)},B&&(we.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),$t&&(xt("onMouseLeave",!1,m),xt("onPointerLeave",!1,m),kt=function(){Ne(!1,m)}),lt.has("focus")&&xt("onFocus",!0,g),st.has("focus")&&xt("onBlur",!1,b),lt.has("contextMenu")&&(we.onContextMenu=function(e){var t;je.current&&st.has("contextMenu")?Ne(!1):(Ge(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Z&&(we.className=N()(ye.className,Z));var Ot=Ie(Ie({},ye),we),jt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(jt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(r)),J[e].apply(J,r)})}));var Pt=w.cloneElement(be,Ie(Ie({},Ot),jt)),Rt={x:et,y:tt},Ft=W?Ie({},!0!==W?W:{}):null;return w.createElement(w.Fragment,null,w.createElement(An,{disabled:!Oe,ref:ge,onResize:function(){wt(),dt()}},w.createElement(mo,{getTriggerDOMNode:Q},Pt)),w.createElement(go.Provider,{value:ae},w.createElement(ho,{portal:e,ref:de,prefixCls:o,popup:O,className:N()(j,pt),style:P,target:he,onMouseEnter:Ct,onMouseLeave:kt,onPointerEnter:Ct,zIndex:T,open:Oe,keepDom:Te,fresh:H,onClick:D,mask:y,motion:Ce,maskMotion:ke,onVisibleChanged:function(e){Le(!1),it(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){wt(),Be((function(){return e}))}))},forceRender:E,autoDestroy:ee,getPopupContainer:k,align:ot,arrow:Ft,arrowPos:Rt,ready:Ke,offsetX:Ye,offsetY:Ze,offsetR:Qe,offsetB:Je,onAlign:dt,stretch:L,targetWidth:vt/nt,targetHeight:bt/rt})))}));return t}(cr);var No={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=No.F1&&t<=No.F12)return!1;switch(t){case No.ALT:case No.CAPS_LOCK:case No.CONTEXT_MENU:case No.CTRL:case No.DOWN:case No.END:case No.ESC:case No.HOME:case No.INSERT:case No.LEFT:case No.MAC_FF_META:case No.META:case No.NUMLOCK:case No.NUM_CENTER:case No.PAGE_DOWN:case No.PAGE_UP:case No.PAUSE:case No.PRINT_SCREEN:case No.RIGHT:case No.SHIFT:case No.UP:case No.WIN_KEY:case No.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=No.ZERO&&e<=No.NINE)return!0;if(e>=No.NUM_ZERO&&e<=No.NUM_MULTIPLY)return!0;if(e>=No.A&&e<=No.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case No.SPACE:case No.QUESTION_MARK:case No.NUM_PLUS:case No.NUM_MINUS:case No.NUM_PERIOD:case No.NUM_DIVISION:case No.SEMICOLON:case No.DASH:case No.EQUALS:case No.COMMA:case No.PERIOD:case No.SLASH:case No.APOSTROPHE:case No.SINGLE_QUOTE:case No.OPEN_SQUARE_BRACKET:case No.BACKSLASH:case No.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const _o=No;var Io=_o.ESC,To=_o.TAB;const Lo=(0,w.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,w.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=Wt(t,null==i?void 0:i.ref);return x().createElement(x().Fragment,null,r&&x().createElement("div",{className:"".concat(o,"-arrow")}),x().cloneElement(i,{ref:Xt(i)?a:void 0}))}));var zo={adjustX:1,adjustY:1},Ho=[0,0];const Bo={topLeft:{points:["bl","tl"],overflow:zo,offset:[0,-4],targetOffset:Ho},top:{points:["bc","tc"],overflow:zo,offset:[0,-4],targetOffset:Ho},topRight:{points:["br","tr"],overflow:zo,offset:[0,-4],targetOffset:Ho},bottomLeft:{points:["tl","bl"],overflow:zo,offset:[0,4],targetOffset:Ho},bottom:{points:["tc","bc"],overflow:zo,offset:[0,4],targetOffset:Ho},bottomRight:{points:["tr","br"],overflow:zo,offset:[0,4],targetOffset:Ho}};var Do=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vo(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,c=e.transitionName,l=e.animation,s=e.align,u=e.placement,f=void 0===u?"bottomLeft":u,d=e.placements,p=void 0===d?Bo:d,h=e.getPopupContainer,v=e.showAction,m=e.hideAction,g=e.overlayClassName,b=e.overlayStyle,y=e.visible,k=e.trigger,E=void 0===k?["hover"]:k,S=e.autoFocus,$=e.overlay,O=e.children,j=e.onVisibleChange,P=A(e,Do),F=M(x().useState(),2),_=F[0],I=F[1],T="visible"in e?y:_,L=x().useRef(null),z=x().useRef(null),H=x().useRef(null);x().useImperativeHandle(t,(function(){return L.current}));var B=function(e){I(e),null==j||j(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=w.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case Io:c();break;case To:var t=!1;a.current||(t=l()),t?e.preventDefault():c()}};w.useEffect((function(){return t?(window.addEventListener("keydown",s),o&&Hn(l,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:T,triggerRef:H,onVisibleChange:B,autoFocus:S,overlayRef:z});var D,V,W,G=function(){return x().createElement(Lo,{ref:z,overlay:$,prefixCls:a,arrow:o})},X=x().cloneElement(O,{className:N()(null===(n=O.props)||void 0===n?void 0:n.className,T&&(D=e.openClassName,void 0!==D?D:"".concat(a,"-open"))),ref:Xt(O)?Wt(H,O.ref):void 0}),q=m;return q||-1===E.indexOf("contextMenu")||(q=["click"]),x().createElement(Fo,C({builtinPlacements:p},P,{prefixCls:a,ref:L,popupClassName:N()(g,R({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:E,showAction:v,hideAction:q,popupPlacement:f,popupAlign:s,popupTransitionName:c,popupAnimation:l,popupVisible:T,stretch:(V=e.minOverlayWidthMatchTrigger,W=e.alignPoint,("minOverlayWidthMatchTrigger"in e?V:!W)?"minWidth":""),popup:"function"==typeof $?G:G(),onPopupVisibleChange:B,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:h}),X)}const Wo=x().forwardRef(Vo);var Go=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Xo=void 0;function qo(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,c=e.responsiveDisabled,l=e.registerSize,s=e.itemKey,u=e.className,f=e.style,d=e.children,p=e.display,h=e.order,v=e.component,m=void 0===v?"div":v,g=A(e,Go),b=a&&!p;function y(e){l(s,e)}w.useEffect((function(){return function(){y(null)}}),[]);var x,k=i&&o!==Xo?i(o):d;r||(x={opacity:b?0:1,height:b?0:Xo,overflowY:b?"hidden":Xo,order:a?h:Xo,pointerEvents:b?"none":Xo,position:b?"absolute":Xo});var E={};b&&(E["aria-hidden"]=!0);var S=w.createElement(m,C({className:N()(!r&&n,u),style:Ie(Ie({},x),f)},E,g,{ref:t}),k);return a&&(S=w.createElement(An,{onResize:function(e){y(e.offsetWidth)},disabled:c},S)),S}var Ko=w.forwardRef(qo);Ko.displayName="Item";const Uo=Ko;function Yo(e,t){var n=M(w.useState(t),2),r=n[0],o=n[1];return[r,Et((function(t){e((function(){o(t)}))}))]}var Zo=x().createContext(null),Qo=["component"],Jo=["className"],ei=["className"],ti=function(e,t){var n=w.useContext(Zo);if(!n){var r=e.component,o=void 0===r?"div":r,i=A(e,Qo);return w.createElement(o,C({},i,{ref:t}))}var a=n.className,c=A(n,Jo),l=e.className,s=A(e,ei);return w.createElement(Zo.Provider,{value:null},w.createElement(Uo,C({ref:t,className:N()(a,l)},c,s)))},ni=w.forwardRef(ti);ni.displayName="RawItem";const ri=ni;var oi=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ii="responsive",ai="invalidate";function ci(e){return"+ ".concat(e.length," ...")}function li(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,c=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,f=void 0===u?10:u,d=e.ssr,p=e.style,h=e.className,v=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,x=void 0===y?"div":y,k=e.itemComponent,E=e.onVisibleChange,S=A(e,oi),$="full"===d,O=(n=w.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Hn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Lt.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),j=M(Yo(O,null),2),P=j[0],R=j[1],F=P||0,_=M(Yo(O,new Map),2),I=_[0],T=_[1],L=M(Yo(O,0),2),z=L[0],H=L[1],B=M(Yo(O,0),2),D=B[0],V=B[1],W=M(Yo(O,0),2),G=W[0],X=W[1],q=M((0,w.useState)(null),2),K=q[0],U=q[1],Y=M((0,w.useState)(null),2),Z=Y[0],Q=Y[1],J=w.useMemo((function(){return null===Z&&$?Number.MAX_SAFE_INTEGER:Z||0}),[Z,P]),ee=M((0,w.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(o,"-item"),oe=Math.max(z,D),ie=v===ii,ae=a.length&&ie,ce=v===ai,le=ae||"number"==typeof v&&a.length>v,se=(0,w.useMemo)((function(){var e=a;return ae?e=null===P&&$?a:a.slice(0,Math.min(a.length,F/f)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,f,P,v,ae]),ue=(0,w.useMemo)((function(){return ae?a.slice(J+1):a.slice(se.length)}),[a,se,ae,J]),fe=(0,w.useCallback)((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),de=(0,w.useCallback)(c||function(e){return e},[c]);function pe(e,t,n){(Z!==e||void 0!==t&&t!==K)&&(Q(e),n||(ne(e<a.length-1),null==E||E(e)),void 0!==t&&U(t))}function he(e,t){T((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ve(e){return I.get(fe(se[e],e))}Mt((function(){if(F&&"number"==typeof oe&&se){var e=G,t=se.length,n=t-1;if(!t)return void pe(0,null);for(var r=0;r<t;r+=1){var o=ve(r);if($&&(o=o||0),void 0===o){pe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=F||r===n-1&&e+ve(n)<=F){pe(n,null);break}if(e+oe>F){pe(r-1,e-o-G+D);break}}b&&ve(0)+G>F&&U(null)}}),[F,I,D,G,fe,se]);var me=te&&!!ue.length,ge={};null!==K&&ae&&(ge={position:"absolute",left:K,top:0});var be,ye={prefixCls:re,responsive:ae,component:k,invalidate:ce},we=l?function(e,t){var n=fe(e,t);return w.createElement(Zo.Provider,{key:n,value:Ie(Ie({},ye),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=J})},l(e,t))}:function(e,t){var n=fe(e,t);return w.createElement(Uo,C({},ye,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:he,display:t<=J}))},xe={order:me?J:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){V(t),H(D)},display:me};if(g)g&&(be=w.createElement(Zo.Provider,{value:Ie(Ie({},ye),xe)},g(ue)));else{var Ce=m||ci;be=w.createElement(Uo,C({},ye,xe),"function"==typeof Ce?Ce(ue):Ce)}var ke=w.createElement(x,C({className:N()(!ce&&o,h),style:p,ref:t},S),se.map(we),le?be:null,b&&w.createElement(Uo,C({},ye,{responsive:ie,responsiveDisabled:!ae,order:J,className:"".concat(re,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:ge}),b));return ie&&(ke=w.createElement(An,{onResize:function(e,t){R(t.clientWidth)},disabled:!ae},ke)),ke}var si=w.forwardRef(li);si.displayName="Overflow",si.Item=ri,si.RESPONSIVE=ii,si.INVALIDATE=ai;const ui=si,fi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(nt(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var c=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],c))return!1;return!0}if(t&&o&&"object"===j(t)&&"object"===j(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],c)}))}return!1}(e,t)};var di=w.createContext(null);function pi(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function hi(e){return pi(w.useContext(di),e)}var vi=["children","locked"],mi=w.createContext(null);function gi(e){var t=e.children,n=e.locked,r=A(e,vi),o=w.useContext(mi),i=Dt((function(){return e=r,t=Ie({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&fi(e[1],t[1],!0))}));return w.createElement(mi.Provider,{value:i},t)}var bi=[],yi=w.createContext(null);function wi(){return w.useContext(yi)}var xi=w.createContext(bi);function Ci(e){var t=w.useContext(xi);return w.useMemo((function(){return void 0!==e?[].concat(_t(t),[e]):t}),[t,e])}var ki=w.createContext(null);const Ei=w.createContext({});function Si(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(yo(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var $i=_o.LEFT,Oi=_o.RIGHT,Mi=_o.UP,ji=_o.DOWN,Pi=_o.ENTER,Ri=_o.ESC,Ai=_o.HOME,Fi=_o.END,Ni=[Mi,ji,$i,Oi];function _i(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_t(e.querySelectorAll("*")).filter((function(e){return Si(e,t)}));return Si(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Ii(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=_i(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Ti=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(pi(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var Li="__RC_UTIL_PATH_SPLIT__",zi=function(e){return e.join(Li)},Hi="rc-menu-more";function Bi(e){var t=w.useRef(e);t.current=e;var n=w.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Di=Math.random().toFixed(5).toString().slice(2),Vi=0;function Wi(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Gi(e,t,n,r){var o=w.useContext(mi),i=o.activeKey,a=o.onActive,c=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),l}function Xi(e){var t=w.useContext(mi),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function qi(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=w.createElement(n,Ie({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var Ki=["item"];function Ui(e){var t=e.item,n=A(e,Ki);return Object.defineProperty(n,"item",{get:function(){return nt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Yi=["title","attribute","elementRef"],Zi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Qi=["active"],Ji=function(e){Cn(n,e);var t=$n(n);function n(){return bn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Wi(A(e,Yi),["eventKey","popupClassName","popupOffset","onTitleClick"]);return nt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),w.createElement(ui.Item,C({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(w.Component),ea=w.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,c=e.children,l=e.role,s=e.onMouseEnter,u=e.onMouseLeave,f=e.onClick,d=e.onKeyDown,p=e.onFocus,h=A(e,Zi),v=hi(o),m=w.useContext(mi),g=m.prefixCls,b=m.onItemClick,y=m.disabled,x=m.overflowDisabled,k=m.itemIcon,E=m.selectedKeys,S=m.onActive,$=w.useContext(Ei)._internalRenderMenuItem,O="".concat(g,"-item"),M=w.useRef(),j=w.useRef(),P=y||i,F=Gt(t,j),_=Ci(o),I=function(e){return{key:o,keyPath:_t(_).reverse(),item:M.current,domEvent:e}},T=a||k,L=Gi(o,P,s,u),z=L.active,H=A(L,Qi),B=E.includes(o),D=Xi(_.length),V={};"option"===e.role&&(V["aria-selected"]=B);var W=w.createElement(Ji,C({ref:M,elementRef:F,role:null===l?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&v?null:v},h,H,V,{component:"li","aria-disabled":i,style:Ie(Ie({},D),n),className:N()(O,R(R(R({},"".concat(O,"-active"),z),"".concat(O,"-selected"),B),"".concat(O,"-disabled"),P),r),onClick:function(e){if(!P){var t=I(e);null==f||f(Ui(t)),b(t)}},onKeyDown:function(e){if(null==d||d(e),e.which===_o.ENTER){var t=I(e);null==f||f(Ui(t)),b(t)}},onFocus:function(e){S(o),null==p||p(e)}}),c,w.createElement(qi,{props:Ie(Ie({},e),{},{isSelected:B}),icon:T}));return $&&(W=$(W,e,{selected:B})),W}));function ta(e,t){var n=e.eventKey,r=wi(),o=Ci(n);return w.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:w.createElement(ea,C({},e,{ref:t}))}const na=w.forwardRef(ta);var ra=["className","children"],oa=function(e,t){var n=e.className,r=e.children,o=A(e,ra),i=w.useContext(mi),a=i.prefixCls,c=i.mode,l=i.rtl;return w.createElement("ul",C({className:N()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},ia=w.forwardRef(oa);ia.displayName="SubMenuList";const aa=ia;function ca(e,t){return Tt(e).map((function(e,n){if(w.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(_t(t),[n]).join("-")));var c={key:a,eventKey:a};return w.cloneElement(e,c)}return e}))}var la={adjustX:1,adjustY:1},sa={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},leftTop:{points:["tr","tl"],overflow:la},leftBottom:{points:["br","bl"],overflow:la},rightTop:{points:["tl","tr"],overflow:la},rightBottom:{points:["bl","br"],overflow:la}},ua={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},rightTop:{points:["tr","tl"],overflow:la},rightBottom:{points:["br","bl"],overflow:la},leftTop:{points:["tl","tr"],overflow:la},leftBottom:{points:["bl","br"],overflow:la}};function fa(e,t,n){return t||(n?n[e]||n.other:void 0)}var da={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pa(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,c=e.popupOffset,l=e.disabled,s=e.mode,u=e.onVisibleChange,f=w.useContext(mi),d=f.getPopupContainer,p=f.rtl,h=f.subMenuOpenDelay,v=f.subMenuCloseDelay,m=f.builtinPlacements,g=f.triggerSubMenuAction,b=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,C=f.defaultMotions,k=M(w.useState(!1),2),E=k[0],S=k[1],$=Ie(Ie({},p?ua:sa),m),O=da[s],j=fa(s,x,C),P=w.useRef(j);"inline"!==s&&(P.current=j);var A=Ie(Ie({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=w.useRef();return w.useEffect((function(){return F.current=Hn((function(){S(n)})),function(){Hn.cancel(F.current)}}),[n]),w.createElement(Fo,{prefixCls:t,popupClassName:N()("".concat(t,"-popup"),R({},"".concat(t,"-rtl"),p),a,y),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:d,builtinPlacements:$,popupPlacement:O,popupVisible:E,popup:o,popupStyle:i,popupAlign:c&&{offset:c},action:l?[]:[g],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:b,popupMotion:A,fresh:!0},r)}function ha(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=w.useContext(mi),c=a.prefixCls,l=a.forceSubMenuRender,s=a.motion,u=a.defaultMotions,f=a.mode,d=w.useRef(!1);d.current=f===i;var p=M(w.useState(!d.current),2),h=p[0],v=p[1],m=!!d.current&&n;w.useEffect((function(){d.current&&v(!1)}),[f]);var g=Ie({},fa(i,s,u));r.length>1&&(g.motionAppear=!1);var b=g.onVisibleChanged;return g.onVisibleChanged=function(e){return d.current||e||v(!0),null==b?void 0:b(e)},h?null:w.createElement(gi,{mode:i,locked:!d.current},w.createElement(co,C({visible:m},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return w.createElement(aa,{id:t,className:n,style:r},o)})))}var va=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ma=["active"],ga=w.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),c=e.internalPopupClose,l=e.children,s=e.itemIcon,u=e.expandIcon,f=e.popupClassName,d=e.popupOffset,p=e.popupStyle,h=e.onClick,v=e.onMouseEnter,m=e.onMouseLeave,g=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,x=A(e,va),k=hi(i),E=w.useContext(mi),S=E.prefixCls,$=E.mode,O=E.openKeys,j=E.disabled,P=E.overflowDisabled,F=E.activeKey,_=E.selectedKeys,I=E.itemIcon,T=E.expandIcon,L=E.onItemClick,z=E.onOpenChange,H=E.onActive,B=w.useContext(Ei)._internalRenderSubMenuItem,D=w.useContext(ki).isSubPathKey,V=Ci(),W="".concat(S,"-submenu"),G=j||a,X=w.useRef(),q=w.useRef(),K=null!=s?s:I,U=null!=u?u:T,Y=O.includes(i),Z=!P&&Y,Q=D(_,i),J=Gi(i,G,b,y),ee=J.active,te=A(J,ma),ne=M(w.useState(!1),2),re=ne[0],oe=ne[1],ie=function(e){G||oe(e)},ae=w.useMemo((function(){return ee||"inline"!==$&&(re||D([F],i))}),[$,ee,F,re,i,D]),ce=Xi(V.length),le=Bi((function(e){null==h||h(Ui(e)),L(e)})),se=k&&"".concat(k,"-popup"),ue=w.createElement("div",C({role:"menuitem",style:ce,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:X,title:"string"==typeof o?o:null,"data-menu-id":P&&k?null:k,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":G,onClick:function(e){G||(null==g||g({key:i,domEvent:e}),"inline"===$&&z(i,!Y))},onFocus:function(){H(i)}},te),o,w.createElement(qi,{icon:"horizontal"!==$?U:void 0,props:Ie(Ie({},e),{},{isOpen:Z,isSubMenu:!0})},w.createElement("i",{className:"".concat(W,"-arrow")}))),fe=w.useRef($);if("inline"!==$&&V.length>1?fe.current="vertical":fe.current=$,!P){var de=fe.current;ue=w.createElement(pa,{mode:de,prefixCls:W,visible:!c&&Z&&"inline"!==$,popupClassName:f,popupOffset:d,popupStyle:p,popup:w.createElement(gi,{mode:"horizontal"===de?"vertical":de},w.createElement(aa,{id:se,ref:q},l)),disabled:G,onVisibleChange:function(e){"inline"!==$&&z(i,e)}},ue)}var pe=w.createElement(ui.Item,C({ref:t,role:"none"},x,{component:"li",style:n,className:N()(W,"".concat(W,"-").concat($),r,R(R(R(R({},"".concat(W,"-open"),Z),"".concat(W,"-active"),ae),"".concat(W,"-selected"),Q),"".concat(W,"-disabled"),G)),onMouseEnter:function(e){ie(!0),null==v||v({key:i,domEvent:e})},onMouseLeave:function(e){ie(!1),null==m||m({key:i,domEvent:e})}}),ue,!P&&w.createElement(ha,{id:se,open:Z,keyPath:V},l));return B&&(pe=B(pe,e,{selected:Q,active:ae,open:Z,disabled:G})),w.createElement(gi,{onItemClick:le,mode:"horizontal"===$?"vertical":$,itemIcon:K,expandIcon:U},pe)}));const ba=w.forwardRef((function(e,t){var n,r=e.eventKey,o=e.children,i=Ci(r),a=ca(o,i),c=wi();return w.useEffect((function(){if(c)return c.registerPath(r,i),function(){c.unregisterPath(r,i)}}),[i]),n=c?a:w.createElement(ga,C({ref:t},e),a),w.createElement(xi.Provider,{value:i},n)}));function ya(e){var t=e.className,n=e.style,r=w.useContext(mi).prefixCls;return wi()?null:w.createElement("li",{role:"separator",className:N()("".concat(r,"-item-divider"),t),style:n})}var wa=["className","title","eventKey","children"],xa=w.forwardRef((function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),i=A(e,wa),a=w.useContext(mi).prefixCls,c="".concat(a,"-item-group");return w.createElement("li",C({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:N()(c,n)}),w.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),w.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}));const Ca=w.forwardRef((function(e,t){var n=e.eventKey,r=ca(e.children,Ci(n));return wi()?r:w.createElement(xa,C({ref:t},Wi(e,["warnKey"])),r)}));var ka=["label","children","key","type","extra"];function Ea(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===j(e)){var l=e,s=l.label,u=l.children,f=l.key,d=l.type,p=l.extra,h=A(l,ka),v=null!=f?f:"tmp-".concat(c);return u||"group"===d?"group"===d?w.createElement(o,C({key:v},h,{title:s}),Ea(u,t,n)):w.createElement(i,C({key:v},h,{title:s}),Ea(u,t,n)):"divider"===d?w.createElement(a,C({key:v},h)):w.createElement(r,C({key:v},h),s,(!!p||0===p)&&w.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null})).filter((function(e){return e}))}function Sa(e,t,n,r,o){var i=e,a=Ie({divider:ya,item:na,group:Ca,submenu:ba},r);return t&&(i=Ea(t,a,o)),ca(i,n)}var $a=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Oa=[],Ma=w.forwardRef((function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,c=r.style,l=r.className,s=r.tabIndex,u=void 0===s?0:s,f=r.items,d=r.children,p=r.direction,h=r.id,v=r.mode,m=void 0===v?"vertical":v,g=r.inlineCollapsed,b=r.disabled,y=r.disabledOverflow,x=r.subMenuOpenDelay,k=void 0===x?.1:x,E=r.subMenuCloseDelay,S=void 0===E?.1:E,$=r.forceSubMenuRender,O=r.defaultOpenKeys,j=r.openKeys,P=r.activeKey,F=r.defaultActiveFirst,_=r.selectable,I=void 0===_||_,T=r.multiple,L=void 0!==T&&T,z=r.defaultSelectedKeys,H=r.selectedKeys,B=r.onSelect,D=r.onDeselect,V=r.inlineIndent,W=void 0===V?24:V,G=r.motion,X=r.defaultMotions,q=r.triggerSubMenuAction,K=void 0===q?"hover":q,U=r.builtinPlacements,Y=r.itemIcon,Z=r.expandIcon,Q=r.overflowedIndicator,J=void 0===Q?"...":Q,ee=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ne=r.onClick,re=r.onOpenChange,oe=r.onKeyDown,ie=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ae=r._internalRenderSubMenuItem,ce=r._internalComponents,le=A(r,$a),se=M(w.useMemo((function(){return[Sa(d,f,Oa,ce,i),Sa(d,f,Oa,{},i)]}),[d,f,ce]),2),ue=se[0],fe=se[1],de=M(w.useState(!1),2),pe=de[0],he=de[1],ve=w.useRef(),me=function(e){var t=M(Rt(e,{value:e}),2),n=t[0],r=t[1];return w.useEffect((function(){Vi+=1;var e="".concat(Di,"-").concat(Vi);r("rc-menu-uuid-".concat(e))}),[]),n}(h),ge="rtl"===p,be=Rt(O,{value:j,postState:function(e){return e||Oa}}),ye=M(be,2),we=ye[0],xe=ye[1],Ce=function(e){function t(){xe(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Lt.flushSync)(t):t()},ke=M(w.useState(we),2),Ee=ke[0],Se=ke[1],$e=w.useRef(!1),Oe=M(w.useMemo((function(){return"inline"!==m&&"vertical"!==m||!g?[m,!1]:["vertical",g]}),[m,g]),2),Me=Oe[0],je=Oe[1],Pe="inline"===Me,Re=M(w.useState(Me),2),Ae=Re[0],Fe=Re[1],Ne=M(w.useState(je),2),_e=Ne[0],Te=Ne[1];w.useEffect((function(){Fe(Me),Te(je),$e.current&&(Pe?xe(Ee):Ce(Oa))}),[Me,je]);var Le=M(w.useState(0),2),ze=Le[0],He=Le[1],Be=ze>=ue.length-1||"horizontal"!==Ae||y;w.useEffect((function(){Pe&&Se(we)}),[we]),w.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var De=function(){var e=M(w.useState({}),2)[1],t=(0,w.useRef)(new Map),n=(0,w.useRef)(new Map),r=M(w.useState([]),2),o=r[0],i=r[1],a=(0,w.useRef)(0),c=(0,w.useRef)(!1),l=(0,w.useCallback)((function(r,o){var i=zi(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var l,s=a.current;l=function(){s===a.current&&(c.current||e({}))},Promise.resolve().then(l)}),[]),s=(0,w.useCallback)((function(e,r){var o=zi(r);n.current.delete(o),t.current.delete(e)}),[]),u=(0,w.useCallback)((function(e){i(e)}),[]),f=(0,w.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(Li);return n&&o.includes(r[0])&&r.unshift(Hi),r}),[o]),d=(0,w.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),p=(0,w.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(Li),o=new Set;return _t(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return w.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:l,unregisterPath:s,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:f,getKeys:function(){var e=_t(t.current.keys());return o.length&&e.push(Hi),e},getSubPathKeys:p}}(),Ve=De.registerPath,We=De.unregisterPath,Ge=De.refreshOverflowKeys,Xe=De.isSubPathKey,qe=De.getKeyPath,Ke=De.getKeys,Ue=De.getSubPathKeys,Ye=w.useMemo((function(){return{registerPath:Ve,unregisterPath:We}}),[Ve,We]),Ze=w.useMemo((function(){return{isSubPathKey:Xe}}),[Xe]);w.useEffect((function(){Ge(Be?Oa:ue.slice(ze+1).map((function(e){return e.key})))}),[ze,Be]);var Qe=M(Rt(P||F&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:P}),2),Je=Qe[0],et=Qe[1],tt=Bi((function(e){et(e)})),nt=Bi((function(){et(void 0)}));(0,w.useImperativeHandle)(t,(function(){return{list:ve.current,focus:function(e){var t,n,r=Ke(),o=Ti(r,me),i=o.elements,a=o.key2element,c=o.element2key,l=_i(ve.current,i),s=null!=Je?Je:l[0]?c.get(l[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var rt=Rt(z||[],{value:H,postState:function(e){return Array.isArray(e)?e:null==e?Oa:[e]}}),ot=M(rt,2),it=ot[0],at=ot[1],ct=Bi((function(e){null==ne||ne(Ui(e)),function(e){if(I){var t,n=e.key,r=it.includes(n);t=L?r?it.filter((function(e){return e!==n})):[].concat(_t(it),[n]):[n],at(t);var o=Ie(Ie({},e),{},{selectedKeys:t});r?null==D||D(o):null==B||B(o)}!L&&we.length&&"inline"!==Ae&&Ce(Oa)}(e)})),lt=Bi((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ae){var r=Ue(e);n=n.filter((function(e){return!r.has(e)}))}fi(we,n,!0)||Ce(n,!0)})),st=function(e,t,n,r,o,i,a,c,l,s){var u=w.useRef(),f=w.useRef();f.current=t;var d=function(){Hn.cancel(u.current)};return w.useEffect((function(){return function(){d()}}),[]),function(p){var h=p.which;if([].concat(Ni,[Pi,Ri,Ai,Fi]).includes(h)){var v=i(),m=Ti(v,r),g=m,b=g.elements,y=g.key2element,w=g.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=w.get(x),k=function(e,t,n,r){var o,i="prev",a="next",c="children",l="parent";if("inline"===e&&r===Pi)return{inlineTrigger:!0};var s=R(R({},Mi,i),ji,a),u=R(R(R(R({},$i,n?a:i),Oi,n?i:a),ji,c),Pi,c),f=R(R(R(R(R(R({},Mi,i),ji,a),Pi,c),Ri,l),$i,n?c:l),Oi,n?l:c);switch(null===(o={inline:s,horizontal:u,vertical:f,inlineSub:s,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(e,1===a(C,!0).length,n,h);if(!k&&h!==Ai&&h!==Fi)return;(Ni.includes(h)||[Ai,Fi].includes(h))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),d(),u.current=Hn((function(){f.current===r&&t.focus()}))}};if([Ai,Fi].includes(h)||k.sibling||!x){var S,$,O=_i(S=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):o.current,b);$=h===Ai?O[0]:h===Fi?O[O.length-1]:Ii(S,b,x,k.offset),E($)}else if(k.inlineTrigger)l(C);else if(k.offset>0)l(C,!0),d(),u.current=Hn((function(){m=Ti(v,r);var e=x.getAttribute("aria-controls"),t=Ii(document.getElementById(e),m.elements);E(t)}),5);else if(k.offset<0){var M=a(C,!0),j=M[M.length-2],P=y.get(j);l(j,!1),E(P)}}null==s||s(p)}}(Ae,Je,ge,me,ve,Ke,qe,et,(function(e,t){var n=null!=t?t:!we.includes(e);lt(e,n)}),oe);w.useEffect((function(){he(!0)}),[]);var ut=w.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),ft="horizontal"!==Ae||y?ue:ue.map((function(e,t){return w.createElement(gi,{key:e.key,overflowDisabled:t>ze},e)})),dt=w.createElement(ui,C({id:h,ref:ve,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:na,className:N()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ae),l,R(R({},"".concat(i,"-inline-collapsed"),_e),"".concat(i,"-rtl"),ge),a),dir:p,style:c,role:"menu",tabIndex:u,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return w.createElement(ba,{eventKey:Hi,title:J,disabled:Be,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Ae||y?ui.INVALIDATE:ui.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){He(e)},onKeyDown:st},le));return w.createElement(Ei.Provider,{value:ut},w.createElement(di.Provider,{value:me},w.createElement(gi,{prefixCls:i,rootClassName:a,mode:Ae,openKeys:we,rtl:ge,disabled:b,motion:pe?G:null,defaultMotions:pe?X:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:S,forceSubMenuRender:$,builtinPlacements:U,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:Y,expandIcon:Z,onItemClick:ct,onOpenChange:lt},w.createElement(ki.Provider,{value:Ze},dt),w.createElement("div",{style:{display:"none"},"aria-hidden":!0},w.createElement(yi.Provider,{value:Ye},fe)))))})),ja=Ma;ja.Item=na,ja.SubMenu=ba,ja.ItemGroup=Ca,ja.Divider=ya;const Pa=ja;var Ra=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,c=e.more,l=void 0===c?{}:c,s=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,v=e.onTabClick,m=e.getPopupContainer,g=e.popupClassName,b=M((0,w.useState)(!1),2),y=b[0],x=b[1],k=M((0,w.useState)(null),2),E=k[0],S=k[1],$=l.icon,O=void 0===$?"More":$,j="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),A=null!==E?"".concat(j,"-").concat(E):null,F=null==i?void 0:i.dropdownAriaLabel,_=w.createElement(Pa,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),x(!1)},prefixCls:"".concat(P,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[E],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,c=Kn(t,o,f,n);return w.createElement(na,{key:i,id:"".concat(j,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},w.createElement("span",null,a),c&&w.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function I(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void S(a.key)}}(0,w.useEffect)((function(){var e=document.getElementById(A);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,w.useEffect)((function(){y||S(null)}),[y]);var T=R({},p?"marginRight":"marginLeft",d);o.length||(T.visibility="hidden",T.order=1);var L=N()(R({},"".concat(P,"-rtl"),p)),z=a?null:w.createElement(Wo,C({prefixCls:P,overlay:_,visible:!!o.length&&y,onVisibleChange:x,overlayClassName:N()(L,g),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},l),w.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:T,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(r,"-more"),"aria-expanded":y,onKeyDown:function(e){var t=e.which;if(y)switch(t){case _o.UP:I(-1),e.preventDefault();break;case _o.DOWN:I(1),e.preventDefault();break;case _o.ESC:x(!1);break;case _o.SPACE:case _o.ENTER:null!==E&&v(E,e)}else[_o.DOWN,_o.SPACE,_o.ENTER].includes(t)&&(x(!0),e.preventDefault())}},O));return w.createElement("div",{className:N()("".concat(n,"-nav-operations"),u),style:s,ref:t},z,w.createElement(Yn,{prefixCls:n,locale:i,editable:f}))}));const Aa=w.memo(Ra,(function(e,t){return t.tabMoving})),Fa=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.tab,i=o.key,a=o.label,c=o.disabled,l=o.closeIcon,s=o.icon,u=e.closable,f=e.renderWrapper,d=e.removeAriaLabel,p=e.editable,h=e.onClick,v=e.onFocus,m=e.style,g="".concat(t,"-tab"),b=Kn(u,l,p,c);function y(e){c||h(e)}var x=w.useMemo((function(){return s&&"string"==typeof a?w.createElement("span",null,a):a}),[a,s]),C=w.createElement("div",{key:i,"data-node-key":qn(i),className:N()(g,R(R(R({},"".concat(g,"-with-remove"),b),"".concat(g,"-active"),r),"".concat(g,"-disabled"),c)),style:m,onClick:y},w.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(g,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[_o.SPACE,_o.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:v},s&&w.createElement("span",{className:"".concat(g,"-icon")},s),a&&x),b&&w.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:0,className:"".concat(g,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:i,event:t})}},l||p.removeIcon||"×"));return f?f(C):C};var Na=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),c=a.width,l=a.height;if(Math.abs(c-r)<1)return[c,l]}return[r,i]},_a=function(e,t){return e[t?0:1]},Ia=w.forwardRef((function(e,t){var n,r,o,i,a,c=e.className,l=e.style,s=e.id,u=e.animated,f=e.activeKey,d=e.rtl,p=e.extra,h=e.editable,v=e.locale,m=e.tabPosition,g=e.tabBarGutter,b=e.children,y=e.onTabClick,k=e.onTabScroll,E=e.indicator,S=w.useContext(Ft),$=S.prefixCls,O=S.tabs,j=(0,w.useRef)(null),P=(0,w.useRef)(null),A=(0,w.useRef)(null),F=(0,w.useRef)(null),_=(0,w.useRef)(null),I=(0,w.useRef)(null),T=(0,w.useRef)(null),L="top"===m||"bottom"===m,z=Dn(0,(function(e,t){L&&k&&k({direction:e>t?"left":"right"})})),H=M(z,2),B=H[0],D=H[1],V=Dn(0,(function(e,t){!L&&k&&k({direction:e>t?"top":"bottom"})})),W=M(V,2),G=W[0],X=W[1],q=M((0,w.useState)([0,0]),2),K=q[0],U=q[1],Y=M((0,w.useState)([0,0]),2),Z=Y[0],Q=Y[1],J=M((0,w.useState)([0,0]),2),ee=J[0],te=J[1],ne=M((0,w.useState)([0,0]),2),re=ne[0],oe=ne[1],ie=(n=new Map,r=(0,w.useRef)([]),o=M((0,w.useState)({}),2)[1],i=(0,w.useRef)("function"==typeof n?n():n),a=Wn((function(){var e=i.current;r.current.forEach((function(t){e=t(e)})),r.current=[],i.current=e,o({})})),[i.current,function(e){r.current.push(e),a()}]),ae=M(ie,2),ce=ae[0],le=ae[1],se=function(e,t,n){return(0,w.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Bn,i=o.left+o.width,a=0;a<e.length;a+=1){var c,l=e[a].key,s=t.get(l);s||(s=t.get(null===(c=e[a-1])||void 0===c?void 0:c.key)||Bn);var u=r.get(l)||Ie({},s);u.right=i-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(O,ce,Z[0]),ue=_a(K,L),fe=_a(Z,L),de=_a(ee,L),pe=_a(re,L),he=Math.floor(ue)<Math.floor(fe+de),ve=he?ue-pe:ue-de,me="".concat($,"-nav-operations-hidden"),ge=0,be=0;function ye(e){return e<ge?ge:e>be?be:e}L&&d?(ge=0,be=Math.max(0,fe-ve)):(ge=Math.min(0,ve-fe),be=0);var we=(0,w.useRef)(null),xe=M((0,w.useState)(),2),Ce=xe[0],ke=xe[1];function Ee(){ke(Date.now())}function Se(){we.current&&clearTimeout(we.current)}!function(e,t){var n=M((0,w.useState)(),2),r=n[0],o=n[1],i=M((0,w.useState)(0),2),a=i[0],c=i[1],l=M((0,w.useState)(0),2),s=l[0],u=l[1],f=M((0,w.useState)(),2),d=f[0],p=f[1],h=(0,w.useRef)(),v=(0,w.useRef)(),m=(0,w.useRef)(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){var n=e.touches[0],i=n.screenX,l=n.screenY;o({x:i,y:l});var s=i-r.x,f=l-r.y;t(s,f);var d=Date.now();c(d),u(d-a),p({x:s,y:f})}},onTouchEnd:function(){if(r&&(o(null),p(null),d)){var e=d.x/s,n=d.y/s,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var c=e,l=n;h.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(h.current):t(20*(c*=Vn),20*(l*=Vn))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===v.current?n:r:i>a?(o=n,v.current="x"):(o=r,v.current="y"),t(-o,-o)&&e.preventDefault()}},w.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(F,(function(e,t){function n(e,t){e((function(e){return ye(e+t)}))}return!!he&&(L?n(D,e):n(X,t),Se(),Ee(),!0)})),(0,w.useEffect)((function(){return Se(),Ce&&(we.current=setTimeout((function(){ke(0)}),100)),Se}),[Ce]);var $e=function(e,t,n,r,o,i,a){var c,l,s,u=a.tabs,f=a.tabPosition,d=a.rtl;return["top","bottom"].includes(f)?(c="width",l=d?"right":"left",s=Math.abs(n)):(c="height",l="top",s=-n),(0,w.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||Gn;if(Math.floor(i[l]+i[c])>Math.floor(s+t)){r=o-1;break}}for(var a=0,f=n-1;f>=0;f-=1)if((e.get(u[f].key)||Gn)[l]<s){a=f+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,f,u.map((function(e){return e.key})).join("_"),d])}(se,ve,L?B:G,fe,de,pe,Ie(Ie({},e),{},{tabs:O})),Oe=M($e,2),Me=Oe[0],je=Oe[1],Pe=Et((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=se.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=B;d?t.right<B?n=t.right:t.right+t.width>B+ve&&(n=t.right+t.width-ve):t.left<-B?n=-t.left:t.left+t.width>-B+ve&&(n=-(t.left+t.width-ve)),X(0),D(ye(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+ve&&(r=-(t.top+t.height-ve)),D(0),X(ye(r))}})),Re={};"top"===m||"bottom"===m?Re[d?"marginRight":"marginLeft"]=g:Re.marginTop=g;var Ae=O.map((function(e,t){var n=e.key;return w.createElement(Fa,{id:s,prefixCls:$,key:n,tab:e,style:0===t?void 0:Re,closable:e.closable,editable:h,active:n===f,renderWrapper:b,removeAriaLabel:null==v?void 0:v.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){Pe(n),Ee(),F.current&&(d||(F.current.scrollLeft=0),F.current.scrollTop=0)}})})),Fe=function(){return le((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return O.forEach((function(e){var r,o=e.key,i=null===(r=_.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(qn(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),c=a.width,l=a.height,s=a.left,u=a.top;return Math.abs(c-n)<1?[c,l,s-t.left,u-t.top]:[n,r,i,o]}(i,n),c=M(a,4),l=c[0],s=c[1],u=c[2],f=c[3];t.set(o,{width:l,height:s,left:u,top:f})}})),t}))};(0,w.useEffect)((function(){Fe()}),[O.map((function(e){return e.key})).join("_")]);var Ne=Wn((function(){var e=Na(j),t=Na(P),n=Na(A);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Na(T);te(r);var o=Na(I);oe(o);var i=Na(_);Q([i[0]-r[0],i[1]-r[1]]),Fe()})),_e=O.slice(0,Me),Te=O.slice(je+1),Le=[].concat(_t(_e),_t(Te)),ze=se.get(f),He=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,c=i.align,l=void 0===c?"center":c,s=M((0,w.useState)(),2),u=s[0],f=s[1],d=(0,w.useRef)(),p=x().useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function h(){Hn.cancel(d.current)}return(0,w.useEffect)((function(){var e={};if(t)if(n){e.width=p(t.width);var o=r?"right":"left";"start"===l&&(e[o]=t[o]),"center"===l&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),d.current=Hn((function(){f(e)})),h}),[t,n,r,l,p]),{style:u}}({activeTabOffset:ze,horizontal:L,indicator:E,rtl:d}).style;(0,w.useEffect)((function(){Pe()}),[f,ge,be,Xn(ze),Xn(se),L]),(0,w.useEffect)((function(){Ne()}),[d]);var Be,De,Ve,We,Ge=!!Le.length,Xe="".concat($,"-nav-wrap");return L?d?(De=B>0,Be=B!==be):(Be=B<0,De=B!==ge):(Ve=G<0,We=G!==ge),w.createElement(An,{onResize:Ne},w.createElement("div",{ref:Gt(t,j),role:"tablist",className:N()("".concat($,"-nav"),c),style:l,onKeyDown:function(){Ee()}},w.createElement(Qn,{ref:P,position:"left",extra:p,prefixCls:$}),w.createElement(An,{onResize:Ne},w.createElement("div",{className:N()(Xe,R(R(R(R({},"".concat(Xe,"-ping-left"),Be),"".concat(Xe,"-ping-right"),De),"".concat(Xe,"-ping-top"),Ve),"".concat(Xe,"-ping-bottom"),We)),ref:F},w.createElement(An,{onResize:Ne},w.createElement("div",{ref:_,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(G,"px)"),transition:Ce?"none":void 0}},Ae,w.createElement(Yn,{ref:T,prefixCls:$,locale:v,editable:h,style:Ie(Ie({},0===Ae.length?void 0:Re),{},{visibility:Ge?"hidden":null})}),w.createElement("div",{className:N()("".concat($,"-ink-bar"),R({},"".concat($,"-ink-bar-animated"),u.inkBar)),style:He}))))),w.createElement(Aa,C({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:I,prefixCls:$,tabs:Le,className:!Ge&&me,tabMoving:!!Ce})),w.createElement(Qn,{ref:A,position:"right",extra:p,prefixCls:$})))}));const Ta=Ia;var La=w.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,c=e.tabKey,l=e.children;return w.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:o,className:N()(n,a&&"".concat(n,"-active"),r),ref:t},l)}));const za=La;var Ha=["renderTabBar"],Ba=["label","key"];const Da=function(e){var t=e.renderTabBar,n=A(e,Ha),r=w.useContext(Ft).tabs;return t?t(Ie(Ie({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=A(e,Ba);return w.createElement(za,C({tab:t,key:n,tabKey:n},r))}))}),Ta):w.createElement(Ta,n)};var Va=["key","forceRender","style","className","destroyInactiveTabPane"];const Wa=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=w.useContext(Ft),c=a.prefixCls,l=a.tabs,s=r.tabPane,u="".concat(c,"-tabpane");return w.createElement("div",{className:N()("".concat(c,"-content-holder"))},w.createElement("div",{className:N()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),R({},"".concat(c,"-content-animated"),s))},l.map((function(e){var o=e.key,a=e.forceRender,c=e.style,l=e.className,f=e.destroyInactiveTabPane,d=A(e,Va),p=o===n;return w.createElement(co,C({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!f),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return w.createElement(za,C({},d,{prefixCls:u,id:t,tabKey:o,animated:s,active:p,style:Ie(Ie({},c),r),className:N()(l,i),ref:n}))}))}))))};var Ga=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xa=0;const qa=w.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,c=e.direction,l=e.activeKey,s=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,p=void 0===d?"top":d,h=e.tabBarGutter,v=e.tabBarStyle,m=e.tabBarExtraContent,g=e.locale,b=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,k=e.onChange,E=e.onTabClick,S=e.onTabScroll,$=e.getPopupContainer,O=e.popupClassName,P=e.indicator,F=A(e,Ga),_=w.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===j(e)&&"key"in e}))}),[a]),I="rtl"===c,T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Ie({inkBar:!0},"object"===j(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),L=M((0,w.useState)(!1),2),z=L[0],H=L[1];(0,w.useEffect)((function(){H(At())}),[]);var B=M(Rt((function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:s}),2),D=B[0],V=B[1],W=M((0,w.useState)((function(){return _.findIndex((function(e){return e.key===D}))})),2),G=W[0],X=W[1];(0,w.useEffect)((function(){var e,t=_.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(G,_.length-1)),V(null===(e=_[t])||void 0===e?void 0:e.key)),X(t)}),[_.map((function(e){return e.key})).join("_"),D,G]);var q=M(Rt(null,{value:n}),2),K=q[0],U=q[1];(0,w.useEffect)((function(){n||(U("rc-tabs-".concat(Xa)),Xa+=1)}),[]);var Y={id:K,activeKey:D,animated:T,tabPosition:p,rtl:I,mobile:z},Z=Ie(Ie({},Y),{},{editable:u,locale:g,more:b,tabBarGutter:h,onTabClick:function(e,t){null==E||E(e,t);var n=e!==D;V(e),n&&(null==k||k(e))},onTabScroll:S,extra:m,style:v,panes:null,getPopupContainer:$,popupClassName:O,indicator:P});return w.createElement(Ft.Provider,{value:{tabs:_,prefixCls:o}},w.createElement("div",C({ref:t,id:n,className:N()(o,"".concat(o,"-").concat(p),R(R(R({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),I),i)},F),w.createElement(Da,C({},Z,{renderTabBar:x})),w.createElement(Wa,C({destroyInactiveTabPane:y},Y,{animated:T}))))})),Ka=w.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:Ua}=Ka,Ya=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Za(e){return e.join("%")}var Qa=function(){function e(t){bn(this,e),R(this,"instanceId",void 0),R(this,"cache",new Map),this.instanceId=t}return wn(e,[{key:"get",value:function(e){return this.opGet(Za(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Za(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const Ja=Qa;var ec="data-token-hash",tc="data-css-hash",nc="__cssinjs_instance__";var rc=w.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(tc,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[nc]=t[nc]||e,t[nc]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(tc,"]"))).forEach((function(t){var n,o=t.getAttribute(tc);r[o]?t[nc]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Ja(e)}(),defaultCache:!0});const oc=rc;new RegExp("CALC_UNIT","g");var ic=function(){function e(){bn(this,e),R(this,"cache",void 0),R(this,"keys",void 0),R(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=M(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=M(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();R(ic,"MAX_CACHE_SIZE",20),R(ic,"MAX_CACHE_OFFSET",5);var ac=0,cc=function(){function e(t){bn(this,e),R(this,"derivatives",void 0),R(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ac,0===t.length&&t.length,ac+=1}return wn(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),lc=new ic,sc=new WeakMap,uc={},fc=new WeakMap;function dc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fc.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof cc?n+=o.id:o&&"object"===j(o)?n+=dc(o,t):n+=o})),t&&(n=Ya(n)),fc.set(e,n)),n}function pc(e,t){return Ya("".concat(t,"_").concat(dc(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var hc=Te();function vc(e){return"number"==typeof e?"".concat(e,"px"):e}function mc(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Ie(Ie({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},R(R({},ec,t),tc,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bc=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=M(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},yc=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=M(e,2),c=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var s,u=gc(c,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(u,")")}})),[o,bc(r,t,{scope:null==n?void 0:n.scope})]},wc=Ie({},w).useInsertionEffect;const xc=wc?function(e,t,n){return wc((function(){return e(),t()}),n)}:function(e,t,n){w.useMemo(e,n),Mt((function(){return t(!0)}),n)},Cc=void 0!==Ie({},w).useInsertionEffect?function(e){var t=[],n=!1;return w.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function kc(e,t,n,r,o){var i=w.useContext(oc).cache,a=Za([e].concat(_t(t))),c=Cc([a]),l=function(e){i.opUpdate(a,(function(t){var r=M(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};w.useMemo((function(){l()}),[a]);var s=i.opGet(a)[1];return xc((function(){null==o||o(s)}),(function(e){return l((function(t){var n=M(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(s)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=M(t||[],2),o=n[0],l=void 0===o?0:o,s=n[1];return 0==l-1?(c((function(){!e&&i.opGet(a)||null==r||r(s,!1)})),null):[l-1,s]}))}}),[a]),s}var Ec={},Sc=new Map;var $c="token";function Oc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,w.useContext)(oc),o=r.cache.instanceId,i=r.container,a=n.salt,c=void 0===a?"":a,l=n.override,s=void 0===l?Ec:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,p=function(e,n){for(var r=sc,o=0;o<n.length;o+=1){var i=n[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(uc)||r.set(uc,Object.assign.apply(Object,[{}].concat(_t(t)))),r.get(uc)}(0,t),h=dc(p),v=dc(s),m=d?dc(d):"",g=kc($c,[c,e.id,h,v,m],(function(){var t,n=f?f(p,s,e):function(e,t,n,r){var o=Ie(Ie({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(p,s,e,u),r=Ie({},n),o="";if(d){var i=M(yc(n,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),2);n=i[0],o=i[1]}var a=pc(n,c);n._tokenKey=a,r._tokenKey=pc(r,c);var l=null!==(t=null==d?void 0:d.key)&&void 0!==t?t:a;n._themeKey=l,function(e){Sc.set(e,(Sc.get(e)||0)+1)}(l);var h="".concat("css","-").concat(Ya(a));return n._hashId=h,[n,h,r,o,(null==d?void 0:d.key)||""]}),(function(e){!function(e,t){Sc.set(e,(Sc.get(e)||0)-1);var n=Array.from(Sc.keys()),r=n.filter((function(e){return(Sc.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(ec,'="').concat(e,'"]')).forEach((function(e){var n;e[nc]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Sc.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=M(e,4),n=t[0],r=t[3];if(d&&r){var a=qe(r,Ya("css-variables-".concat(n._themeKey)),{mark:tc,prepend:"queue",attachTo:i,priority:-999});a[nc]=o,a.setAttribute(ec,n._themeKey)}}));return g}const Mc={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};var jc="comm",Pc="rule",Rc="decl",Ac=Math.abs,Fc=String.fromCharCode;function Nc(e){return e.trim()}function _c(e,t,n){return e.replace(t,n)}function Ic(e,t,n){return e.indexOf(t,n)}function Tc(e,t){return 0|e.charCodeAt(t)}function Lc(e,t,n){return e.slice(t,n)}function zc(e){return e.length}function Hc(e,t){return t.push(e),e}function Bc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Dc(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Rc:return e.return=e.return||e.value;case jc:return"";case"@keyframes":return e.return=e.value+"{"+Bc(e.children,r)+"}";case Pc:if(!zc(e.value=e.props.join(",")))return""}return zc(n=Bc(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var Vc=1,Wc=1,Gc=0,Xc=0,qc=0,Kc="";function Uc(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Vc,column:Wc,length:a,return:"",siblings:c}}function Yc(){return qc=Xc>0?Tc(Kc,--Xc):0,Wc--,10===qc&&(Wc=1,Vc--),qc}function Zc(){return qc=Xc<Gc?Tc(Kc,Xc++):0,Wc++,10===qc&&(Wc=1,Vc++),qc}function Qc(){return Tc(Kc,Xc)}function Jc(){return Xc}function el(e,t){return Lc(Kc,e,t)}function tl(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 nl(e){return Nc(el(Xc-1,il(91===e?e+2:40===e?e+1:e)))}function rl(e){for(;(qc=Qc())&&qc<33;)Zc();return tl(e)>2||tl(qc)>3?"":" "}function ol(e,t){for(;--t&&Zc()&&!(qc<48||qc>102||qc>57&&qc<65||qc>70&&qc<97););return el(e,Jc()+(t<6&&32==Qc()&&32==Zc()))}function il(e){for(;Zc();)switch(qc){case e:return Xc;case 34:case 39:34!==e&&39!==e&&il(qc);break;case 40:41===e&&il(e);break;case 92:Zc()}return Xc}function al(e,t){for(;Zc()&&e+qc!==57&&(e+qc!==84||47!==Qc()););return"/*"+el(t,Xc-1)+"*"+Fc(47===e?e:Zc())}function cl(e){for(;!tl(Qc());)Zc();return el(e,Xc)}function ll(e){return function(e){return Kc="",e}(sl("",null,null,null,[""],e=function(e){return Vc=Wc=1,Gc=zc(Kc=e),Xc=0,[]}(e),0,[0],e))}function sl(e,t,n,r,o,i,a,c,l){for(var s=0,u=0,f=a,d=0,p=0,h=0,v=1,m=1,g=1,b=0,y="",w=o,x=i,C=r,k=y;m;)switch(h=b,b=Zc()){case 40:if(108!=h&&58==Tc(k,f-1)){-1!=Ic(k+=_c(nl(b),"&","&\f"),"&\f",Ac(s?c[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:k+=nl(b);break;case 9:case 10:case 13:case 32:k+=rl(h);break;case 92:k+=ol(Jc()-1,7);continue;case 47:switch(Qc()){case 42:case 47:Hc(fl(al(Zc(),Jc()),t,n,l),l),5!=tl(h||1)&&5!=tl(Qc()||1)||!zc(k)||" "===Lc(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*v:c[s++]=zc(k)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==g&&(k=_c(k,/\f/g,"")),p>0&&(zc(k)-f||0===v&&47===h)&&Hc(p>32?dl(k+";",r,n,f-1,l):dl(_c(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(Hc(C=ul(k,t,n,s,u,o,c,y,w=[],x=[],f,i),i),123===b)if(0===u)sl(k,t,C,C,w,i,f,c,x);else switch(99===d&&110===Tc(k,3)?100:d){case 100:case 108:case 109:case 115:sl(e,C,C,r&&Hc(ul(e,C,C,0,0,o,c,y,o,w=[],f,x),x),o,x,f,c,r?w:x);break;default:sl(k,C,C,C,[""],x,0,c,x)}}s=u=p=0,v=g=1,y=k="",f=a;break;case 58:f=1+zc(k),p=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==Yc())continue;switch(k+=Fc(b),b*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:c[s++]=(zc(k)-1)*g,g=1;break;case 64:45===Qc()&&(k+=nl(Zc())),d=Qc(),u=f=zc(y=k+=cl(Jc())),b++;break;case 45:45===h&&2==zc(k)&&(v=0)}}return i}function ul(e,t,n,r,o,i,a,c,l,s,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,m=0,g=0;v<r;++v)for(var b=0,y=Lc(e,d+1,d=Ac(m=a[v])),w=e;b<h;++b)(w=Nc(m>0?p[b]+" "+y:_c(y,/&\f/g,p[b])))&&(l[g++]=w);return Uc(e,t,n,0===o?Pc:c,l,s,u,f)}function fl(e,t,n,r){return Uc(e,t,n,jc,Fc(qc),Lc(e,2,-2),0,r)}function dl(e,t,n,r,o){return Uc(e,t,n,Rc,Lc(e,0,r),Lc(e,r+1,-1),r,o)}var pl,hl="data-ant-cssinjs-cache-path",vl="_FILE_STYLE__",ml=!0;var gl="_multi_value_";function bl(e){return Bc(ll(e),Dc).replace(/\{%%%\:[^;];}/g,";")}var yl=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,c=n.hashId,l=n.layer,s=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,d=(n.linters,""),p={};function h(t){var r=t.getName(c);if(!p[r]){var o=M(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(c)).concat(o)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)d+="".concat(r,"\n");else if(r._keyframe)h(r);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==j(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===j(e)&&e&&("_skip_check_"in e||gl in e)}(r)){var u;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Mc[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(c)),d+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===j(r)&&null!=r&&r[gl]&&Array.isArray(f)?f.forEach((function(e){x(t,e)})):x(t,f)}else{var v=!1,m=t.trim(),g=!1;(o||i)&&c?m.startsWith("@")?v=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(_t(n.slice(1))).join(" ")})).join(",")}("&"===m?"":t,c,s):!o||c||"&"!==m&&""!==m||(m="",g=!0);var b=M(e(r,n,{root:g,injectHash:v,parentSelectors:[].concat(_t(a),[m])}),2),y=b[0],w=b[1];p=Ie(Ie({},p),w),d+="".concat(m).concat(y)}}))}})),o?l&&(d="@layer ".concat(l.name," {").concat(d,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):d="{".concat(d,"}"),[d,p]};function wl(e,t){return Ya("".concat(e.join("%")).concat(t))}function xl(){return null}var Cl="style";function kl(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,l=e.order,s=void 0===l?0:l,u=w.useContext(oc),f=u.autoClear,d=(u.mock,u.defaultCache),p=u.hashPriority,h=u.container,v=u.ssrInline,m=u.transformers,g=u.linters,b=u.cache,y=u.layer,x=n._tokenKey,k=[x];y&&k.push("layer"),k.push.apply(k,_t(r));var E=hc,S=kc(Cl,k,(function(){var e=k.join("|");if(function(e){return function(){if(!pl&&(pl={},Te())){var e=document.createElement("div");e.className=hl,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(/"$/,"")).split(";").forEach((function(e){var t=M(e.split(":"),2),n=t[0],r=t[1];pl[n]=r}));var n,r=document.querySelector("style[".concat(hl,"]"));r&&(ml=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!pl[e]}(e)){var n=function(e){var t=pl[e],n=null;if(t&&Te())if(ml)n=vl;else{var r=document.querySelector("style[".concat(tc,'="').concat(pl[e],'"]'));r?n=r.innerHTML:delete pl[e]}return[n,t]}(e),a=M(n,2),l=a[0],u=a[1];if(l)return[l,x,u,{},c,s]}var f=t(),d=M(yl(f,{hashId:o,hashPriority:p,layer:y?i:void 0,path:r.join("-"),transformers:m,linters:g}),2),h=d[0],v=d[1],b=bl(h),w=wl(k,b);return[b,x,w,v,c,s]}),(function(e,t){var n=M(e,3)[2];(t||f)&&hc&&Xe(n,{mark:tc})}),(function(e){var t=M(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==vl){var i={mark:tc,prepend:!y&&"queue",attachTo:h,priority:s},c="function"==typeof a?a():a;c&&(i.csp={nonce:c});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){qe(bl(o[e]),"_layer-".concat(e),Ie(Ie({},i),{},{prepend:!0}))}));var f=qe(n,r,i);f[nc]=b.instanceId,f.setAttribute(ec,x),u.forEach((function(e){qe(bl(o[e]),"_effect-".concat(e),i)}))}})),$=M(S,3),O=$[0],j=$[1],P=$[2];return function(e){var t;return t=v&&!E&&d?w.createElement("style",C({},R(R({},ec,j),tc,P),{dangerouslySetInnerHTML:{__html:O}})):w.createElement(xl,null),w.createElement(w.Fragment,null,t,e)}}var El="cssVar";R(R(R({},Cl,(function(e,t,n){var r=M(e,6),o=r[0],i=r[1],a=r[2],c=r[3],l=r[4],s=r[5],u=(n||{}).plain;if(l)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return f=mc(o,i,a,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=mc(bl(c[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[s,a,f]})),$c,(function(e,t,n){var r=M(e,5),o=r[2],i=r[3],a=r[4],c=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,mc(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),El,(function(e,t,n){var r=M(e,4),o=r[1],i=r[2],a=r[3],c=(n||{}).plain;return o?[-999,i,mc(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]:null}));var Sl=function(){function e(t,n){bn(this,e),R(this,"name",void 0),R(this,"style",void 0),R(this,"_keyframe",!0),this.name=t,this.style=n}return wn(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const $l=Sl;function Ol(e){return e.notSplit=!0,e}Ol(["borderTop","borderBottom"]),Ol(["borderTop"]),Ol(["borderBottom"]),Ol(["borderLeft","borderRight"]),Ol(["borderLeft"]),Ol(["borderRight"]);const Ml={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"},jl=Object.assign(Object.assign({},Ml),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});var Pl=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=q(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=null!==(r=n.format)&&void 0!==r?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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=T(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=D(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=D(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=H(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=H(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),V(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[z(Math.round(e).toString(16)),z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z((i=r,Math.round(255*parseFloat(i)).toString(16)))];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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*_(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+V(this.r,this.g,this.b,!1),t=0,n=Object.entries(X);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=I(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=I(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=I(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=I(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){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},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],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const Rl=(e,t)=>new Pl(e).setAlpha(t).toRgbString(),Al=(e,t)=>new Pl(e).darken(t).toHexString(),Fl=e=>{const t=ie(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]}},Nl=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Rl(r,.88),colorTextSecondary:Rl(r,.65),colorTextTertiary:Rl(r,.45),colorTextQuaternary:Rl(r,.25),colorFill:Rl(r,.15),colorFillSecondary:Rl(r,.06),colorFillTertiary:Rl(r,.04),colorFillQuaternary:Rl(r,.02),colorBgSolid:Rl(r,1),colorBgSolidHover:Rl(r,.75),colorBgSolidActive:Rl(r,.95),colorBgLayout:Al(n,4),colorBgContainer:Al(n,0),colorBgElevated:Al(n,0),colorBgSpotlight:Rl(r,.85),colorBgBlur:"transparent",colorBorder:Al(n,15),colorBorderSecondary:Al(n,6)}},_l=(Il=function(e){ae.pink=ae.magenta,we.pink=we.magenta;const t=Object.keys(Ml).map((t=>{const n=e[t]===ae[t]?we[t]:ie(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:c,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,f=n(l),d=n(o),p=n(i),h=n(a),v=n(c),m=r(s,u),g=n(e.colorLink||e.colorInfo),b=new Pl(h[1]).mix(new Pl(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Pl("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Fl,generateNeutralColorPalettes:Nl})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],c=r[1],l=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:s,lineHeightSM:l,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(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}})(r))}(e))},Tl=Array.isArray(Il)?Il:[Il],lc.has(Tl)||lc.set(Tl,new cc(Tl)),lc.get(Tl));var Il,Tl;const Ll={token:jl,override:{override:jl},hashed:!0},zl=x().createContext(Ll);function Hl(e){return e>=0&&e<=255}const Bl=function(e,t){const{r:n,g:r,b:o,a:i}=new Pl(e).toRgb();if(i<1)return e;const{r:a,g:c,b:l}=new Pl(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-c*(1-e))/e),s=Math.round((o-l*(1-e))/e);if(Hl(t)&&Hl(i)&&Hl(s))return new Pl({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Pl({r:n,g:r,b:o,a:1}).toRgbString()};function Dl(e){const{override:t}=e,n=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["override"]),r=Object.assign({},t);Object.keys(jl).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Bl(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:Bl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Bl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Bl(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:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Pl("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Pl("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Pl("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",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 Vl=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Wl={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Gl={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Xl={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ql=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Vl(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Dl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Vl(n,["theme"]);let i=o;r&&(i=ql(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Kl(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=x().useContext(zl),i=`5.21.3-${t||""}`,a=n||_l,[c,l,s]=Oc(a,[jl,e],{salt:i,override:r,getComputedToken:ql,formatToken:Dl,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Wl,ignore:Gl,preserve:Xl}});return[a,s,t?l:"",c,o]}const Ul=w.createContext(void 0),Yl=e=>{const t=x().useContext(Ul);return x().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Zl=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Ql={motionAppear:!1,motionEnter:!0,motionLeave:!0};const Jl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},es=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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}},ts=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ns=e=>({outline:`${vc(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),rs=e=>({"&:focus-visible":Object.assign({},ns(e))}),os=wn((function e(){bn(this,e)}));var is="CALC_UNIT",as=new RegExp(is,"g");function cs(e){return"number"==typeof e?"".concat(e).concat(is):e}var ls=function(e){Cn(n,e);var t=$n(n);function n(e,r){var o;bn(this,n),R(Sn(o=t.call(this)),"result",""),R(Sn(o),"unitlessCssVar",void 0),R(Sn(o),"lowPriority",void 0);var i=j(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=cs(e):"string"===i&&(o.result=e),o}return wn(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(cs(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(cs(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(as,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(os);const ss=function(e){Cn(n,e);var t=$n(n);function n(e){var r;return bn(this,n),R(Sn(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return wn(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(os),us=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},fs=function(e,t,n,r){var o=Ie({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=M(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=Ie(Ie({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var ds="undefined"!=typeof CSSINJS_STATISTIC,ps=!0;function hs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ds)return Object.assign.apply(Object,[{}].concat(t));ps=!1;var r={};return t.forEach((function(e){"object"===j(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ps=!0,r}var vs={};function ms(){}const gs=function(e,t,n){var r;return"function"==typeof n?n(hs(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}};var bs=function(){function e(){bn(this,e),R(this,"map",new Map),R(this,"objectIDMap",new WeakMap),R(this,"nextID",0),R(this,"lastAccessBeat",new Map),R(this,"accessBeat",0)}return wn(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===j(e)?"obj_".concat(t.getObjectID(e)):"".concat(j(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ys=new bs;const ws=function(){return{}},{genStyleHooks:xs,genComponentStyleHook:Cs,genSubStyleComponent:ks}=function(e){var t=e.useCSP,n=void 0===t?ws:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,c=e.getCompUnitless;function l(t,c,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],f=M(u,1)[0],d=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=r(),m=v.theme,g=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,C=o(),k=C.rootPrefixCls,E=C.iconPrefixCls,S=n(),$=w?"css":"js",O=(t=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(gc(t,w.prefix)),e.add(gc(t,us(f,w.prefix)))})),function(e,t){var n="css"===e?ls:ss;return function(e){return new n(e,t)}}($,e)},u=[$,f,null==w?void 0:w.prefix],x().useMemo((function(){var e=ys.get(u);if(e)return e;var n=t();return ys.set(u,n),n}),u)),M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return vc(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return vc(e)})).join(","),")")}}}($),P=M.max,R=M.min,A={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:p,order:s.order||-999};return kl(Ie(Ie({},A),{},{clientOnly:!1,path:["Shared",k]}),(function(){return"function"==typeof i?i(y):[]})),[kl(Ie(Ie({},A),{},{path:[d,e,E]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=ms;return ds&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return ps&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;vs[e]={global:Array.from(t),component:Ie(Ie({},null===(r=vs[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),n=t.token,r=t.flush,o=gs(f,g,l),i=".".concat(e),u=fs(f,g,o,{deprecatedTokens:s.deprecatedTokens});w&&o&&"object"===j(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(gc(e,us(f,w.prefix)),")")}));var d=hs(n,{componentCls:i,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(k),calc:O,max:P,min:R},w?o:u),p=c(d,{hashId:b,prefixCls:e,rootPrefixCls:k,iconPrefixCls:E});r(f,u);var v="function"==typeof a?a(d,e,h,s.resetFont):null;return[!1===s.resetStyle?null:v,p]})),b]}}return{genStyleHooks:function(e,t,n,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var s=(null==o?void 0:o.unitless)||{},u=Ie(Ie({},"function"==typeof c?c(e):{}),{},R({},a("zIndexPopup"),!0));Object.keys(s).forEach((function(e){u[a(e)]=s[e]}));var f=Ie(Ie({},o),{},{unitless:u,prefixToken:a}),d=l(e,t,n,f),p=function(e,t,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,c=n.prefixToken,l=n.ignore,s=function(i){var a=i.rootCls,s=i.cssVar,u=void 0===s?{}:s,f=r().realToken;return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,c=e.scope,l=void 0===c?"":c,s=(0,w.useContext)(oc),u=s.cache.instanceId,f=s.container,d=a._tokenKey,p=[].concat(_t(e.path),[n,l,d]),h=kc(El,p,(function(){var e=t(),a=M(yc(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),c=a[0],s=a[1];return[c,s,wl(p,s),n]}),(function(e){var t=M(e,3)[2];hc&&Xe(t,{mark:tc})}),(function(e){var t=M(e,3),r=t[1],o=t[2];if(r){var i=qe(r,o,{mark:tc,prepend:"queue",attachTo:f,priority:-999});i[nc]=u,i.setAttribute(ec,n)}}))}({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:l,token:f,scope:a},(function(){var r=gs(e,f,t),o=fs(e,f,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null};return function(t){var n=r().cssVar;return[function(r){return a&&n?x().createElement(x().Fragment,null,x().createElement(s,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]}}(i,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=M(d(e,t),2)[1],r=M(p(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=l(e,t,n,Ie({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,w.useContext)(Ka);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Kl();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,w.useContext)(Ka);return((e,t)=>{const[n,r]=Kl();kl({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":ts(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},getCompUnitless:()=>Wl}),Es=e=>({animationDuration:e,animationFillMode:"both"}),Ss=e=>({animationDuration:e,animationFillMode:"both"}),$s=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${o}${e}-enter,\n      ${o}${e}-appear\n    `]:Object.assign(Object.assign({},Es(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ss(r)),{animationPlayState:"paused"}),[`\n      ${o}${e}-enter${e}-enter-active,\n      ${o}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Os={"slide-up":{inKeyframes:new $l("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new $l("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new $l("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new $l("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new $l("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new $l("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new $l("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new $l("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Ms=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Os[t];return[$s(r,o,i,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},js=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ms(e,"slide-up"),Ms(e,"slide-down")]]},Ps=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${vc(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:vc(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:vc(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${vc(e.borderRadiusLG)} 0 0 ${vc(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Rs=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},es(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${vc(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Jl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${vc(e.paddingXXS)} ${vc(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},As=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:vc(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Fs=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${vc(e.borderRadius)} ${vc(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${vc(e.borderRadius)} ${vc(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${vc(e.borderRadius)} ${vc(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${vc(e.borderRadius)} 0 0 ${vc(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ns=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:c,itemColor:l}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},rs(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},_s=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:vc(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:vc(e.marginXS)},marginLeft:{_skip_check_:!0,value:vc(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Is=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},es(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${vc(e.paddingXS)}`,background:"transparent",border:`${vc(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},rs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ns(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Ts=xs("Tabs",(e=>{const t=hs(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${vc(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${vc(e.horizontalItemGutter)}`});return[Fs(t),_s(t),As(t),Rs(t),Ps(t),Is(t),js(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const Ls=e=>{var t,n,r,o,i,a,c,l,s,u,f;const{type:d,className:p,rootClassName:h,size:v,onEdit:m,hideAdd:g,centered:b,addIcon:y,removeIcon:x,moreIcon:C,more:k,popupClassName:E,children:S,items:$,animated:O,style:M,indicatorSize:j,indicator:P}=e,R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=R,{direction:F,tabs:_,getPrefixCls:I,getPopupContainer:T}=w.useContext(Ka),L=I("tabs",A),z=(e=>{const[,,,,t]=Kl();return t?`${e}-css-var`:""})(L),[H,B,D]=Ts(L,z);let V;"editable-card"===d&&(V={onEdit:(e,t)=>{let{key:n,event:r}=t;null==m||m("add"===e?r:n,e)},removeIcon:null!==(t=null!=x?x:null==_?void 0:_.removeIcon)&&void 0!==t?t:w.createElement(gt,null),addIcon:(null!=y?y:null==_?void 0:_.addIcon)||w.createElement(kt,null),showAdd:!0!==g});const W=I(),G=Yl(v),X=function(e,t){if(e)return e;const n=Tt(t).map((e=>{if(w.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}($,S),q=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Ql),{motionName:Zl(e,"switch")})),t}(L,O),K=Object.assign(Object.assign({},null==_?void 0:_.style),M),U={align:null!==(n=null==P?void 0:P.align)&&void 0!==n?n:null===(r=null==_?void 0:_.indicator)||void 0===r?void 0:r.align,size:null!==(c=null!==(i=null!==(o=null==P?void 0:P.size)&&void 0!==o?o:j)&&void 0!==i?i:null===(a=null==_?void 0:_.indicator)||void 0===a?void 0:a.size)&&void 0!==c?c:null==_?void 0:_.indicatorSize};return H(w.createElement(qa,Object.assign({direction:F,getPopupContainer:T},R,{items:X,className:N()({[`${L}-${G}`]:G,[`${L}-card`]:["card","editable-card"].includes(d),[`${L}-editable-card`]:"editable-card"===d,[`${L}-centered`]:b},null==_?void 0:_.className,p,h,B,D,z),popupClassName:N()(E,B,D,z),style:K,editable:V,more:Object.assign({icon:null!==(f=null!==(u=null!==(s=null===(l=null==_?void 0:_.more)||void 0===l?void 0:l.icon)&&void 0!==s?s:null==_?void 0:_.moreIcon)&&void 0!==u?u:C)&&void 0!==f?f:w.createElement(wt,null),transitionName:`${W}-slide-up`},k),prefixCls:L,animated:q,indicator:U})))};Ls.TabPane=()=>null;const zs=Ls,Hs=["xxl","xl","lg","md","sm","xs"];const Bs=(0,w.createContext)({}),Ds=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Vs=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Ws=xs("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),Gs=xs("Grid",(e=>{const t=hs(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Ds(t),Vs(t,""),Vs(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${vc(t)})`]:Object.assign({},Vs(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function Xs(e,t){const[n,r]=w.useState("string"==typeof e?e:"");return w.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<Hs.length;n++){const o=Hs[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const qs=w.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:c,gutter:l=0,wrap:s}=e,u=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=w.useContext(Ka),[p,h]=w.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,m]=w.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=Xs(o,v),b=Xs(r,v),y=w.useRef(l),C=function(){const[,e]=Kl(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Hs).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return x().useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}();w.useEffect((()=>{const e=C.subscribe((e=>{m(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>C.unsubscribe(e)}),[]);const k=f("row",n),[E,S,$]=Ws(k),O=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<Hs.length;r++){const o=Hs[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),M=N()(k,{[`${k}-no-wrap`]:!1===s,[`${k}-${b}`]:b,[`${k}-${g}`]:g,[`${k}-rtl`]:"rtl"===d},i,S,$),j={},P=null!=O[0]&&O[0]>0?O[0]/-2:void 0;P&&(j.marginLeft=P,j.marginRight=P);const[R,A]=O;j.rowGap=A;const F=w.useMemo((()=>({gutter:[R,A],wrap:s})),[R,A,s]);return E(w.createElement(Bs.Provider,{value:F},w.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},j),a),ref:t}),c)))})),Ks=qs;function Us(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Ys=["xs","sm","md","lg","xl","xxl"],Zs=w.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=w.useContext(Ka),{gutter:o,wrap:i}=w.useContext(Bs),{prefixCls:a,span:c,order:l,offset:s,push:u,pull:f,className:d,children:p,flex:h,style:v}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[b,y,x]=Gs(g),C={};let k={};Ys.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],k=Object.assign(Object.assign({},k),{[`${g}-${t}-${n.span}`]:void 0!==n.span,[`${g}-${t}-order-${n.order}`]:n.order||0===n.order,[`${g}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${g}-${t}-push-${n.push}`]:n.push||0===n.push,[`${g}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${g}-rtl`]:"rtl"===r}),n.flex&&(k[`${g}-${t}-flex`]=!0,C[`--${g}-${t}-flex`]=Us(n.flex))}));const E=N()(g,{[`${g}-${c}`]:void 0!==c,[`${g}-order-${l}`]:l,[`${g}-offset-${s}`]:s,[`${g}-push-${u}`]:u,[`${g}-pull-${f}`]:f},d,k,y,x),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=Us(h),!1!==i||S.minWidth||(S.minWidth=0)),b(w.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},S),v),C),className:E,ref:t}),p))})),Qs=Zs,Js=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=N()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=N()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=w.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return w.createElement("span",{className:N()(t,a,c,n),style:Object.assign(Object.assign({},l),r)})},eu=new $l("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),tu=e=>({height:e,lineHeight:vc(e)}),nu=e=>Object.assign({width:e},tu(e)),ru=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:eu,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ou=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},tu(e)),iu=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},nu(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},nu(o)),[`${t}${t}-sm`]:Object.assign({},nu(i))}},au=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},ou(t,c)),[`${r}-lg`]:Object.assign({},ou(o,c)),[`${r}-sm`]:Object.assign({},ou(i,c))}},cu=e=>Object.assign({width:e},tu(e)),lu=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},cu(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cu(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},su=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},uu=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},tu(e)),fu=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},uu(r,c))},su(e,r,n)),{[`${n}-lg`]:Object.assign({},uu(o,c))}),su(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},uu(i,c))}),su(e,i,`${n}-sm`))},du=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:c,controlHeight:l,controlHeightLG:s,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:m,paragraphLiHeight:g,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},nu(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},nu(s)),[`${n}-sm`]:Object.assign({},nu(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fu(e)),iu(e)),au(e)),lu(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${c}\n      `]:Object.assign({},ru(e))}}},pu=xs("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=hs(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[du(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),hu=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},vu=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=_t(new Array(o)).map(((t,n)=>w.createElement("li",{key:n,style:{width:hu(n,e)}})));return w.createElement("ul",{className:N()(t,n),style:r},i)},mu=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return w.createElement("h3",{className:N()(t,n),style:Object.assign({width:r},o)})};function gu(e){return e&&"object"==typeof e?e:{}}const bu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:c=!1,title:l=!0,paragraph:s=!0,active:u,round:f}=e,{getPrefixCls:d,direction:p,skeleton:h}=w.useContext(Ka),v=d("skeleton",t),[m,g,b]=pu(v);if(n||!("loading"in e)){const e=!!c,t=!!l,n=!!s;let a,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),gu(c));a=w.createElement("div",{className:`${v}-header`},w.createElement(Js,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),gu(l));r=w.createElement(mu,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),gu(s));o=w.createElement(vu,Object.assign({},n))}d=w.createElement("div",{className:`${v}-content`},r,o)}const y=N()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:u,[`${v}-rtl`]:"rtl"===p,[`${v}-round`]:f},null==h?void 0:h.className,r,o,g,b);return m(w.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,d))}return null!=a?a:null};bu.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-button`,size:a},d))))},bu.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls","className"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},bu.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=Wi(e,["prefixCls"]),p=N()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return s(w.createElement("div",{className:p},w.createElement(Js,Object.assign({prefixCls:`${l}-input`,size:a},d))))},bu.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=w.useContext(Ka),c=a("skeleton",t),[l,s,u]=pu(c),f=N()(c,`${c}-element`,{[`${c}-active`]:i},n,r,s,u);return l(w.createElement("div",{className:f},w.createElement("div",{className:N()(`${c}-image`,n),style:o},w.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},w.createElement("title",null,"Image placeholder"),w.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},bu.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("skeleton",t),[s,u,f]=pu(l),d=N()(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,f);return s(w.createElement("div",{className:d},w.createElement("div",{className:N()(`${l}-image`,n),style:o},a)))};const yu=bu;const wu=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=w.useContext(Ka),a=i("card",t),c=N()(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return w.createElement("div",Object.assign({},o,{className:c}))},xu=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${vc(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Jl),{[`\n          > ${n}-typography,\n          > ${n}-typography-edit-content\n        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${vc(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Cu=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n      ${vc(o)} 0 0 0 ${n},\n      0 ${vc(o)} 0 0 ${n},\n      ${vc(o)} ${vc(o)} 0 0 ${n},\n      ${vc(o)} 0 0 0 ${n} inset,\n      0 ${vc(o)} 0 0 ${n} inset;\n    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ku=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${vc(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:vc(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:vc(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${vc(e.lineWidth)} ${e.lineType} ${i}`}}})},Eu=e=>Object.assign(Object.assign({margin:`${vc(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Jl),"&-description":{color:e.colorTextDescription}}),Su=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${vc(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${vc(e.padding)} ${vc(n)}`}}},$u=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ou=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:c}=e;return{[t]:Object.assign(Object.assign({},es(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:xu(e),[`${t}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:Cu(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ku(e),[`${t}-meta`]:Eu(e)}),[`${t}-bordered`]:{border:`${vc(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${vc(e.borderRadiusLG)} ${vc(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Su(e),[`${t}-loading`]:$u(e),[`${t}-rtl`]:{direction:"rtl"}}},Mu=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${vc(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ju=xs("Card",(e=>{const t=hs(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Ou(t),Mu(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Pu=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ru=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return w.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return w.createElement("li",{style:{width:100/n.length+"%"},key:r},w.createElement("span",null,e))})))},Au=w.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:c={},bodyStyle:l={},title:s,loading:u,bordered:f=!0,size:d,type:p,cover:h,actions:v,tabList:m,children:g,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:C,tabProps:k={},classNames:E,styles:S}=e,$=Pu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:M,card:j}=w.useContext(Ka),P=e=>{var t;return N()(null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t[e],null==E?void 0:E[e])},R=e=>{var t;return Object.assign(Object.assign({},null===(t=null==j?void 0:j.styles)||void 0===t?void 0:t[e]),null==S?void 0:S[e])},A=w.useMemo((()=>{let e=!1;return w.Children.forEach(g,(t=>{(null==t?void 0:t.type)===wu&&(e=!0)})),e}),[g]),F=O("card",n),[_,I,T]=ju(F),L=w.createElement(yu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),z=void 0!==b,H=Object.assign(Object.assign({},k),{[z?"activeKey":"defaultActiveKey"]:z?b:y,tabBarExtraContent:x});let B;const D=Yl(d),V=D&&"default"!==D?D:"large",W=m?w.createElement(zs,Object.assign({size:V},H,{className:`${F}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:m.map((e=>{var{tab:t}=e,n=Pu(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(s||a||W){const e=N()(`${F}-head`,P("header")),t=N()(`${F}-head-title`,P("title")),n=N()(`${F}-extra`,P("extra")),r=Object.assign(Object.assign({},c),R("header"));B=w.createElement("div",{className:e,style:r},w.createElement("div",{className:`${F}-head-wrapper`},s&&w.createElement("div",{className:t,style:R("title")},s),a&&w.createElement("div",{className:n,style:R("extra")},a)),W)}const G=N()(`${F}-cover`,P("cover")),X=h?w.createElement("div",{className:G,style:R("cover")},h):null,q=N()(`${F}-body`,P("body")),K=Object.assign(Object.assign({},l),R("body")),U=w.createElement("div",{className:q,style:K},u?L:g),Y=N()(`${F}-actions`,P("actions")),Z=(null==v?void 0:v.length)?w.createElement(Ru,{actionClasses:Y,actionStyle:R("actions"),actions:v}):null,Q=Wi($,["onTabChange"]),J=N()(F,null==j?void 0:j.className,{[`${F}-loading`]:u,[`${F}-bordered`]:f,[`${F}-hoverable`]:C,[`${F}-contain-grid`]:A,[`${F}-contain-tabs`]:null==m?void 0:m.length,[`${F}-${D}`]:D,[`${F}-type-${p}`]:!!p,[`${F}-rtl`]:"rtl"===M},r,o,I,T),ee=Object.assign(Object.assign({},null==j?void 0:j.style),i);return _(w.createElement("div",Object.assign({ref:t},Q,{className:J,style:ee}),B,X,U,Z))}));const Fu=Au;Fu.Grid=wu,Fu.Meta=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=w.useContext(Ka),l=c("card",t),s=N()(`${l}-meta`,n),u=r?w.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?w.createElement("div",{className:`${l}-meta-title`},o):null,d=i?w.createElement("div",{className:`${l}-meta-description`},i):null,p=f||d?w.createElement("div",{className:`${l}-meta-detail`},f,d):null;return w.createElement("div",Object.assign({},a,{className:s}),u,p)};const Nu=Fu,_u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},es(e)),{borderBlockStart:`${vc(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${vc(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${vc(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${vc(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${vc(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${vc(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${vc(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Iu=xs("Divider",(e=>{const t=hs(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[_u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const Tu=e=>{const{getPrefixCls:t,direction:n,divider:r}=w.useContext(Ka),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:c,className:l,rootClassName:s,children:u,dashed:f,variant:d="solid",plain:p,style:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),m=t("divider",o),[g,b,y]=Iu(m),x=!!u,C="left"===a&&null!=c,k="right"===a&&null!=c,E=N()(m,null==r?void 0:r.className,b,y,`${m}-${i}`,{[`${m}-with-text`]:x,[`${m}-with-text-${a}`]:x,[`${m}-dashed`]:!!f,[`${m}-${d}`]:"solid"!==d,[`${m}-plain`]:!!p,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:C,[`${m}-no-default-orientation-margin-right`]:k},l,s),S=w.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),$=Object.assign(Object.assign({},C&&{marginLeft:S}),k&&{marginRight:S});return g(w.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},v,{role:"separator"}),u&&"vertical"!==i&&w.createElement("span",{className:`${m}-inner-text`,style:$},u)))};function Lu(e){return["small","middle","large"].includes(e)}const zu=["wrap","nowrap","wrap-reverse"],Hu=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Bu=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Du=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Vu=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Wu=e=>{const{componentCls:t}=e,n={};return zu.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},Gu=e=>{const{componentCls:t}=e,n={};return Bu.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},Xu=e=>{const{componentCls:t}=e,n={};return Hu.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},qu=xs("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=hs(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[Du(o),Vu(o),Wu(o),Gu(o),Xu(o)]}),(()=>({})),{resetStyle:!1});const Ku=x().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:c,children:l,vertical:s=!1,component:u="div"}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:p,getPrefixCls:h}=x().useContext(Ka),v=h("flex",n),[m,g,b]=qu(v),y=null!=s?s:null==d?void 0:d.vertical,w=N()(o,r,null==d?void 0:d.className,v,g,b,function(e,t){return N()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&zu.includes(n)}})(e,t)),((e,t)=>{const n={};return Bu.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return Hu.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))}(v,e),{[`${v}-rtl`]:"rtl"===p,[`${v}-gap-${c}`]:Lu(c),[`${v}-vertical`]:y}),C=Object.assign(Object.assign({},null==d?void 0:d.style),i);return a&&(C.flex=a),c&&!Lu(c)&&(C.gap=c),m(x().createElement(u,Object.assign({ref:t,className:w,style:C},Wi(f,["justify","wrap","align"])),l))})),Uu=Ku;function Yu(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return w.createElement("div",{className:N()("".concat(n,"-content"),i),style:a},w.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var Zu={shiftX:64,adjustY:1},Qu={adjustX:1,shiftY:!0},Ju=[0,0],ef={left:{points:["cr","cl"],overflow:Qu,offset:[-4,0],targetOffset:Ju},right:{points:["cl","cr"],overflow:Qu,offset:[4,0],targetOffset:Ju},top:{points:["bc","tc"],overflow:Zu,offset:[0,-4],targetOffset:Ju},bottom:{points:["tc","bc"],overflow:Zu,offset:[0,4],targetOffset:Ju},topLeft:{points:["bl","tl"],overflow:Zu,offset:[0,-4],targetOffset:Ju},leftTop:{points:["tr","tl"],overflow:Qu,offset:[-4,0],targetOffset:Ju},topRight:{points:["br","tr"],overflow:Zu,offset:[0,-4],targetOffset:Ju},rightTop:{points:["tl","tr"],overflow:Qu,offset:[4,0],targetOffset:Ju},bottomRight:{points:["tr","br"],overflow:Zu,offset:[0,4],targetOffset:Ju},rightBottom:{points:["bl","br"],overflow:Qu,offset:[4,0],targetOffset:Ju},bottomLeft:{points:["tl","bl"],overflow:Zu,offset:[0,4],targetOffset:Ju},leftBottom:{points:["br","bl"],overflow:Qu,offset:[-4,0],targetOffset:Ju}},tf=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],nf=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,c=e.mouseLeaveDelay,l=void 0===c?.1:c,s=e.overlayStyle,u=e.prefixCls,f=void 0===u?"rc-tooltip":u,d=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,v=e.transitionName,m=e.animation,g=e.motion,b=e.placement,y=void 0===b?"right":b,x=e.align,k=void 0===x?{}:x,E=e.destroyTooltipOnHide,S=void 0!==E&&E,$=e.defaultVisible,O=e.getTooltipContainer,M=e.overlayInnerStyle,j=(e.arrowContent,e.overlay),P=e.id,R=e.showArrow,F=void 0===R||R,N=A(e,tf),_=(0,w.useRef)(null);(0,w.useImperativeHandle)(t,(function(){return _.current}));var I=Ie({},N);return"visible"in e&&(I.popupVisible=e.visible),w.createElement(Fo,C({popupClassName:n,prefixCls:f,popup:function(){return w.createElement(Yu,{key:"content",prefixCls:f,id:P,overlayInnerStyle:M},j)},action:o,builtinPlacements:ef,popupPlacement:y,ref:_,popupAlign:k,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:m,popupMotion:g,defaultPopupVisible:$,autoDestroy:S,mouseLeaveDelay:l,popupStyle:s,mouseEnterDelay:a,arrow:F},I),d)};const rf=(0,w.forwardRef)(nf);function of(){of=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),c=new R(r||[]);return o(a,"_invoke",{value:$(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=y.prototype=g.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==j(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function $(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(j(t)+" is not iterable")}return b.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(k),s(k,l,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function af(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function cf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){af(i,r,o,a,c,"next",e)}function c(e){af(i,r,o,a,c,"throw",e)}a(void 0)}))}}var lf="RC_FORM_INTERNAL_HOOKS",sf=function(){nt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const uf=w.createContext({getFieldValue:sf,getFieldsValue:sf,getFieldError:sf,getFieldWarning:sf,getFieldsError:sf,isFieldsTouched:sf,isFieldTouched:sf,isFieldValidating:sf,isFieldsValidating:sf,resetFields:sf,setFields:sf,setFieldValue:sf,setFieldsValue:sf,validateFields:sf,submit:sf,getInternalHooks:function(){return sf(),{dispatch:sf,initEntityValue:sf,registerField:sf,useSubscribe:sf,setInitialValues:sf,destroyForm:sf,setCallbacks:sf,registerWatch:sf,getFields:sf,setValidateMessages:sf,setPreserve:sf,getInitialValue:sf}}}),ff=w.createContext(null);function df(e){return null==e?[]:Array.isArray(e)?e:[e]}function pf(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var hf=pf();function vf(e){var t="function"==typeof Map?new Map:void 0;return vf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(En())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&xn(o,n.prototype),o}(e,arguments,kn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),xn(n,e)},vf(e)}var mf=/%[sdj%]/g;function gf(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function bf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(mf,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function yf(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function wf(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}"undefined"!=typeof process&&process.env;var xf=function(e){Cn(n,e);var t=$n(n);function n(e,r){var o;return bn(this,n),R(Sn(o=t.call(this,"Async Validation Error")),"errors",void 0),R(Sn(o),"fields",void 0),o.errors=e,o.fields=r,o}return wn(n)}(vf(Error));function Cf(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function kf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===j(r)&&"object"===j(e[n])?e[n]=Ie(Ie({},e[n]),r):e[n]=r}return e}var Ef="enum";const Sf=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!yf(t,i||e.type)||r.push(bf(o.messages.required,e.fullField))};var $f,Of=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Mf=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jf={integer:function(e){return jf.number(e)&&parseInt(e,10)===e},float:function(e){return jf.number(e)&&!jf.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===j(e)&&!jf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Of)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if($f)return $f;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,f=s.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return $f=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Mf)}};const Pf=Sf,Rf=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(bf(o.messages.whitespace,e.fullField))},Af=function(e,t,n,r,o){if(e.required&&void 0===t)Sf(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jf[i](t)||r.push(bf(o.messages.types[i],e.fullField,e.type)):i&&j(t)!==e.type&&r.push(bf(o.messages.types[i],e.fullField,e.type))}},Ff=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,l=t,s=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?s="number":f?s="string":d&&(s="array"),!s)return!1;d&&(l=t.length),f&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(bf(o.messages[s].len,e.fullField,e.len)):a&&!c&&l<e.min?r.push(bf(o.messages[s].min,e.fullField,e.min)):c&&!a&&l>e.max?r.push(bf(o.messages[s].max,e.fullField,e.max)):a&&c&&(l<e.min||l>e.max)&&r.push(bf(o.messages[s].range,e.fullField,e.min,e.max))},Nf=function(e,t,n,r,o){e[Ef]=Array.isArray(e[Ef])?e[Ef]:[],-1===e[Ef].indexOf(t)&&r.push(bf(o.messages[Ef],e.fullField,e[Ef].join(", ")))},_f=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(bf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(bf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},If=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,i)&&!e.required)return n();Pf(e,t,r,a,o,i),yf(t,i)||Af(e,t,r,a,o)}n(a)},Tf={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"string")&&!e.required)return n();Pf(e,t,r,i,o,"string"),yf(t,"string")||(Af(e,t,r,i,o),Ff(e,t,r,i,o),_f(e,t,r,i,o),!0===e.whitespace&&Rf(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),yf(t)||Af(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Pf(e,t,r,i,o,"array"),null!=t&&(Af(e,t,r,i,o),Ff(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Af(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o),void 0!==t&&Nf(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"string")&&!e.required)return n();Pf(e,t,r,i,o),yf(t,"string")||_f(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t,"date")&&!e.required)return n();var a;Pf(e,t,r,i,o),yf(t,"date")||(a=t instanceof Date?t:new Date(t),Af(e,a,r,i,o),a&&Ff(e,a.getTime(),r,i,o))}n(i)},url:If,hex:If,email:If,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":j(t);Pf(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yf(t)&&!e.required)return n();Pf(e,t,r,i,o)}n(i)}};var Lf=function(){function e(t){bn(this,e),R(this,"rules",null),R(this,"_messages",hf),this.define(t)}return wn(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==j(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=kf(pf(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===hf&&(a=pf()),kf(a,o.messages),o.messages=a}else o.messages=this.messages();var c={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Ie({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":j(i)))),(a="function"==typeof a?{validator:a}:Ie({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:i,source:r,field:e}))}))}));var l={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,_t(e[n]||[]))})),t}(e);wf(a,n,(function(e){return r(e),e.length?i(new xf(e,gf(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),l=c.length,s=0,u=[],f=new Promise((function(t,i){var f=function(e){if(u.push.apply(u,e),++s===l)return r(u),u.length?i(new xf(u,gf(u))):t(o)};c.length||(r(u),t(o)),c.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?wf(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,_t(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f.catch((function(e){return e})),f}(c,o,(function(t,n){var i,a=t.rule,c=!("object"!==a.type&&"array"!==a.type||"object"!==j(a.fields)&&"object"!==j(a.defaultField));function s(e,t){return Ie(Ie({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(_t(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var f=u.map(Cf(a,r));if(o.first&&f.length)return l[a.field]=1,n(f);if(c){if(a.required&&!t.value)return void 0!==a.message?f=[].concat(a.message).map(Cf(a,r)):o.error&&(f=[o.error(a,bf(o.messages.required,a.field))]),n(f);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=Ie(Ie({},d),t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];f&&f.length&&t.push.apply(t,_t(f)),e&&e.length&&t.push.apply(t,_t(e)),n(t.length?t:null)}))}else n(f)}if(c=c&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var f,d;null===(f=(d=console).error)||void 0===f||f.call(d,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},c=0;c<e.length;c++)t=e[c],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,_t(t)):o.push(t);o.length?(a=gf(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Tf.hasOwnProperty(e.type))throw new Error(bf("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Tf.required:Tf[this.getType(e)]||void 0}}]),e}();R(Lf,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Tf[e]=t})),R(Lf,"warning",(function(){})),R(Lf,"messages",hf),R(Lf,"validators",Tf);var zf="'${name}' is not a valid ${type}",Hf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zf,method:zf,array:zf,object:zf,number:zf,date:zf,boolean:zf,integer:zf,float:zf,regexp:zf,email:zf,url:zf,hex:zf},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Bf=Lf;function Df(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Vf="CODE_LOGIC_ERROR";function Wf(_x,e,t,n,r){return Gf.apply(this,arguments)}function Gf(){return Gf=cf(of().mark((function e(t,n,r,o,i){var a,c,l,s,u,f,d,p,h;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Ie({},r)).ruleIndex,Bf.warning=function(){},a.validator&&(c=a.validator,a.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Vf)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),s=new Bf(R({},t,[a])),u=yr(Hf,o.validateMessages),s.messages(u),f=[],e.prev=10,e.next=13,Promise.resolve(s.validate(R({},t,n),Ie({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,r=n===Vf?u.default:n;return w.isValidElement(r)?w.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Wf("".concat(t,".").concat(n),e,l,o,i)})));case 21:return d=e.sent,e.abrupt("return",d.reduce((function(e,t){return[].concat(_t(e),_t(t))}),[]));case 23:return p=Ie(Ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map((function(e){return"string"==typeof e?Df(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Gf.apply(this,arguments)}function Xf(e,t,n,r,o,i){var a,c=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Ie(Ie({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){nt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,nt(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=cf(of().mark((function e(n,o){var a,s,u;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return s=l[a],e.next=5,Wf(c,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=l.map((function(e){return Wf(c,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Kf.apply(this,arguments)}(s):function(e){return qf.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function qf(){return(qf=cf(of().mark((function e(t){return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,_t(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kf(){return(Kf=cf(of().mark((function e(t){var n;return of().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uf(e){return df(e)}function Yf(e,t){var n={};return t.forEach((function(t){var r=hr(e,t);n=mr(n,t,r)})),n}function Zf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Qf(t,e,n)}))}function Qf(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Jf(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===j(t.target)&&e in t.target?t.target[e]:t}function ed(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(_t(e.slice(0,n)),[o],_t(e.slice(n,t)),_t(e.slice(t+1,r))):i<0?[].concat(_t(e.slice(0,t)),_t(e.slice(t+1,n+1)),[o],_t(e.slice(n+1,r))):e}var td=["name"],nd=[];function rd(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var od=function(e){Cn(n,e);var t=$n(n);function n(e){var r;return bn(this,n),R(Sn(r=t.call(this,e)),"state",{resetCount:0}),R(Sn(r),"cancelRegisterFunc",null),R(Sn(r),"mounted",!1),R(Sn(r),"touched",!1),R(Sn(r),"dirty",!1),R(Sn(r),"validatePromise",void 0),R(Sn(r),"prevValidating",void 0),R(Sn(r),"errors",nd),R(Sn(r),"warnings",nd),R(Sn(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Uf(o)),r.cancelRegisterFunc=null})),R(Sn(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(_t(void 0===n?[]:n),_t(t)):[]})),R(Sn(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),R(Sn(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),R(Sn(r),"metaCache",null),R(Sn(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Ie(Ie({},r.getMeta()),{},{destroy:e});fi(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),R(Sn(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,l=o.onReset,s=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(s),p=t&&Zf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||fi(f,d)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=nd,r.warnings=nd,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=nd,r.warnings=nd,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&rd(i,e,s,f,d,n))return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||nd),"warnings"in h&&(r.warnings=h.warnings||nd),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Zf(t,u,!0))return void r.reRender();if(i&&!u.length&&rd(i,e,s,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(c.map(Uf).some((function(e){return Zf(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!c.length||u.length||i)&&rd(i,e,s,f,d,n))return void r.reRender()}!0===i&&r.reRender()})),R(Sn(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,c=void 0!==a&&a,l=Promise.resolve().then(cf(of().mark((function o(){var a,c,s,u,f,d,p;return of().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,c=a.validateFirst,s=void 0!==c&&c,u=a.messageVariables,f=a.validateDebounce,d=r.getRules(),i&&(d=d.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||df(t).includes(i)}))),!f||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,f)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=Xf(t,n,d,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nd;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?nd:r;t?o.push.apply(o,_t(i)):n.push.apply(n,_t(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return c||(r.validatePromise=l,r.dirty=!0,r.errors=nd,r.warnings=nd,r.triggerMetaEvent(),r.reRender()),l})),R(Sn(r),"isFieldValidating",(function(){return!!r.validatePromise})),R(Sn(r),"isFieldTouched",(function(){return r.touched})),R(Sn(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(lf).getInitialValue)(r.getNamePath())})),R(Sn(r),"getErrors",(function(){return r.errors})),R(Sn(r),"getWarnings",(function(){return r.warnings})),R(Sn(r),"isListField",(function(){return r.props.isListField})),R(Sn(r),"isList",(function(){return r.props.isList})),R(Sn(r),"isPreserve",(function(){return r.props.preserve})),R(Sn(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),R(Sn(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Ie(Ie({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Tt(e);return 1===n.length&&w.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),R(Sn(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return hr(e||t(!0),n)})),R(Sn(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,c=t.normalize,l=t.valuePropName,s=t.getValueProps,u=t.fieldContext,f=void 0!==i?i:u.validateTrigger,d=r.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,v=p(lf).dispatch,m=r.getValue(),g=s||function(e){return R({},l,e)},b=e[o],y=void 0!==n?g(m):{},w=Ie(Ie({},e),y);return w[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Jf.apply(void 0,[l].concat(n)),c&&(e=c(e,m,h(!0))),v({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},df(f||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&v({type:"validateField",namePath:d,triggerName:e})}})),w})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(lf).initEntityValue)(Sn(r)),r}return wn(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(lf).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:w.isValidElement(o)?e=w.cloneElement(o,this.getControlled(o.props)):(nt(!o,"`children` of Field is not validate ReactElement."),e=o),w.createElement(w.Fragment,{key:t},e)}}]),n}(w.Component);R(od,"contextType",uf),R(od,"defaultProps",{trigger:"onChange",valuePropName:"value"});const id=function(e){var t=e.name,n=A(e,td),r=w.useContext(uf),o=w.useContext(ff),i=void 0!==t?Uf(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),w.createElement(od,C({key:a,name:i,isListField:!!o},n,{fieldContext:r}))};var ad="__@field_split__";function cd(e){return e.map((function(e){return"".concat(j(e),":").concat(e)})).join(ad)}var ld=function(){function e(){bn(this,e),R(this,"kvs",new Map)}return wn(e,[{key:"set",value:function(e,t){this.kvs.set(cd(e),t)}},{key:"get",value:function(e){return this.kvs.get(cd(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(cd(e))}},{key:"map",value:function(e){return _t(this.kvs.entries()).map((function(t){var n=M(t,2),r=n[0],o=n[1],i=r.split(ad);return e({key:i.map((function(e){var t=M(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const sd=ld;var ud=["name"],fd=wn((function e(t){var n=this;bn(this,e),R(this,"formHooked",!1),R(this,"forceRootUpdate",void 0),R(this,"subscribable",!0),R(this,"store",{}),R(this,"fieldEntities",[]),R(this,"initialValues",{}),R(this,"callbacks",{}),R(this,"validateMessages",null),R(this,"preserve",null),R(this,"lastValidatePromise",null),R(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),R(this,"getInternalHooks",(function(e){return e===lf?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(nt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),R(this,"useSubscribe",(function(e){n.subscribable=e})),R(this,"prevWithoutPreserves",null),R(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=yr(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=mr(o,n,hr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),R(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new sd;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),R(this,"getInitialValue",(function(e){var t=hr(n.initialValues,e);return e.length?yr(t):t})),R(this,"setCallbacks",(function(e){n.callbacks=e})),R(this,"setValidateMessages",(function(e){n.validateMessages=e})),R(this,"setPreserve",(function(e){n.preserve=e})),R(this,"watchList",[]),R(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),R(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),R(this,"timeoutId",null),R(this,"warningUnhooked",(function(){})),R(this,"updateStore",(function(e){n.store=e})),R(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),R(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new sd;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),R(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Uf(e);return t.get(n)||{INVALIDATE_NAME_PATH:Uf(e)}}))})),R(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===j(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return a.forEach((function(e){var t,n,a,l,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&c.push(s)}else c.push(s)})),Yf(n.store,c.map(Uf))})),R(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Uf(e);return hr(n.store,t)})),R(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Uf(e[n]),errors:[],warnings:[]}}))})),R(this,"getFieldError",(function(e){n.warningUnhooked();var t=Uf(e);return n.getFieldsError([t])[0].errors})),R(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Uf(e);return n.getFieldsError([t])[0].warnings})),R(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Uf),c=!1):(o=null,c=i):(o=i.map(Uf),c=a);var l=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return c?l.every((function(e){return s(e)||e.isList()})):l.some(s);var u=new sd;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(_t(t),[e])}))}))}));var f=function(e){return e.some(s)},d=u.map((function(e){return e.value}));return c?d.every(f):d.some(f)})),R(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),R(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Uf);return t.some((function(e){var t=e.getNamePath();return Zf(r,t)&&e.isFieldValidating()}))})),R(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),R(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new sd,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,_t(_t(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))nt(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)nt(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(mr(n.store,o,_t(i)[0].value))}}}}))})),R(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(yr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Uf);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(mr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),R(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=A(e,ud),a=Uf(o);r.push(a),"value"in i&&n.updateStore(mr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),R(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Ie(Ie({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),R(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===hr(n.store,r)&&n.updateStore(mr(n.store,r,t))}})),R(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),R(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Qf(e.getNamePath(),t)}))){var c=n.store;n.updateStore(mr(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}})),R(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),R(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Ie(Ie({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),R(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(_t(r))}),r})),R(this,"updateValue",(function(e,t){var r=Uf(e),o=n.store;n.updateStore(mr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Yf(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(_t(i)))})),R(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=yr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),R(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),R(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new sd;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Uf(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),R(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new sd;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Zf(e,n)}));a.length&&r(a,o)}})),R(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Uf):[],c=[],l=String(Date.now()),s=new Set,u=o||{},f=u.recursive,d=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(l)),!i||Zf(a,t,f)){var r=e.validateRules(Ie({validateMessages:Ie(Ie({},Hf),n.validateMessages)},o));c.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,_t(n)):r.push.apply(r,_t(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(c);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(l))}));return n.triggerOnFieldsChange(v),h})),R(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const dd=function(e){var t=w.useRef(),n=M(w.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new fd((function(){n({})}));t.current=r.getForm()}return[t.current]};var pd=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const hd=pd;var vd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const md=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,c=e.children,l=e.component,s=void 0===l?"form":l,u=e.validateMessages,f=e.validateTrigger,d=void 0===f?"onChange":f,p=e.onValuesChange,h=e.onFieldsChange,v=e.onFinish,m=e.onFinishFailed,g=e.clearOnDestroy,b=A(e,vd),y=w.useRef(null),x=w.useContext(hd),k=M(dd(i),1)[0],E=k.getInternalHooks(lf),S=E.useSubscribe,$=E.setInitialValues,O=E.setCallbacks,P=E.setValidateMessages,R=E.setPreserve,F=E.destroyForm;w.useImperativeHandle(t,(function(){return Ie(Ie({},k),{},{nativeElement:y.current})})),w.useEffect((function(){return x.registerForm(n,k),function(){x.unregisterForm(n)}}),[x,k,n]),P(Ie(Ie({},x.validateMessages),u)),O({onValuesChange:p,onFieldsChange:function(e){if(x.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:m}),R(a);var N,_=w.useRef(null);$(r,!_.current),_.current||(_.current=!0),w.useEffect((function(){return function(){return F(g)}}),[]);var I="function"==typeof c;N=I?c(k.getFieldsValue(!0),k):c,S(!I);var T=w.useRef();w.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==j(e)||"object"!==j(t))return!1;var n=Object.keys(e),r=Object.keys(t);return _t(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],o||[])||k.setFields(o||[]),T.current=o}),[o,k]);var L=w.useMemo((function(){return Ie(Ie({},k),{},{validateTrigger:d})}),[k,d]),z=w.createElement(ff.Provider,{value:null},w.createElement(uf.Provider,{value:L},N));return!1===s?z:w.createElement(s,C({},b,{ref:y,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),z)};function gd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var bd=w.forwardRef(md);bd.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=w.useContext(pd),a=w.useRef({});return w.createElement(pd.Provider,{value:Ie(Ie({},i),{},{validateMessages:Ie(Ie({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Ie(Ie({},a.current),{},R({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Ie({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},bd.Field=id,bd.List=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,c=w.useContext(uf),l=w.useContext(ff),s=w.useRef({keys:[],id:0}).current,u=w.useMemo((function(){var e=Uf(c.prefixName)||[];return[].concat(_t(e),_t(Uf(t)))}),[c.prefixName,t]),f=w.useMemo((function(){return Ie(Ie({},c),{},{prefixName:u})}),[c,u]),d=w.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(nt(!1,"Form.List only accepts function as children."),null):w.createElement(ff.Provider,{value:d},w.createElement(uf.Provider,{value:f},w.createElement(id,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(u||[])||[]},f={add:function(e,t){var n=l();t>=0&&t<=n.length?(s.keys=[].concat(_t(s.keys.slice(0,t)),[s.id],_t(s.keys.slice(t))),i([].concat(_t(n.slice(0,t)),[e],_t(n.slice(t))))):(s.keys=[].concat(_t(s.keys),[s.id]),i([].concat(_t(n),[e]))),s.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(s.keys=ed(s.keys,e,t),i(ed(n,e,t)))}}},d=o||[];return Array.isArray(d)||(d=[]),r(d.map((function(__,e){var t=s.keys[e];return void 0===t&&(s.keys[e]=s.id,t=s.keys[e],s.id+=1),{name:e,key:t,isListField:!0}})),f,t)}))))},bd.useForm=dd,bd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,c=a.form,l=M((0,w.useState)(),2),s=l[0],u=l[1],f=(0,w.useMemo)((function(){return gd(s)}),[s]),d=(0,w.useRef)(f);d.current=f;var p=(0,w.useContext)(uf),h=c||p,v=h&&h._init,m=Uf(r),g=(0,w.useRef)(m);return g.current=m,(0,w.useEffect)((function(){if(v){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(lf).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):hr(n,g.current)},o=t((function(e,t){var r=n(e,t),o=gd(r);d.current!==o&&(d.current=o,u(r))})),i=n(e(),e(!0));return s!==i&&u(i),o}}),[v]),s};const yd=w.createContext({}),wd=e=>{let{children:t,status:n,override:r}=e;const o=(0,w.useContext)(yd),i=(0,w.useMemo)((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return w.createElement(yd.Provider,{value:i},t)},xd=w.createContext(null),Cd=e=>{let{children:t}=e;return w.createElement(xd.Provider,{value:null},t)},kd=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=x().createElement(wd,{override:!0,status:!0},o)),t&&(o=x().createElement(Cd,null,o)),o},Ed=x().createContext(void 0),Sd=100,$d={Modal:Sd,Drawer:Sd,Popover:Sd,Popconfirm:Sd,Tooltip:Sd,Tour:Sd,FloatButton:Sd},Od={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Md=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:c,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${vc(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function jd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Pd(e,t){return e?t:{}}function Rd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:c=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Md(e,t,o)),{"&:before":{background:t}})]},Pd(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${vc(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pd(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${vc(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pd(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Pd(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Ad={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Fd={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Nd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _d(){}const Id=new $l("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Td=new $l("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ld=new $l("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zd=new $l("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Hd=new $l("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bd=new $l("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Dd={zoom:{inKeyframes:Id,outKeyframes:Td},"zoom-big":{inKeyframes:Ld,outKeyframes:zd},"zoom-big-fast":{inKeyframes:Ld,outKeyframes:zd},"zoom-left":{inKeyframes:new $l("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new $l("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new $l("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new $l("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Hd,outKeyframes:Bd},"zoom-down":{inKeyframes:new $l("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new $l("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Vd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dd[t];return[$s(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wd=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Gd(e,t){return Wd.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:c}))}),{})}const Xd=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:c,boxShadowSecondary:l,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},es(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:c,padding:`${vc(e.calc(s).div(2).equal())} ${vc(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Gd(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Rd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,f=s,d=2*o-a,p=c,h=2*o-0,v=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${c} L ${l} ${s} A ${n} ${n} 0 0 1 ${u} ${f} L ${d} ${p} A ${r} ${r} 0 0 0 ${h} ${v} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`}}(hs(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Kd=function(e){const t=xs("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=hs(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Xd(o),Vd(e,"zoom-big-fast")]}),qd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Ud=Wd.map((e=>`${e}-inverse`));function Yd(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Wd.includes(e):[].concat(_t(Ud),_t(Wd)).includes(e)}(t),r=N()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Zd=w.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:c,color:l,overlayInnerStyle:s,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:p,arrow:h=!0,title:v,overlay:m,builtinPlacements:g,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,C=!!h,[,k]=Kl(),{getPopupContainer:E,getPrefixCls:S,direction:$}=w.useContext(Ka),O=(()=>{const e=()=>{};return e.deprecated=_d,e})(),M=w.useRef(null),j=()=>{var e;null===(e=M.current)||void 0===e||e.forceAlign()};w.useImperativeHandle(t,(()=>{var e;return{forceAlign:j,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),j()},nativeElement:null===(e=M.current)||void 0===e?void 0:e.nativeElement}}));const[P,R]=Rt(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),A=!v&&!m&&0!==v,F=w.useMemo((()=>{var e,t;let n=b;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:b),g||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,c=t/2,l={};return Object.keys(Ad).forEach((e=>{const s=r&&Fd[e]||Ad[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Nd.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-c-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=c+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-c-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=c+o}const f=jd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-f.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":u.offset[0]=f.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":u.offset[1]=2*-f.arrowOffsetHorizontal+c;break;case"leftBottom":case"rightBottom":u.offset[1]=2*f.arrowOffsetHorizontal-c}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,f,t,n),a&&(u.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:C?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})}),[b,h,g,k]),_=w.useMemo((()=>0===v?v:m||v||""),[m,v]),I=w.createElement(kd,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:L="top",mouseEnterDelay:z=.1,mouseLeaveDelay:H=.1,overlayStyle:B,rootClassName:D}=e,V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=S("tooltip",o),G=S(),X=e["data-popover-inject"];let q=P;"open"in e||"visible"in e||!A||(q=!1);const K=w.isValidElement(u)&&!function(e){return e&&x().isValidElement(e)&&e.type===x().Fragment}(u)?u:w.createElement("span",null,u),U=K.props,Y=U.className&&"string"!=typeof U.className?U.className:N()(U.className,i||`${W}-open`),[Z,Q,J]=Kd(W,!X),ee=Yd(W,l),te=ee.arrowStyle,ne=Object.assign(Object.assign({},s),ee.overlayStyle),re=N()(c,{[`${W}-rtl`]:"rtl"===$},ee.className,D,Q,J),[oe,ie]=((e,t)=>{const[,n]=Kl(),r=x().useContext(Ed),o=e in $d;let i;if(void 0!==t)i=[t,t];else{let a=null!=r?r:0;a+=o?(r?0:n.zIndexPopupBase)+$d[e]:Od[e],i=[void 0===r?t:a,a]}return i})("Tooltip",V.zIndex),ae=w.createElement(rf,Object.assign({},V,{zIndex:oe,showArrow:C,placement:L,mouseEnterDelay:z,mouseLeaveDelay:H,prefixCls:W,overlayClassName:re,overlayStyle:Object.assign(Object.assign({},te),B),getTooltipContainer:T||a||E,ref:M,builtinPlacements:F,overlay:I,visible:q,onVisibleChange:t=>{var n,r;R(!A&&t),A||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:d,overlayInnerStyle:ne,arrowContent:w.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:Zl(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),q?function(e,t){return((e,t,n)=>x().isValidElement(e)?x().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}(K,{className:Y}):K);return Z(w.createElement(Ed.Provider,{value:ie},ae))})),Qd=Zd;Qd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:c}=w.useContext(Ka),l=c("tooltip",t),[s,u,f]=Kd(l),d=Yd(l,i),p=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=N()(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return s(w.createElement("div",{className:v,style:p},w.createElement("div",{className:`${l}-arrow`}),w.createElement(Yu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};const Jd=Qd,ep=window.wp.blocks,tp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"};var np=function(e,t){return w.createElement(vt,C({},e,{ref:t,icon:tp}))};const rp=w.forwardRef(np),{getSelectedBlockClientId:op}=(0,y.select)("core/block-editor"),ip=({setOpen:e})=>{const[t,n]=(0,w.useState)(null);(0,w.useEffect)((()=>{fetch("#").then((e=>e.json())).then((e=>n(e.data)))}),[]);const{insertBlocks:r,replaceBlocks:o,insertAfterBlock:i}=(0,y.dispatch)("core/block-editor");return(0,s.jsx)("div",{className:"gutenito-patterns",children:(0,s.jsx)("div",{className:"gutenito-patterns-wrapper",children:(0,s.jsx)("div",{className:"gutenito-pattern-cards",children:(0,s.jsx)(Ks,{className:"gutenito-pattern-row",children:t&&t.map(((t,n)=>{const a=n;return(0,s.jsx)(Qs,{xs:{flex:"100%"},sm:{flex:"46%"},md:{flex:"30%"},lg:{flex:"30%"},xl:{flex:"23%"},children:(0,s.jsxs)(Nu,{className:"gutenito-pattern-single-card",children:[(0,s.jsx)("div",{className:"gutenito-pattern-img",children:(0,s.jsx)("img",{src:t.image,alt:""})}),(0,s.jsx)(Tu,{className:"gutenito-pattern-divider"}),(0,s.jsxs)(Uu,{justify:"space-between",children:[(0,s.jsx)("div",{className:"gutenito-pattern-title",children:t.title}),(0,s.jsx)(Jd,{placement:"bottom",title:"Import the pattern",children:(0,s.jsxs)("div",{onClick:()=>(t=>{const n=op();if(n){i(n);const e=op();o(e,(0,ep.parse)(t))}else r((0,ep.parse)(t));e(!1)})(t.content),className:"gutenito-pattern-import-btn",children:["Import ",(0,s.jsx)(rp,{className:"gutenito-pattern-import-icon"})]})})]})]})},a)}))})})})})},{getSelectedBlockClientId:ap}=(0,y.select)("core/block-editor"),cp=({setOpen:e})=>{const[t,n]=(0,w.useState)(null);(0,w.useEffect)((()=>{fetch("#").then((e=>e.json())).then((e=>n(e.data)))}),[]);const{insertBlocks:r,replaceBlocks:o,insertAfterBlock:i}=(0,y.dispatch)("core/block-editor");return(0,s.jsx)("div",{className:"gutenito-pages",children:(0,s.jsx)("div",{className:"gutenito-pages-wrapper",children:(0,s.jsx)("div",{className:"gutenito-page-cards",children:(0,s.jsx)(Ks,{className:"gutenito-page-row",children:t&&t.map(((t,n)=>{const a=n;return(0,s.jsx)(Qs,{xs:{flex:"100%"},sm:{flex:"46%"},md:{flex:"30%"},lg:{flex:"30%"},xl:{flex:"23%"},children:(0,s.jsxs)(Nu,{className:"gutenito-page-single-card",children:[(0,s.jsx)("div",{className:"gutenito-page-img",children:(0,s.jsx)("img",{src:t.image,alt:""})}),(0,s.jsx)(Tu,{className:"gutenito-page-divider"}),(0,s.jsxs)(Uu,{justify:"space-between",children:[(0,s.jsx)("div",{className:"gutenito-page-title",children:t.title}),(0,s.jsx)(Jd,{placement:"bottom",title:"Import the page",children:(0,s.jsxs)("div",{onClick:()=>(t=>{const n=ap();if(n){i(n);const e=ap();o(e,(0,ep.parse)(t))}else r((0,ep.parse)(t));e(!1)})(t.content),className:"gutenito-page-import-btn",children:["Import ",(0,s.jsx)(rp,{className:"gutenito-page-import-icon"})]})})]})]})},a)}))})})})})},lp=()=>(0,s.jsx)("div",{className:"gutenito-templates",children:(0,s.jsx)("div",{className:"gutenito-templates-wrapper",children:(0,s.jsx)("h1",{style:{textAlign:"center"},children:"Coming soon!"})})}),sp=({setOpen:e})=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Uu,{justify:"end",align:"middle",children:(0,s.jsx)(Uu,{gap:18,children:(0,s.jsx)("div",{className:"gutenito-modal-close-btn",children:(0,s.jsx)(Jd,{placement:"bottom",title:"Close",children:(0,s.jsx)(gt,{className:"close-btn-icon",onClick:()=>e(!1)})})})})})}),up=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Uu,{justify:"start",align:"middle",children:(0,s.jsx)(Uu,{style:{width:"100%",alignItems:"center"},gap:18,children:(0,s.jsx)("div",{className:"gutenito-modal-header-title",children:"Templates"})})})}),fp=({setOpen:e})=>{const t={right:(0,s.jsx)(sp,{className:"header-right",setOpen:e}),left:(0,s.jsx)(up,{className:"header-left"})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"gutenito-template-modal-main",children:(0,s.jsx)("div",{className:"gutenito-template-modal-wrapper",children:(0,s.jsx)(zs,{centered:!0,tabBarExtraContent:t,defaultActiveKey:"1",items:[{label:"Patterns",key:"patterns",children:(0,s.jsx)(ip,{setOpen:e})},{label:"Page",key:"page",children:(0,s.jsx)(cp,{className:"gutenito-pages",setOpen:e})},{label:"Templates",key:"templates",children:(0,s.jsx)(lp,{className:"gutenito-templates",setOpen:e})}]})})})})},dp=()=>{const[e,t]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:"Demo Templates"}),e&&(0,Lt.createPortal)((0,s.jsx)(fp,{setOpen:t}),document.body)]})},pp=window.wp.editor,hp=window.wp.primitives,vp=(0,s.jsx)(hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(hp.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})});(0,b.registerPlugin)("gutenito-templates-lib-btn",{render:()=>{const e=(0,l.useRef)(null),t=(0,l.useRef)(!0);return(0,l.useEffect)((()=>{if(!t.current)return;const n=(0,y.subscribe)((()=>{const n=document.querySelector(".edit-post-header_toolbar, .editor-headertoolbar, .edit-site-header-edit-mode_start, .editor-header__toolbar");if(!n)return;let r=document.getElementById("gutenito-templates-lib-btn");r||(r=document.createElement("div"),r.id="gutenito-templates-lib-btn",n.appendChild(r)),!e.current&&r&&(e.current=(0,l.createRoot)(r)),e.current&&(e.current.render((0,s.jsx)(s.Fragment,{children:(0,s.jsx)(dp,{})})),t.current=!1)}));return()=>n()}),[]),null}}),(0,b.registerPlugin)("gutenito-sidebar",{render:()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(pp.PluginSidebar,{name:"plugin-sidebar-test",title:"Gutenito Settings",icon:vp,children:(0,s.jsx)("p",{children:"Coming Soon!"})})})})},2799:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case h:case p:case c:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=u,t.isFragment=function(e){return v(e)===o},t.isMemo=function(e){return v(e)===p}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var c=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(u--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6939:0,8131:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,a=n[0],c=n[1],l=n[2],s=0;if(a.some((t=>0!==e[t]))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(l)var u=l(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunkgutenito_blocks_addon=self.webpackChunkgutenito_blocks_addon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[8131],(()=>r(3304)));o=r.O(o)})();
  • gutenito-blocks-addon/trunk/gutenito-blocks-addon.php

    r3427319 r3428097  
    55 * Requires at least: 5.8
    66 * Requires PHP: 7.4
    7  * Version: 0.0.5
     7 * Version: 1.0.0
    88 * Author: Eunito
    99 * Author URI: https://eunito.com
     
    6868     */
    6969    public function define_constants() {
    70         define( 'GUTENITO_BLOCKS_ADDON_PLUGIN_VERSION', '0.0.5' );
     70        define( 'GUTENITO_BLOCKS_ADDON_PLUGIN_VERSION', '1.0.0' );
    7171        define( 'GUTENITO_BLOCKS_ADDON_PLUGIN_NAME', 'Gutenito Blocks Addon' );
    7272        define( 'GUTENITO_BLOCKS_ADDON_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
  • gutenito-blocks-addon/trunk/includes/Api/Init.php

    r3172376 r3428097  
    1111 * @since 0.0.1
    1212 * @package Gutenito_Blocks_Addon
    13  * @author wpsharif
     13 * @author eunito
    1414 */
    1515class Init {
  • gutenito-blocks-addon/trunk/package.json

    r3172376 r3428097  
    2424        "packages-update": "wp-scripts packages-update",
    2525        "plugin-zip": "wp-scripts plugin-zip",
    26         "start": "wp-scripts start"
     26        "start": "wp-scripts start",
     27        "release": "wp-scripts build && wp-scripts plugin-zip"
    2728    },
    2829    "devDependencies": {
  • gutenito-blocks-addon/trunk/readme.txt

    r3427319 r3428097  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 0.0.5
     7Stable tag: 1.0.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    4444
    4545== Changelog ==
    46 = 0.0.5 =
     46= 1.0.0 =
    4747* Added: Blockquote block - Stylized quotation display component
    4848* Added: Buttons block - Interactive button elements with various styles
Note: See TracChangeset for help on using the changeset viewer.